/* ─────────────────────────────────────────────────────────────────────────
   Traveloh website — brand design system (Phase 1).
   Vanilla CSS with design tokens, light + dark aware. No build step: served
   as-is. Fonts are self-hosted (see public/fonts, vendored at build time) —
   never a third-party origin, so the CSP stays tight.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Self-hosted brand fonts ──────────────────────────────────────────────
   Fredoka for display/headings, Plus Jakarta Sans for body/UI. woff2 latin
   subset only. `font-display: swap` so text paints immediately in the
   system-ui fallback and reflows when the brand font arrives. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fredoka-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fredoka-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/fredoka-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-800.woff2') format('woff2');
}

/* ── Design tokens ────────────────────────────────────────────────────────
   Names mirror the mock-up's `--to-*` custom properties (§10) so the visual
   reference maps 1:1. Light theme here; dark overrides in the media query. */
:root {
  --font-display: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;

  /* Corner radii — the signature 22px card, smaller variants for chrome. */
  --radius-card: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --gap: 1.25rem;

  /* Brand palette (§10). */
  --to-primary: #ff2e63;       /* brand pink/coral — CTAs, active states, links */
  --to-primary-ink: #ffffff;   /* text on primary */
  --to-accent: #ff5a5f;        /* secondary coral — badges */
  --to-accent-soft: #ffe1ea;   /* pale-pink surface — image placeholders, tints */
  --to-accent-ink: #d81b56;    /* deep pink — link hover, accent text */

  --to-ink: #1a2233;           /* text primary */
  --to-ink-2: #48546b;         /* text secondary */
  --to-ink-3: #8b93a5;         /* text tertiary / meta */

  --to-page: #e9ebf1;          /* light-grey page behind the white canvas */
  --to-canvas: #ffffff;        /* centred white canvas */
  --to-surface: #eef1f6;       /* tinted section background / chips */
  --to-border: #e4e8ef;        /* hairlines */
  --to-star: #ffb400;          /* star-rating gold */

  /* Soft-pink drop shadow is the brand's signature depth cue. */
  --shadow-card: 0 14px 32px rgba(255, 46, 99, 0.10);
  --shadow-pop: 0 18px 44px rgba(255, 46, 99, 0.16);
  --shadow-sm: 0 2px 8px rgba(26, 34, 51, 0.06);

  --focus: #1a2233;

  /* Aliases kept so any un-migrated markup still resolves to brand values. */
  --bg: var(--to-page);
  --surface: var(--to-canvas);
  --text: var(--to-ink);
  --muted: var(--to-ink-3);
  --border: var(--to-border);
  --brand: var(--to-primary);
  --brand-ink: var(--to-primary-ink);
  --accent: var(--to-star);
  --shadow: var(--shadow-card);
}

@media (prefers-color-scheme: dark) {
  :root {
    --to-primary: #ff5c85;
    --to-primary-ink: #23060f;
    --to-accent: #ff7a7e;
    --to-accent-soft: #3a2230;
    --to-accent-ink: #ff9fb8;

    --to-ink: #e8edf6;
    --to-ink-2: #b3bccd;
    --to-ink-3: #8793a8;

    --to-page: #0d1220;
    --to-canvas: #151c2e;
    --to-surface: #1c2439;
    --to-border: #29334c;
    --to-star: #ffc74d;

    --shadow-card: 0 14px 32px rgba(0, 0, 0, 0.45);
    --shadow-pop: 0 18px 44px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);

    --focus: #ff9fb8;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--to-ink);
  background: var(--to-canvas);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Full-bleed bands. Each region's background spans the full viewport width;
   the inner `.container` keeps the content in a centred, fixed-width column.
   (Earlier the whole document floated as a centred canvas — but that centred
   `margin: auto` geometry lands on fractional device pixels at Windows display-
   scaling ratios like 125%/150%, which Chromium and Edge paint as thin black
   seams along the band edges. Full-bleed bands start at x=0, so their edges sit
   on whole pixels and the seams disappear.) */
.site-header,
.main { background: var(--to-canvas); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--to-primary); text-decoration: none; }
a:hover { color: var(--to-accent-ink); text-decoration: none; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 2.5rem; }
@media (max-width: 640px) { .container { padding-inline: 1.25rem; } }

.main { flex: 1 0 auto; }
.section { padding-block: 2.75rem; }
.section:first-child { padding-top: 2rem; }

/* ── Section header partial ───────────────────────────────────────────────*/
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.section-header__text { min-width: 0; }
.section-header__title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin: 0;
  color: var(--to-ink);
}
.section-header__lead { margin: 0.35rem 0 0; color: var(--to-ink-3); font-weight: 300; }
.section-header__more {
  font-weight: 700;
  color: var(--to-primary);
  white-space: nowrap;
  font-size: 0.95rem;
}
.section-header__more:hover { color: var(--to-accent-ink); }

/* Legacy section markup still used by some pages. */
.section__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0 0 1.25rem; }
.section__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.5rem; }
.section__meta, .card__place, .hotel__place { color: var(--to-ink-3); }
.section__more { margin-top: 1.75rem; font-weight: 700; }

