/* ==========================================================================
   Dream Your Italy — Homepage Skeleton
   Design system: Swiss editorial / minimal white + large photography
   Typography: Playfair Display (display) + Figtree (UI & body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — kept as tokens only. The logo carries the Italian flag colours;
     the interface stays neutral so the photography does the talking.
     To dial the brand back up, point --accent / --cta at these. */
  --brand-green: #0f8a4a;
  --brand-red: #e0242b;

  /* Neutrals — editorial greyscale */
  --ink: #14161a;
  --ink-2: #3f4650;
  --ink-3: #6b727c;
  --ink-4: #9aa1ab;
  --line: #e6e8ec;
  --line-2: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f5f6f8;

  /* Semantic — neutral by design */
  --accent: var(--ink);
  --accent-hover: #000000;
  --cta: var(--ink);
  --cta-hover: #000000;
  --focus: #1a73e8;

  /* Type scale */
  --fs-xs: 0.75rem;    /* 12 */
  --fs-sm: 0.8125rem;  /* 13 */
  --fs-base: 0.9375rem;/* 15 */
  --fs-md: 1rem;       /* 16 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.375rem;   /* 22 */
  --fs-2xl: 1.75rem;   /* 28 */
  --fs-3xl: 2.25rem;   /* 36 */
  --fs-4xl: 3rem;      /* 48 */
  --fs-5xl: 3.75rem;   /* 60 */

  /* Spacing rhythm (4/8) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radius & elevation */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20, 22, 26, .05), 0 1px 3px rgba(20, 22, 26, .06);
  --shadow-2: 0 4px 12px rgba(20, 22, 26, .07), 0 2px 4px rgba(20, 22, 26, .04);
  --shadow-3: 0 12px 40px rgba(20, 22, 26, .13), 0 4px 12px rgba(20, 22, 26, .06);

  /* Layout */
  --container: 1240px;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur: 200ms;

  /* Z-scale */
  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 1000;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -60px;
  z-index: var(--z-modal);
  background: var(--ink); color: #fff;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

/* Section scaffolding ------------------------------------------------------ */
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.section--alt { background: var(--surface-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.section-head__text { max-width: 46ch; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px var(--s-3) 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
  line-height: 1.4;
}
.section-title { font-size: var(--fs-3xl); }
.section-sub {
  margin: var(--s-3) 0 0;
  color: var(--ink-3);
  font-size: var(--fs-base);
}

.link-more {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-base); font-weight: 600;
  color: var(--ink); white-space: nowrap;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.link-more:hover { color: var(--accent); border-color: var(--accent); }
.link-more svg { transition: transform var(--dur) var(--ease-out); }
.link-more:hover svg { transform: translateX(3px); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-3) var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fs-base); font-weight: 600;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--surface-3); }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--surface);
  color: var(--ink-3);
  font-size: var(--fs-xs);
  border-bottom: 1px solid var(--line-2);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: 38px;
}
.topbar__tag { color: var(--ink-4); letter-spacing: .02em; }
.topbar__links { display: flex; align-items: center; gap: var(--s-5); }
.topbar__links a { color: var(--ink-3); transition: color var(--dur) var(--ease-out); }
.topbar__links a:hover { color: var(--ink); }
.topbar__social { display: flex; gap: var(--s-2); }
.topbar__social a {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: var(--r-pill);
  color: var(--ink-4);
}
.topbar__social a:hover { background: var(--surface-3); color: var(--ink); }

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: var(--s-6);
  min-height: var(--header-h);
}
.brand { flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }


.nav { flex: 1 1 auto; }
.nav__list {
  display: flex; align-items: center; gap: var(--s-2);
  list-style: none; margin: 0; padding: 0;
}
.nav__link {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-3) var(--s-3);
  font-size: var(--fs-base); font-weight: 500; color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--ink); background: var(--surface-3); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__link svg { color: var(--ink-4); }

.header__actions { display: flex; align-items: center; gap: var(--s-3); flex: 0 0 auto; }
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: var(--r-pill);
  color: var(--ink-2);
  transition: background-color var(--dur) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------------
   4. Hero + Search engine
   -------------------------------------------------------------------------- */
/* Hero: full-bleed photography with the copy and search sitting on a frosted
   glass card, so text never reads directly against the image. */
.hero {
  position: relative;
  min-height: min(80vh, 760px);
  display: flex; align-items: center;
  padding-block: var(--s-8);
  /* No overflow:hidden here — it would clip the search dropdowns.
     The media layer does its own clipping. */
}

/* --- Photography layer --- */
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}
.hero__slide[data-active="true"] { opacity: 1; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 55%;
  transform: scale(1.05);
  transition: transform 9000ms linear;
}
.hero__slide[data-active="true"] img { transform: scale(1); }

/* A soft scrim under the glass card keeps the frame legible at any image. */
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,12,16,.42) 0%, rgba(10,12,16,.18) 40%, rgba(10,12,16,.50) 100%);
}

/* Caption — labels the photograph */
.hero__caption {
  position: absolute; z-index: 2;
  left: max(var(--s-5), calc((100vw - var(--container)) / 2 + var(--s-5)));
  bottom: var(--s-5);
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  transition: opacity 300ms var(--ease-out);
}

/* Slide indicators — deliberately quiet */
.hero__dots {
  position: absolute; z-index: 2;
  right: max(var(--s-5), calc((100vw - var(--container)) / 2 + var(--s-5)));
  bottom: var(--s-4);
  display: flex; gap: var(--s-1);
}
.hero__dot {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; background: transparent; border-radius: var(--r-pill);
  padding: 0;
}
.hero__dot::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  box-shadow: 0 0 0 1px rgba(10,12,16,.18);
  transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.hero__dot:hover::before { background: rgba(255,255,255,.85); }
