/* ═══════════════════════════════════════════════════════════════
   Guide Detail — /guides/{id}
   Two modes: multi-day trip (2-col split) | places guide (full-width stops)
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS custom properties ────────────────────────────────────── */
:root,
html.dark {
    --gd-bg:           #0f1117;
    --gd-bg2:          #161b27;
    --gd-surface:      rgba(255,255,255,.04);
    --gd-surface2:     rgba(255,255,255,.07);
    --gd-border:       rgba(255,255,255,.09);
    --gd-text:         #f0f0f0;
    --gd-text-sub:     rgba(255,255,255,.65);
    --gd-muted:        rgba(255,255,255,.38);
    --gd-accent:       #E05A2B;
    --gd-accent-soft:  rgba(224,90,43,.14);
    --gd-pill-bg:      rgba(255,255,255,.08);
    --gd-tab-active-bg: rgba(224,90,43,.12);
    --gd-thumb-ph:     rgba(255,255,255,.08);
    --gd-shadow:       rgba(0,0,0,.55);
    --gd-map-ctrl-bg:  rgba(15,17,23,.85);
}
html:not(.dark) {
    --gd-bg:           #f7f7f5;
    --gd-bg2:          #fff;
    --gd-surface:      #fff;
    --gd-surface2:     #f3f4f6;
    --gd-border:       rgba(0,0,0,.08);
    --gd-text:         #111;
    --gd-text-sub:     #444;
    --gd-muted:        #888;
    --gd-accent:       #E05A2B;
    --gd-accent-soft:  rgba(224,90,43,.1);
    --gd-pill-bg:      rgba(0,0,0,.06);
    --gd-tab-active-bg: rgba(224,90,43,.1);
    --gd-thumb-ph:     #e9eaed;
    --gd-shadow:       rgba(0,0,0,.1);
    --gd-map-ctrl-bg:  rgba(255,255,255,.9);
}

/* ── Page root ────────────────────────────────────────────────── */
.gd-page {
    background: var(--gd-bg);
    color: var(--gd-text);
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   TRIP LAYOUT  (multi-day: left scroll + right sticky map)
   ═══════════════════════════════════════════════════════════════ */

.gd-trip-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100vh - var(--gp-nav-h, 56px));
    overflow: hidden;
}

/* ── Left column ──────────────────────────────────────────────── */
.gd-trip-left {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gd-border) transparent;
    background: var(--gd-bg2);
    border-right: 1px solid var(--gd-border);
    display: flex;
    flex-direction: column;
}

/* ── Guide header ─────────────────────────────────────────────── */
.gd-guide-hdr {
    position: relative;
    flex-shrink: 0;
}

.gd-hdr-img {
    /*
     * Hero sized roughly 16:9 against the split-screen left column width.
     * - min  220px → never too short to read the photo on tiny laptops
     * - pref 36vh  → scales with viewport height (≈ 16:9 vs typical column width)
     * - max  380px → caps on tall monitors so the hero doesn't dominate the page
     * Mobile gets its own clamp in the responsive block below (the layout stacks
     * to a single full-width column, so the hero needs a slightly different scale).
     */
    height: clamp(220px, 36vh, 380px);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
html:not(.dark) .gd-hdr-img { filter: brightness(.92); }

.gd-hdr-body {
    padding: 2.5rem 2rem 1.5rem;
}

.gd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gd-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: color .15s;
}
.gd-back-btn:hover { color: var(--gd-accent); }

.gd-guide-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gd-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

/* ─── Title row (split layout) ────────────────────────────────
   Title on the left, primary actions inline on the right. Falls
   back to stacked layout on narrow viewports so the title doesn't
   get squeezed. */
.gd-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.gd-title-row .gd-guide-title {
    margin: 0;
    flex: 1 1 250px;
    min-width: 0;
}
.gd-title-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    padding-top: 0.3rem; /* visually align with the cap-height of the title */
}
@media (max-width: 640px) {
    .gd-title-actions { width: 100%; }
    .gd-title-actions .gd-action-btn { flex: 1; }
}

/* ─── Brand-colored compact action buttons ────────────────────
   Used in the split-layout title row. Smaller than the old
   `gd-split-action-btn` and styled with brand orange instead of
   black to match the rest of the site (pills, accents, etc.). */