/* ── Utilities ────────────────────────────────────────────────────────────*/
.visually-hidden,
.skip-link {
  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:focus {
  position: fixed; top: 0.75rem; left: 0.75rem; width: auto; height: auto;
  clip: auto; padding: 0.6rem 1rem; background: var(--to-canvas);
  border: 1px solid var(--to-border); border-radius: var(--radius-sm); z-index: 100;
}
.empty { color: var(--to-ink-3); padding: 2rem 0; }

/* ── Buttons ──────────────────────────────────────────────────────────────
   Variants: primary (default) / soft / ghost. Sizes: default / .btn--sm. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.35rem; border-radius: var(--radius-pill);
  background: var(--to-primary); color: var(--to-primary-ink);
  font-family: var(--font-sans); font-weight: 800; font-size: 0.95rem; line-height: 1;
  /* No transparent border: Chrome paints a transparent border as a thin dark
     edge on composited elements at fractional display scaling. Only the ghost
     variant needs a visible border, and it sets its own below. */
  border: 0; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 18px rgba(255, 46, 99, 0.22);
}
.btn:hover { color: var(--to-primary-ink); filter: brightness(1.04); transform: translateY(-1px); box-shadow: var(--shadow-pop); }
.btn:active { transform: translateY(0); }
.btn--soft {
  background: var(--to-accent-soft); color: var(--to-accent-ink);
  box-shadow: none;
}
.btn--soft:hover { color: var(--to-accent-ink); background: var(--to-accent-soft); filter: brightness(0.98); }
.btn--ghost {
  background: transparent; color: var(--to-ink); border: 1px solid var(--to-border);
  box-shadow: none; font-weight: 700;
}
.btn--ghost:hover { color: var(--to-ink); background: var(--to-surface); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--block { display: flex; width: 100%; }

/* ── Header + nav ─────────────────────────────────────────────────────────*/
/* `relative` (not `sticky`): a sticky header is promoted to its own GPU layer,
   whose bottom edge seams against the hero band as a black hairline at
   fractional display scaling. Relative keeps it a positioning context for the
   mobile menu without compositing it, and matches the mock-up's static nav. */
.site-header { border-bottom: 1px solid var(--to-border); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.site-header__brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--to-ink);
}
.site-header__brand:hover { color: var(--to-ink); }
.site-header__logo {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 13px 13px 13px 0px; background: var(--to-primary); color: #fff; font-size: 1.05rem;
}
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav__toggle {
  display: none; background: none; border: 1px solid var(--to-border);
  border-radius: var(--radius-sm); font-size: 1.1rem; padding: 0.4rem 0.65rem;
  color: var(--to-ink); cursor: pointer;
}
.site-nav__menu { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav__menu a {
  display: inline-block; padding: 0.5rem 0.9rem; border-radius: var(--radius-pill);
  color: var(--to-ink-2); font-weight: 700;
}
.site-nav__menu a:hover { background: var(--to-surface); color: var(--to-ink); }
.site-nav__menu a.is-active { color: var(--to-primary); background: var(--to-accent-soft); }

/* Header search box: flexes to fill the space between brand and nav. */
.site-header__search { flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.site-header__search .search-bar { width: 100%; max-width: 420px; margin: 0; }

/* Compact search-bar variant (header): smaller padding, an icon-only submit. */
.search-bar--compact { padding: 0.25rem 0.25rem 0.25rem 0.85rem; box-shadow: var(--shadow-sm); }
.search-bar--compact .search-bar__input { font-size: 0.92rem; padding: 0.4rem 0.2rem; }
.search-bar--compact .search-bar__submit { padding: 0.5rem 0.7rem; }
.search-bar--compact .search-bar__submit-icon { display: none; }
.search-bar__submit-icon { display: none; }

@media (max-width: 720px) {
  .site-nav__toggle { display: inline-block; }
  .site-nav__menu {
    position: absolute; right: 1.25rem; top: 62px; flex-direction: column; align-items: stretch;
    background: var(--to-canvas); border: 1px solid var(--to-border); border-radius: var(--radius);
    padding: 0.5rem; box-shadow: var(--shadow-card); min-width: 190px; display: none;
  }
  .site-nav__menu.is-open { display: flex; }
  /* Reclaim width: the compact submit shows just the 🔍 glyph, and the box no
     longer needs to shrink the nav toggle off-screen. */
  .site-header__search .search-bar { max-width: none; }
  .search-bar--compact .search-bar__submit-text { display: none; }
  .search-bar--compact .search-bar__submit-icon { display: inline; }
  .search-bar--compact .search-bar__submit { padding: 0.5rem 0.6rem; }
}
@media (max-width: 520px) {
  /* Below this the hero-less pages get cramped — drop the header search to keep
     the brand and menu usable; the /search-results in-page box still covers it. */
  .site-header__search { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────*/
.hero {
  position: relative;
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
  /* Bold coral hero banner (mock-up §hero): a 135° pink gradient with white
     text sitting straight on top — no pale wash, no bottom hairline. */
  background: linear-gradient(135deg, #ff2e63, #e11d6b);
  border-bottom: 0;
  /* The hero is always this pink banner, so pin its inner colour tokens to the
     light-theme values: the search bar and holiday-type tabs render light-on-
     pink in both themes instead of flipping to dark surfaces in dark mode. */
  --to-canvas: #ffffff;
  --to-ink: #1a2233;
  --to-ink-2: #48546b;
  --to-ink-3: #8b93a5;
  --to-border: #e4e8ef;
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 0.75rem; max-width: 18ch; color: #fff;
}
.hero__lede { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); font-weight: 300; max-width: 48ch; margin: 0 0 1.75rem; }
.hero__search input {
  width: min(100%, 520px); padding: 0.9rem 1.25rem; font-size: 1rem;
  border: 1px solid var(--to-border); border-radius: var(--radius-pill);
  background: var(--to-canvas); color: var(--to-ink); box-shadow: var(--shadow-sm);
}

/* ── Chips & pills ────────────────────────────────────────────────────────*/
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Trust chip — icon + label lozenge. */
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--to-canvas); border: 1px solid var(--to-border);
  border-radius: var(--radius-pill); padding: 0.55rem 1rem;
  font-weight: 700; font-size: 0.9rem; color: var(--to-ink-2); box-shadow: var(--shadow-sm);
}
.trust-chip__icon { font-size: 1.1rem; line-height: 1; }

/* Facility pill — soft rounded tag for amenities/attributes. */
.facility-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--to-surface); color: var(--to-ink-2);
  border-radius: var(--radius-pill); padding: 0.35rem 0.75rem;
  font-weight: 700; font-size: 0.8rem;
}