.hero__dot[aria-current="true"]::before { background: #fff; transform: scale(1.35); }

/* --- The frosted glass card --- */
.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__glass {
  max-width: 900px;
  padding: var(--s-7);
  border-radius: 20px;
  /* Frosted glass. The tint is dark rather than white: white text has to stay
     legible over bright images too, and a white tint cannot guarantee that.
     The top-lit 1px border is what sells the material. */
  background: rgba(14, 16, 20, .32);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-top-color: rgba(255, 255, 255, .3);
  box-shadow: 0 24px 64px rgba(10, 12, 16, .24);
  color: #fff;
}
/* Browsers without backdrop-filter get a solid-enough tint instead of
   unreadable white-on-photo. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__glass { background: rgba(14, 16, 20, .66); }
}

.hero__kicker {
  display: inline-flex; align-items: center;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  padding: 5px var(--s-3) 4px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  line-height: 1.4;
}
.hero__title {
  font-size: clamp(2rem, 3.8vw, var(--fs-4xl));
  font-weight: 500;
  letter-spacing: -.02em;
  color: #fff;
}
.hero__title em { font-style: italic; }
.hero__sub {
  margin: var(--s-4) 0 0;
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.86);
  max-width: 52ch;
}
.hero__glass .searchbar { margin-top: var(--s-6); }

/* --- The search engine ---------------------------------------------------- */
/* Solid white on purpose — the one element that must stay maximally legible
   and tappable, so it does not join the glass. */
.searchbar {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 8px 28px rgba(10, 12, 16, .18);
  padding: var(--s-2);
  display: grid;
  grid-template-columns: 1.05fr 1fr auto;
  gap: var(--s-1);
  align-items: stretch;
  width: 100%;
}
.searchbar__field {
  position: relative;
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%;
  min-height: 62px;
  padding: var(--s-3) var(--s-4);
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  text-align: left;
  transition: background-color var(--dur) var(--ease-out);
}
.searchbar__field:hover { background: var(--surface-3); }
.searchbar__field[aria-expanded="true"] { background: var(--surface-3); }
.searchbar__field + .searchbar__field::before {
  content: '';
  position: absolute; left: calc(var(--s-1) * -1); top: 12px; bottom: 12px;
  width: 1px; background: var(--line);
}
.searchbar__field:hover::before,
.searchbar__field[aria-expanded="true"]::before { opacity: 0; }

.searchbar__icon { flex: 0 0 auto; color: var(--ink-3); }
.searchbar__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.searchbar__label {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-4);
}
.searchbar__value {
  font-size: var(--fs-md); font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.searchbar__value--placeholder { color: var(--ink-4); font-weight: 400; }

.searchbar__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: 132px; padding-inline: var(--s-5);
  border: 0; border-radius: var(--r-md);
  background: var(--cta); color: #fff;
  font-size: var(--fs-base); font-weight: 600;
  transition: background-color var(--dur) var(--ease-out);
}
.searchbar__submit:hover { background: var(--cta-hover); }

/* Dropdown panels */
.panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  /* Wider than the copy column on purpose — the region grid needs the room. */
  width: min(760px, calc(100vw - var(--s-8)));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  z-index: var(--z-dropdown);
  overflow: hidden;
  display: none;
}
.panel[data-open="true"] { display: block; animation: panel-in 180ms var(--ease-out); }
.panel--right { left: auto; right: 0; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel__search {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
}
.panel__search svg { color: var(--ink-4); flex: 0 0 auto; }
.panel__search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: var(--fs-md); color: var(--ink);
  min-height: 28px;
}
.panel__search input::placeholder { color: var(--ink-4); }

.panel__tabs {
  display: flex; gap: var(--s-1);
  padding: var(--s-3) var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.panel__tab {
  position: relative;
  border: 0; background: transparent;
  padding: var(--s-3) var(--s-3) var(--s-4);
  font-size: var(--fs-base); font-weight: 500; color: var(--ink-3);
  transition: color var(--dur) var(--ease-out);
}
.panel__tab:hover { color: var(--ink); }
.panel__tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.panel__tab[aria-selected="true"]::after {
  content: ''; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -1px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.panel__body { max-height: 380px; overflow-y: auto; padding: var(--s-4) var(--s-3); }
.panel__empty { padding: var(--s-6); text-align: center; color: var(--ink-3); font-size: var(--fs-base); }

/* Location: accordion of regions */
.region { border-bottom: 1px solid var(--line-2); }
.region:last-child { border-bottom: 0; }
.region__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  width: 100%; min-height: 48px;
  padding: var(--s-3) var(--s-4);
  border: 0; background: transparent; border-radius: var(--r-sm);
  font-size: var(--fs-base); font-weight: 500; color: var(--ink); text-align: left;
  transition: background-color var(--dur) var(--ease-out);
}
.region__toggle:hover { background: var(--surface-3); }
.region__count { font-size: var(--fs-sm); color: var(--ink-4); font-weight: 400; margin-left: auto; }
.region__chev { color: var(--ink-4); transition: transform var(--dur) var(--ease-out); flex: 0 0 auto; }
.region__toggle[aria-expanded="true"] .region__chev { transform: rotate(180deg); }
.region__cities {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-1);
  padding: 0 var(--s-4) var(--s-4) var(--s-6);
}
.region__toggle[aria-expanded="true"] + .region__cities { display: grid; }
.city {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3); min-height: 36px;
  font-size: var(--fs-base); color: var(--ink-2);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.city:hover { background: var(--surface-3); color: var(--ink); }

/* Service: icon grid grouped by family */
.svc-group { padding: var(--s-2) var(--s-2) var(--s-4); }
.svc-group__title {
  font-family: 'Figtree', sans-serif;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-4);
  padding: var(--s-3) var(--s-3) var(--s-2);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: var(--s-1);
}
.svc {
  display: flex; align-items: center; gap: var(--s-3);
  width: 100%; min-height: 44px;
  padding: var(--s-2) var(--s-3);
  border: 0; background: transparent; border-radius: var(--r-sm);
  font-size: var(--fs-base); color: var(--ink-2); text-align: left;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.svc:hover { background: var(--surface-3); color: var(--ink); }
.svc__icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--accent);
}
.svc:hover .svc__icon { background: var(--line); }

/* Popular chips under the bar */
.hero__chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  margin-top: var(--s-5);
}
.hero__chips-label {
  font-size: var(--fs-sm); color: rgba(255,255,255,.66);
  margin-right: var(--s-1);
}
/* Default chip sits on a white page. The glass variant below is scoped to the
   hero, where the background is a photograph. */
