/* ================================================================
   RESTAURANTS PAGE — Card design with ratings and slideshow
   ================================================================ */

.page-header {
    padding: 120px 24px 60px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/headers/restaurants-header.jpg') center/cover no-repeat;
    color: white;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 1;
    color: white;
}

.nav-links a.active {
    color: var(--green);
    font-weight: 600;
}

/* Filter Bar */
.filter-section {
    padding: 24px 0;
    background: white;
    border-bottom: 1px solid var(--grey-light);
    position: sticky;
    top: 64px;
    z-index: 100;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--off-white);
    border: 1px solid var(--grey-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.filter-btn.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

/* Restaurant Grid */
.restaurants-grid-section {
    padding: 48px 0 80px;
    background: var(--off-white);
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Restaurant Card */
.restaurant-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: var(--dark);
    display: block;
    position: relative;
}

.restaurant-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Card Slideshow */
.card-slideshow {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

.card-category-tip {
    left: auto;
    right: 14px;
    top: auto;
    bottom: 14px;
    background: rgba(255,255,255,0.95);
    color: var(--green);
    font-weight: 700;
}

.card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark);
    z-index: 2;
    letter-spacing: 0.02em;
}

/* Card Body */
.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-location {
    font-size: 0.85rem;
    color: var(--grey);
    margin-bottom: 14px;
}

/* Rating Tags */
.card-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.rating-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--off-white);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.rating-label {
    color: var(--grey);
    font-weight: 500;
}

.rating-value {
    font-weight: 600;
    color: var(--dark);
}

/* Atmosphere colors */
.atmosphere-baroque { color: #8B4513; }
.atmosphere-rustic { color: #6B4423; }
.atmosphere-modern { color: #2D6A4F; }
.atmosphere-classic { color: #4A4A4A; }

/* Level colors */
.level-high { color: #B8860B; }
.level-medium { color: #2D6A4F; }
.level-casual { color: #48CAE4; }

/* Price colors */
.price-high { color: #B8860B; }
.price-medium { color: #2D6A4F; }
.price-low { color: #48CAE4; }

/* Vibe colors */
.vibe-elegant { color: #4A4A4A; }
.vibe-cozy { color: #8B4513; }
.vibe-lively { color: #F4845F; }

/* Service colors */
.service-professional { color: #4A4A4A; }
.service-friendly { color: #2D6A4F; }
.service-relaxed { color: #48CAE4; }

.card-seal {
    margin-top: 12px;
}

.card-seal-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.card-seal-overlay img {
    width: 48px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.card-preview {
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .restaurants-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .restaurant-card {
        max-width: 340px;
        margin: 0 auto;
    }

    .card-slideshow {
        height: 160px;
    }

    .card-body {
        padding: 14px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-location {
        font-size: 0.78rem;
    }

    .card-ratings {
        gap: 4px;
        margin-bottom: 10px;
    }

    .rating-tag {
        font-size: 0.68rem;
        padding: 3px 6px;
    }

    .card-preview {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .card-seal img {
        width: 32px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 90px 16px 32px;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .filter-bar {
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.78rem;
        padding: 6px 14px;
    }
}