.gd-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s, transform .12s;
    font-family: inherit;
    letter-spacing: -0.005em;
    white-space: nowrap;
}
.gd-action-btn:active { transform: scale(.97); }
.gd-action-btn:disabled { opacity: .55; cursor: wait; }

/*
 * Liquid-glass action buttons (Apple-style frosted-glass with an orange gradient).
 *
 * Composition (read top → bottom of the box):
 *   1. linear-gradient background → orange tinted, slightly lighter at the top.
 *   2. backdrop-filter blur + saturate → frosts whatever's behind the button.
 *   3. inset box-shadow on the top edge → simulates an inner highlight (the
 *      "glassy" sheen Apple gets with their `--ios-vibrancy` materials).
 *   4. outer box-shadow → soft drop, tinted with brand orange for primary,
 *      neutral for ghost.
 *   5. translucent border → the "rim" of the glass.
 */

/* Primary CTA — Save Guide, unsaved state. */
.gd-action-btn-primary {
    background: #E05A2B;
    color: #fff !important;
    border: none;
    box-shadow: none;
    text-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.gd-action-btn-primary:hover {
    transform: translateY(-1px);
    background: #c44d22;
    box-shadow: none;
}

/* Saved state: lighter orange with brand-color text. */
.gd-action-btn-primary.is-saved {
    background: rgba(224,90,43,0.15);
    color: var(--gd-accent) !important;
    border: 1px solid var(--gd-accent);
    box-shadow: none;
    text-shadow: none;
}
.gd-action-btn-primary.is-saved:hover {
    background: rgba(224,90,43,0.25);
}
.gd-action-btn-primary.is-saved .gd-action-icon {
    fill: var(--gd-accent);
}

/* Secondary action — Plan a trip. Clear-glass with an orange rim & text. */
.gd-action-btn-ghost {
    background: #E05A2B;
    color: #fff !important;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.gd-action-btn-ghost:hover {
    transform: translateY(-1px);
    background: #c44d22;
    box-shadow: none;
}

/* Removed dark mode button overrides */

/* Removed reduced transparency overrides */

/* Author row */
.gd-guide-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.gd-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.gd-author-avatar-ph {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gd-accent-soft);
    color: var(--gd-accent);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gd-author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gd-text-sub);
}
.gd-author-sep {
    font-size: 0.72rem;
    color: var(--gd-muted);
}
.gd-author-stat {
    font-size: 0.72rem;
    color: var(--gd-muted);
}

/* Pills */
.gd-guide-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
/*
 * Liquid-glass pills (matches the orange-tinted glass look of the action buttons).
 * Three flavours:
 *   - .gd-pill                 → neutral clear-glass (e.g. "Seattle")
 *   - .gd-pill-dur             → solid orange glass (e.g. "2 days") — emphasised
 *   - .gd-pill-vibe            → light orange-tinted glass (e.g. "Solo", "Food")
 */
.gd-pill {
    padding: 0.3rem 0.75rem;
    border-radius: 999px;                       /* full pill */
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 100%);
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 1px 2px rgba(0,0,0,0.04);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gd-text-sub);
    letter-spacing: -0.005em;
    transition: transform .15s, box-shadow .15s;
}
.gd-pill:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.65),
        0 2px 6px rgba(0,0,0,0.08);
}

.gd-pill-dur {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #ee774b 0%, #e05a2b 100%);
    background-blend-mode: screen, normal;
    color: #fff;
    border-color: rgba(255,255,255,0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 2px 8px rgba(224,90,43,0.28);
    text-shadow: 0 1px 1px rgba(0,0,0,0.08);
    font-weight: 600;
}
.gd-pill-dur:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        0 4px 12px rgba(224,90,43,0.38);
}

.gd-pill-vibe {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 100%),
        linear-gradient(180deg, rgba(238,119,75,0.18) 0%, rgba(224,90,43,0.12) 100%);
    color: var(--gd-accent);
    border-color: rgba(224,90,43,0.45);
    font-weight: 600;
}
.gd-pill-vibe:hover {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 100%),
        linear-gradient(180deg, rgba(238,119,75,0.26) 0%, rgba(224,90,43,0.18) 100%);
}