.chip {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.chip:hover { background: var(--surface-3); border-color: var(--ink-4); color: var(--ink); }

.hero__chips .chip {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.12);
  color: #fff;
}
.hero__chips .chip:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.48); color: #fff; }

/* --------------------------------------------------------------------------
   5. Category rail
   -------------------------------------------------------------------------- */
.rail { border-bottom: 1px solid var(--line); background: #fff; }
.rail__inner {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--s-2);
  padding-block: var(--s-5);
}
.rail__item {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-2);
  border-radius: var(--r-md);
  text-align: center;
  transition: background-color var(--dur) var(--ease-out);
}
.rail__item:hover { background: var(--surface-2); }
.rail__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--ink);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.rail__item:hover .rail__icon { background: var(--accent); color: #fff; }
.rail__label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   6. Destination cards
   -------------------------------------------------------------------------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.dest {
  position: relative;
  grid-column: span 3;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-3);
  isolation: isolate;
}
.dest--wide { grid-column: span 6; aspect-ratio: 3 / 2; }
.dest--tall { grid-column: span 3; aspect-ratio: 3 / 4; }
.dest img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.dest:hover img { transform: scale(1.045); }
.dest::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.62) 100%);
}
.dest__body {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  padding: var(--s-5);
  color: #fff;
}
.dest__region {
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.dest__name {
  font-size: var(--fs-xl); margin-top: var(--s-1);
  font-weight: 500;
}
.dest--wide .dest__name { font-size: var(--fs-2xl); }
.dest__meta {
  display: flex; align-items: center; gap: var(--s-2);
  margin-top: var(--s-2);
  font-size: var(--fs-sm); color: rgba(255,255,255,.82);
}

/* --------------------------------------------------------------------------
   7. Regions index (the "index" backbone)
   -------------------------------------------------------------------------- */
.zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.zone {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.zone:hover { border-color: var(--ink-4); box-shadow: var(--shadow-2); }
.zone__head { display: flex; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.zone__num {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-2xl); color: var(--line);
  line-height: 1;
}
.zone__title { font-size: var(--fs-xl); }
.zone__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s-4); }
.zone__list li { break-inside: avoid; margin-bottom: var(--s-1); }
.zone__list a {
  display: block; padding: var(--s-1) 0;
  font-size: var(--fs-base); color: var(--ink-2);
  transition: color var(--dur) var(--ease-out);
}
.zone__list a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   8. Blog
   -------------------------------------------------------------------------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.post-lead {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.post-lead__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); }
.post-lead__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.post-lead:hover .post-lead__media img { transform: scale(1.035); }
.post-lead__body { padding-top: var(--s-5); }
.post-lead__title {
  font-size: var(--fs-2xl); font-weight: 500; margin-top: var(--s-3);
  transition: color var(--dur) var(--ease-out);
}
.post-lead:hover .post-lead__title { color: var(--accent); }
.post-lead__excerpt { margin: var(--s-3) 0 0; color: var(--ink-3); font-size: var(--fs-base); }

.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3);
  font-size: var(--fs-xs); color: var(--ink-4);
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.post-meta__cat { color: var(--accent); }
.post-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.post-row:first-child { padding-top: 0; }
.post-row:last-child { border-bottom: 0; }
.post-row__media {
  aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3);
}
.post-row__media img { width: 100%; height: 100%; object-fit: cover; }
.post-row__title {
  font-size: var(--fs-lg); font-weight: 500; margin-top: var(--s-2);
  transition: color var(--dur) var(--ease-out);
}
.post-row:hover .post-row__title { color: var(--accent); }

/* --------------------------------------------------------------------------
   9. Planning essentials
   -------------------------------------------------------------------------- */
.essentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.essential {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.essential:hover { border-color: var(--ink-4); }
.essential__icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--accent);
}
.essential__title { font-family: 'Figtree', sans-serif; font-size: var(--fs-base); font-weight: 600; }
.essential__desc { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.5; }

