@media (max-width: 767px) {
    .restaurant-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .restaurant-card .thumbnail {
        height: 80px !important; /* reduce image height by ~50% */
    }

    .logo-overlay,
    .full-logo-wrapper {
        display: none !important; /* hide logos at top of card */
    }

    .star-overlay {
        position: absolute !important;
        top: -25px !important;
        right: -25px !important;
        width: 72px !important;
        height: 72px !important;
        z-index: 10 !important;
    }
}


.restaurant-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.restaurant-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    min-width: 160px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    background-color: #d6d6d6;
}

.restaurant-card:hover {
    transform: translateY(-15px);
}

.restaurant-card .thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.restaurant-card h3 {
    text-align: center;
    margin-top: 10px;
}

.card-content {
    flex-grow: 1;
}

.card-content p {
	margin-top: 3px;
	margin-bottom: 3px;
}

.card-address {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.order-button-wrapper {
    margin-top: 5px;
    text-align: center;
}



.order-now-button button:hover {
    background-color: #cc2b23;
}

.image-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.logo-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.logo-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.star-overlay {
    position: absolute;
    top: -95px;
    right: -25px;
    width: 72px;
    height: 72px;
    z-index: 10;
    background-color: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

.star-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title-wrapper {
    border-bottom: 1px solid #FF0000;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.inline-logo {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    object-fit: cover;
}


.restaurant-title {
    font-family: 'Poppins', cursive;
    font-size: 1.8rem;
    font-weight: normal;
    margin: 0;
    text-align: center;
    color: #333;
}

.restaurant-card h3.restaurant-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    margin: 10px 0 8px;
    text-align: center;
    color: #333;
}

.full-logo-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.full-logo {
    height: 100%;
    width: auto;
    max-width: 100%;
}

.price-rating {
    color: #27ae60;
    font-weight: 600;
}



