.restaurants-section-v3 {
    padding: 3rem 1rem 5rem;
    background: var(--background-cream, #F7F5F0);
    min-height: 60vh;
}

.restaurants-container-v3 {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.restaurants-title-v3 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: restaurantsTitleIn 0.8s 0.2s ease-out forwards;
}

.restaurants-title-v3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

@keyframes restaurantsTitleIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.restaurants-subtitle-v3 {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    opacity: 0;
    animation: restaurantsSubtitleIn 0.8s 0.4s ease-out forwards;
}

@keyframes restaurantsSubtitleIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.restaurants-list-v3 {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: var(--container-max, 1200px);
}

.restaurant-item-card-v3 {
    background: var(--background-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.restaurant-item-card-v3.animate-in {
    animation: restaurantCardFadeIn 0.7s ease-out forwards;
}

@keyframes restaurantCardFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.restaurant-item-card-v3:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper-v3 {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--background-cream, #F7F5F0);
}

.card-image-wrapper-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.restaurant-item-card-v3:hover .card-image-wrapper-v3 img {
    transform: scale(1.08);
}

.card-content-wrapper-v3 {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title-v3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.card-info-line {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-info-line i {
    color: var(--accent-color);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.card-info-line a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-info-line a:hover {
    color: var(--primary-color);
}

.card-description-v3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
    margin: 0.75rem 0 1.25rem;
}

.card-description-v3 p {
    margin-bottom: 0.5em;
}

.card-description-v3 p:last-child {
    margin-bottom: 0;
}

.card-actions-v3 {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-restaurant-action-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-restaurant-action-v3:hover {
    background: var(--accent-hover-color);
    border-color: var(--accent-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.35);
}

.btn-restaurant-action-v3.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-restaurant-action-v3.secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
    animation: lightboxFadeIn 0.3s ease-out;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#loading-message {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 2rem;
}

@media (max-width: 768px) {
    .restaurants-section-v3 {
        padding: 2rem 0.75rem 3rem;
    }

    .restaurants-list-v3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-image-wrapper-v3 {
        height: 220px;
    }

    .card-title-v3 {
        font-size: 1.25rem;
    }

    .card-content-wrapper-v3 {
        padding: 1.25rem;
    }

    .card-actions-v3 {
        flex-direction: column;
    }

    .btn-restaurant-action-v3 {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .restaurants-section-v3 {
        padding: 1.5rem 0.5rem 2.5rem;
    }

    .restaurants-list-v3 {
        gap: 1rem;
    }

    .card-image-wrapper-v3 {
        height: 200px;
    }

    .card-title-v3 {
        font-size: 1.15rem;
    }

    .card-content-wrapper-v3 {
        padding: 1rem;
    }
}