/* Rating badge — Fredoka lozenge with the signature asymmetric corner. */
.rating-badge { display: inline-flex; align-items: center; gap: 0.6rem; }
.rating-badge__score {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1;
  background: var(--to-primary); color: var(--to-primary-ink);
  border-radius: 13px; padding: 0.4rem 0.65rem;
}
.rating-badge__text { display: flex; flex-direction: column; }
.rating-badge__label { font-weight: 800; font-size: 0.85rem; color: var(--to-ink); }
.rating-badge__meta { font-size: 0.75rem; font-weight: 600; color: var(--to-ink-3); }

/* Star rating. */
.stars { color: var(--to-star); letter-spacing: 0.1em; font-size: 0.95rem; line-height: 1; }

/* ── Card grid ────────────────────────────────────────────────────────────*/
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--gap); }
.grid__item { min-width: 0; }
.card {
  background: var(--to-canvas); border: 1px solid var(--to-border);
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card);
  height: 100%; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.card__media {
  display: block; aspect-ratio: 3 / 2; background: var(--to-accent-soft); overflow: hidden; position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.5rem; color: var(--to-primary); opacity: 0.55; }
.card__badge {
  position: absolute; left: 12px; top: 12px;
  background: var(--to-accent); color: #fff; font-weight: 800; font-size: 0.72rem;
  padding: 0.35rem 0.7rem; border-radius: var(--radius-pill);
}
.card__body { padding: 0.95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0; }
.card__title a { color: var(--to-ink); }
.card__title a:hover { color: var(--to-primary); }
.card__place { margin: 0; font-size: 0.88rem; color: var(--to-ink-3); font-weight: 600; }
.card__meta { margin: 0.15rem 0 0; font-size: 0.82rem; font-weight: 700; color: var(--to-ink-2); }

/* Destination tile — image with overlaid label. */
.tile {
  position: relative; display: block; height: 156px; border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-card); background: var(--to-accent-soft);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 34, 51, 0) 34%, rgba(26, 34, 51, 0.74)); }
.tile__icon {
  position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; font-size: 1.1rem;
}
.tile__label { position: absolute; left: 14px; bottom: 12px; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.tile__meta { position: absolute; right: 14px; bottom: 14px; color: rgba(255, 255, 255, 0.92); font-weight: 700; font-size: 0.8rem; }

/* ── Pagination ───────────────────────────────────────────────────────────*/
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.75rem; }
.pagination__status { color: var(--to-ink-3); font-weight: 600; }

/* ── Hotel detail ─────────────────────────────────────────────────────────*/
.breadcrumbs { color: var(--to-ink-3); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--to-ink-3); }
.breadcrumbs a:hover { color: var(--to-primary); }
.hotel__header { margin-bottom: 1.5rem; }
.hotel__title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 0.4rem; color: var(--to-ink); }
.hotel__stars { margin: 0 0 0.25rem; }
.prose { max-width: 68ch; color: var(--to-ink-2); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 0; }
.facts > div {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--to-surface); border-radius: var(--radius); padding: 0.85rem 1rem;
}
.facts dt { color: var(--to-ink-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.facts dd { margin: 0.15rem 0 0; font-weight: 800; color: var(--to-ink); }

/* Quick-fact tile (detail page). */
.quick-fact {
  flex: 1; min-width: 150px; display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 0.95rem; background: var(--to-surface); border-radius: var(--radius);
}
.quick-fact__icon { font-size: 1.25rem; line-height: 1; }
.quick-fact__label { font-weight: 800; font-size: 0.82rem; color: var(--to-ink); }
.quick-fact__meta { font-size: 0.72rem; font-weight: 600; color: var(--to-ink-3); }

/* Detail-page section rhythm + shared headings (Phase 3 model-driven sections). */
.hotel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; color: var(--to-ink-3); font-weight: 600; }
.hotel__section { padding-block: 1.6rem; border-top: 1px solid var(--to-border); margin-top: 1.6rem; }
.hotel__section:first-of-type { border-top: 0; margin-top: 0; }
.hotel__section-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 0.4rem; color: var(--to-ink); }
.hotel__section-lead { color: var(--to-ink-3); font-weight: 600; margin: 0 0 1.1rem; max-width: 60ch; }