/* --------------------------------------------------------------------------
   10. Itineraries
   -------------------------------------------------------------------------- */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.route {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.route:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.route__media { aspect-ratio: 16 / 9; overflow: hidden; }
.route__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.route:hover .route__media img { transform: scale(1.04); }
.route__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.route__tags { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.tag {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); background: var(--surface-3);
  padding: 4px var(--s-3); border-radius: var(--r-pill);
}
.route__title { font-size: var(--fs-xl); font-weight: 500; }
.route__desc { font-size: var(--fs-base); color: var(--ink-3); margin: 0; }
.route__foot {
  margin-top: auto; padding-top: var(--s-3);
  display: flex; align-items: center; gap: var(--s-4);
  font-size: var(--fs-sm); color: var(--ink-3);
  border-top: 1px solid var(--line-2);
}
.route__foot span { display: inline-flex; align-items: center; gap: var(--s-2); }

/* --------------------------------------------------------------------------
   11. Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.newsletter__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.newsletter__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.newsletter__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,26,.82) 0%, rgba(20,22,26,.62) 55%, rgba(20,22,26,.72) 100%);
}
.newsletter__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7);
  align-items: center;
  padding: var(--s-8) var(--s-7);
  color: #fff;
}
.newsletter__title { font-size: var(--fs-2xl); font-weight: 500; }
.newsletter__sub { margin: var(--s-3) 0 0; color: rgba(255,255,255,.78); font-size: var(--fs-base); }
.newsletter__form { display: flex; gap: var(--s-3); }
.newsletter__field { flex: 1; }
.newsletter__field label { display: block; font-size: var(--fs-sm); margin-bottom: var(--s-2); color: rgba(255,255,255,.8); }
.newsletter__field input {
  width: 100%; min-height: 48px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  color: #fff; font: inherit; font-size: var(--fs-base);
}
.newsletter__field input::placeholder { color: rgba(255,255,255,.55); }
.newsletter__form .btn { align-self: flex-end; }
.newsletter__note { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: rgba(255,255,255,.6); }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-5); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
}
/* width:auto is required — the img carries width/height attributes for CLS,
   and without it the intrinsic 600px width squashes the logo. */
.footer__brand img { height: 34px; width: auto; margin-bottom: var(--s-4); }
.footer__about { font-size: var(--fs-base); color: var(--ink-3); max-width: 32ch; margin: 0; }
.footer__col h3 {
  font-family: 'Figtree', sans-serif;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  margin-bottom: var(--s-4);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: var(--s-2); }
.footer__col a { font-size: var(--fs-base); color: var(--ink-3); transition: color var(--dur) var(--ease-out); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding-top: var(--s-5);
  font-size: var(--fs-sm); color: var(--ink-4);
}
.footer__legal { display: flex; gap: var(--s-5); }
.footer__legal a:hover { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .rail__inner { grid-template-columns: repeat(4, 1fr); }
  .essentials { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: 1fr; }
  .zone__list { columns: 3; }
  .routes { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .header__inner { justify-content: space-between; }

  .hero { min-height: 0; padding-block: var(--s-7) var(--s-8); }
  .hero__glass { padding: var(--s-5); border-radius: 16px; }
  .hero__caption { display: none; }
  .hero__dots { right: var(--s-5); }

  .searchbar { grid-template-columns: 1fr; gap: 0; }
  .searchbar__field + .searchbar__field::before {
    left: var(--s-4); right: var(--s-4); top: 0; bottom: auto; width: auto; height: 1px;
  }
  .searchbar__submit { min-height: 52px; margin-top: var(--s-2); }
  .panel { left: 0; right: 0; width: auto; }

  .blog-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .newsletter__inner { grid-template-columns: 1fr; padding: var(--s-6); }
  .routes { grid-template-columns: 1fr; }
  .dest, .dest--wide, .dest--tall { grid-column: span 6; aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  :root { --fs-3xl: 1.75rem; }
  .section { padding-block: var(--s-7); }
  .topbar__tag { display: none; }
  .rail__inner { grid-template-columns: repeat(3, 1fr); }
  .essentials { grid-template-columns: 1fr; }
  .zone__list { columns: 2; }
  .dest, .dest--wide, .dest--tall { grid-column: span 12; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { align-self: stretch; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .post-row { grid-template-columns: 88px 1fr; }
}

/* --------------------------------------------------------------------------
   14. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   15. Sub-page shell (search results, place page)
   ========================================================================== */

.page-head { border-bottom: 1px solid var(--line); padding-block: var(--s-5) var(--s-6); }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-size: var(--fs-sm); color: var(--ink-4);
  list-style: none; margin: 0 0 var(--s-5); padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: var(--s-2); }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--line); }
.breadcrumb a { color: var(--ink-3); transition: color var(--dur) var(--ease-out); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.page-head__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-6); flex-wrap: wrap;
}
.page-head__title { font-size: var(--fs-3xl); }
.page-head__count { margin: var(--s-2) 0 0; color: var(--ink-3); font-size: var(--fs-base); }

/* Compact version of the hero search engine ------------------------------- */
.searchbar--compact {
  box-shadow: none;
  border: 1px solid var(--line);
  max-width: 620px; flex: 1 1 420px;
  margin-top: 0;
}
.searchbar--compact .searchbar__field { min-height: 48px; padding: var(--s-2) var(--s-3); }
.searchbar--compact .searchbar__label { font-size: 10px; }
.searchbar--compact .searchbar__value { font-size: var(--fs-base); }
.searchbar--compact .searchbar__submit { min-width: 52px; padding-inline: 0; }
.searchbar--compact .searchbar__submit span { display: none; }

/* --------------------------------------------------------------------------
   16. Results layout
   -------------------------------------------------------------------------- */
.results { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: var(--s-7); align-items: start; }

/* Filter rail -------------------------------------------------------------- */
.filters { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.filters__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); padding-bottom: var(--s-4);
}
.filters__title { font-family: 'Figtree', sans-serif; font-size: var(--fs-md); font-weight: 600; }
.filters__clear {
  border: 0; background: transparent; padding: var(--s-2);
  font-size: var(--fs-sm); color: var(--ink-3); text-decoration: underline;
  border-radius: var(--r-sm);
}
.filters__clear:hover { color: var(--ink); }

.fgroup { border-top: 1px solid var(--line); padding-block: var(--s-4); }
.fgroup__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  width: 100%; min-height: 40px; padding: 0;
  border: 0; background: transparent;
  font-family: 'Figtree', sans-serif;
  font-size: var(--fs-base); font-weight: 600; color: var(--ink); text-align: left;
}
.fgroup__toggle svg { color: var(--ink-4); transition: transform var(--dur) var(--ease-out); }
.fgroup__toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.fgroup__body { padding-top: var(--s-2); }
.fgroup__toggle[aria-expanded="false"] + .fgroup__body { display: none; }

.check {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 40px; padding: var(--s-1) 0;
  font-size: var(--fs-base); color: var(--ink-2);
  cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; flex: 0 0 auto; margin: 0;
  border: 1.5px solid var(--line); border-radius: 5px;
  background: #fff;
  display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check:hover { color: var(--ink); }
.check__count { margin-left: auto; font-size: var(--fs-sm); color: var(--ink-4); }

/* Toggle switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 44px; font-size: var(--fs-base); color: var(--ink-2); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; margin: 0;
  width: 40px; height: 24px; flex: 0 0 auto;
  background: var(--line); border-radius: var(--r-pill); position: relative;
  transition: background-color var(--dur) var(--ease-out); }
.switch input::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out);
}
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(16px); }

/* Segmented control */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-3); border-radius: var(--r-pill);
}
.segmented button {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 38px; padding: 0 var(--s-4);
  border: 0; background: transparent; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] {
  background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1);
}

/* Results toolbar ---------------------------------------------------------- */
.results__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  padding-bottom: var(--s-5);
}
.results__count { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.results__tools { display: flex; align-items: center; gap: var(--s-3); }
.select {
  min-height: 44px; padding: 0 var(--s-8) 0 var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b727c' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right var(--s-4) center / 16px;
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: var(--fs-base); color: var(--ink);
}

/* Active filter pills */
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); padding-bottom: var(--s-5); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 34px; padding: 0 var(--s-2) 0 var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: #fff; font-size: var(--fs-sm); color: var(--ink-2);
}
.pill button {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 0; background: transparent; border-radius: 50%; color: var(--ink-4);
}
.pill button:hover { background: var(--surface-3); color: var(--ink); }

