/* ============================================================
   Barcelona Travel Guide — styles
   Warm Mediterranean editorial theme
   ============================================================ */
:root {
    --teal:      #1F7A6B;   /* brand / neighborhoods */
    --teal-deep: #16323A;   /* dark text / ink */
    --terracotta:#C75440;   /* primary accent / restaurants */
    --terracotta-d:#A8412F;
    --ochre:     #DDA322;   /* landmarks */
    --plum:      #7A4E7A;   /* bars */
    --brown:     #9B6A4F;   /* cafe */
    --metro:     #006DB7;   /* metro */

    --cream:     #FBF7EF;   /* page bg */
    --sand:      #F3EBDB;   /* surface */
    --sand-2:    #EADFC9;
    --line:      #E0D4BC;   /* borders */
    --ink:       #243237;   /* body text */
    --ink-soft:  #5C6A6B;   /* muted text (AA on cream) */
    --white:     #ffffff;

    --shadow-sm: 0 1px 3px rgba(22,50,58,.10);
    --shadow:    0 6px 22px rgba(22,50,58,.14);
    --shadow-lg: 0 18px 48px rgba(22,50,58,.24);
    --radius:    10px;
    --radius-sm: 7px;

    --font-head: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* app-shell; inner regions scroll */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-d); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; color: var(--teal-deep); font-weight: 600; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--terracotta-d); margin-bottom: .35rem; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.fine { color: var(--ink-soft); font-size: .76rem; line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-body); font-weight: 600; font-size: .85rem;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    padding: .5rem .9rem; cursor: pointer; transition: all .16s ease;
    background: var(--sand); color: var(--ink-soft);
}
.btn:hover { background: var(--sand-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terracotta-d); }
.btn-primary:disabled { background: var(--sand-2); color: var(--ink-soft); cursor: progress; box-shadow: none; }
.btn-ask {
    background: var(--teal-deep); color: var(--cream); border-color: var(--teal-deep);
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-ask .ask-ico { flex: none; color: #8fd6c5; transition: transform .18s ease; }
.btn-ask:hover { background: #0d2228; }
.btn-ask:hover .ask-ico { transform: translateY(-1px); }
.btn-ask:active { transform: translateY(1px); }

/* ---------- Nav ---------- */
.nav {
    height: var(--nav-h); display: flex; align-items: center; gap: 1.2rem;
    padding: 0 1.2rem; background: var(--white); border-bottom: 1px solid var(--line);
    position: relative; z-index: 1200;
}
.nav-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--teal-deep); font-family: var(--font-head); font-size: 1.05rem; }
.nav-brand strong { color: var(--terracotta); font-weight: 700; }
.nav-mark { flex: none; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav-link {
    position: relative;
    text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .9rem;
    padding: .45rem .7rem; border-radius: var(--radius-sm); transition: all .15s;
}
.nav-link:hover { color: var(--teal-deep); background: var(--sand); }
.nav-link.is-active { color: var(--teal-deep); background: var(--sand-2); font-weight: 700; }
.nav-link.is-active::after {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .16rem;
    height: 2px; border-radius: 2px; background: var(--terracotta);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--teal-deep); margin-left: auto; width: 44px; height: 44px; border-radius: 8px; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.nav-toggle:hover { background: var(--sand); }
.nav-toggle:active { background: var(--sand-2); }

/* Dimming scrim behind the open mobile nav drawer. Hidden by default; the .show
   class (and the mobile media query) reveal it so the menu reads as its own layer
   instead of letting map markers bleed through around the panel. */
.nav-scrim {
    /* Must sit BELOW the .nav stacking context (z-index 1200) so the open dropdown,
       which lives inside .nav, paints ABOVE the scrim. Otherwise the scrim greys out
       and blocks the menu itself. It still dims the page content underneath the nav. */
    display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 1150;
    background: rgba(9,22,26,.42);
    animation: scrim-in .2s ease;
}
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nav-scrim { animation: none; } }

/* ---------- View shell ---------- */
.view { display: none; height: calc(100vh - var(--nav-h)); }
.view.is-active { display: flex; }
.view-guide.is-active { display: block; overflow-y: auto; }

/* ---------- Rail (left sidebar) ---------- */
.rail {
    width: 360px; flex: none; height: 100%; overflow-y: auto;
    background: var(--cream); border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
}
.rail-hero {
    background-size: cover; background-position: center;
    color: var(--cream); padding: 1.5rem 1.3rem 1.4rem;
}
.rail-hero h1 { color: #fff; font-size: 1.7rem; font-weight: 700; margin-bottom: .45rem; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.rail-hero .eyebrow {
    display: inline-block; color: #ffe6c2; background: rgba(13,32,38,.55);
    padding: .22rem .55rem; border-radius: 5px; backdrop-filter: blur(2px);
    text-shadow: 0 1px 4px rgba(0,0,0,.4); margin-bottom: .55rem;
}
.rail-hero-sub { font-size: .85rem; color: #fff; line-height: 1.5; text-shadow: 0 1px 10px rgba(0,0,0,.7); max-width: 34ch; }

/* Editorial "how it works" flow — a connected rail, not numbered cards */
.rail-flow { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--sand) 0%, transparent 100%); }
.flow-kicker { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--terracotta-d); margin-bottom: .7rem; }
.flow { list-style: none; display: grid; gap: 0; position: relative; padding-left: 1rem; }
.flow::before { content: ""; position: absolute; left: 4px; top: .45rem; bottom: .9rem; width: 2px; background: linear-gradient(180deg, var(--terracotta), var(--teal)); border-radius: 2px; }
.flow-step { position: relative; padding: .15rem 0 .7rem; }
.flow-step::before {
    content: ""; position: absolute; left: -1rem; top: .4rem; transform: translateX(-1px);
    width: 9px; height: 9px; border-radius: 50%; background: var(--white);
    border: 2px solid var(--terracotta); box-shadow: 0 0 0 3px var(--sand);
}
.flow-step:nth-child(3)::before, .flow-step:nth-child(4)::before { border-color: var(--teal); }
.flow-step b { display: block; font-size: .88rem; color: var(--teal-deep); font-weight: 700; }
.flow-step span { font-size: .77rem; color: var(--ink-soft); }