/* Summary card — rating + highlight chips + price-free operator CTA. */
.summary-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  background: var(--to-surface); border-radius: var(--radius-card); padding: 1.1rem 1.35rem; margin-bottom: 0.5rem;
}
.summary-card__main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; min-width: 0; }
.summary-card__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }

/* Quick-fact rows. */
.quick-facts { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Facilities grouped by category (and reused for nearby POIs). */
.facility-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem 2rem; }
.facility-group__title { font-size: 0.95rem; margin: 0 0 0.6rem; color: var(--to-ink); display: flex; align-items: center; gap: 0.4rem; }
.facility-group__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.facility-group__list li { color: var(--to-ink-2); font-weight: 600; font-size: 0.9rem; display: flex; align-items: baseline; gap: 0.45rem; }
.facility-group__icon { font-size: 0.95rem; }
.facility-group__meta { color: var(--to-ink-3); font-weight: 600; font-size: 0.8rem; }

/* Guest reviews — overall + per-category bars + trip-type mix. */
.reviews { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 1.25rem 2rem; align-items: start; }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }
.reviews__source { color: var(--to-ink-3); font-weight: 600; font-size: 0.85rem; margin: 0.6rem 0 0; }
.rating-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.rating-bar { display: grid; grid-template-columns: 7.5rem 1fr 2.2rem; align-items: center; gap: 0.7rem; }
.rating-bar__label { font-weight: 700; font-size: 0.82rem; color: var(--to-ink-2); }
.rating-bar__track { height: 8px; border-radius: var(--radius-pill); background: var(--to-surface); overflow: hidden; }
.rating-bar__fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--to-primary); }
.rating-bar__score { font-weight: 800; font-size: 0.82rem; color: var(--to-ink); text-align: right; }
.reviews__trips { margin: 1.1rem 0 0; color: var(--to-ink-3); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.trip-chip { background: var(--to-accent-soft); color: var(--to-accent-ink); border-radius: var(--radius-pill); padding: 0.25rem 0.65rem; font-size: 0.78rem; font-weight: 700; }

/* Airport cards. */
.airport-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; }
.airport-card { display: flex; flex-direction: column; gap: 0.15rem; background: var(--to-surface); border-radius: var(--radius); padding: 0.85rem 1rem; }
.airport-card__iata { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--to-primary); }
.airport-card__name { font-weight: 800; font-size: 0.88rem; color: var(--to-ink); }
.airport-card__meta { font-weight: 600; font-size: 0.78rem; color: var(--to-ink-3); }

/* Operator rows (price-free). */
.operator-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.operator-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; background: var(--to-surface); border-radius: var(--radius); padding: 0.75rem 1rem; }
.operator-row__name { font-weight: 800; color: var(--to-ink); }
/* Stacked variant for the narrow operator column beside the gallery: name on
   its own line, full-width click-through button below it. */