/* Result card -------------------------------------------------------------- */
.result {
  display: grid; grid-template-columns: 290px minmax(0, 1fr);
  gap: var(--s-5);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}
.result:last-of-type { border-bottom: 1px solid var(--line); }

.result__media {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface-3);
}
.result__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.result:hover .result__media img { transform: scale(1.04); }
.result__badge {
  position: absolute; top: var(--s-3); left: var(--s-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(14,16,20,.72); color: #fff;
  backdrop-filter: blur(8px);
  padding: 5px var(--s-3); border-radius: var(--r-pill);
}
.result__save {
  position: absolute; top: var(--s-2); right: var(--s-2);
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink-2);
  backdrop-filter: blur(6px);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.result__save:hover { background: #fff; color: var(--ink); }
.result__save[aria-pressed="true"] { color: var(--brand-red); }
.result__save[aria-pressed="true"] svg { fill: currentColor; }
.result__dots {
  position: absolute; left: 50%; bottom: var(--s-3); transform: translateX(-50%);
  display: flex; gap: 5px;
}
.result__dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(10,12,16,.14);
}
.result__dots span[data-active="true"] { background: #fff; }

.result__body { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.result__title { font-size: var(--fs-xl); font-weight: 500; }
.result:hover .result__title { text-decoration: underline; text-underline-offset: 3px; }
.result__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-3);
  font-size: var(--fs-base); color: var(--ink-3);
}
.result__desc {
  margin: 0; color: var(--ink-3); font-size: var(--fs-base);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.result__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.result__foot {
  margin-top: auto; padding-top: var(--s-3);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
}
.result__facts { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-base); color: var(--ink-2); }
.result__facts span { display: inline-flex; align-items: center; gap: var(--s-2); }
.result__price { font-size: var(--fs-base); color: var(--ink-3); }
.result__price b { font-family: 'Figtree', sans-serif; font-size: var(--fs-lg); font-weight: 700; color: var(--ink); }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-base); }
.rating__score {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 26px; padding: 0 var(--s-2);
  background: var(--ink); color: #fff;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700;
}
.rating__count { color: var(--ink-4); font-size: var(--fs-sm); }
.stars { display: inline-flex; gap: 1px; color: var(--ink); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--s-2); padding-top: var(--s-7); }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s-3);
  border-radius: var(--r-sm); font-size: var(--fs-base); color: var(--ink-2);
}
.pagination a:hover { background: var(--surface-3); color: var(--ink); }
.pagination [aria-current] { background: var(--ink); color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   17. Map view
   -------------------------------------------------------------------------- */
.results[data-view="map"] { grid-template-columns: 268px minmax(0, 1fr); }
.results[data-view="map"] .results__list { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.results[data-view="map"] .result { grid-template-columns: 1fr; gap: var(--s-3); }
.results[data-view="map"] .result__desc,
.results[data-view="map"] .result__tags { display: none; }
.results[data-view="map"] .results__cards { max-height: 78vh; overflow-y: auto; padding-right: var(--s-3); }

.map-pane { display: none; }
.results[data-view="map"] .map-pane {
  display: block;
  position: sticky; top: calc(var(--header-h) + var(--s-4));
  height: 78vh;
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
  background: #eef1f4;
}
/* Placeholder cartography — the real page renders live tiles here. */
.map-pane__canvas {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.03) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(circle at 22% 32%, #dfeae1 0 90px, transparent 91px),
    radial-gradient(circle at 74% 66%, #dfeae1 0 120px, transparent 121px),
    linear-gradient(135deg, #cfe3ee 0 12%, transparent 12%),
    #eef1f4;
}
.map-pane__note {
  position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 2;
  font-size: var(--fs-xs); color: var(--ink-3);
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  padding: 6px var(--s-3); border-radius: var(--r-pill);
}
.map-pin {
  position: absolute; transform: translate(-50%, -100%);
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 34px; padding: 0 var(--s-3);
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-sm); font-weight: 600;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.map-pin:hover, .map-pin[aria-current="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: translate(-50%, -100%) scale(1.06);
  z-index: 3;
}

/* ==========================================================================
   18. Place page (hotel)
   ========================================================================== */

.place-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
}
.place-nav__steps { display: flex; align-items: center; gap: var(--s-4); font-size: var(--fs-sm); color: var(--ink-3); }
.place-nav__steps a { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink-2); }
.place-nav__steps a:hover { color: var(--ink); }

/* Gallery ------------------------------------------------------------------ */
.gallery {
  position: relative;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-2);
  height: 440px;
  border-radius: var(--r-md); overflow: hidden;
}
.gallery a { display: block; overflow: hidden; background: var(--surface-3); }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.gallery a:hover img { transform: scale(1.04); }
.gallery__all {
  position: absolute; right: var(--s-4); bottom: var(--s-4);
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 42px; padding: 0 var(--s-4);
  background: rgba(255,255,255,.94); color: var(--ink);
  border: 0; border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-base); font-weight: 600;
  backdrop-filter: blur(6px);
}
.gallery__all:hover { background: #fff; }

/* Title block -------------------------------------------------------------- */
.place-title { font-size: var(--fs-3xl); }
.place-sub {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-3);
  font-size: var(--fs-base); color: var(--ink-3);
}
.place-sub a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.place-sub a:hover { color: var(--ink); }

/* Section tabs ------------------------------------------------------------- */
.tabstrip {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: var(--header-h); z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}
.tabstrip a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 40px; padding: 0 var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--fs-base); color: var(--ink-2);
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.tabstrip a:hover { border-color: var(--ink); color: var(--ink); }
.tabstrip a span { color: var(--ink-4); }

/* Two-column body ---------------------------------------------------------- */
.place-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); align-items: start; }
.place-section { padding-block: var(--s-7); border-bottom: 1px solid var(--line); }
.place-section:last-child { border-bottom: 0; }
.place-section__title { font-size: var(--fs-2xl); margin-bottom: var(--s-4); }
.prose { color: var(--ink-2); font-size: var(--fs-md); }
.prose p { margin: 0 0 var(--s-4); max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* Collapsed long text */
.readmore { position: relative; }
.readmore[data-open="false"] .readmore__body {
  max-height: 200px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.readmore__btn {
  margin-top: var(--s-3);
  border: 0; background: transparent; padding: var(--s-2) 0;
  font-size: var(--fs-base); font-weight: 600; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.highlight { display: flex; gap: var(--s-3); align-items: flex-start; }
.highlight__icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink);
}
.highlight b { display: block; font-weight: 600; font-size: var(--fs-base); }
.highlight span { font-size: var(--fs-sm); color: var(--ink-3); }

/* Amenity grid */
.amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); }
.amenity { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-base); color: var(--ink-2); }
.amenity svg { color: var(--ink-4); flex: 0 0 auto; }
.amenity--off { color: var(--ink-4); text-decoration: line-through; }