/* Dark mode: rims and highlights need pulling back. */
html.dark .gd-pill {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border-color: rgba(255,255,255,0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        0 1px 2px rgba(0,0,0,0.3);
}
html.dark .gd-pill-vibe {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 100%),
        linear-gradient(180deg, rgba(238,119,75,0.22) 0%, rgba(224,90,43,0.14) 100%);
}

/* A11y: solid fallback when "Reduce Transparency" is enabled. */
@media (prefers-reduced-transparency: reduce) {
    .gd-pill {
        background: var(--gd-surface);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .gd-pill-dur  { background: var(--gd-accent); color: #fff; }
    .gd-pill-vibe { background: var(--gd-accent-soft); }
}

/* Action buttons */
.gd-guide-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.gd-split-action-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    width: auto;
    border-radius: 10px;
}
.gd-split-desc {
    margin-bottom: 1.5rem;
}
.gd-save-btn,
.gd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--gd-border);
    background: var(--gd-surface);
    color: var(--gd-text-sub);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s;
}
.gd-save-btn:hover {
    border-color: var(--gd-accent);
    background: var(--gd-accent-soft);
    color: var(--gd-accent);
}
.gd-share-btn:hover {
    background: var(--gd-surface2);
    color: var(--gd-text);
}

/* ── Day tabs bar (sticky within left col) ────────────────────── */
.gd-day-tabs-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--gd-bg2);
    border-bottom: 1px solid var(--gd-border);
    padding: 0 0.75rem;
    flex-shrink: 0;
}
.gd-day-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 0;
}
.gd-day-tabs::-webkit-scrollbar { display: none; }

.gd-day-tab {
    flex-shrink: 0;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--gd-muted);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s;
}
.gd-day-tab:hover {
    color: var(--gd-text);
    background: var(--gd-surface2);
}
.gd-day-tab.active {
    border-color: var(--gd-accent);
    background: var(--gd-tab-active-bg);
    color: var(--gd-accent);
    font-weight: 600;
}

/* ── Itinerary ────────────────────────────────────────────────── */
.gd-itinerary {
    padding: 0.5rem 0 2rem;
    flex: 1;
}

.gd-day-section {
    padding: 0 0 0.5rem;
}

.gd-day-section-hd {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem 0.4rem;
}
.gd-day-num-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--gd-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.gd-day-section-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gd-text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Place row (compact) ──────────────────────────────────────── */
.gd-place-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gd-border);
    transition: background .15s;
}
.gd-place-row:last-child { border-bottom: none; }
.gd-place-row:hover { background: var(--gd-surface); }
.gd-place-row.active-pin {
    background: var(--gd-accent-soft);
    border-color: var(--gd-accent);
}

.gd-place-order {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gd-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.gd-place-thumb {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gd-thumb-ph);
}
.gd-place-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gd-place-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gd-muted);
}

.gd-place-info {
    flex: 1;
    min-width: 0;
}
.gd-place-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gd-text);
    line-height: 1.25;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}
.gd-place-link {
    color: inherit;
    text-decoration: none;
}
.gd-place-link:hover { color: var(--gd-accent); }

.gd-place-desc {
    font-size: 0.92rem;
    color: var(--gd-text-sub);
    line-height: 1.6;
    margin: 0 0 0.5rem;
    white-space: pre-line;
}

.gd-place-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gd-cat-pill {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--gd-pill-bg);
    border: 1px solid var(--gd-border);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gd-muted);
}

.gd-rating {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 600;
}

.gd-place-save-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gd-border);
    background: var(--gd-surface);
    color: var(--gd-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: border-color .18s, background .18s, color .18s;
}
.gd-place-save-btn:hover {
    border-color: #e11d48;
    color: #e11d48;
    background: rgba(225,29,72,.08);
}

/* ── Right column: map ────────────────────────────────────────── */
.gd-trip-right {
    height: 100%;
    position: relative;
    background: var(--gd-surface);
}

.gd-map {
    width: 100%;
    height: 100%;
}

.gd-map-controls {
    position: absolute;
    top: 70px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}
.gd-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--gd-border);
    background: var(--gd-map-ctrl-bg);
    color: var(--gd-text);
    font-size: 0.73rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .18s, color .18s;
    box-shadow: 0 2px 8px var(--gd-shadow);
}
.gd-map-btn:hover {
    background: var(--gd-accent);
    color: #fff;
    border-color: transparent;
}