.operator-rows--stacked .operator-row { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.operator-rows--stacked .operator-row .btn { width: 100%; justify-content: center; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }

/* ── Climate chart (inline SVG; theme-aware via tokens) ─────────────────────*/
.climate-stats { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1rem; }
.climate-chart { margin: 0; position: relative; }
.climate-chart__svg { width: 100%; height: auto; display: block; }
.cc-grid { stroke: var(--to-border); stroke-width: 1; }
.cc-axis { fill: var(--to-ink-3); font-size: 11px; font-weight: 600; }
.cc-axis--rain { font-size: 12px; }
.cc-month { font-size: 12px; font-weight: 700; fill: var(--to-ink-2); }
.cc-bar { fill: var(--to-primary); opacity: 0.22; }
.cc-avg-line { fill: none; stroke: var(--to-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cc-avg-dot { fill: var(--to-primary); stroke: var(--to-canvas); stroke-width: 1.5; }
.cc-peak { fill: var(--to-ink); font-size: 11px; font-weight: 800; }
.cc-rain { fill: var(--to-ink-3); opacity: 0.45; }
.climate-chart__key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.6rem 0 0; padding: 0; }
.cc-key { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--to-ink-2); }
.cc-key__swatch { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.cc-key--range .cc-key__swatch { background: var(--to-primary); opacity: 0.3; }
.cc-key--avg .cc-key__swatch { background: var(--to-primary); height: 3px; }
.cc-key--rain .cc-key__swatch { background: var(--to-ink-3); opacity: 0.5; }
.climate-chart__caption { color: var(--to-ink-3); font-size: 0.78rem; font-weight: 600; margin: 0.5rem 0 0; }

/* Climate chart — interactivity (Alpine `climateChart`). All hidden with JS off. */
[x-cloak] { display: none !important; }
.cc-hit { fill: transparent; cursor: pointer; outline: none; }
.cc-hit:focus-visible { fill: var(--to-primary); fill-opacity: 0.08; }
.cc-hover-rule { stroke: var(--to-primary); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: 0.6; pointer-events: none; }
.cc-hover-dot { fill: var(--to-primary); stroke: var(--to-canvas); stroke-width: 2; pointer-events: none; }
.cc-month.is-active { fill: var(--to-primary); }
.cc-tooltip {
  position: absolute; top: 0.25rem; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.45rem 0.6rem; min-width: 8.5rem;
  background: var(--to-surface); color: var(--to-ink);
  border: 1px solid var(--to-border); border-radius: 12px;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(0, 0, 0, 0.14));
  font-size: 0.76rem; font-weight: 600; line-height: 1.35;
  pointer-events: none; z-index: 3; white-space: nowrap;
}
.cc-tooltip__month { font-family: var(--font-display, inherit); font-weight: 700; font-size: 0.82rem; margin-bottom: 0.1rem; }
.cc-tooltip__row { color: var(--to-ink-2); }
.cc-tooltip__row strong { color: var(--to-ink); font-weight: 800; }

/* ── Hotel showcase: gallery + operator column ─────────────────────────────*/
/* Default (no operators): a single, deliberately smaller gallery — not the old
   full-bleed image — capped so it reads as a compact hero. */
.hotel-showcase { display: grid; gap: 1.5rem; align-items: start; margin: 0 0 2rem; }
.hotel-showcase__media { min-width: 0; max-width: 760px; }

/* With operators: two columns — a compact Splide gallery and, beside it, the
   list of tour operators that feature this hotel. Stacks on narrow screens. */
.hotel-showcase--with-operators { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.hotel-showcase--with-operators .hotel-showcase__media { max-width: none; }

/* Operator column. */
.hotel-showcase__operators {
  background: var(--to-canvas); border: 1px solid var(--to-border);
  border-radius: var(--radius-card); padding: 1.25rem; box-shadow: var(--shadow-sm);
  position: sticky; top: 84px;
}
.hotel-showcase__operators-title { font-size: 1.15rem; margin: 0 0 0.35rem; }
.hotel-showcase__operators-lead { color: var(--to-ink-3); font-weight: 600; font-size: 0.85rem; margin: 0 0 1rem; }

/* Keep the operator column beside the gallery for tablet/laptop widths (incl.
   split editor windows); only stack to a single column on genuinely narrow
   phone screens. 640px matches the thumbnail slider's own breakpoint. */
@media (max-width: 640px) {
  .hotel-showcase--with-operators { grid-template-columns: 1fr; }
  .hotel-showcase__operators { position: static; }
}

/* ── Splide gallery theme (hotel detail) ──────────────────────────────────*/
/* Main carousel: a fixed 3:2 frame; images cover it. */
.hotel-splide { border-radius: var(--radius-card); overflow: hidden; background: var(--to-accent-soft); }
.hotel-splide .splide__slide { aspect-ratio: 3 / 2; }
.hotel-splide .splide__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No-JS fallback: before Splide mounts (`is-initialized`), show only the first
   slide so the page isn't a tall stack of full-size images. With JS off the
   list simply scrolls — every image keeps a real `src`, so it stays crawlable. */
.hotel-splide:not(.is-initialized) .splide__list { display: block; }
.hotel-splide:not(.is-initialized) .splide__slide:not(:first-child) { display: none; }

/* Brand-styled prev/next arrows. We ship Splide's *core* CSS only, which has no
   arrow theme at all — so we must position them ourselves (absolute, vertically
   centred over the frame). Without this they render in normal flow as a row of
   bordered native buttons above the image. `.splide` (the root) is
   `position: relative` in the core CSS, so the arrows anchor to the frame. */
.hotel-splide .splide__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  border: 0; padding: 0; cursor: pointer; appearance: none;
  background: rgba(26, 34, 51, 0.45); width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85; backdrop-filter: blur(2px); transition: background 0.15s ease, opacity 0.15s ease;
}
.hotel-splide .splide__arrow:hover:not(:disabled) { background: var(--to-primary); opacity: 1; }
.hotel-splide .splide__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; opacity: 1; }
.hotel-splide .splide__arrow svg { fill: #fff; width: 1.1rem; height: 1.1rem; }
/* Core CSS ships one arrow glyph; the theme normally mirrors the "prev" one. */
.hotel-splide .splide__arrow--prev { left: 0.75rem; }
.hotel-splide .splide__arrow--prev svg { transform: scaleX(-1); }
.hotel-splide .splide__arrow--next { right: 0.75rem; }

/* Thumbnail slider row beneath the main image. */
.hotel-splide-thumbs { margin-top: 0.75rem; }
.hotel-splide-thumbs .splide__slide {
  border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; opacity: 0.65; transition: opacity 0.15s ease, border-color 0.15s ease;
}
.hotel-splide-thumbs .splide__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hotel-splide-thumbs .splide__slide:hover { opacity: 0.9; }
.hotel-splide-thumbs .splide__slide.is-active { border-color: var(--to-primary); opacity: 1; }
/* No-JS fallback for the thumbnail row: a plain horizontal scroll strip. */
.hotel-splide-thumbs:not(.is-initialized) .splide__list { display: flex; gap: 0.5rem; overflow-x: auto; }
.hotel-splide-thumbs:not(.is-initialized) .splide__slide { flex: 0 0 100px; height: 68px; }

/* ── Gallery lightbox (click to enlarge) ──────────────────────────────────*/
/* An "expand" affordance over the main frame, plus a full-screen viewer. Both
   are added by JS (app.js) — with no JS there is nothing to enlarge into, so the
   button never appears. The main image is also click-to-open (JS sets cursor). */
.hotel-splide.is-initialized .splide__slide img { cursor: zoom-in; }
.hotel-splide__expand {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 3;
  border: 0; padding: 0; cursor: zoom-in; appearance: none;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-pill);
  background: rgba(26, 34, 51, 0.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85; transition: background 0.15s ease, opacity 0.15s ease;
}
.hotel-splide__expand:hover { background: var(--to-primary); opacity: 1; }
.hotel-splide__expand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; opacity: 1; }
.hotel-splide__expand svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Full-screen viewer. Hidden until JS toggles `is-open`. */
.hotel-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(9, 12, 20, 0.92); padding: clamp(1rem, 4vw, 3rem);
}
.hotel-lightbox.is-open { display: flex; }
.hotel-lightbox__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.hotel-lightbox__btn {
  position: absolute; z-index: 2; border: 0; cursor: pointer; appearance: none;
  width: 3rem; height: 3rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.hotel-lightbox__btn:hover { background: rgba(255, 255, 255, 0.28); }
.hotel-lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hotel-lightbox__btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hotel-lightbox__close { top: 1rem; right: 1rem; }
.hotel-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.hotel-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .hotel-lightbox__prev { left: 0.5rem; }
  .hotel-lightbox__next { right: 0.5rem; }
}