/* Reviews */
.review-summary {
  display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap;
  padding: var(--s-5); margin-bottom: var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.review-summary__score {
  display: grid; place-items: center;
  width: 68px; height: 68px; flex: 0 0 auto;
  background: var(--ink); color: #fff; border-radius: var(--r-md);
  font-family: 'Figtree', sans-serif; font-size: var(--fs-2xl); font-weight: 700;
}
.review-bars { flex: 1 1 320px; display: grid; gap: var(--s-2); }
.review-bar { display: grid; grid-template-columns: 120px 1fr 32px; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--ink-3); }
/* display:block matters — these are spans, and inline boxes ignore height. */
.review-bar__track { display: block; height: 6px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.review-bar__fill { display: block; height: 100%; background: var(--ink); border-radius: var(--r-pill); }

.review { padding: var(--s-5) 0; border-top: 1px solid var(--line-2); }
.review__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.review__avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-2);
  font-size: var(--fs-base); font-weight: 600;
}
.review__who b { display: block; font-size: var(--fs-base); font-weight: 600; }
.review__who span { font-size: var(--fs-sm); color: var(--ink-4); }
.review__score { margin-left: auto; }
.review p { margin: 0; color: var(--ink-2); font-size: var(--fs-base); max-width: 68ch; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq:last-of-type { border-bottom: 1px solid var(--line-2); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; min-height: 60px; padding: var(--s-3) 0;
  border: 0; background: transparent; text-align: left;
  font-family: 'Figtree', sans-serif;
  font-size: var(--fs-md); font-weight: 600; color: var(--ink);
}
.faq__q svg { color: var(--ink-4); flex: 0 0 auto; transition: transform var(--dur) var(--ease-out); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { padding: 0 0 var(--s-5); color: var(--ink-3); font-size: var(--fs-base); max-width: 68ch; }
.faq__q[aria-expanded="false"] + .faq__a { display: none; }

/* Booking card ------------------------------------------------------------- */
.booking {
  position: sticky; top: calc(var(--header-h) + var(--s-6));
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: var(--s-5);
  background: #fff;
}
.booking__price { display: flex; align-items: baseline; gap: var(--s-2); }
.booking__price b { font-family: 'Figtree', sans-serif; font-size: var(--fs-2xl); font-weight: 700; }
.booking__price span { color: var(--ink-3); font-size: var(--fs-base); }
.booking__rating { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }

.booking__facts { list-style: none; margin: var(--s-5) 0; padding: 0; border-top: 1px solid var(--line); }
.booking__facts li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-base); color: var(--ink-2);
}
.booking__facts svg { color: var(--ink-4); flex: 0 0 auto; margin-top: 3px; }
.booking__facts b { font-weight: 600; }
.booking .btn { width: 100%; }
.booking__secondary { margin-top: var(--s-2); }
.booking__note {
  margin: var(--s-4) 0 0; font-size: var(--fs-xs); color: var(--ink-4);
  line-height: 1.5;
}

