/* ========================================
   CITY GUIDE — Shared Editorial Styles
   Reusable across all city guide pages
   ======================================== */

/* Page wrapper */
.guide-page {
    min-height: 100vh;
    padding-top: 80px;
}

/* ========================================
   HERO
   ======================================== */
.guide-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    position: relative;
}

.guide-hero-image {
    max-width: 1060px;
    margin: 2rem auto 0;
    padding: 0 3rem;
    overflow: hidden;
}

.guide-hero-image img {
    width: 100%;
    display: block;
}

.guide-hero-credit {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    text-align: center;
}

.guide-hero-credit a {
    color: var(--text-tertiary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.guide-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.guide-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.guide-meta-sep {
    opacity: 0.4;
}

.guide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.65rem 1.5rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.guide-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ========================================
   LAYOUT — ToC + Article Grid
   ======================================== */
.guide-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 3rem 6rem;
    position: relative;
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */
.guide-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
}

.guide-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.guide-toc-item a {
    display: block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.guide-toc-item a:hover {
    color: var(--text-secondary);
}

.guide-toc-item.active > a {
    color: var(--text-primary);
    font-weight: 500;
    border-left-color: var(--text-primary);
}

.guide-toc-sub {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 0.1rem;
}

.guide-toc-sub a {
    padding-left: 1.25rem;
    font-size: 0.75rem;
}

.guide-toc-sub .active a {
    color: var(--text-primary);
    font-weight: 500;
    border-left-color: var(--text-primary);
}

/* Mobile ToC — horizontal pill bar */
.guide-toc-mobile {
    display: none;
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */
.guide-article {
    max-width: 680px;
    min-width: 0;
}

.guide-section {
    padding-top: 3rem;
    margin-bottom: 1rem;
}

.guide-section:first-child {
    padding-top: 0;
}

.guide-section-num {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.guide-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.guide-section-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* Subsections */
.guide-subsection {
    margin-bottom: 2.5rem;
}

.guide-subsection-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.guide-prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.guide-prose + .guide-prose {
    margin-top: 1rem;
}

.guide-prose a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1.5px dotted var(--border-hover);
    padding-bottom: 1px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.guide-prose a:hover {
    border-bottom-color: var(--text-primary);
    border-bottom-style: solid;
}

/* Section dividers */
.guide-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ========================================
   PLACE MENTIONS (Inline)
   ======================================== */
.place-mention {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1.5px dotted var(--border-hover);
    padding-bottom: 1px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.place-mention:hover {
    border-bottom-color: var(--text-primary);
    border-bottom-style: solid;
}

/* ========================================
   PLACE HOVER PREVIEW
   ======================================== */
.place-preview {
    position: fixed;
    width: 280px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.place-preview.visible {
    opacity: 1;
    transform: translateY(0);
}

.place-preview-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.place-preview-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.place-preview-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.place-preview-star {
    color: #f59e0b;
}

.place-preview-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.place-preview-link {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* Michelin badge in preview */
.place-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: #dc2626;
    font-weight: 500;
}

/* ========================================
   PLACE CARDS (Grid)
   ======================================== */
.guide-places {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    max-height: 280px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.guide-places.no-collapse,
.guide-places.expanded {
    max-height: none;
}

.guide-places-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0.4rem 0;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.guide-places-toggle:hover {
    color: var(--text-primary);
}

.guide-places-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.guide-places-toggle.expanded svg {
    transform: rotate(180deg);
}

.guide-place-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.guide-place-card:hover {
    border-color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.place-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.place-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.place-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}

.place-card-star {
    color: #f59e0b;
    font-size: 0.65rem;
}

.place-card-price {
    color: var(--text-tertiary);
}

.place-card-area {
    color: var(--text-tertiary);
}

.place-card-dot {
    color: var(--text-tertiary);
    font-size: 0.4rem;
}

.place-card-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

.place-card-badges {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.place-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 100px;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    font-weight: 500;
    white-space: nowrap;
}

[data-theme="dark"] .place-card-badge {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

/* ========================================
   MAP PREVIEW
   ======================================== */
.guide-map-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 2.5rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.guide-map-section:hover {
    border-color: var(--text-secondary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.guide-map-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.guide-map-section:hover .guide-map-section-label {
    color: var(--text-primary);
}

.guide-map-section-label svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   FLOATING MAP FAB
   ======================================== */
.guide-map-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: all 0.2s ease;
}

.guide-map-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.guide-map-fab svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   FOOTER CTA
   ======================================== */
.guide-footer {
    text-align: center;
    padding: 4rem 3rem 5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    max-width: 1060px;
    margin-left: auto;
    margin-right: auto;
}

.guide-footer-title {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.guide-footer-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.guide-footer .guide-cta {
    margin-bottom: 3rem;
}

.guide-footer .footer-subscribe {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.guide-footer-more {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ========================================
   BACK LINK & THEME TOGGLE (from region pattern)
   ======================================== */
.guide-back {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    z-index: 100;
    transition: color 0.2s;
}

.guide-back:hover {
    color: var(--text-primary);
}

.guide-theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 2rem 4rem;
    }

    .guide-toc {
        display: none;
    }

    .guide-toc-mobile {
        display: block;
        position: sticky;
        top: 0;
        z-index: 90;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 0.6rem 1.5rem;
        margin: 0 -2rem 2rem;
        width: calc(100% + 4rem);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .guide-toc-mobile::-webkit-scrollbar {
        display: none;
    }

    .guide-toc-mobile-inner {
        display: flex;
        gap: 0.4rem;
        white-space: nowrap;
    }

    .guide-toc-pill {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 100px;
        background: var(--bg-secondary);
        color: var(--text-secondary);
        text-decoration: none;
        border: 1px solid var(--border);
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .guide-toc-pill.active {
        background: var(--text-primary);
        color: var(--bg-primary);
        border-color: var(--text-primary);
    }

    .guide-article {
        max-width: 100%;
    }

    .place-preview {
        display: none;
    }
}

@media (max-width: 640px) {
    .guide-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .guide-map-preview {
        padding: 0 1.25rem;
    }

    .guide-newsletter-form {
        flex-direction: column;
    }

    .guide-layout {
        padding: 0 1.25rem 3rem;
    }

    .guide-toc-mobile {
        padding: 0.5rem 1rem;
        margin: 0 -1.25rem 1.5rem;
        width: calc(100% + 2.5rem);
    }

    .guide-places {
        grid-template-columns: 1fr;
        max-height: 480px;
    }

    .guide-places.no-collapse,
    .guide-places.expanded {
        max-height: none;
    }

    .guide-meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .guide-map-fab {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}