/* ── Status / error pages ─────────────────────────────────────────────────*/
.status-page { text-align: center; padding-block: 4.5rem; }
.status-page__code { font-family: var(--font-display); font-size: clamp(3.5rem, 12vw, 6.5rem); font-weight: 700; color: var(--to-primary); margin: 0; line-height: 1; }
.status-page__title { margin: 0.5rem 0 0.75rem; }
.status-page__lede { color: var(--to-ink-3); font-weight: 600; margin: 0 0 1.75rem; }
.status-page__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────────────────────
   Dark multi-column footer (mock-up §footer): brand + blurb beside link
   columns on the ink surface, light 300-weight links, and a hairline legal
   bar. Overrides the canvas background set for the frame further up. */
.site-footer {
  /* Fixed dark, not `var(--to-ink)`: the ink token inverts to a light colour in
     dark mode, which would flip the footer light with white-on-white text. The
     footer is always dark, in both themes, like the mock-up. */
  background: #1a2233; color: rgba(255, 255, 255, 0.85);
  border-top: 0; margin-top: 3rem;
}
.site-footer__cols {
  display: flex; flex-wrap: wrap; gap: 2.5rem 5rem; padding-block: 2.75rem 2rem;
}
.site-footer__about { max-width: 320px; }
.site-footer__brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff;
}
.site-footer__logo {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 13px; background: var(--to-primary); color: #fff; font-size: 1.25rem;
}
.site-footer__blurb {
  margin: 0.75rem 0 0; font-size: 0.9rem; font-weight: 300; line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer__group { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__heading {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5); margin: 0 0 0.15rem;
}
.site-footer a {
  font-size: 0.9rem; font-weight: 300; color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}
.site-footer a:hover { color: #fff; }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.25rem; margin: 0;
  font-size: 0.82rem; font-weight: 300; color: rgba(255, 255, 255, 0.6);
}

/* ── Section tints (home page rhythm) ─────────────────────────────────────*/
.section--tint { background: var(--to-surface); }
.section--tight { padding-block: 1.35rem; }

/* ── Hero: holiday-type quick tabs + search bar ───────────────────────────*/
.hero__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.hero__tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--to-canvas); color: var(--to-ink); font-weight: 800; font-size: 0.9rem;
  padding: 0.55rem 1rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  border: 1px solid var(--to-border);
}
.hero__tab:hover { color: var(--to-primary); border-color: var(--to-primary); }

