/**
 * LeBonResto — City Page (city.php)
 * Extracted from inline <style> block.
 *
 * Variable mapping from legacy city.php :root -> tokens.css:
 *   --accent        -> --primary  (was #f59e0b)
 *   --accent-light  -> --primary-dark
 *   --accent-bg     -> --primary-light
 *   --dark          -> --text
 *   --radius        -> --radius-lg
 *   --radius-sm     -> --radius-sm  (kept as-is)
 *   --shadow-md     -> --shadow-md
 *   --shadow-lg     -> --shadow-lg
 *   --font-serif    -> --font-serif (kept as-is)
 *   --font-sans     -> --font-display
 *   background:white -> var(--bg-elevated)
 *
 * Dark mode: cold Slate replaced with warm Stone tokens.
 */

/* ═══ CONTAINER ═══ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--gray-500);
}
.breadcrumb a {
    color: var(--primary);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { margin: 0 8px; color: var(--gray-300); }

/* ═══ CITY HEADER ═══ */
.city-header {
    background: linear-gradient(135deg, #003d36 0%, #00635a 40%, #00897b 100%);
    padding: 48px 0 40px;
    color: white;
}
.city-header h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #fff;
}
.city-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}
.city-stats i { margin-right: 6px; }

/* ═══ SEO BLOCK ═══ */
.seo-block {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 24px 28px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

/* ═══ CUISINE FILTER TAGS ═══ */
.cuisine-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 28px;
}
.cuisine-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
    cursor: pointer;
}
.cuisine-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.cuisine-tag .tag-count {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

/* ═══ RESTAURANT GRID ═══ */
.resto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0 40px;
}

