:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --text: #1d2440;
  --muted: #585d76;
  --border: #ebe4d8;
  --accent: #e4572e;
  --accent-dark: #b93f1c;
  --sun: #f6b93b;
  --cat: var(--accent);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(29, 36, 64, .10);
  --header-h: 64px;
  --display: "Fraunces", Georgia, serif;
  /* Tokens that change with the theme (dark values below). */
  --navy: #1d2440;
  --link: var(--accent-dark);
  --on-text: #fff;
  --ink: #000;
  --header-bg: rgba(251, 247, 241, .85);
  --hover: rgba(29, 36, 64, .07);
  --field-bg: #fff;
  --footer-bg: var(--navy);
  --error-bg: #fdecea;
  --error-fg: #8e2a1e;
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151f;
    --surface: #1c2030;
    --text: #eceef5;
    --muted: #a6abc0;
    --border: #2f3549;
    --link: #ff9b7b;
    --on-text: #12151f;
    --ink: #fff;
    --header-bg: rgba(18, 21, 31, .85);
    --hover: rgba(255, 255, 255, .08);
    --field-bg: #161a27;
    --footer-bg: #0b0e17;
    --error-bg: #3b1d1a;
    --error-fg: #ffb4a8;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12151f;
  --surface: #1c2030;
  --text: #eceef5;
  --muted: #a6abc0;
  --border: #2f3549;
  --link: #ff9b7b;
  --on-text: #12151f;
  --ink: #fff;
  --header-bg: rgba(18, 21, 31, .85);
  --hover: rgba(255, 255, 255, .08);
  --field-bg: #161a27;
  --footer-bg: #0b0e17;
  --error-bg: #3b1d1a;
  --error-fg: #ffb4a8;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

a { color: var(--link); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.6rem; margin: 0; }
h3 { font-size: 1.08rem; line-height: 1.3; margin: .55rem 0 .25rem; }
section { margin-top: 3rem; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding-bottom: 4rem; }
.muted { color: var(--muted); font-size: .9rem; margin: .25rem 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--text); text-decoration: none; }
.brand-mark { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); }
.nav { display: flex; gap: .25rem; flex: 1; }
.nav a { padding: .45rem .9rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; transition: background .15s; }
.nav a:hover { background: var(--hover); }
.nav a[aria-current] { background: var(--text); color: var(--on-text); }
.lang { display: flex; margin-left: auto; padding: 3px; background: var(--hover); border-radius: 999px; }
.lang button { border: 0; background: none; border-radius: 999px; padding: .3rem .7rem; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); }
.lang button[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(29, 36, 64, .15); }

/* Footer */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .7); padding: 2.5rem 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer p { margin: .5rem 0 0; max-width: 320px; }
.footer-nav { display: grid; gap: .4rem; }
.footer-nav a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.beta { padding: .3rem .8rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: .8rem; }

/* Hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; margin-top: 1.5rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 28px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(246, 185, 59, .55), transparent 45%), linear-gradient(135deg, #1d2440 0%, #4a2a5e 55%, #e4572e 130%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1.5px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(to right, transparent, #000); pointer-events: none; }
.hero-text { position: relative; }
.eyebrow { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin: 1rem 0 .75rem; font-size: clamp(2.4rem, 6vw, 4rem); }
.hero p { margin: 0 0 1.75rem; font-size: 1.15rem; max-width: 30ch; opacity: .92; }
.hero-art { position: relative; display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 1.1rem; }
.bubble { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px; font-size: 3rem; background: color-mix(in srgb, var(--cat) 80%, #fff); box-shadow: 0 16px 34px rgba(0, 0, 0, .28); animation: float 6s ease-in-out infinite; }
.bubble:nth-child(odd) { transform: rotate(-6deg); margin-top: 1.4rem; }
.bubble:nth-child(even) { transform: rotate(5deg); animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.button { display: inline-block; padding: .75rem 1.4rem; border-radius: 999px; background: var(--accent-dark); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 6px 16px rgba(228, 87, 46, .35); transition: transform .15s, background .15s; }
.button:hover { background: #962f12; transform: translateY(-2px); }
.button.secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.hero .button { background: var(--sun); color: var(--text); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.hero .button.secondary { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-head p { margin: -.5rem 0 1.5rem; color: var(--muted); font-size: 1.05rem; }

/* Category tiles */
.category-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.category-tile { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: color-mix(in srgb, var(--cat) 12%, var(--surface)); color: var(--text); text-decoration: none; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--cat); font-size: 1.5rem; }
.category-name { flex: 1; }
.category-count { min-width: 28px; padding: .1rem .5rem; border-radius: 999px; background: var(--surface); color: color-mix(in srgb, var(--cat) 70%, var(--ink)); font-size: .85rem; text-align: center; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 2px 8px rgba(29, 36, 64, .06); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(29, 36, 64, .14); }
.card-media { position: relative; display: grid; place-items: center; height: 150px; overflow: hidden; background: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.5px) 0 0 / 18px 18px, linear-gradient(135deg, color-mix(in srgb, var(--cat) 75%, #fff), color-mix(in srgb, var(--cat) 80%, #000)); background-position: center; }
.card-media[style] { background-size: cover; }
.card-icon { font-size: 3.6rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); transition: transform .25s; }
.card:hover .card-icon { transform: scale(1.15) rotate(-6deg); }
.price-badge { position: absolute; right: 12px; bottom: 12px; padding: .25rem .7rem; border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.card-body { padding: 1rem 1.1rem 1.2rem; }

.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--cat) 14%, var(--surface)); color: color-mix(in srgb, var(--cat) 70%, var(--ink)); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.meta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: baseline; margin: .35rem 0 0; font-size: .92rem; }
.rating { font-weight: 700; color: #b7791f; }

/* Filter chips */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: .4rem .95rem; font: inherit; font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--cat); }
.chip[aria-current] { background: var(--cat); border-color: var(--cat); color: #fff; }
.chip:not([style])[aria-current] { background: var(--text); border-color: var(--text); color: var(--on-text); }

/* Map */
.map-layout { flex: none; display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: calc(100vh - var(--header-h) - 1px); padding: 0; overflow: hidden; }
.map-panel { display: flex; flex-direction: column; min-height: 0; padding: 0 1.1rem; background: var(--surface); border-right: 1px solid var(--border); }
.map-panel h1 { font-size: 1.7rem; margin: 1.25rem 0 1rem; }
.map-panel .chips { margin-bottom: 1rem; }
.place-list { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: .35rem; margin: 0 -.5rem; padding: 0 .5rem 1rem; }
.place-row { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .6rem; border: 0; border-radius: 14px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.place-row[hidden] { display: none; }
.place-row:hover { background: var(--bg); }
.place-row.is-active { background: color-mix(in srgb, var(--cat) 13%, var(--surface)); }
.place-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--cat) 80%, #fff); font-size: 1.25rem; }
.place-text { display: grid; min-width: 0; }
.place-text strong { font-size: .95rem; line-height: 1.3; }
.place-text .muted { margin: 0; font-size: .82rem; }
#map { min-height: 0; }
.maplibregl-map { font: inherit; }

.pin { position: relative; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; filter: drop-shadow(0 4px 5px rgba(29, 36, 64, .35)); }
.pin svg { transition: transform .15s; transform-origin: 50% 100%; }
.pin path { fill: var(--cat); stroke: #fff; stroke-width: 2; }
.pin circle { fill: #fff; }
.pin-icon { position: absolute; top: 6.5px; left: 0; width: 100%; font-size: 14px; line-height: 23px; text-align: center; pointer-events: none; transition: transform .15s; transform-origin: 50% 39.5px; }
.pin:hover svg, .pin.is-active svg { transform: scale(1.22); }
.pin:hover .pin-icon, .pin.is-active .pin-icon { transform: translateY(-8px) scale(1.22); transform-origin: 50% 50%; }
.pin.is-active { z-index: 2; }
.maplibregl-popup-content { padding: 14px 16px; border-radius: 16px; box-shadow: 0 14px 34px rgba(29, 36, 64, .22); font: inherit; }
.popup { display: grid; justify-items: start; gap: .3rem; font-size: .9rem; }
.popup-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.popup .muted { margin: 0; }
.popup-link { margin-top: .4rem; font-weight: 600; text-decoration: none; }

/* Detail pages */
.detail { max-width: 880px; margin: 0 auto; }
.back { display: inline-block; margin: 1.5rem 0 1rem; font-weight: 600; text-decoration: none; }
.detail-hero { display: flex; align-items: flex-end; gap: 1.25rem; min-height: 220px; padding: 1.75rem; border-radius: 24px 24px 0 0; color: #fff; background: radial-gradient(rgba(255, 255, 255, .2) 1.5px, transparent 1.5px) 0 0 / 20px 20px, linear-gradient(135deg, color-mix(in srgb, var(--cat) 80%, #fff), color-mix(in srgb, var(--cat) 65%, #000)); background-position: center; }
.detail-hero[style] { background-size: cover; }
.detail-hero h1 { margin: .5rem 0 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.detail-hero .tag { background: rgba(255, 255, 255, .92); color: color-mix(in srgb, var(--cat) 70%, #000); }
.detail-icon { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: rgba(255, 255, 255, .22); font-size: 2.8rem; }
.detail-body { padding: 1.75rem; background: var(--surface); border-radius: 0 0 24px 24px; box-shadow: var(--shadow); font-size: 1.05rem; }
.facts { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.fact { display: grid; padding: .6rem 1rem; border-radius: 14px; background: var(--bg); }
.fact span { color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.detail section h2 { margin-bottom: 1.25rem; }

@media (max-width: 820px) {
  .bar { flex-wrap: wrap; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .map-layout { display: flex; flex-direction: column; height: auto; }
  .map-panel { border-right: 0; }
  .place-list { max-height: 260px; }
  #map { order: -1; height: 42vh; min-height: 260px; }
  .detail-hero { flex-direction: column; align-items: flex-start; }
}

/* Trip planner */
.planner-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.planner-view[hidden] { display: none; }
.field { display: grid; gap: .3rem; margin-bottom: .8rem; }
.field label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.field select { width: 100%; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--sun) 25%, var(--surface)); font-size: .88rem; }
.error { margin: 0 0 .6rem; color: #b3261e; font-size: .9rem; font-weight: 600; }
.panel-heading { margin: .5rem 0 .6rem; font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
label.place-row input { flex: none; width: 18px; height: 18px; accent-color: var(--cat); }
label.place-row:has(input:checked) { background: color-mix(in srgb, var(--cat) 13%, var(--surface)); }
.planner-footer { padding: .9rem 0 1.1rem; border-top: 1px solid var(--border); }
.planner-footer .button { width: 100%; border: 0; font: inherit; font-weight: 600; text-align: center; cursor: pointer; }
.planner-footer .button:disabled { background: var(--border); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.planner-footer .muted { margin: .6rem 0 0; text-align: center; font-size: .82rem; }
.itinerary { flex: 1; overflow-y: auto; list-style: none; margin: 0 -.5rem; padding: 0 .5rem; }
.itinerary li + li { position: relative; margin-top: .9rem; }
.itinerary li + li::before { content: ""; position: absolute; left: calc(.6rem + 16px); top: -.9rem; height: .9rem; border-left: 2px dashed var(--border); }
.itinerary-row { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .5rem .6rem; border: 0; border-radius: 14px; background: none; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; }
.itinerary-row:hover { background: var(--bg); }
.itinerary-badge { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.pin.is-stop .pin-icon { font-weight: 700; color: var(--navy); }
.flag { font-size: 2rem; line-height: 1; filter: drop-shadow(0 3px 4px rgba(29, 36, 64, .4)); }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.75rem 2rem; border-radius: 24px; background: color-mix(in srgb, var(--sun) 28%, var(--surface)); }
.promo p { margin: .4rem 0 0; color: var(--muted); }

/* Place search and map clusters */
.search { width: 100%; margin-bottom: .8rem; padding: .6rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-size: .92rem; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.place-row.is-unmatched { display: none; }
.cluster { display: grid; place-items: center; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--navy); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(29, 36, 64, .35); }
.cluster:hover { background: var(--accent); }

/* Business contact form */
.partner-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.partner-benefits ul { padding-left: 1.1rem; display: grid; gap: .6rem; }
.contact-form { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 8px rgba(29, 36, 64, .06); display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--field-bg); color: var(--text); }
.field textarea { min-height: 9rem; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.field.consent label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.field.consent input { width: auto; margin-top: .25rem; }
.errorlist { list-style: none; margin: 0; padding: 0; color: #c0392b; font-size: .85rem; }
.form-errors { background: var(--error-bg); color: var(--error-fg); padding: .75rem 1rem; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose { max-width: 70ch; margin-bottom: 3rem; }
@media (max-width: 760px) { .partner-layout { grid-template-columns: 1fr; } }

/* Photos */
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .price-badge { z-index: 1; }
.gallery { margin: 2rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gallery figcaption { font-size: .75rem; color: var(--muted, #6b7280); margin-top: .3rem; }
.gallery figcaption a { color: inherit; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { max-width: 94vw; max-height: 90vh; display: block; border-radius: 8px; }
.lightbox button { position: absolute; top: .5rem; right: .5rem; border: 0; border-radius: 999px; width: 2.2rem; height: 2.2rem; font-size: 1.4rem; cursor: pointer; }

/* Photos */
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .price-badge { z-index: 1; }
.gallery { margin: 2rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gallery figcaption { font-size: .75rem; opacity: .7; margin-top: .3rem; }
.gallery figcaption a { color: inherit; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { max-width: 94vw; max-height: 90vh; display: block; border-radius: 8px; }
.lightbox button { position: absolute; top: .5rem; right: .5rem; border: 0; border-radius: 999px; width: 2.2rem; height: 2.2rem; font-size: 1.4rem; cursor: pointer; }
.popup-photo { display: block; width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: .5rem; }

/* Search */
.header-search input { width: 9rem; font: inherit; font-size: .9rem; padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); transition: width .2s; }
.header-search input:focus { width: 14rem; }
.search-form { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.search-form input { flex: 1; font: inherit; padding: .8rem 1.1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--field-bg); color: var(--text); }
.search-summary { margin-bottom: 1.5rem; }
.empty { padding: 2rem 0; }
@media (max-width: 760px) { .header-search { display: none; } }

/* Accessibility */
.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 10px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: .5rem; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Home search */
.hero-search { display: flex; gap: .5rem; max-width: 34rem; padding: .35rem; border-radius: 999px; background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; padding: .6rem 1rem; font: inherit; color: var(--text); }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--sun); }
.hero .hero-search .button { background: var(--accent-dark); color: #fff; box-shadow: none; }
.examples { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; max-width: 34rem; }
.examples a { padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; text-decoration: none; background: rgba(255, 255, 255, .16); color: #fff; }
.examples a:hover { background: rgba(255, 255, 255, .3); }
.examples-block { align-items: center; margin: 0 0 1.5rem; }
.examples-block a { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.hero p.hero-links { margin: 1rem 0 0; font-size: .95rem; }
.hero-links a { color: #fff; }
.hero p { max-width: 36ch; margin-bottom: 1.25rem; }

/* Place page */
.hours { margin: .25rem 0 .5rem; font-size: .95rem; }
.detail-body .actions { margin-top: 1.25rem; }
.detail-body .button { display: inline-flex; align-items: center; gap: .4rem; }
.detail > section { margin-top: 2.5rem; }
.footer-mail { color: rgba(255, 255, 255, .85); }

/* Contact form labels read as sentences, not as planner field captions */
.contact-form .field label { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); }

/* Bottom tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 820px) {
  .nav, .header-search { display: none; }
  .bar { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  body { padding-bottom: 68px; }
  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(29, 36, 64, .08); }
  .tabbar a { display: grid; justify-items: center; gap: .1rem; padding: .35rem 0; border-radius: 12px; color: var(--muted); font-size: .72rem; font-weight: 600; text-decoration: none; }
  .tabbar a span { font-size: 1.35rem; line-height: 1; filter: grayscale(.6); }
  .tabbar a[aria-current] { color: var(--link); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
  .tabbar a[aria-current] span { filter: none; }
  .hero-search { border-radius: 18px; flex-wrap: wrap; }
  .hero-search input { flex-basis: 100%; }
  .hero-search .button { flex: 1; }
  .container { padding: 0 16px; }
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  .category-tile { padding: .75rem; gap: .6rem; }
  .category-icon { width: 40px; height: 40px; font-size: 1.25rem; }
  .category-count { display: none; }
  .search-form { flex-direction: column; }
  .search-form .button { width: 100%; }
  .detail-body .actions .button { flex: 1 1 100%; justify-content: center; }
  .map-layout { min-height: calc(100vh - var(--header-h) - 68px); }
  .promo { padding: 1.25rem; }
}
button.button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.card-media .card-icon { position: relative; }

/* Map: near me */
.search-row { display: flex; gap: .5rem; align-items: flex-start; }
.search-row .search { flex: 1; min-width: 0; }
.near-me { white-space: nowrap; margin-bottom: .8rem; }
.near-me[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--on-text); }
.you-are-here { width: 18px; height: 18px; border-radius: 50%; background: #2a7de1; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(42, 125, 225, .25); }
.distance { font-weight: 600; }
.verified { display: inline-block; margin-top: .4rem; padding: .2rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #1f7a4d; font-size: .8rem; font-weight: 700; }
.sort-chips { align-items: center; margin-top: -.75rem; }

/* Affiliate disclosure under outbound buttons */
.disclosure { margin-top: .75rem; font-size: .85rem; }
.disclosure .tag { margin-right: .35rem; }

/* Theme switch in the header */
.theme-toggle { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--hover); color: var(--text); font-size: 1rem; line-height: 1; cursor: pointer; }
.theme-toggle:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.lang + .theme-toggle { margin-left: -.6rem; }

/* Map popups follow the theme */
.maplibregl-popup-content { background: var(--surface); color: var(--text); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--surface); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip, .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--surface); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--surface); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--surface); }

/* Logo with the slogan underneath */
.brand-text { display: grid; line-height: 1; }
.brand-tagline { margin-top: .2rem; font-family: "Inter", system-ui, sans-serif; font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.site-footer .brand-tagline { color: rgba(255, 255, 255, .6); }
@media (max-width: 340px) { .site-header .brand-tagline { display: none; } }

/* Ready-made routes */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.route-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 8px rgba(29, 36, 64, .06); }
.route-head { display: flex; align-items: center; gap: .8rem; }
.route-head h3 { margin: 0; font-family: var(--display); font-size: 1.2rem; }
.route-head .muted { margin: .1rem 0 0; }
.route-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--sun) 30%, var(--surface)); font-size: 1.6rem; }
.route-text { margin: 0; color: var(--muted); font-size: .95rem; }
.route-stops { flex: 1; margin: 0; padding: 0; list-style: none; counter-reset: stop; display: grid; align-content: start; gap: .3rem; font-size: .9rem; }
.route-stops li { counter-increment: stop; display: flex; gap: .4rem; align-items: baseline; }
.route-stops li::before { content: counter(stop); flex: none; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: color-mix(in srgb, var(--cat) 20%, var(--surface)); font-size: .7rem; font-weight: 700; }
.route-card .button { align-self: flex-start; }
.routes-link { margin: 0 0 .9rem; font-size: .9rem; font-weight: 600; }
.routes-link a { text-decoration: none; }
.share-status { min-height: 1.2em; margin: .5rem 0; text-align: center; font-size: .85rem; word-break: break-all; }
#planner-result .planner-footer .button + .share-status + .button { margin-top: .25rem; }

/* Category and route pages */
.category-head { display: flex; gap: 1.25rem; align-items: flex-start; margin: 1.5rem 0 1rem; }
.category-head h1 { margin-top: 0; }
.category-head p { max-width: 65ch; margin: -.25rem 0 1rem; color: var(--muted); font-size: 1.05rem; }
.category-badge { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 22px; background: color-mix(in srgb, var(--cat, var(--sun)) 25%, var(--surface)); font-size: 2.2rem; }
.route-card h3 a { color: inherit; text-decoration: none; }
.route-card h3 a:hover { text-decoration: underline; }
.route-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.route-steps li { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 8px rgba(29, 36, 64, .06); }
.route-steps h2 { margin: 0; font-size: 1.2rem; }
.route-steps h2 a { color: inherit; text-decoration: none; }
.route-steps p { margin: .3rem 0 0; }
.step-number { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--cat); color: #fff; font-weight: 700; }
@media (max-width: 820px) { .category-head { flex-direction: column; } .category-badge { width: 56px; height: 56px; font-size: 1.7rem; } }