/* ── Split Layout Enhancements ── */
.gd-guide-desc {
    font-size: 0.85rem;
    color: var(--gd-text-sub);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    white-space: pre-line;
}
.gd-custom-desc {
    font-size: 0.82rem;
    color: var(--gd-text);
    font-weight: 500;
}
.gd-place-tips {
    font-size: 0.75rem;
    color: var(--gd-muted);
    background: var(--gd-surface2);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.gd-tips-label {
    font-weight: 600;
    color: var(--gd-accent);
}

/* ═══════════════════════════════════════════════════════════════
   FULL PAGE LAYOUT  (clean, simple, Mindtrip-inspired)
   ═══════════════════════════════════════════════════════════════ */

.gd-full-layout {
    background: var(--gd-bg);
}

/* Ensure headings in the full layout all use consistent font */
.gd-full-layout h1,
.gd-full-layout h2,
.gd-full-layout h3 {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Hero Section ────────────────────────────────────────────── */
.gd-full-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: var(--gd-bg2);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}
.gd-full-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}
.gd-full-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    color: #fff;
}
/*
 * Hero "Back" pill — anchored to the upper-left corner of the cover image.
 * Same Apple-glass recipe as the other hero buttons but compact + prominent.
 * Position is absolute relative to .gd-full-hero so it sits above the content
 * regardless of where the title block falls inside the flex container.
 */
/*
 * Back button on the full-screen hero. Needs to read on ANY cover image —
 * light skies, dark forests, orange sunsets. Old version was white-glass with
 * white text; disappeared over pale photos. New recipe:
 *   - Solid dark tint (opaque enough that light photos don't bleed through)
 *   - White text with subtle shadow for extra separation
 *   - White inset outline so the pill's shape stays legible against dark photos
 *   - Backdrop blur retained for the "glassy" feel
 * Same styling for light + dark UI modes — the button sits on user-supplied
 * imagery, not on the page background, so page-theme doesn't apply.
 */
.gd-back-btn-light {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 4px 14px rgba(0,0,0,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, background-color .15s, box-shadow .15s, border-color .15s;
    margin-bottom: 0;  /* override inherited .gd-back-btn margin */
}
.gd-back-btn-light:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.55);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.12),
        0 6px 20px rgba(0,0,0,0.45);
}
@media (max-width: 600px) {
    .gd-back-btn-light { top: 1rem; left: 1rem; padding: 0.4rem 0.8rem; font-size: 0.8rem; }
}
@media (prefers-reduced-transparency: reduce) {
    .gd-back-btn-light {
        background: rgba(0,0,0,0.7);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
.gd-full-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    color: #fff;
}
.gd-full-meta-row {
    margin-bottom: 1.5rem;
}
.gd-guide-author-light .gd-author-name {
    color: #fff;
    font-size: 1rem;
}
.gd-guide-author-light .gd-author-avatar-ph {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.gd-full-actions {
    display: flex;
    gap: 0.75rem;
}
/* Pills on the dark hero image: tighten margin (buttons sit right below) and
   force the neutral pill's label to white — the default subtle-text colour
   disappears against the photo. Duration + vibe pills already have solid
   fills so they read fine unchanged. */
.gd-full-pills {
    margin-bottom: 1.25rem;
}
.gd-full-pills .gd-pill,
.gd-full-pills .gd-pill-link {
    color: #fff;
}
.gd-full-pills .gd-pill-link:hover {
    color: #fff;
}
/*
 * Liquid-glass over the full-mode hero.
 *
 * These buttons sit over a dark cover image with a gradient overlay, so the
 * "Apple glass" recipe is tuned slightly differently from the split-screen
 * versions: stronger inner highlight (the photo behind shows through), a
 * white-tinted gradient for the default state, and a filled orange gradient
 * for the saved state so it pops against the photo.
 */
/*
 * Visibility is more important than subtlety over a dark hero photo, so this
 * recipe runs higher-opacity than the split-screen `.gd-action-btn` glass:
 *   - 50% / 20% white-translucent bg → reads cleanly without washing out the photo
 *   - thick white rim (0.65) → defines the pill's edge against any background
 *   - strong text-shadow + bumped font-weight → label stays legible
 *   - deeper outer shadow → lifts the button off the photo
 */
.gd-btn-light {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0.20) 100%);
    border: 1px solid rgba(255,255,255,0.65);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.2),
        0 6px 22px rgba(0,0,0,0.45);
    text-shadow: 0 1px 3px rgba(0,0,0,0.55);
    transition: transform .15s, box-shadow .15s, background-image .15s, border-color .15s;
}
.gd-btn-light:hover {
    transform: translateY(-1px);
    /*
     * Explicit color override — .gd-save-btn:hover (defined earlier in the file)
     * sets color: var(--gd-accent) and beats us on specificity because of the
     * :hover pseudo. Pin to white so the label stays readable on hover.
     */
    color: #fff;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.32) 100%),
        linear-gradient(180deg, rgba(238,119,75,0.22) 0%, rgba(224,90,43,0.14) 100%);
    border-color: rgba(255,255,255,0.85);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 8px 26px rgba(224,90,43,0.4);
}
/* Saved state on the over-hero "light" buttons — filled orange glass with the
   same recipe as the split-layout primary, so the Save state reads identically
   across both layouts. */