.rail-section { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.rail-section h2 { font-size: 1.05rem; }
.rail-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.count-pill { background: var(--teal); color: #fff; font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 20px; }
.rail-title { font-size: 1.5rem; margin: .3rem 0 .5rem; }

/* Filters — a cohesive toggle list keyed to the map's category colours */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter {
    display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; min-height: 44px;
    padding: .4rem .7rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--white); transition: border-color .14s, background .14s, transform .08s, box-shadow .14s;
    font-size: .8rem; font-weight: 600; color: var(--ink); box-shadow: 0 1px 2px rgba(22,50,58,.05);
}
.filter:hover { border-color: var(--sand-2); box-shadow: 0 2px 6px rgba(22,50,58,.1); }
.filter:active { transform: translateY(1px); }
.filter[aria-pressed="true"] { border-color: var(--teal); background: #f1f8f5; }
.filter.off { opacity: .55; background: var(--sand); border-style: dashed; }
.filter.off .swatch { filter: grayscale(1); }
.filter .swatch { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.filter .fc { font-size: .7rem; color: var(--ink-soft); font-weight: 700; background: var(--sand); padding: 0 .4rem; border-radius: 999px; line-height: 1.45; }

/* Search */
.search-wrap { position: relative; margin-top: .8rem; }
#placeSearch, .briefing-form input, .ask-form input {
    width: 100%; font-family: var(--font-body); font-size: .9rem;
    padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); color: var(--ink);
}
#placeSearch:focus, .briefing-form input:focus, .ask-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.search-results {
    list-style: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); z-index: 30; max-height: 260px; overflow-y: auto;
}
.search-results li { padding: .5rem .7rem; cursor: pointer; font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.search-results li:hover, .search-results li.active { background: var(--sand); }
.search-results .sr-cat { margin-left: auto; font-size: .7rem; color: var(--ink-soft); text-transform: capitalize; }

/* Metro legend — refined transit badges with guaranteed-legible text */
.metro-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; }
.metro-legend li { display: flex; align-items: center; }
.line-badge {
    display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .35rem; border-radius: 7px;
    font-size: .74rem; font-weight: 800; letter-spacing: .01em;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.18);
}

/* ---------- Map stage ---------- */
.map-stage { position: relative; flex: 1; height: 100%; min-width: 0; }
.map-canvas, .map-canvas-host { position: absolute; inset: 0; width: 100%; height: 100%; background: #aad3df; }
.leaflet-container { font-family: var(--font-body); }
/* Larger, finger-friendly zoom controls (>=44px tap target, Apple HIG) */
.leaflet-touch .leaflet-bar a,
.leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 1.4rem; color: var(--teal-deep); }
.leaflet-bar a:hover { background: var(--sand); }

/* ---------- Map category legend (key for the colour-coded pins) ---------- */
.map-legend {
    position: absolute; left: 12px; bottom: 28px; z-index: 650;
    background: rgba(255,255,255,.97); border: 1px solid var(--sand-2);
    border-radius: 12px; box-shadow: 0 6px 20px rgba(13,32,38,.26), 0 0 0 1px rgba(255,255,255,.6);
    padding: .5rem .65rem; max-width: 200px; backdrop-filter: blur(6px);
}
/* Collapsible header — lets the user tuck the key away so it never crowds the
   cluster bubbles in the dense city core. */