.search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--to-canvas); border: 1px solid var(--to-border);
  border-radius: var(--radius-pill); padding: 0.4rem 0.4rem 0.4rem 1rem;
  box-shadow: var(--shadow-card); max-width: 640px;
}
.search-bar__icon { font-size: 1rem; opacity: 0.7; }
.search-bar__input {
  flex: 1; min-width: 0; border: none; background: transparent; color: var(--to-ink);
  font-family: var(--font-sans); font-size: 1rem; padding: 0.5rem 0.25rem;
}
.search-bar__input:focus { outline: none; }
.search-bar__submit { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 520px) {
  .search-bar { flex-wrap: wrap; border-radius: var(--radius); padding: 0.75rem; }
  .search-bar__input { flex-basis: 100%; }
  .search-bar__submit { width: 100%; }
}

/* ── Tile grids (holiday types, countries, resorts) ───────────────────────*/
.tile-grid { display: grid; gap: 1rem; }
.tile-grid--6 { grid-template-columns: repeat(6, 1fr); }
.tile-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .tile-grid--6 { grid-template-columns: repeat(3, 1fr); } .tile-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tile-grid--6, .tile-grid--4 { grid-template-columns: repeat(2, 1fr); } }

.tile img { position: absolute; inset: 0; }
.tile--tall { height: 220px; }
.tile__label { max-width: calc(100% - 28px); }
.tile__meta { left: 14px; right: auto; bottom: 14px; }
/* Name and meta are both anchored bottom-left; when a tile has a meta line,
   lift the name clear of it so the two don't render stacked on top of each
   other (the overlapping "Beach"/"23 hotels" doubling). */
.tile:has(.tile__meta) .tile__label { bottom: 36px; }
.tile--tall .tile__label { bottom: 40px; font-size: 1.4rem; }
/* When a tile has no image, the soft-pink background + gradient still reads. */

/* ── Card rating chip (guest rating overlay) ──────────────────────────────*/
.card__media { position: relative; }
.card__rating {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1;
  background: var(--to-primary); color: var(--to-primary-ink);
  border-radius: 13px; padding: 0.35rem 0.55rem; box-shadow: var(--shadow-sm);
}

/* 3-up card grid for the popular-hotels section. */
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr; } }

/* ── Active filter chips (results page) ───────────────────────────────────*/
.filter-chips { margin-bottom: 1.5rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--to-accent-soft); color: var(--to-accent-ink);
  border-radius: var(--radius-pill); padding: 0.4rem 0.85rem; font-weight: 700; font-size: 0.85rem;
}
.filter-chip:hover { color: var(--to-accent-ink); filter: brightness(0.98); }
.filter-chip__x { font-size: 0.7rem; opacity: 0.8; }

/* ── Results page (Phase 4) ───────────────────────────────────────────────
   Two-column: a sticky filter sidebar + rich result rows. Mobile-first — the
   sidebar collapses behind a toggle; the grid goes single-column. */
.results-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem;
  flex-wrap: wrap; margin-bottom: 1.25rem;
}
.results-summary .filter-chips { margin-bottom: 0; }
.results-summary__clear { font-weight: 700; font-size: 0.85rem; color: var(--to-primary); white-space: nowrap; }

.results-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 901px) { .results-layout { grid-template-columns: 288px minmax(0, 1fr); gap: 1.75rem; } }

/* Sidebar */
.results-filters__toggle {
  width: 100%; font-family: var(--font-sans); font-weight: 800; font-size: 0.95rem;
  color: var(--to-primary-ink); background: var(--to-primary); border: none;
  border-radius: var(--radius); padding: 0.85rem; margin-bottom: 0.9rem; cursor: pointer;
}
@media (min-width: 901px) { .results-filters__toggle { display: none; } }

.results-filters__panel {
  display: none;
  background: var(--to-canvas); border: 1px solid var(--to-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: 0.35rem 1.35rem 1.35rem;
}
.results-filters__panel.is-open { display: block; }
@media (min-width: 901px) {
  .results-filters__panel { display: block; position: sticky; top: 84px; }
}
.results-filters__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0 0.25rem;
}
.results-filters__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0; color: var(--to-ink); }
.results-filters__clear { font-weight: 700; font-size: 0.8rem; color: var(--to-primary); }
.results-filters__apply { margin-top: 1rem; }

/* Filter group (partial) */
.filter-group { border: 0; margin: 0; padding: 1rem 0 0.25rem; border-top: 1px solid var(--to-border); }
.filter-group__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--to-ink); padding: 0; margin-bottom: 0.5rem;
}
.filter-option {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.3rem 0; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--to-ink-2);
}
.filter-option input { width: 18px; height: 18px; accent-color: var(--to-primary); cursor: pointer; flex: 0 0 auto; }
.filter-option__label { flex: 1; min-width: 0; }
.filter-option__stars { color: var(--to-star); letter-spacing: 0.05em; }
.filter-option__count { color: var(--to-ink-3); font-size: 0.82rem; font-weight: 700; }

