﻿.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 28px;
}
.restaurants-wrapper {
    margin-top: 3cm;
}

/* HEADER */

.restaurants-header {
    margin-bottom: 40px;
}

.restaurants-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.restaurants-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, #10b981, #22c55e );
    color: white;
    font-size: 26px;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.restaurants-title {
    font-size: 38px;
    font-weight: 700;
    margin: 0;
}

.restaurants-subtitle {
    color: #6b7280;
    font-size: 15px;
}

/* CARD */

.restaurant-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0,0,0,.12);
    transition: .3s;
    position: relative;
}

    .restaurant-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 60px rgba(0,0,0,.2);
    }

/* BANNER */

.restaurant-banner {
    position: relative;
    height: 150px;
}

    .restaurant-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.5) 100% );
    z-index: 2;
}

/* RATING */

.banner-rating {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    gap: 6px;
    align-items: center;
    color: #1f2937;
}

    .banner-rating i {
        color: #fbbf24;
    }

/* OPEN BADGE */

.restaurant-banner {
    position: relative;
    z-index: 1;
}

.banner-open {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #22c55e;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.banner-closed {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.banner-closed i {
    font-size: 8px;
}

/* BODY */

.restaurant-body {
    padding: 22px;
    text-align: center;
    position: relative;
    z-index: 3;
}

/* LOGO */

.restaurant-logo {
    width: 64px;
    height: 64px;
    margin: -42px auto 12px;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    border: 4px solid white;
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

    .restaurant-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .restaurant-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* NAME */

.restaurant-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.restaurant-card-link {
    text-decoration: none;
    color: inherit;
}

.restaurant-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

/* META */

.restaurant-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.meta-item {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* LOCATION */

.restaurant-location {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 12px;
}

.restaurant-location {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

    .restaurant-location i {
        color: #ef4444;
    }

/* TAG */

.restaurant-tag {
    display: inline-block;
    background: linear-gradient( 90deg, #10b981, #22c55e );
    color: white;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

/*
    ===============
    RESPONSIVE
    ===============
*/

@media (max-width: 767px) {
    .restaurants-title-row {
        flex-direction: column;
        text-align: center;
    }
    .restaurant-card-link {
        padding: 0 50px;
    }
}

@media (max-width: 550px) {
    .restaurants-title {
        font-size: 30px;
    }
    .restaurants-subtitle {
        font-size: 13px;
    }
    .restaurant-card-link {
        padding: 0 30px;
    }
}