.lg-head {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%;
    background: none; border: none; padding: 0; margin: 0; cursor: pointer; min-height: 28px;
    color: var(--ink-soft);
}
.lg-head .lg-chev { transition: transform .2s ease; flex: none; }
.map-legend.collapsed .lg-head .lg-chev { transform: rotate(-90deg); }
.map-legend.collapsed #mapLegendList { display: none; }
.map-legend h3 {
    margin: 0; font-family: var(--font-body); font-size: .66rem;
    letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 800;
}
.map-legend ul { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .28rem; }
.map-legend li { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--ink); font-weight: 600; }
.map-legend .lg-swatch { width: 13px; height: 13px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.map-legend .lg-toggle {
    display: none; width: 44px; height: 44px; border: none; background: rgba(255,255,255,.94);
    border-radius: 12px; box-shadow: var(--shadow-md, 0 4px 14px rgba(22,50,58,.18));
    cursor: pointer; color: var(--teal-deep); align-items: center; justify-content: center;
}

/* Custom markers */
.bcn-pin {
    width: 36px; height: 46px; transition: transform .14s ease, filter .14s ease;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
}
.bcn-pin svg { width: 100%; height: 100%; }
.bcn-pin.is-active { transform: scale(1.32) translateY(-2px); z-index: 1000 !important; filter: drop-shadow(0 5px 7px rgba(0,0,0,.5)); }
/* 44px transparent hit area keeps the tap target accessible; visual stays 30px */
.bcn-metro-hit { width: 44px; height: 44px; display: grid; place-items: center; }
.bcn-metro { width: 30px; height: 30px; transition: transform .14s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.bcn-metro.is-active { transform: scale(1.35); z-index: 1000 !important; }
/* Per-category cluster bubbles. Each category's group renders its own colour
   (--cc), so a cluster of restaurants reads differently from a cluster of bars
   or metro stops. A small white glyph names the category; the count sits below. */
.marker-cluster-cat { background: transparent; }
.marker-cluster-cat .cc-inner {
    display: grid; place-items: center; gap: 0;
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 50% 38%,
            color-mix(in srgb, var(--cc) 78%, #fff 22%),
            var(--cc) 72%);
    border: 2.5px solid #fff;
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--cc) 30%, transparent),
        0 3px 9px rgba(0,0,0,.34);
    transition: transform .14s ease, box-shadow .14s ease;
}
.marker-cluster-cat:hover .cc-inner {
    transform: scale(1.08);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--cc) 40%, transparent),
        0 5px 12px rgba(0,0,0,.4);
}
.marker-cluster-cat .cc-glyph {
    width: 14px; height: 14px; margin-bottom: -1px; opacity: .95;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.4));
}
/* Count sits on its own solid dark chip so it stays legible on ANY category
   colour — including the light gold landmark bubble — and never clips. */
.marker-cluster-cat .cc-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.05rem; height: 1.05rem; padding: 0 .28rem; box-sizing: border-box;
    background: rgba(15,30,34,.92); color: #fff; border-radius: 999px;
    font-weight: 800; font-size: .72rem; line-height: 1; letter-spacing: .01em;
}

/* Neighborhood region labels — shown on HOVER only (sticky to cursor) so they
   never pile up over pins/tiles at the city-overview zoom. The shaded polygon
   gives orientation; pointing at it reveals the name as a clean pill. */
.leaflet-tooltip.hood-label {
    background: rgba(23,50,45,.94);
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: .015em;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
    white-space: nowrap;
    pointer-events: none;
}
.leaflet-tooltip.hood-label::before { display: none !important; border: none !important; }