.gd-btn-light.is-saved {
    background-image:
        linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #ee774b 0%, #e05a2b 55%, #c84d23 100%);
    background-blend-mode: screen, normal;
    border-color: rgba(255,255,255,0.32);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.1),
        0 6px 20px rgba(224,90,43,0.42),
        0 1px 3px rgba(224,90,43,0.22);
    text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}
.gd-btn-light.is-saved:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 0 rgba(0,0,0,0.12),
        0 8px 26px rgba(224,90,43,0.52),
        0 2px 5px rgba(224,90,43,0.26);
}
.gd-btn-light.is-saved .gd-action-icon { fill: #fff; }

/* Reduced-transparency a11y fallback — solid backgrounds, no blur. */
@media (prefers-reduced-transparency: reduce) {
    .gd-btn-light {
        background: rgba(0,0,0,0.5);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .gd-btn-light.is-saved { background: var(--gd-accent); }
}

/* ── Body Content ────────────────────────────────────────────── */
.gd-full-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 4rem;
}
.gd-full-intro-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    margin-bottom: 3.5rem;
    align-items: start;
}
.gd-full-intro-main {
    min-width: 0;
}
.gd-full-intro-side {
    position: relative;
}
.gd-full-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gd-text-sub);
    margin-bottom: 2rem;
    white-space: pre-line;
}

/* ── Full Layout Tab Bar ─────────────────────────────────────── */
.gd-full-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--gd-border);
    margin-bottom: 2rem;
}
.gd-full-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gd-muted);
    cursor: pointer;
    position: relative;
    transition: color .18s;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.gd-full-tab:hover {
    color: var(--gd-text);
}
.gd-full-tab.active {
    color: var(--gd-text);
    font-weight: 600;
}
.gd-full-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gd-text);
    border-radius: 1px;
}

.gd-places-summary {
    border-top: 1px solid var(--gd-border);
    padding-top: 1.75rem;
}
.gd-places-summary-split {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-top: none;
    border-bottom: 1px solid var(--gd-border);
}
.gd-places-summary-split .gd-summary-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gd-muted);
    margin-bottom: 0.65rem;
}
.gd-places-summary-split .gd-summary-item {
    font-size: 0.78rem;
}
.gd-summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gd-text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.gd-summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
}
.gd-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gd-text);
}
.gd-summary-item svg {
    color: var(--gd-muted);
    flex-shrink: 0;
}

/* ── Plan a Trip Card ────────────────────────────────────────── */
.gd-plan-trip-card {
    background: var(--gd-bg2);
    border: 1px solid var(--gd-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px var(--gd-shadow);
    position: sticky;
    top: calc(var(--gp-nav-h, 60px) + 2rem);
}
/*
 * Liquid-glass "Plan a trip" CTA in the full-mode side card. Same orange-gradient
 * recipe as the split-layout primary action so the brand reads consistently across
 * both detail-page layouts.
 */
.gd-plan-trip-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E05A2B;
    color: #fff !important;
    border: none;
    border-radius: 9999px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    text-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform .15s, background .15s;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
}
.gd-plan-trip-btn:hover {
    transform: translateY(-1px) scale(1.01);
    background: #c44d22;
    box-shadow: none;
}