/* Nearby strip ------------------------------------------------------------- */
.nearby { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.nearby-card { display: block; }
.nearby-card__media { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); }
.nearby-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.nearby-card:hover .nearby-card__media img { transform: scale(1.04); }
.nearby-card__title { font-size: var(--fs-lg); font-weight: 500; margin-top: var(--s-3); }
.nearby-card:hover .nearby-card__title { text-decoration: underline; text-underline-offset: 3px; }
.nearby-card__meta { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   19. Sub-page responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .results, .results[data-view="map"] { grid-template-columns: 1fr; }
  .filters { position: static; }
  .results[data-view="map"] .results__list { grid-template-columns: 1fr; }
  .results[data-view="map"] .map-pane { position: static; height: 420px; }
  .results[data-view="map"] .results__cards { max-height: none; overflow: visible; padding-right: 0; }
  .place-body { grid-template-columns: 1fr; gap: var(--s-6); }
  .booking { position: static; }
  .nearby { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page-head__row { flex-direction: column; align-items: stretch; }
  .searchbar--compact { max-width: none; }
  .searchbar--compact .searchbar__submit { min-height: 48px; }
  .result { grid-template-columns: 1fr; }
  .result__media { aspect-ratio: 16 / 10; }
  .results__bar { align-items: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px; height: auto; }
  .gallery a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery a:nth-child(n+4) { display: none; }
  .highlights, .amenities, .nearby { grid-template-columns: 1fr; }
  .review-bar { grid-template-columns: 96px 1fr 28px; }
  .tabstrip { position: static; }
}

/* ==========================================================================
   20. Full-page map
   ========================================================================== */

.booking__lead { margin: var(--s-3) 0 0; font-size: var(--fs-base); color: var(--ink-3); }

.mapview {
  position: relative;
  height: calc(100dvh - var(--header-h));
  min-height: 520px;
  background: #eef1f4;
  overflow: hidden;
}
.mapview__canvas {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 72px 100%,
    radial-gradient(circle at 18% 26%, #dfeae1 0 110px, transparent 111px),
    radial-gradient(circle at 68% 72%, #dfeae1 0 150px, transparent 151px),
    radial-gradient(circle at 86% 18%, #dfeae1 0 80px, transparent 81px),
    linear-gradient(118deg, #cfe3ee 0 9%, transparent 9%),
    #eef1f4;
}

/* Floating toolbar over the map */
.mapview__bar {
  position: absolute; z-index: 4;
  top: var(--s-4); left: var(--s-4); right: var(--s-4);
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
}
.mapview__panel {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 48px; padding: var(--s-2) var(--s-3);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
}
.mapview__back {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 36px; padding: 0 var(--s-3);
  border-radius: var(--r-pill);
  font-size: var(--fs-base); font-weight: 600; color: var(--ink);
}
.mapview__back:hover { background: var(--surface-3); }
.mapview__title { font-family: 'Figtree', sans-serif; font-size: var(--fs-base); color: var(--ink-3); padding-right: var(--s-3); }
.mapview__title b { color: var(--ink); font-weight: 600; }
.mapview__chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* The card that opens when a pin is chosen */
.mapview__card {
  position: absolute; z-index: 5;
  left: var(--s-4); bottom: var(--s-4);
  width: min(360px, calc(100% - var(--s-8)));
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  display: none;
}
.mapview__card[data-open="true"] { display: block; animation: panel-in 200ms var(--ease-out); }
.mapview__card-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); }
.mapview__card-media img { width: 100%; height: 100%; object-fit: cover; }
.mapview__close {
  position: absolute; top: var(--s-2); right: var(--s-2);
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.mapview__close:hover { background: #fff; color: var(--ink); }
.mapview__card-body { padding: var(--s-4); }
.mapview__card-title { font-size: var(--fs-lg); font-weight: 500; }
.mapview__card-meta { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--ink-3); }
.mapview__card-body .btn { width: 100%; margin-top: var(--s-4); min-height: 40px; }

/* Count of places off-screen, so the map never feels empty */
.mapview__legend {
  position: absolute; z-index: 4;
  right: var(--s-4); bottom: var(--s-4);
  font-size: var(--fs-xs); color: var(--ink-3);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: 8px var(--s-3); border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .mapview { height: calc(100dvh - var(--header-h)); }
  .mapview__chips { display: none; }
  .mapview__card { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); width: auto; }
  .mapview__legend { display: none; }
}

/* ==========================================================================
   21. Destination hub (region / province / city)
   ========================================================================== */

.dhero { position: relative; }
.dhero__media {
  position: relative;
  height: min(46vh, 420px);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-3);
}
.dhero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.dhero__caption {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: #fff;
  background: rgba(10,12,16,.5); backdrop-filter: blur(8px);
  padding: 6px var(--s-3); border-radius: var(--r-pill);
}
.dhero__lede {
  margin: var(--s-5) 0 0;
  font-size: var(--fs-lg); color: var(--ink-2);
  max-width: 62ch;
}

/* Fact strip — replaces the old "general information" box ------------------ */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.fact { padding: var(--s-4) var(--s-5); border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__label {
  display: block;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: var(--s-2);
}
.fact__value { font-size: var(--fs-base); color: var(--ink); }
.fact__value a { text-decoration: underline; text-underline-offset: 3px; }
.fact__value a:hover { color: var(--ink-3); }
.fact__note { display: block; font-size: var(--fs-sm); color: var(--ink-4); margin-top: 2px; }

/* Category tiles — the spine of the hub ----------------------------------- */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); }
.cat {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  min-height: 152px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.cat:hover { border-color: transparent; box-shadow: var(--shadow-2); }
.cat__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.cat:hover .cat__icon { background: var(--ink); color: #fff; }
.cat__title { font-family: 'Figtree', sans-serif; font-size: var(--fs-base); font-weight: 600; margin-top: auto; }
.cat__count { font-size: var(--fs-sm); color: var(--ink-4); }

/* Compact place cards ------------------------------------------------------ */
.places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.place-card { display: block; }
.place-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); }
.place-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.place-card:hover .place-card__media img { transform: scale(1.04); }
.place-card__kind {
  position: absolute; top: var(--s-3); left: var(--s-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--ink);
  backdrop-filter: blur(6px);
  padding: 4px var(--s-3); border-radius: var(--r-pill);
}
.place-card__title { font-size: var(--fs-lg); font-weight: 500; margin-top: var(--s-3); }
.place-card:hover .place-card__title { text-decoration: underline; text-underline-offset: 3px; }
.place-card__meta { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--ink-3); }

/* Nearby destinations ------------------------------------------------------ */
.neighbours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.neighbour {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease-out);
}
.neighbour:hover { border-color: var(--ink); }
.neighbour__media { width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); }
.neighbour__media img { width: 100%; height: 100%; object-fit: cover; }
.neighbour b { display: block; font-family: 'Figtree', sans-serif; font-size: var(--fs-base); font-weight: 600; }
.neighbour span { font-size: var(--fs-sm); color: var(--ink-3); }

/* In-page anchor nav ------------------------------------------------------- */
.dnav {
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: var(--header-h); z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}
.dnav a {
  display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--fs-base); color: var(--ink-2);
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.dnav a:hover { border-color: var(--ink); color: var(--ink); }

@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .places, .neighbours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .places, .neighbours { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .dnav { position: static; }
  .dhero__media { height: 240px; }
}

/* A map embedded in a content section (destination hub, place page) --------- */
.map-pane--embed { display: block; position: relative; height: 460px; }
.map-pane__cta {
  position: absolute; right: var(--s-4); bottom: var(--s-4); z-index: 3;
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 42px; padding: 0 var(--s-4);
  background: rgba(255,255,255,.94); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-base); font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background-color var(--dur) var(--ease-out);
}
.map-pane__cta:hover { background: #fff; }

@media (max-width: 640px) {
  .map-pane--embed { height: 340px; }
  .map-pane--embed .map-pin { font-size: var(--fs-xs); padding: 0 var(--s-2); min-height: 28px; }
}

/* ==========================================================================
   22. Region page — the province index
   ========================================================================== */

.provinces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.province {
  display: block;
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.province:hover { border-color: transparent; box-shadow: var(--shadow-2); }
.province__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.province__name { font-size: var(--fs-xl); font-weight: 500; }
.province:hover .province__name { text-decoration: underline; text-underline-offset: 3px; }
.province__count { font-size: var(--fs-sm); color: var(--ink-4); white-space: nowrap; }
.province__towns {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-base); color: var(--ink-3);
  line-height: 1.7;
}
.province__badge {
  display: inline-flex; align-items: center;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 3px var(--s-3);
  margin-top: var(--s-3);
}

@media (max-width: 1100px) { .provinces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .provinces { grid-template-columns: 1fr; } }

/* Chip row on a content page (not the hero) */
.chiprow { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chiprow .chip__count { color: var(--ink-4); margin-left: 6px; }

/* ==========================================================================
   23. Itinerary page — the stop timeline
   ========================================================================== */

.timeline { position: relative; }

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s-5);
  padding-bottom: var(--s-7);
}
.stop:last-child { padding-bottom: 0; }