/* ═══ CARD STYLES (matching _card.php) ═══ */
.resto-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}
.resto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.resto-photo { position: relative; height: 200px; overflow: hidden; background: var(--gray-100); }
.resto-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-carousel { position: relative; height: 100%; }
.carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.carousel-img.active { opacity: 1; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px; opacity: 0; transition: opacity 0.2s; z-index: 2; }
.resto-photo:hover .carousel-prev, .resto-photo:hover .carousel-next { opacity: 1; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.carousel-dot.active { background: white; }
.wishlist-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.9); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; font-size: 14px; color: #333; }
.wishlist-btn.active i { font-weight: 900; color: #ef4444; }
.cw-card-btn { position: absolute; top: 10px; right: 48px; background: rgba(255,255,255,0.9); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; font-size: 12px; color: #333; }
.photo-award { position: absolute; top: 10px; left: 10px; background: var(--accent); color: white; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); z-index: 3; }
.resto-info { display: block; padding: 14px 16px 16px; }
.resto-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.resto-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.rating-dots { display: flex; gap: 3px; }
.rating-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.rating-dot.empty { background: var(--gray-200); }
.rating-label { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.reviews-count { font-size: 12px; color: var(--gray-500); }
.resto-no-rating { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
.resto-meta { font-size: 13px; color: var(--gray-500); }
.meta-sep { margin: 0 4px; }
.resto-rank { display: inline-block; font-size: 11px; color: var(--accent); margin-top: 4px; }
.resto-service-tag { display: inline-block; font-size: 11px; color: var(--primary); margin-top: 4px; margin-right: 8px; }
.resto-service-resa { color: var(--accent); }
.card-reviews { margin-top: 8px; }
.review-excerpt { font-size: 12px; color: var(--gray-500); font-style: italic; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═══ BEST RATED HIGHLIGHT ═══ */
.best-rated {
    margin: 24px 0;
}
.best-rated h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 16px;
}
.best-rated-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.best-rated-item {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: var(--bg-elevated);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: box-shadow 0.2s;
}
.best-rated-item:hover { box-shadow: var(--shadow-md); }
.best-rated-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.best-rated-cuisine {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.best-rated-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}
.best-rated-stars {
    color: var(--accent);
    font-size: 13px;
}
.best-rated-score {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.best-rated-reviews {
    font-size: 12px;
    color: var(--gray-500);
}

/* ═══ GRID HEADER ═══ */
.grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.grid-header h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    margin: 0;
}
.grid-count {
    font-size: 14px;
    color: var(--gray-500);
}

/* ═══ CTA LINK ═══ */
.city-cta {
    text-align: center;
    margin: 32px 0 48px;
}
.city-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}
.city-cta a:hover { background: var(--primary-dark); }

/* ═══ SEARCH LINK ═══ */
.city-search-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}
.city-search-link:hover { color: var(--primary-dark); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .city-header h1 { font-size: 28px; }
    .city-stats { gap: 16px; font-size: 14px; }
    .resto-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
    .best-rated-item { flex: 0 0 180px; }
    .carousel-prev, .carousel-next { width: 36px; height: 36px; font-size: 13px; opacity: 0.8; }
    .wishlist-btn { width: 40px; height: 40px; font-size: 16px; }
    .cw-card-btn { width: 40px; height: 40px; right: 56px; font-size: 14px; }
}
@media (max-width: 480px) {
    .resto-grid { grid-template-columns: 1fr; }
    .city-header { padding: 32px 0 28px; }
    .city-header h1 { font-size: 24px; }
    .seo-block { padding: 18px 16px; font-size: 14px; }
}

/* ═══ DARK MODE ═══ */
[data-theme="dark"] .city-header { background: linear-gradient(135deg, var(--bg) 0%, #064e3b 40%, #065f46 100%); }
[data-theme="dark"] .seo-block { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .cuisine-tag { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .cuisine-tag:hover { background: rgba(0,99,90,0.2); border-color: #00635a; }
[data-theme="dark"] .cuisine-tag .tag-count { background: var(--border); color: var(--text-muted); }
[data-theme="dark"] .resto-card { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .resto-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
[data-theme="dark"] .resto-name { color: var(--text); }
[data-theme="dark"] .resto-name:hover { color: var(--primary); }
[data-theme="dark"] .best-rated-item { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="dark"] .best-rated-name { color: var(--text); }
[data-theme="dark"] .breadcrumb { color: var(--text-muted); }
[data-theme="dark"] .breadcrumb a { color: var(--primary); }
[data-theme="dark"] .grid-header h2 { color: var(--text); }
[data-theme="dark"] .grid-header { border-color: var(--border); }
[data-theme="dark"] .pagination a { background: var(--bg-elevated); border-color: var(--border); color: var(--text-muted); }
[data-theme="dark"] .pagination a:hover { border-color: #00635a; color: var(--primary); }
[data-theme="dark"] .pagination .current { background: #00635a; color: white; }

/* ─── OCCASIONS CROSS-LINKS ─────────────────────────────────────── */
.city-occasions {
    margin: 40px 20px 0;
    max-width: var(--container-max);
    margin-left: auto; margin-right: auto;
}
.city-occasions__title {
    font-family: var(--font-serif);
    font-size: 20px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.city-occasions__title i { color: var(--primary); }
.city-occasions__grid {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.city-occ-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--bg-elevated); border: 1.5px solid var(--border);
    border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: all .2s; white-space: nowrap;
}
.city-occ-chip:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light); transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,99,90,.12);
}
.city-occ-chip i { font-size: 14px; }
.city-occ-chip__count {
    background: var(--bg-surface, #f0f0eb); color: var(--text-muted);
    font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 50px;
}
.city-occ-chip:hover .city-occ-chip__count { background: rgba(0,99,90,.1); color: var(--primary); }

@media (max-width: 768px) {
    .city-occasions { margin: 28px 16px 0; }
    .city-occasions__grid { gap: 8px; }
    .city-occ-chip { font-size: 13px; padding: 8px 14px; }
}

/* ── Maillage interne SEO ── */
.city-seo-links {
    margin: 40px 0 0;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f0faf9 0%, #fafaf9 100%);
    border-top: 1px solid rgba(0,99,90,.1);
}
.city-seo-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.city-seo-block { flex: 1; }
.city-seo-block h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted, #94a3b8);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.city-seo-main-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary, #00635a);
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.city-seo-main-link:hover {
    background: var(--primary-dark, #004d40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,99,90,.25);
}
.city-seo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.city-seo-chip {
    padding: 8px 16px;
    border: 1.5px solid rgba(0,99,90,.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary, #00635a);
    text-decoration: none;
    background: #fff;
    transition: all .2s;
    white-space: nowrap;
}
.city-seo-chip:hover {
    background: var(--primary, #00635a);
    color: #fff;
    border-color: var(--primary, #00635a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,99,90,.2);
}
@media (max-width: 768px) {
    .city-seo-inner { flex-direction: column; gap: 24px; }
    .city-seo-links { padding: 24px 16px; margin: 28px 0 0; }
    .city-seo-main-link { font-size: 14px; }
}

/* ─── FAQ (shared with occasion_city) ─────────────────────────────── */
.occ-faq { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.occ-faq-list { display: flex; flex-direction: column; gap: 10px; }
.occ-faq-item {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
}
.occ-faq-item:hover { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.occ-faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--text);
    text-align: left; gap: 16px; min-height: 56px;
    cursor: pointer; background: transparent !important; border: none !important;
    -webkit-appearance: none; appearance: none; outline: none;
    border-radius: 0; margin: 0; box-shadow: none;
    font-family: inherit; transition: color .15s;
}
.occ-faq-q:hover { color: var(--primary); }
.occ-faq-icon {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; transition: transform .25s cubic-bezier(.16,1,.3,1), background .15s;
}
.occ-faq-q[aria-expanded="true"] .occ-faq-icon {
    background: var(--primary); color: #fff;
}
.occ-faq-a { padding: 0 20px 18px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.occ-section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