/*
 * Save Guide button living under Plan a trip in the side card. Shares the
 * .gd-plan-trip-btn recipe (filled orange glass) so the pair reads as a unit.
 * The .is-saved variant flips to a softer orange-tinted glass with brand-color
 * text and a filled bookmark icon — same visual language as the split-layout
 * primary's saved state.
 */
.gd-save-guide-btn {
    margin-top: 0.6rem;       /* tight gap between the two card buttons */
}
.gd-save-guide-btn.is-saved {
    background: rgba(224,90,43,0.15);
    color: var(--gd-accent) !important;
    border: 1px solid var(--gd-accent);
    box-shadow: none;
    text-shadow: none;
}
.gd-save-guide-btn.is-saved:hover {
    background: rgba(224,90,43,0.25);
    box-shadow: none;
}
.gd-save-guide-btn.is-saved .gd-action-icon { fill: var(--gd-accent); }

/* Compact variant used inline elsewhere — same recipe, smaller padding/font. */
.gd-plan-trip-btn-small {
    background: #E05A2B;
    color: #fff !important;
    border: none;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: none;
    text-shadow: none;
    border-radius: 9999px; /* It didn't have border-radius in the snippet, but inheriting from somewhere? I'll add it explicitly to be safe */
    padding: 0.45rem 0.9rem; /* Just standard small padding */
}
.gd-plan-trip-btn-small:hover {
    transform: translateY(-1px);
    background: #c44d22;
    box-shadow: none;
}

@media (prefers-reduced-transparency: reduce) {
    .gd-plan-trip-btn,
    .gd-plan-trip-btn-small {
        background: var(--gd-accent);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ── Itinerary ───────────────────────────────────────────────── */
.gd-full-day {
    margin-bottom: 3.5rem;
}
.gd-full-day-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gd-text);
    border-bottom: 1px solid var(--gd-border);
    padding-bottom: 0.6rem;
    margin-bottom: 1.75rem;
    letter-spacing: -0.01em;
}
.gd-full-day-theme {
    font-weight: 500;
    color: var(--gd-text-sub);
    margin-left: 0.25rem;
}
.gd-full-place {
    display: flex;
    gap: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gd-border);
    align-items: flex-start;
}
.gd-full-place:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.gd-full-place-img {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--gd-thumb-ph);
}
.gd-full-place-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gd-full-place-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.gd-full-place-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gd-text);
    margin: 0;
    letter-spacing: -0.01em;
}
.gd-full-place-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gd-text-sub);
    margin: 0.25rem 0 0;
    white-space: pre-line;
}
.gd-full-place-tips {
    margin-top: 0.5rem;
    padding: 0.65rem 0.9rem;
    background: var(--gd-surface2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--gd-text);
    line-height: 1.5;
}
.gd-full-place-tips strong {
    color: var(--gd-accent);
}


/* ── Bottom Map ──────────────────────────────────────────────── */
.gd-full-map-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gd-border);
}
.gd-full-map-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gd-text);
}
.gd-full-map-container .gd-map {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
}