/* ---------- Drawer (profile) ---------- */
.drawer {
    position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92%;
    background: var(--cream); box-shadow: var(--shadow-lg); z-index: 800;
    transform: translateX(105%); transition: transform .28s cubic-bezier(.22,.61,.36,1);
    display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-close {
    position: absolute; top: .55rem; right: .6rem; z-index: 5;
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.92); color: var(--teal-deep); font-size: 1.5rem; line-height: 1;
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
}
.drawer-close:hover { background: #fff; }
.drawer-scroll { overflow-y: auto; height: 100%; }

/* Profile content */
.pf-img { width: 100%; height: 190px; object-fit: cover; background: var(--sand-2); }
.pf-head { padding: 1rem 1.2rem .4rem; }
.pf-kind { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 20px; color: #fff; margin-bottom: .5rem; }
.pf-head h2 { font-size: 1.45rem; }
.pf-meta { font-size: .82rem; color: var(--ink-soft); margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; }
.pf-rating { color: var(--ochre); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.pf-rating svg { vertical-align: middle; }
.pf-body { padding: 0 1.2rem 1.4rem; }
.pf-summary { font-size: .96rem; color: var(--ink); margin: .6rem 0 1rem; }

.pf-field { margin: .85rem 0; }
.pf-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: .2rem; }
.pf-value { font-size: .9rem; color: var(--ink); }
.pf-price { font-size: 1.05rem; font-weight: 700; color: var(--teal-deep); }
.pf-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.pf-tag { background: var(--sand); border: 1px solid var(--line); border-radius: 6px; padding: .25rem .5rem; font-size: .8rem; }

.callout { border-radius: var(--radius-sm); padding: .7rem .8rem; margin: .85rem 0; font-size: .85rem; }
.callout-warn { background: #fff0ec; border: 1px solid #f3c2b6; color: #8a2c1a; }
.callout-warn .pf-label { color: #b23a23; }
.callout-tip { background: #eef6f3; border: 1px solid #c8e3da; color: #1d5a4d; }
.callout-tip .pf-label { color: var(--teal); }
.callout-res { background: #fbf3e0; border: 1px solid #ecd9ab; color: #7a5a13; }
.callout-res .pf-label { color: #9c7615; }

.pf-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.pf-actions .btn { flex: 1; min-width: 130px; text-align: center; text-decoration: none; }
.metro-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

.linklist { list-style: none; display: grid; gap: .3rem; }
.linklist button { background: none; border: none; text-align: left; cursor: pointer; color: var(--terracotta-d); font-weight: 600; font-size: .88rem; font-family: var(--font-body); padding: .15rem 0; }
.linklist button:hover { text-decoration: underline; }

/* Tabs inside drawer */
.pf-tabs { display: flex; gap: .3rem; padding: 0 1.2rem; border-bottom: 1px solid var(--line); }
.pf-tab { background: none; border: none; padding: .6rem .5rem; font-weight: 600; font-size: .85rem; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; }
.pf-tab.is-active { color: var(--teal-deep); border-bottom-color: var(--terracotta); }
.pf-pane { display: none; }
.pf-pane.is-active { display: block; }

/* Within 10 min */
.near-group { margin: .9rem 0; }
.near-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--teal); margin-bottom: .45rem; }
.near-item { display: flex; align-items: center; gap: .55rem; padding: .45rem 0; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; background: none; border-left: none; border-right: none; border-top: none; text-align: left; font-family: var(--font-body); }
.near-item:hover { background: var(--sand); }
.near-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.near-name { font-size: .87rem; font-weight: 600; color: var(--ink); }
.near-dist { margin-left: auto; font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
.near-line { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 5px; font-size: .66rem; font-weight: 800; margin-right: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* AI verdict surface */
.verdict { margin-top: .6rem; }
.ai-result { display: grid; gap: .7rem; }
.ai-sec { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .85rem; box-shadow: var(--shadow-sm); }
.ai-sec h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--terracotta-d); margin-bottom: .35rem; }
.ai-sec p, .ai-sec li { font-size: .88rem; color: var(--ink); }
.ai-sec ul { padding-left: 1.1rem; }
.ai-sec.verdict-hi { background: linear-gradient(180deg,#fff,#fbf4ec); border-color: #ecd9ab; }
.ai-sec.flags { background: #fff0ec; border-color: #f3c2b6; }
.ai-sec.flags h4 { color: #b23a23; }
.ai-sources { font-size: .76rem; }
.ai-sources a { display: block; color: var(--teal); word-break: break-word; margin: .15rem 0; }
.ai-stamp { font-size: .72rem; color: var(--ink-soft); text-align: right; }
.reveal { animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Loading dots */
.ai-loading { display: flex; align-items: center; gap: .6rem; padding: 1rem; color: var(--ink-soft); font-size: .9rem; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--sand-2); border-top-color: var(--terracotta); border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg,var(--sand) 25%,var(--sand-2) 37%,var(--sand) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; height: 14px; margin: .4rem 0; }
.skeleton.lg { height: 22px; width: 60%; }
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }
.ai-error { background: #fff0ec; border: 1px solid #f3c2b6; color: #8a2c1a; padding: .8rem; border-radius: var(--radius-sm); font-size: .85rem; }
.ai-error button { margin-top: .5rem; }

/* ---------- Itineraries ---------- */
.rail-itin { width: 380px; }
.itin-picker { padding: 0 1.3rem 1rem; display: grid; gap: .55rem; }
.itin-card { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; cursor: pointer; transition: all .15s; }
.itin-card:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.itin-card.is-active { border-color: var(--terracotta); box-shadow: var(--shadow); }
.itin-card h3 { font-size: 1.05rem; }
.itin-card .blurb { font-size: .82rem; color: var(--ink-soft); margin-top: .25rem; }
.itin-card .for-who { font-size: .76rem; color: var(--teal); margin-top: .35rem; font-weight: 600; }
.itin-detail { padding: 0 1.3rem 1.5rem; }
.itin-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.summary-chip { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .6rem; font-size: .78rem; }
.summary-chip b { display: block; color: var(--teal-deep); font-size: .95rem; font-family: var(--font-head); }

.stop { display: grid; grid-template-columns: 30px 1fr; gap: .7rem; position: relative; padding-bottom: .4rem; }
.stop-num { width: 30px; height: 30px; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .85rem; z-index: 2; }
.stop::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: -6px; width: 2px; background: var(--line); }
.stop:last-child::before { display: none; }
.stop-body { padding-bottom: .9rem; }
.stop-name { background: none; border: none; font-family: var(--font-head); font-size: 1.02rem; color: var(--teal-deep); cursor: pointer; padding: 0; font-weight: 600; text-align: left; }
.stop-name:hover { color: var(--terracotta-d); text-decoration: underline; }
.stop-time { font-size: .78rem; color: var(--ink-soft); }
.stop-transit { font-size: .8rem; margin-top: .3rem; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .5rem; border-radius: 6px; }
.stop-transit.walk { background: #eef6f3; color: #1d5a4d; }
.stop-transit.metro { background: #e6f0f8; color: var(--metro); font-weight: 600; }

.itin-day-tabs { position: absolute; top: .8rem; left: 50%; transform: translateX(-50%); z-index: 600; display: flex; gap: .35rem; background: rgba(255,255,255,.94); padding: .35rem; border-radius: 30px; box-shadow: var(--shadow); }
.day-tab { background: none; border: none; padding: .4rem .85rem; border-radius: 22px; font-weight: 600; font-size: .82rem; color: var(--ink-soft); cursor: pointer; }
.day-tab.is-active { background: var(--terracotta); color: #fff; }

/* ---------- City Guide ---------- */
.guide-wrap { max-width: 1080px; margin: 0 auto; padding: 2rem 1.4rem 4rem; }
.guide-head { margin-bottom: 1.6rem; }
.guide-head h1 { font-size: 2.2rem; margin: .2rem 0 .5rem; }
.guide-head .muted { max-width: 60ch; font-size: 1rem; }
.guide-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.guide-card > h2 { font-size: 1.45rem; margin-bottom: .3rem; }

/* Briefing */
.briefing { display: grid; grid-template-columns: 320px 1fr; gap: 1.6rem; align-items: start; }
.briefing-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: .9rem 0 .5rem; }
.briefing-form label { font-size: .78rem; font-weight: 600; color: var(--ink-soft); display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 130px; }
.briefing-form button { align-self: end; }
.briefing-result { min-height: 120px; }
.guide-empty { background: var(--sand); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 1.5rem; color: var(--ink-soft); }
.guide-empty p { font-size: .9rem; }
.preview-banner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: #eef6f3; border: 1px solid #c8e3da; border-radius: var(--radius-sm); padding: .6rem .75rem; margin-bottom: .7rem; font-size: .82rem; color: var(--ink-soft); }
.preview-tag { display: inline-block; background: var(--teal); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .5rem; border-radius: 999px; white-space: nowrap; }

/* Ticket grid */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: .8rem; margin: 1rem 0 1.4rem; }
.ticket { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; background: var(--cream); }
.ticket.rec { border-color: var(--terracotta); box-shadow: var(--shadow-sm); position: relative; }
.ticket.rec::after { content: "Best for most"; position: absolute; top: -10px; left: 12px; background: var(--terracotta); color: #fff; font-size: .66rem; font-weight: 700; padding: .15rem .5rem; border-radius: 12px; }
.ticket h3 { font-size: 1.05rem; }
.ticket .price { font-size: 1.5rem; font-family: var(--font-head); color: var(--teal-deep); font-weight: 700; margin: .25rem 0; }
.ticket .price span { font-size: .8rem; color: var(--ink-soft); font-weight: 400; font-family: var(--font-body); }
.ticket .who { font-size: .82rem; color: var(--ink-soft); }
.ticket ul { list-style: none; margin-top: .5rem; font-size: .8rem; }
.ticket li { padding: .15rem 0 .15rem .9rem; position: relative; }
.ticket li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* Zone diagram */
.zone-diagram { margin-top: 1rem; }

/* Airport */
.airport-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: .8rem; margin-top: 1rem; }
.airport { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; background: var(--cream); }
.airport h3 { font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; }
.airport .verdict-tag { font-size: .68rem; font-weight: 700; padding: .15rem .45rem; border-radius: 10px; }
.tag-good { background: #e3f1ea; color: #1d5a4d; }
.tag-mid { background: #fbf3e0; color: #9c7615; }
.tag-avoid { background: #fff0ec; color: #b23a23; }
.airport dl { margin-top: .5rem; font-size: .84rem; display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; }
.airport dt { color: var(--ink-soft); font-weight: 600; }
.airport .note { font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; }

/* Price chart */
.chart-block { margin-top: 1rem; }
.bars { display: grid; gap: .85rem; }
.bar-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: .8rem; }
.bar-row .bl { font-size: .85rem; font-weight: 600; color: var(--ink); text-transform: capitalize; }
.bar-track { position: relative; background: var(--sand); border-radius: 6px; height: 30px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; width: 0; transition: width 1s cubic-bezier(.22,.61,.36,1); display: flex; align-items: center; }
.bar-val { font-size: .78rem; font-weight: 700; color: #fff; padding-left: .5rem; white-space: nowrap; }
.bar-crowd { font-size: .72rem; color: var(--ink-soft); margin-top: .1rem; }
.chart-cap { font-size: .78rem; color: var(--ink-soft); margin-top: .8rem; }

/* Tips */
.tips-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: .7rem; margin-top: 1rem; }
.tips-list li { display: grid; grid-template-columns: 26px 1fr; gap: .6rem; font-size: .88rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem; }
.tip-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; font-family: var(--font-head); }

.guide-contact { text-align: center; color: var(--ink-soft); font-size: .85rem; padding-top: 1rem; }
.guide-contact a { color: var(--teal); }
.guide-contact-line { color: var(--ink); font-weight: 600; margin-bottom: .25rem; }
.guide-contact-tag { color: var(--ink-soft); font-style: italic; }

/* ---------- Ask drawer ---------- */
.ask-overlay { position: fixed; inset: 0; background: rgba(13,32,38,.4); z-index: 1500; display: flex; justify-content: flex-end; }
.ask-overlay[hidden] { display: none; }
.ask-panel { width: 440px; max-width: 100%; height: 100%; background: var(--cream); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.ask-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); position: relative; }
.ask-head h2 { font-size: 1.25rem; }
.ask-head .drawer-close { position: static; }
.ask-log { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.ask-form { display: flex; gap: .5rem; padding: .8rem 1.2rem; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; }
.starter { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .7rem; font-size: .84rem; text-align: left; cursor: pointer; color: var(--ink); }
.starter:hover { border-color: var(--teal); background: var(--sand); }
.starters-intro { font-size: .85rem; color: var(--ink-soft); margin-bottom: .2rem; }
.msg { max-width: 92%; font-size: .88rem; border-radius: var(--radius); padding: .65rem .85rem; }
.msg.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 3px; }
.msg.bot { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 3px; box-shadow: var(--shadow-sm); }
.msg.bot h4 { font-size: .85rem; color: var(--terracotta-d); margin: .5rem 0 .2rem; }
.msg.bot h4:first-child { margin-top: 0; }
.msg.bot ul, .msg.bot ol { padding-left: 1.2rem; margin: .3rem 0; }
.msg.bot li { margin: .15rem 0; color: var(--ink); }
.msg.bot p { margin: .3rem 0; color: var(--ink); }
.msg.bot strong { color: var(--ink); }
.msg.bot a { color: var(--terracotta-d); }
.msg.bot .ai-sources { margin-top: .5rem; border-top: 1px solid var(--line); padding-top: .4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .briefing { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    body { overflow: auto; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white);
        flex-direction: column; align-items: stretch; gap: .25rem; padding: .7rem .9rem;
        border-bottom: 2px solid var(--line); box-shadow: var(--shadow); display: none;
    }
    .nav-links.open {
        display: flex; z-index: 1605;
        box-shadow: 0 18px 36px rgba(13,32,38,.34);
    }
    .nav-links.open .nav-link, .nav-links.open .btn-ask {
        min-height: 46px; display: flex; align-items: center;
        font-weight: 700; font-size: 1rem;
        border-radius: var(--radius-sm); padding-left: .8rem; padding-right: .8rem;
    }
    .nav-links.open .nav-link { color: var(--teal-deep); }
    .nav-links.open .btn-ask { color: var(--cream); justify-content: center; }
    .nav-links.open .nav-link + .nav-link { border-top: 1px solid var(--sand); }
    .nav-links.open .nav-link.is-active { background: var(--sand-2); color: var(--teal-deep); }
    .btn-ask { margin-top: .3rem; justify-content: center; }
    /* Scrim only matters at mobile widths, where the nav becomes a drawer. */
    .nav-scrim.show { display: block; }

    .view, .view.is-active { flex-direction: column; height: auto; min-height: calc(100vh - var(--nav-h)); }
    .view-map.is-active, .view-itin.is-active { display: flex; }
    .rail, .rail-itin { width: 100%; height: auto; max-height: none; border-right: none; border-bottom: 1px solid var(--line); order: 2; }
    .map-stage { order: 1; height: 56vh; min-height: 360px; flex: none; }

    /* Drawer becomes bottom sheet — fixed to viewport so it hides fully when closed */
    .drawer { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 82vh; border-radius: 16px 16px 0 0; transform: translateY(102%); z-index: 1400; visibility: hidden; transition: transform .28s cubic-bezier(.22,.61,.36,1), visibility 0s linear .28s; }
    .drawer.open { transform: translateY(0); visibility: visible; transition: transform .28s cubic-bezier(.22,.61,.36,1); }

    .ask-panel { width: 100%; }
    .guide-head h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .bar-fill { transition: none; }
}

/* ============================================================
   NEIGHBORHOODS VIEW
   ============================================================ */
/* ============ TOP 10 ============ */
.view-top10.is-active { display: block; overflow-y: auto; }
.top10-wrap { max-width: 1080px; margin: 0 auto; padding: 2rem 1.4rem 4rem; }
.top10-head { margin-bottom: 1.6rem; }
.top10-head h1 { font-size: 2.2rem; margin: .2rem 0 .5rem; }
.top10-head .muted { max-width: 72ch; font-size: 1rem; }

/* AI concierge */
.concierge {
    background: linear-gradient(165deg, var(--teal-deep) 0%, #11424a 100%);
    border-radius: var(--radius); padding: 1.5rem 1.6rem;
    margin-bottom: 2.2rem; color: var(--cream); box-shadow: var(--shadow);
}
.concierge-badge {
    display: inline-block; background: var(--terracotta); color: #fff;
    font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    padding: .25rem .6rem; border-radius: 999px; margin-bottom: .55rem;
}
.concierge-intro h2 { color: var(--cream); font-size: 1.35rem; margin: 0 0 .35rem; }
.concierge-intro .muted { color: rgba(251,247,239,.78); max-width: 66ch; }
.concierge-log {
    display: flex; flex-direction: column; gap: .7rem;
    margin: 1.1rem 0; max-height: 460px; overflow-y: auto;
}
.concierge-log:empty { margin: 0; }
.concierge-log .starters-intro { color: rgba(251,247,239,.82); }
.concierge-log .starter {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
    color: var(--cream);
}
.concierge-log .starter:hover { background: rgba(255,255,255,.16); }
.concierge-form { display: flex; gap: .6rem; }
.concierge-form input {
    flex: 1; padding: .7rem .85rem; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.95);
    font-family: var(--font-body); font-size: .92rem; color: var(--ink);
}
.concierge-form input:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }

/* ranked cards */
.top10-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.top10-card {
    display: grid; grid-template-columns: 300px 1fr;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--nav-h) + 14px);
}
.top10-media { position: relative; min-height: 240px; }
.top10-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top10-rank {
    position: absolute; top: .8rem; left: .8rem;
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--terracotta); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 1.45rem;
    display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.top10-content { padding: 1.3rem 1.5rem; }
.top10-content h2 { font-size: 1.5rem; margin: 0 0 .15rem; }
.top10-tagline { color: var(--terracotta-d, var(--terracotta)); font-weight: 600; font-size: .92rem; margin: 0 0 .6rem; }
.top10-blurb { font-size: .95rem; line-height: 1.55; margin: 0 0 .9rem; color: var(--ink); }
.top10-field { margin-bottom: .75rem; }
.top10-field p { margin: 0; font-size: .9rem; line-height: 1.5; }
.top10-dos { margin: .25rem 0 0; padding-left: 1.1rem; }
.top10-dos li { font-size: .89rem; line-height: 1.5; margin: .12rem 0; }
.top10-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.2rem; }
.top10-price { font-family: var(--font-head); font-weight: 600; color: var(--teal-deep); }
.top10-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.top10-map { display: inline-flex; }
/* Buy-tickets CTA — teal so it reads as distinct from the terracotta map button */
.btn-ticket {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--teal); color: #fff; border: 1px solid var(--teal);
    box-shadow: var(--shadow-sm); text-decoration: none;
}
.btn-ticket:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-ticket .ext-arrow { font-size: .9em; line-height: 1; }
/* Free-entry badge — calm green pill that stands apart from ticketed spots */
.free-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .4rem .7rem; border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .02em;
    color: var(--teal-deep); background: rgba(31,122,107,.13);
    border: 1px solid rgba(31,122,107,.3);
}
.free-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

@media (max-width: 720px) {
    .top10-card { grid-template-columns: 1fr; }
    .top10-media { min-height: 200px; }
    .top10-head h1 { font-size: 1.8rem; }
    .concierge-form { flex-direction: column; }
    .concierge-form .btn { width: 100%; }
}

/* ============ NEIGHBORHOODS ============ */
.view-hoods.is-active { display: block; overflow-y: auto; }
.hoods-wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.4rem 4rem; }
.hoods-head { margin-bottom: 1.4rem; }
.hoods-head h1 { font-size: 2.2rem; margin: .2rem 0 .5rem; }
.hoods-head .muted { max-width: 70ch; font-size: 1rem; }

/* quick-jump nav */
.hoods-jump {
    display: flex; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1.8rem; padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}
.hood-jump-link {
    font-size: .82rem; font-weight: 600; text-decoration: none;
    color: var(--teal); background: var(--white);
    border: 1px solid var(--line); border-radius: 999px;
    padding: .4rem .85rem; transition: all .18s ease;
}
.hood-jump-link:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.hood-jump-link:active { transform: translateY(1px); }

/* card grid */
.hoods-grid {
    display: grid; gap: 1.6rem;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.hood-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--nav-h) + 14px);
    display: flex; flex-direction: column;
}
.hood-media {
    position: relative; min-height: 190px;
    background-size: cover; background-position: center;
    padding: 1.1rem 1.2rem; color: var(--white);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.hood-kind {
    position: absolute; top: .9rem; left: 1.2rem;
    font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    background: var(--teal); color: var(--white);
    padding: .25rem .55rem; border-radius: 999px;
}
.hood-media h2 { color: var(--white); font-size: 1.7rem; margin-bottom: .15rem; text-shadow: 0 2px 10px rgba(13,32,38,.55); }
.hood-tagline { font-size: .92rem; font-weight: 500; text-shadow: 0 1px 8px rgba(13,32,38,.7); }

/* vibe tags */
.hood-tags {
    display: flex; flex-wrap: wrap; gap: .4rem;
    padding: .9rem 1.25rem .15rem;
}
.hood-tag {
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    color: var(--teal-deep); background: var(--sand);
    border: 1px solid var(--line); border-radius: 999px; padding: .22rem .6rem;
}

/* in-card tabs */
.hood-tabs {
    display: flex; gap: .25rem; flex-wrap: wrap;
    padding: .85rem 1.25rem 0;
    border-bottom: 1px solid var(--line);
}
.hood-tab {
    font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
    color: var(--ink-soft); background: transparent; border: 0;
    padding: .5rem .7rem; border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: color .16s ease, border-color .16s ease;
}
.hood-tab:hover { color: var(--teal); }
.hood-tab.is-active { color: var(--teal-deep); border-bottom-color: var(--terracotta); }

.hood-pane { display: none; flex-direction: column; gap: .85rem; }
.hood-pane.is-active { display: flex; }

.hood-body { padding: 1.1rem 1.25rem 1.1rem; flex: 1; }
.hood-vibe { font-size: .96rem; color: var(--ink); }
.hood-field p { font-size: .9rem; color: var(--ink); margin-top: .1rem; }
.hood-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

/* mini-map preview */
.hood-map {
    width: 100%; height: 280px; border-radius: var(--radius-sm);
    overflow: hidden; border: 1px solid var(--line); background: var(--sand);
}

/* nearby (real pins) block inside the Eat & see tab */
.hood-nearby { display: flex; flex-direction: column; gap: .9rem; }
.hood-nearby .near-group h4 {
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: .35rem;
}

/* cross-link action bar */
.hood-actions {
    display: flex; flex-wrap: wrap; gap: .5rem;
    padding: 0 1.25rem 1.25rem; margin-top: auto;
}
.hood-link {
    font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
    color: var(--teal-deep); background: var(--white);
    border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem;
    transition: all .16s ease;
}
.hood-link:hover { background: var(--sand); border-color: var(--teal); color: var(--teal-deep); }
.hood-link:active { transform: translateY(1px); }
.hood-link.primary { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }
.hood-link.primary:hover { background: var(--terracotta-d); border-color: var(--terracotta-d); color: var(--white); }

.hood-chips, .hood-spots { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.hood-chip {
    font-size: .8rem; background: var(--sand); color: var(--teal-deep);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .25rem .6rem;
}
.hood-metro {
    font-size: .8rem; font-weight: 600; background: #e6f0f8; color: var(--metro);
    border: 1px solid #c5ddef; border-radius: var(--radius-sm); padding: .25rem .6rem;
}
.hood-spot {
    font-size: .82rem; font-weight: 600; cursor: pointer;
    background: var(--cream); color: var(--terracotta-d);
    border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem;
    transition: all .16s ease; font-family: inherit;
}
.hood-spot:hover { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }
.hood-spot:active { transform: translateY(1px); }
.hood-spot.is-flat { cursor: default; color: var(--ink-soft); }
.hood-spot.is-flat:hover { background: var(--cream); color: var(--ink-soft); border-color: var(--line); }

@media (max-width: 560px) {
    .hoods-grid { grid-template-columns: 1fr; }
    .hood-twocol { grid-template-columns: 1fr; }
    .hoods-head h1 { font-size: 1.7rem; }
}