/* The rail runs through the number column, stopping at the last stop. */
.stop::before {
  content: '';
  position: absolute; left: 27px; top: 44px; bottom: 0;
  width: 2px; background: var(--line);
}
.stop:last-child::before { display: none; }

.stop__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 56px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: var(--fs-md); font-weight: 700;
}
.stop__num--soft { background: #fff; color: var(--ink-3); border: 1px solid var(--line); }

.stop__body { padding-top: var(--s-1); }
.stop__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-3); }
.stop__title { font-size: var(--fs-xl); font-weight: 500; }
.stop__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stop__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-2);
  font-size: var(--fs-sm); color: var(--ink-3);
}
.stop__meta span { display: inline-flex; align-items: center; gap: var(--s-2); }
.stop__text { margin: var(--s-3) 0 0; color: var(--ink-2); font-size: var(--fs-md); max-width: 66ch; }
.stop__media {
  margin-top: var(--s-4);
  aspect-ratio: 16 / 9; max-width: 560px;
  border-radius: var(--r-md); overflow: hidden; background: var(--surface-3);
}
.stop__media img { width: 100%; height: 100%; object-fit: cover; }

/* A note that belongs to a stop but is not the stop itself */
.stop__note {
  display: flex; gap: var(--s-3); align-items: flex-start;
  margin-top: var(--s-4); padding: var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-base); color: var(--ink-2);
  max-width: 66ch;
}
.stop__note svg { color: var(--ink-3); flex: 0 0 auto; margin-top: 2px; }
.stop__note b { font-weight: 600; }

/* The "walk N minutes" connector between stops */
.leg {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s-5);
  margin-top: calc(var(--s-7) * -1 + var(--s-4));
  padding-bottom: var(--s-4);
}
.leg__line { position: relative; }
.leg__text {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-sm); color: var(--ink-4);
  padding: var(--s-2) 0;
}

@media (max-width: 640px) {
  .stop { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); }
  .stop::before { left: 21px; }
  .stop__num { width: 44px; height: 40px; font-size: var(--fs-base); }
  .leg { grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); }
}

/* ==========================================================================
   24. Blog post
   ========================================================================== */

.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); align-items: start; }

.article__header { max-width: 46rem; }
.article__title { font-size: clamp(2rem, 4vw, var(--fs-4xl)); font-weight: 500; letter-spacing: -.02em; }
.article__deck {
  margin: var(--s-4) 0 0;
  font-size: var(--fs-lg); color: var(--ink-3);
  max-width: 60ch;
}

.byline {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3);
  margin-top: var(--s-5);
  font-size: var(--fs-base); color: var(--ink-3);
}
.byline__avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-2);
  font-size: var(--fs-sm); font-weight: 600;
}
.byline b { color: var(--ink); font-weight: 600; }
.byline__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

.figure { margin: var(--s-6) 0; }
.figure img { width: 100%; border-radius: var(--r-md); }
.figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--fs-sm); color: var(--ink-4);
}

/* Long-form typography ----------------------------------------------------- */
.prose h2 {
  font-size: var(--fs-2xl); font-weight: 500;
  margin: var(--s-8) 0 var(--s-4);
  scroll-margin-top: calc(var(--header-h) + var(--s-5));
}
.prose h3 {
  font-family: 'Figtree', sans-serif;
  font-size: var(--fs-lg); font-weight: 600;
  margin: var(--s-6) 0 var(--s-3);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); max-width: 68ch; }
.prose li { margin-bottom: var(--s-2); }
.prose strong { font-weight: 600; color: var(--ink); }

.pullquote {
  margin: var(--s-7) 0;
  padding-left: var(--s-5);
  border-left: 2px solid var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-xl); font-style: italic; line-height: 1.4;
  color: var(--ink);
  max-width: 52ch;
}

/* An inline pointer from the article into the index ------------------------ */
.index-link {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  max-width: 66ch;
}
.index-link__text { font-size: var(--fs-base); color: var(--ink-2); }
.index-link__text b { font-weight: 600; color: var(--ink); }
.index-link .btn { min-height: 40px; white-space: nowrap; }

/* Sidebar ------------------------------------------------------------------ */
.aside { position: sticky; top: calc(var(--header-h) + var(--s-6)); display: grid; gap: var(--s-5); }
.aside__box {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-5);
}
.aside__title {
  font-family: 'Figtree', sans-serif;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  margin-bottom: var(--s-4);
}
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line-2); }
.toc li:last-child { border-bottom: 0; }
.toc a {
  display: flex; gap: var(--s-3); align-items: baseline;
  padding: var(--s-3) 0;
  font-size: var(--fs-base); color: var(--ink-2);
  transition: color var(--dur) var(--ease-out);
}
.toc a::before { content: counter(toc); color: var(--ink-4); font-size: var(--fs-sm); min-width: 14px; }
.toc a:hover { color: var(--ink); }

.aside__note { margin: 0; font-size: var(--fs-base); color: var(--ink-3); }
.aside__box .btn { width: 100%; margin-top: var(--s-4); min-height: 40px; }

/* Author card -------------------------------------------------------------- */
.author {
  display: flex; gap: var(--s-5); align-items: flex-start;
  padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-md);
  max-width: 46rem;
}
.author__avatar {
  display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 50%; background: var(--surface-3); color: var(--ink-2);
  font-size: var(--fs-lg); font-weight: 600;
}
.author b { display: block; font-family: 'Figtree', sans-serif; font-size: var(--fs-md); font-weight: 600; }
.author p { margin: var(--s-2) 0 0; font-size: var(--fs-base); color: var(--ink-3); }

@media (max-width: 1100px) {
  .article { grid-template-columns: 1fr; gap: var(--s-6); }
  .aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .aside { grid-template-columns: 1fr; }
  .author { flex-direction: column; gap: var(--s-4); }
  .index-link { flex-direction: column; align-items: stretch; }
  .index-link .btn { width: 100%; }
}