/* ── Toast ────────────────────────────────────────────────────── */
.gp-toast {
    background: var(--gd-bg2);
    border: 1px solid var(--gd-border);
    color: var(--gd-text);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    box-shadow: 0 4px 20px var(--gd-shadow);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s;
    pointer-events: all;
    max-width: 340px;
}
.gp-toast.visible {
    opacity: 1;
    transform: translateY(0);
}
.gp-toast-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.4rem;
}
.gp-toast-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gd-accent);
    text-decoration: none;
}
.gp-toast-link:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .gd-trip-layout { grid-template-columns: minmax(300px, 380px) 1fr; }
}
@media (max-width: 860px) {
    .gd-trip-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .gd-trip-left {
        height: auto;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--gd-border);
    }
    .gd-day-tabs-bar { position: sticky; top: var(--gp-nav-h, 56px); }
    .gd-trip-right { height: 320px; }
    .gd-places-layout { padding: 0 1rem 3rem; }
    .gd-places-hdr-inner { flex-direction: column; gap: 0.75rem; }
    .gd-places-hdr-actions { flex-direction: row; }
    .gd-stop-card { grid-template-columns: 1fr; padding: 1.5rem 0; }
    .gd-stop-img-col { height: 220px; margin-right: 0; margin-bottom: 1rem; }
    
    .gd-full-intro-row { grid-template-columns: 1fr; gap: 2rem; }
    .gd-plan-trip-card { position: static; }
}
@media (max-width: 600px) {
    .gd-guide-title { font-size: 1rem; }
    .gd-places-layout .gd-guide-title { font-size: 1.2rem; }
    .gd-stop-img-col { height: 180px; }
    .gd-stop-name { font-size: 1rem; }
    .gd-trip-right { height: 260px; }
    /*
     * Mobile: the layout stacks single-column and the hero spans the full viewport
     * width. Use 30vh as the sweet spot so the image is generously visible without
     * pushing the title + itinerary below the fold. Clamped so it stays sensible
     * on landscape-orientation phones too.
     */
    .gd-hdr-img { height: clamp(200px, 30vh, 280px); }
    
    .gd-full-intro-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .gd-plan-trip-card {
        position: static;
    }
    .gd-full-hero {
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 50vh;
    }
    .gd-full-title {
        font-size: 2.2rem;
    }
    .gd-full-place {
        flex-direction: column;
        gap: 1rem;
    }
    .gd-full-place-img {
        width: 100%;
        height: 280px;
    }
    .gd-full-body {
        padding: 2rem 1.25rem 3rem;
    }
    .gd-full-place-name {
        font-size: 1.05rem;
    }
    .gd-full-day-title {
        font-size: 1.15rem;
    }
    .gd-full-map-container .gd-map {
        height: 350px;
        border-radius: 12px;
    }
    .gd-summary-title {
        font-size: 1rem;
    }
}

/* ── Multi-photo carousel (place thumb + full-layout larger image) ─── */
.gd-photo-carousel {
    position: relative;
}
.gd-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s;
}
.gd-photo-carousel:hover .gd-photo-nav,
.gd-photo-carousel:focus-within .gd-photo-nav {
    opacity: 1;
}
.gd-photo-prev { left: 6px; }
.gd-photo-next { right: 6px; }
.gd-photo-counter {
    position: absolute;
    bottom: 6px;
    right: 8px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    pointer-events: none;
}

/* ── Author + destination links (guide detail header) ───────── */
a.gd-pill-link,
a.gd-author-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.gd-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gd-author-link:hover .gd-author-name { text-decoration: underline; }

/* Make thumbnails feel tappable */
.gd-photo-carousel img,
.gd-full-place-img img,
.gd-place-thumb img { cursor: zoom-in; }

/* ── Full-screen lightbox ──────────────────────────────────── */
.gd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    -webkit-user-select: none;
    user-select: none;
}
.gd-lightbox.hidden { display: none; }
.gd-lightbox img {
    max-width: 96vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}
.gd-lightbox-close,
.gd-lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, transform .12s;
}
.gd-lightbox-close:hover,
.gd-lightbox-nav:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.gd-lightbox-close { top: 18px; right: 18px; }
.gd-lightbox-prev  { left: 20px; }
.gd-lightbox-next  { right: 20px; }
.gd-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
    background: rgba(0, 0, 0, .35);
    padding: 4px 12px;
    border-radius: 999px;
}
.gd-lightbox-attribution {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .75);
    font-size: .75rem;
    background: rgba(0, 0, 0, .4);
    padding: 3px 10px;
    border-radius: 6px;
    max-width: 80%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 640px) {
    .gd-lightbox-close, .gd-lightbox-nav { width: 38px; height: 38px; }
    .gd-lightbox { padding: 1rem; }
}

/* ── Cover attribution overlay (split + full layout heroes) ─────── */
.gd-hero-attribution {
    position: absolute;
    bottom: 10px;
    right: 12px;
    max-width: 60%;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 3;
}
/* Split layout: attribution sits absolutely inside the hero image column. */
.gd-hero-attribution--split {
    bottom: auto;
    top: calc(clamp(220px, 36vh, 380px) - 32px);
}
