/* =========================================
   MAIN CARD LAYOUT
========================================= */

.restaurant-card {
    display: grid;

    /* Row 1 = title
       Row 2 = main content */
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto;

    gap: 20px;

    padding: 2vw;
    background-color: #FAFAFA;
    box-shadow: 0 0 20px darkgrey;
    border-radius: 0.5rem;
}

/* ----- TITLE FULL WIDTH ON TOP ----- */

.restaurant-info {
    grid-column: 1 / -1;   /* span all columns */
    grid-row: 1 / 2;

    margin-bottom: 10px;
}

.restaurant-name {
    font-family: Arial, Helvetica, sans-serif;
    color: #494949;
    font-size: 28px;
    text-transform: uppercase;
}

/* =========================================
   GRID POSITIONS
========================================= */

/* 1 - CAROUSEL BIG LEFT */
.restaurant-carousel {
    border-radius: 5px;
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    img {
        border-radius: 5px;
    }
}

/* 2 - MAP TOP RIGHT */
.restaurant-map {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    canvas {
        border-radius: 5px;
    }
}

/* 3 - COMPLEMENTS UNDER MAP */
.restaurant-schedule {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.restaurant-complements {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}


/* =========================================
   IMAGES & CAROUSEL
========================================= */

.restaurant-img {
    border-radius: 4px;
    width: 500px !important;
    max-height: 500px !important;
    object-fit: contain;
}

/* =========================================
   SCHEDULE
========================================= */

.schedule {
    width: 100%;
}

.schedule-row {
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;

    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.day {
    text-transform: uppercase;
    text-align: left;
    min-width: 140px;
}

.time {
    text-align: right;
    white-space: nowrap;
}

/* =========================================
   THUMBNAILS
========================================= */

.restaurant-thumbnails {
    display: flex;
    width: 500px;
    gap: 5px;
    margin-top: 10px;
}

.thumbnail-link {
    position: relative;
    display: inline-block;
    flex: 1;
    max-width: calc(33.333% - 4px);
}

.thumbnail-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Fancybox override */
.fancybox__image {
    width: auto;
    height: 70vh;
}

.thumbnail-link .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;

    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 18px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;
}

/* =========================================
   OLD CONTENT STYLES (KEPT)
========================================= */

.restaurant-poster {
    width: 150px;
    height: auto;
    flex-shrink: 0;
}

.restaurant-content {
    flex: 1;
}

.restaurant-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.restaurant-date {
    font-size: 12px;
    color: #777;
    background: #f2f2f2;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.restaurant-title {
    text-transform: uppercase;
    margin: 0;
    font-size: 26px;
}

.restaurant-icons {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.restaurant-icon {
    width: 50px;
    height: 50px;
}

.restaurant-services-icon {
    height: 50px;
}

.restaurantlist-services-icon {
    height: 35px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .restaurant-card {
        padding: 30px 20px;
        width: -webkit-fill-available;
        display: flex;
        flex-direction: column;
    }

    .restaurant-info,
    .restaurant-carousel,
    .restaurant-map,
    .restaurant-complements {
        width: auto !important;
    }

    .schedule {
        margin-left: 5%;
        width: 80%;
    }

    .restaurant-map {
        .wpgmza_map {
            max-height: 200px;
        }
    }

    .restaurant-icons {
        display: grid;
        grid-template-columns: 3fr 3fr;
        align-content: center;
        gap: 15px;
    }

    .restaurant-icon,
    .restaurant-services-icon {
        justify-self: center;
    }
}