/* Results column */
.results-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 1.4rem;
}
.results-toolbar__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 1.9rem); letter-spacing: -0.01em; margin: 0; color: var(--to-ink); }
.results-toolbar__meta { margin: 0.4rem 0 0; font-size: 0.95rem; font-weight: 600; color: var(--to-ink-2); }
.results-sort { display: inline-flex; align-items: center; gap: 0.6rem; }
.results-sort__label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--to-ink-3); }
.results-sort__select {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.9rem; color: var(--to-ink);
  padding: 0.65rem 2.2rem 0.65rem 1rem; border-radius: var(--radius-sm);
  border: 2px solid var(--to-border); background: var(--to-canvas); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--to-ink-3) 50%), linear-gradient(135deg, var(--to-ink-3) 50%, transparent 50%);
  background-position: right 1rem center, right 0.75rem center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  -webkit-appearance: none; appearance: none;
}
.results-sort__select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Rich rows */
.hotel-rows { display: flex; flex-direction: column; gap: 1.15rem; }
.hotel-row {
  display: grid; grid-template-columns: 1fr; background: var(--to-canvas);
  border: 1px solid var(--to-border); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hotel-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); color: inherit; }
@media (min-width: 620px) { .hotel-row { grid-template-columns: 40% minmax(0, 1fr); } }
.hotel-row__media { position: relative; background: var(--to-accent-soft); min-height: 200px; }
.hotel-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hotel-row__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: var(--to-primary); opacity: 0.5; }
.hotel-row__body { padding: 1.25rem 1.4rem 1.15rem; display: flex; flex-direction: column; min-width: 0; }
.hotel-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.hotel-row__headings { min-width: 0; }
.hotel-row__eyebrow { margin: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--to-primary); }
.hotel-row__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--to-ink); margin: 0.2rem 0 0; }
.hotel-row__stars { display: flex; align-items: center; gap: 0.5rem; margin: 0.35rem 0 0; }
.hotel-row__starnote { font-size: 0.82rem; font-weight: 700; color: var(--to-ink-3); }
.hotel-row__rating { display: flex; align-items: center; gap: 0.55rem; flex: 0 0 auto; }
.hotel-row__rating-label { font-weight: 800; font-size: 0.82rem; color: var(--to-ink); text-align: right; }
.hotel-row__rating-score {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1;
  background: var(--to-primary); color: var(--to-primary-ink);
  border-radius: 13px; padding: 0.45rem 0.6rem;
}
.hotel-row__pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.hotel-row__foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.hotel-row__ops { background: var(--to-accent-soft); color: var(--to-accent-ink); font-weight: 800; font-size: 0.78rem; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); }
.hotel-row__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--to-primary); color: var(--to-primary-ink); font-weight: 800; font-size: 0.9rem; padding: 0.6rem 1.1rem; border-radius: var(--radius); white-space: nowrap; }
.hotel-row:hover .hotel-row__cta { filter: brightness(1.05); }

/* ── Search results ───────────────────────────────────────────────────────*/
.search-page__head { margin-bottom: 1.75rem; }
.search-page__title { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.01em; color: var(--to-ink); margin: 0 0 1rem; }
.search-page__head .search-bar { max-width: 640px; }
.search-page__count { color: var(--to-ink-3); font-weight: 600; margin: 0 0 1.25rem; }

.search-results { display: flex; flex-direction: column; gap: 1rem; }
.search-result {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 1.1rem;
  background: var(--to-canvas); border: 1px solid var(--to-border); border-radius: var(--radius-card);
  padding: 0.85rem 1.1rem; box-shadow: var(--shadow-card); text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.search-result:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); color: inherit; }
@media (min-width: 620px) { .search-result { grid-template-columns: 140px minmax(0, 1fr) auto; } }
.search-result__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--to-accent-soft); }
.search-result__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.search-result__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; opacity: 0.6; }
.search-result__body { min-width: 0; }
.search-result__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; color: var(--to-ink-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.search-result__crumb-sep { color: var(--to-ink-3); opacity: 0.7; }
.search-result__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--to-ink); margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.search-result__type { font-family: var(--font-body); font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.5rem; border-radius: var(--radius-pill); background: var(--to-accent-soft); color: var(--to-accent-ink); }
.search-result__type[data-type="destination"] { background: var(--to-surface); color: var(--to-ink-2); }
.search-result__stars { color: var(--to-star); font-size: 0.9rem; letter-spacing: 0.05em; }
.search-result__snippet { margin: 0.4rem 0 0; color: var(--to-ink-2); font-size: 0.92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result__cta { color: var(--to-primary); font-size: 1.2rem; font-weight: 800; padding: 0 0.4rem; }

/* ── Reduced motion ───────────────────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card:hover, .tile:hover, .btn:hover, .hotel-row:hover, .search-result:hover { transform: none; }
}

/* ── Place tiles (country/region child index on hierarchy pages) ───────────*/
.place-tile {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem 1.15rem; border-radius: 16px;
  background: var(--to-accent-soft, #f4f4f8);
  color: inherit; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, border-color .15s ease;
}
.place-tile:hover { transform: translateY(-2px); border-color: var(--to-primary, #ff2e63); }
.place-tile__name { font-weight: 600; }
.place-tile__count { font-size: .85rem; color: var(--to-ink-3, #6b7280); }
.breadcrumbs__sep { margin: 0 .35rem; color: var(--to-ink-3, #9ca3af); }
