/* =========================================================
   StayFritz — Global public site design system
   Faithfully ported from Claude Code design handoff.
   Use this for /v2/ global pages only.
   ========================================================= */

/* ---------- Google Fonts ---------- */
/* Loaded non-blocking via <link rel="preload"> in base.html — do NOT re-add @import here. */

:root {
  --ink:      #1A1814;
  --ink-2:    #3A342A;
  --ink-3:    #6B6458;
  --paper:    #FAF7F1;
  --cream:    #F5EFE4;
  --cream-2:  #ECE3D1;
  --forest:   #2C3A2F;
  --forest-2: #475A49;
  --loden:    #5E6B4E;
  --amber:    #B8822F;
  --rust:     #9E4A2B;
  --line:     rgba(26, 24, 20, 0.12);
  --line-2:   rgba(26, 24, 20, 0.06);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:  "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  --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;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-variant-ligatures: common-ligatures;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 400;
}
.body-sm { font-size: 14px; color: var(--ink-2); }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

section { padding: var(--s-9) 0; position: relative; }
section + section { border-top: 1px solid var(--line-2); }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 14px var(--s-6);
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  overflow: hidden;
}
.crumbs .sep { margin: 0 4px; color: var(--line-2); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: background .3s ease, border-color .3s ease;
}

/* Hero-overlay state — topbar is fixed & transparent, floats over the image */
.topbar.over-hero {
  position: fixed;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
.topbar.over-hero .wordmark { color: var(--cream); }
.topbar.over-hero .wordmark small { color: rgba(245,239,228,0.55); }
.topbar.over-hero .nav a { color: rgba(245,239,228,0.88); }
.topbar.over-hero .nav a:hover { color: var(--cream); }
.topbar.over-hero .nav a.current::after { background: var(--cream); }
.topbar.over-hero .lang-pick { color: rgba(245,239,228,0.75); border-color: rgba(245,239,228,0.28); }
.topbar.over-hero .nav-burger span { background: var(--cream); }
.topbar.over-hero .nav-burger { border-color: rgba(245,239,228,0.28); }
/* Soft shadow keeps text legible over any hero image */
.topbar.over-hero .wordmark,
.topbar.over-hero .nav a,
.topbar.over-hero .lang-pick { text-shadow: 0 1px 6px rgba(26,24,20,0.55); }
/* Dropdown panels always show dark ink — override the cream over-hero colour */
.topbar.over-hero .nav-drop-panel a,
.topbar.over-hero .nav-drop-panel a:link,
.topbar.over-hero .nav-drop-panel a:visited { color: var(--ink-2) !important; text-shadow: none !important; }
.topbar.over-hero .nav-drop-panel a:hover { color: var(--ink) !important; background: var(--cream); }

/* Scrolled — revert to opaque paper background */
.topbar.over-hero.scrolled {
  background: rgba(250, 247, 241, 0.95);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.topbar.over-hero.scrolled .wordmark { color: var(--ink); }
.topbar.over-hero.scrolled .wordmark small { color: var(--ink-3); }
.topbar.over-hero.scrolled .nav a { color: var(--ink-2); }
.topbar.over-hero.scrolled .nav a:hover { color: var(--ink); }
.topbar.over-hero.scrolled .nav a.current::after { background: var(--ink); }
.topbar.over-hero.scrolled .lang-pick { color: var(--ink-3); border-color: var(--line); }
.topbar.over-hero.scrolled .nav-burger span { background: var(--ink); }
.topbar.over-hero.scrolled .nav-burger { border-color: var(--line); }
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px var(--s-6);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wordmark small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav {
  display: flex;
  gap: var(--s-6);
  justify-content: center;
  align-items: center;
}
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 0;
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--ink);
}
.topbar-actions {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.lang-pick {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

/* ---------- Nav dropdown menus ---------- */
.nav-dropdown { position: relative; }
.nav-drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px -8px rgba(26,24,20,0.18);
  padding: 8px 0;
  z-index: 200;
}
.nav-dropdown:hover .nav-drop-panel { display: block; }
.nav-drop-panel a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  border-radius: 0;
}
.nav-drop-panel a:hover { background: var(--cream); color: var(--ink); }

/* ---------- Mobile hamburger ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Mobile nav overlay ---------- */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26,24,20,0.45);
}
.nav-mobile-overlay.open { display: block; }
.nav-mobile {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100%;
  background: var(--paper);
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(26,24,20,0.18);
  display: flex;
  flex-direction: column;
}
.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.nav-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 8px;
}
.nav-mobile-section {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.nav-mobile a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: transform .15s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.block { width: 100%; justify-content: center; padding: 14px 18px; }
.btn.forest { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.btn.amber  { background: var(--amber);  border-color: var(--amber);  color: var(--paper); }
.btn.ghost  { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }

/* ---------- Crumbs ---------- */
.crumbs {
  padding: 14px var(--s-6);
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  align-items: center;
}
.crumbs span { color: var(--ink-3); }
.crumbs .sep { opacity: 0.4; }
.crumbs b { color: var(--ink); font-weight: 500; }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: end;
  margin-bottom: var(--s-7);
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
  margin: 12px 0 0;
  max-width: 16ch;
}
.section-head h2 em { font-style: italic; color: var(--forest); font-weight: 400; }
.section-head p {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Gallery strip (apartment detail) ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 4px;
  height: 444px;
  position: relative;
}
.gallery-strip .g { position: relative; overflow: hidden; background: var(--cream-2); }
.gallery-strip .g:nth-child(1) { grid-row: 1 / span 2; }
.gallery-strip .g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

/* ---------- Room/listing cards (shared) ---------- */
.rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.room-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  border-radius: 2px;
  transition: border-color .2s ease, transform .2s ease;
}
.room-card:hover { border-color: var(--ink); transform: translateY(-1px); }

/* Unit-count badge on grouped property cards */
.room-unit-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--forest); color: var(--cream);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.room-view-all {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--forest); text-transform: uppercase; margin-top: 4px;
}
.room-media {
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--cream-2);
  overflow: hidden;
}
.room-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-body { padding: var(--s-5); display: grid; gap: var(--s-3); }
.room-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.room-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
}
.room-price { text-align: right; font-family: var(--serif); }
.room-price .p { font-size: 22px; color: var(--ink); }
.room-price .p small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.room-meta { display: flex; gap: var(--s-4); flex-wrap: wrap; color: var(--ink-2); font-size: 13px; }
.room-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Unit chips — shown on multi-unit property cards in search results */
.unit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.unit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.unit-chip:hover {
  border-color: var(--forest);
  background: var(--paper);
  color: var(--forest);
}
.unit-chip-name { color: var(--ink-2); }
.unit-chip-price {
  font-weight: 600;
  color: var(--forest);
  font-size: 11px;
}
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  background: transparent;
}

/* ---------- Hero meta strip ---------- */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.hero-meta .item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hero-meta .v { font-size: 15px; color: var(--ink); }

/* ---------- Location / map ---------- */
.map-frame {
  aspect-ratio: 4 / 5;
  background: #d9dfd4;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-5); }
.review {
  border: 1px solid var(--line);
  padding: var(--s-5);
  background: var(--paper);
  display: grid;
  gap: var(--s-3);
  border-radius: 2px;
}
.review .stars { color: var(--amber); letter-spacing: 2px; font-size: 13px; }
.review p { font-family: var(--serif); font-size: 17px; line-height: 1.45; margin: 0; color: var(--ink); }
.review .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }

/* ---------- Detail body grid (apartment) ---------- */
.detail-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-8);
  align-items: start;
  padding-top: var(--s-6);
}
.detail-block { padding-bottom: var(--s-7); border-bottom: 1px solid var(--line-2); margin-bottom: var(--s-7); }
.detail-block:last-child { border-bottom: none; margin-bottom: 0; }
.detail-book { position: sticky; top: 80px; }

/* ---------- Book card ---------- */
.book-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  box-shadow: 0 1px 0 rgba(26,24,20,0.04), 0 20px 40px -24px rgba(26,24,20,0.25);
}
.book-price-row { display: flex; justify-content: space-between; align-items: flex-start; }
.book-price .p { font-family: var(--serif); font-size: 30px; color: var(--ink); }
.book-price .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.book-rating .stars { color: var(--amber); font-size: 12px; letter-spacing: 1px; }
.book-rating .k { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.book-fields { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.book-row { display: grid; grid-template-columns: 1fr 1fr; }
.book-row .book-field { border-right: 1px solid var(--line); }
.book-row .book-field:last-child { border-right: none; }
.book-field { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.book-field:last-child { border-bottom: none; }
.book-field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.book-field input, .book-field select { border: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 0; outline: none; width: 100%; }
.book-lines { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line-2); }
.book-lines .line { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.book-lines .line.total { font-weight: 600; color: var(--ink); font-size: 15px; padding-top: var(--s-2); border-top: 1px solid var(--line); }
.book-note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); text-align: center; }

/* ========================================================= */
/* SITE-SPECIFIC STYLES — homepage, destination, apartment   */
/* ========================================================= */

/* ---------- Homepage hero ---------- */
.sf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 200px;
  color: var(--cream);
  overflow: hidden;
}
.sf-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Dual-zone gradient: dark top band for nav readability, bright middle, dark bottom for hero text */
.sf-hero-grad {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(26,24,20,0.58) 0%,
    rgba(26,24,20,0.22) 28%,
    rgba(26,24,20,0.28) 45%,
    rgba(26,24,20,0.58) 62%,
    rgba(26,24,20,0.82) 80%,
    rgba(26,24,20,0.94) 100%
  );
}
.sf-hero-content { position: relative; z-index: 2; max-width: 980px; }
.sf-hero-h { font-size: clamp(56px, 8vw, 120px); line-height: 0.95; margin: 16px 0 24px; color: var(--cream); font-family: var(--serif); font-weight: 500; text-shadow: 0 2px 12px rgba(26,24,20,0.55), 0 1px 3px rgba(26,24,20,0.7); }
.sf-hero-sub { font-family: var(--serif); font-size: 22px; max-width: 56ch; color: rgba(245,239,228,0.92); line-height: 1.4; margin: 0; text-shadow: 0 2px 14px rgba(26,24,20,0.7), 0 1px 4px rgba(26,24,20,0.55); }

/* Hero search panel */
.sf-search {
  position: absolute; left: 56px; right: 56px; bottom: 56px; z-index: 3;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 0;
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}
.sf-search .sf-field { padding: 16px 20px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.sf-search .sf-field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.sf-search .sf-field input, .sf-search .sf-field select { border: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 0; outline: none; }
.sf-search .sf-btn { border-radius: 0; padding: 0 36px; font-size: 15px; border: none; background: var(--forest); color: var(--cream); font-weight: 500; cursor: pointer; }
.sf-search .sf-btn:hover { background: var(--ink); }

/* ===== Button loading state (global v2) ===== */
.btn-loading { position: relative; pointer-events: none !important; opacity: 0.85; cursor: progress; }
.btn-loading::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  margin-right: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: sf-btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes sf-btn-spin { to { transform: rotate(360deg); } }

/* ---------- Why / value props ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 40px; }
.why-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--amber); margin-bottom: 12px; }
.why-item h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.why-item p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Destinations grid ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dest-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.dest-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.dest-card.big { grid-column: span 2; grid-row: span 2; }
.dest-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.dest-card.big .dest-media { aspect-ratio: 16/13; }
.dest-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-overlay { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.dest-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dest-name { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0; }
.dest-card.big .dest-name { font-size: 36px; }
.dest-blurb { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.dest-card.big .dest-blurb { -webkit-line-clamp: 4; }
.dest-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.dest-arrow { font-family: var(--serif); font-size: 22px; color: var(--ink); }

/* ---------- Featured villas row ---------- */
.amen-wrap { background: var(--cream); padding: var(--s-8) 0; }
.amen-wrap .inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--s-6); }
.featured-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-card { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: transform .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.featured-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.featured-card > a { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.featured-media { position: relative; aspect-ratio: 4/3; overflow: hidden; flex-shrink: 0; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-kind { position: absolute; top: 12px; left: 12px; background: var(--paper); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; color: var(--ink-2); }
.featured-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.featured-body h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 4px 0 10px; }
.featured-meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.featured-note { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 15px; margin: 10px 0 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.featured-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.featured-arrow { font-family: var(--serif); font-size: 26px; color: var(--ink); }

/* ---------- Stories ---------- */
.stories { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.story { position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: 2px; }
.story.big { aspect-ratio: 16/10; }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story-body { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); background: linear-gradient(180deg, transparent 40%, rgba(26,24,20,0.8) 100%); }
.story-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 6px 0 6px; color: var(--cream); }
.story.big .story-body h3 { font-size: 36px; }
.story-body p { margin: 0; font-size: 13px; color: rgba(245,239,228,0.85); }
.story-body .caption { color: rgba(245,239,228,0.6); }

/* ---------- Host CTA ---------- */
.host-cta { background: var(--forest); color: var(--cream); padding: 56px 64px; border-radius: 2px; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: center; }
.host-cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.1; margin: 12px 0 12px; color: var(--cream); }
.host-cta h2 em { font-style: italic; }
.host-cta-actions { display: flex; flex-direction: column; gap: 10px; }
.host-cta .btn.ghost { color: var(--cream); border-color: rgba(245,239,228,0.3); }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; margin: 8px 0 0; max-width: 24ch; }
.news-form { display: flex; gap: 8px; }
.news-form input { flex: 1; border: 1px solid var(--line); padding: 12px 16px; font: inherit; font-size: 15px; background: var(--paper); border-radius: var(--r-sm); outline: none; }
.news-form input:focus { border-color: var(--ink); }

/* ---------- Site footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(245, 239, 228, 0.7);
  margin: 0 calc(50% - 50vw);
  padding: var(--s-8) 0 var(--s-6);
  font-size: 13px;
}
footer.site .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
footer.site h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,239,228,0.5); margin: 0 0 var(--s-4); font-weight: 500; }
footer.site a { display: block; padding: 4px 0; color: rgba(245,239,228,0.8); }
footer.site a:hover { color: var(--cream); }
footer.site .fine { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid rgba(245,239,228,0.12); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,239,228,0.4); }
footer.site p { margin: 0 0 8px; line-height: 1.7; }

/* ---------- Destination page ---------- */
.dest-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; padding: var(--s-5) 0; }
.dest-hero-media { aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; }
.dest-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.dest-stats > div { display: flex; flex-direction: column; gap: 4px; }
.dest-stats b { font-family: var(--serif); font-size: 32px; color: var(--ink); font-weight: 500; }
.dest-stats span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Inline searchbar (destination page) */
.searchbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px -4px rgba(26,24,20,0.12);
  margin: var(--s-5) 0 var(--s-7);
}
.searchbar .sf-field { padding: 14px 20px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.searchbar .sf-field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.searchbar .sf-field input, .searchbar .sf-field select { border: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); padding: 0; outline: none; }
.searchbar .sf-btn { border-radius: 0; padding: 0 32px; font-size: 14px; font-weight: 500; background: var(--forest); color: var(--cream); border: none; cursor: pointer; }
.searchbar .sf-btn:hover { background: var(--ink); }

.dest-map-block { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.dest-map { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; aspect-ratio: 6/4.2; }
.dest-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.dest-things { display: flex; flex-direction: column; gap: 24px; }
.things-block ul { margin: 0; padding-left: 20px; font-family: var(--serif); font-size: 17px; color: var(--ink-2); line-height: 1.8; }
.things-block li { padding: 2px 0; }

/* Listing tabs (by property type) */
.listing-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.listing-tabs .tab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-2); display: flex; gap: 8px; align-items: center; cursor: pointer; }
.listing-tabs .tab.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.listing-tabs .tab b { font-weight: 500; opacity: 0.7; }

/* Listing grid (3 columns) */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; transition: border-color .2s ease; display: flex; flex-direction: column; }
.listing-card:hover { border-color: var(--ink); }
.listing-media { position: relative; aspect-ratio: 4/3; overflow: hidden; flex-shrink: 0; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-kind { position: absolute; top: 12px; left: 12px; background: var(--paper); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; color: var(--ink-2); }
.listing-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.listing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.listing-top h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 4px 0 0; line-height: 1.15; }
.listing-rating { text-align: right; flex-shrink: 0; }
.listing-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.listing-see-all { text-align: center; margin-top: 32px; }

/* Travel guide */
.guide-block { display: grid; grid-template-columns: 280px 1fr; gap: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.guide-side { position: sticky; top: 80px; align-self: start; }
.guide-nav { display: flex; flex-direction: column; gap: 8px; padding-left: 0; border-left: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.guide-nav a { padding: 6px 16px; font-family: var(--serif); font-size: 16px; color: var(--ink-2); display: block; }
.guide-nav a:hover { color: var(--ink); border-left: 2px solid var(--forest); margin-left: -1px; }
.guide-body h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 32px 0 12px; }
.guide-body h3:first-child { margin-top: 0; }
.guide-body p { font-family: var(--serif); font-size: 18px; color: var(--ink-2); line-height: 1.6; max-width: 60ch; }

/* ---------- Apartment page ---------- */
.apt-hero { max-width: 1000px; }
.apt-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 520px; position: relative; }
.apt-gallery .apt-g { overflow: hidden; border-radius: 2px; background: var(--cream-2); cursor: pointer; }
.apt-gallery .apt-g.g1 { grid-column: 1; grid-row: 1 / span 2; }
.apt-gallery .apt-g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.apt-gallery .apt-g:hover img { transform: scale(1.03); }
.apt-gallery .gallery-cta { position: absolute; right: 16px; bottom: 16px; cursor: pointer; }

/* Gallery lightbox */
#gallery-lb { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
#gallery-lb[hidden] { display: none; }
#gallery-lb .lb-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 2px; display: block; user-select: none; }
#gallery-lb .lb-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 28px; line-height: 1; padding: 6px 10px; cursor: pointer; opacity: .8; transition: opacity .15s; }
#gallery-lb .lb-close:hover { opacity: 1; }
#gallery-lb .lb-prev, #gallery-lb .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 28px; line-height: 1; padding: 12px 18px; cursor: pointer; border-radius: 2px; transition: background .15s; }
#gallery-lb .lb-prev:hover, #gallery-lb .lb-next:hover { background: rgba(255,255,255,.22); }
#gallery-lb .lb-prev { left: 20px; }
#gallery-lb .lb-next { right: 20px; }
#gallery-lb .lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.65); font-size: 13px; font-family: var(--mono); letter-spacing: .04em; white-space: nowrap; }

/* Amenity category label */
.amenity-cat-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-family: var(--mono); margin: var(--s-4) 0 var(--s-2); }

/* House rules */
.apt-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apt-rule { padding: 20px 24px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.apt-rule:nth-child(3n) { border-right: none; }
.apt-rule:nth-last-child(-n+3) { border-bottom: none; }
.rule-v { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 6px 0 4px; }
.rule-sub { font-size: 12px; color: var(--ink-3); }

/* Host card */
.apt-host { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; padding: 56px; background: var(--cream); border-radius: 2px; }
.apt-host-portrait { aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; }
.apt-host-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apt-host-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.apt-host-meta > div { display: flex; flex-direction: column; gap: 4px; }
.apt-host-meta b { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 500; }
.apt-host-meta span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Amenities (apartment detail) */
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3) var(--s-5); }
.amenity-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; }
.amenity-row .check { color: var(--forest); flex-shrink: 0; }

/* ---------- Search results toolbar ---------- */
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}
.results-heading {
  font-size: 36px;
  margin: 6px 0 0;
}
.res-sort {
  flex-shrink: 0;
  padding-bottom: 2px;
}
.res-sort form {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.res-sort label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.res-sort select {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
}
.res-sort select:hover { border-color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-burger { display: flex; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .topbar-actions { gap: var(--s-2); justify-content: flex-end; }
  .topbar-actions .btn.forest { display: none; }

  .dest-grid, .featured-row, .listing-grid, .why-grid, .apt-rules { grid-template-columns: repeat(2, 1fr); }
  .stories { grid-template-columns: 1fr; }
  .dest-hero, .dest-map-block, .guide-block, .apt-host, .host-cta, .newsletter, .detail-body { grid-template-columns: 1fr; }
  .sf-search, .searchbar { grid-template-columns: 1fr 1fr; }
  footer.site .inner { grid-template-columns: 1fr 1fr; }
  .dest-stats { grid-template-columns: repeat(2, 1fr); }
  .apt-host-meta { grid-template-columns: repeat(2, 1fr); }
  .dest-card.big { grid-column: span 1; grid-row: span 1; }
  .dest-hero-copy { order: 2; }
  .dest-hero-media { order: 1; }
}
@media (max-width: 767px) {
  .results-toolbar { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
}

/* ---------- Mid-range gap: 641–767px (large phones / small tablets) ---------- */
@media (min-width: 641px) and (max-width: 767px) {
  /* Collapse 5-column search bars to a 2-col stack so fields aren't squished */
  .sf-search {
    position: relative !important;
    left: auto !important; right: auto !important; bottom: auto !important;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-lg);
    box-shadow: 0 4px 24px -8px rgba(0,0,0,0.2);
    margin-top: var(--s-5);
  }
  .sf-search .sf-btn { grid-column: 1 / -1; border-radius: 0; padding: 14px 20px; }
  .sf-hero {
    min-height: 100svh;
    padding: 0;
    justify-content: flex-end;
  }
  .sf-hero-content { padding: 32px 32px 24px; }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .sf-btn { grid-column: 1 / -1; padding: 14px 20px; }
  /* Section whitespace — 96px is generous at narrow widths */
  section { padding: var(--s-8) 0; }
  /* Destination hero: stack the media above the copy */
  .dest-hero { gap: 32px; }
  .dest-hero-media { max-height: 320px; }
  /* Guide block: sticky TOC doesn't work well collapsed */
  .guide-side { position: static; }
}

@media (max-width: 640px) {
  /* --- Topbar: hide long subtitle so wordmark stays single-line --- */
  .wordmark small { display: none; }

  /* --- Hero: take search form out of absolute flow so it stacks below copy --- */
  .sf-hero {
    min-height: 100svh;
    padding: 0;
    justify-content: flex-end;
  }
  .sf-hero-content { padding: 20px 20px 16px; min-height: 50svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .sf-hero-h { font-size: clamp(40px, 11vw, 72px); }
  .sf-hero-sub { font-size: 17px; }
  .sf-search {
    position: relative !important;
    left: auto !important; right: auto !important; bottom: auto !important;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.28);
    margin: 0;
  }
  .sf-search .sf-field { padding: 12px 16px; }
  .sf-search .sf-field:nth-child(1),
  .sf-search .sf-field:nth-child(4) { grid-column: 1 / -1; }
  .sf-search .sf-btn { grid-column: 1 / -1; padding: 16px 20px; }

  /* --- Section whitespace --- */
  section { padding: var(--s-7) 0; }

  /* --- Other layout adjustments --- */
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .sf-btn { padding: 14px 20px; }
  .dest-grid, .featured-row, .listing-grid, .rooms { grid-template-columns: 1fr; }
  .why-grid, .dest-stats { grid-template-columns: repeat(2, 1fr); }
  .stories { grid-template-columns: 1fr; }
  /* Destination page — mobile-safe apt gallery */
  .apt-gallery {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
  }
  .apt-gallery .apt-g { display: none; }
  .apt-gallery .apt-g.g1 { display: block; grid-column: 1; grid-row: 1; border-radius: 2px; }
  /* Sticky book card: remove sticky on mobile to avoid obscuring content */
  .detail-book { position: static; }
  /* Guide sidebar: remove sticky when stacked */
  .guide-side { position: static; }
  /* House rules: 2 columns at mobile is fine, but go 1-col very narrow */
  .apt-rules { grid-template-columns: 1fr 1fr; }
  .apt-rules .apt-rule { border-right: 1px solid var(--line-2) !important; }
  .apt-rules .apt-rule:nth-child(2n) { border-right: none !important; }
  /* Host card */
  .apt-host { padding: 32px 20px; gap: 24px; }
  .apt-host-meta { grid-template-columns: repeat(2, 1fr); }
  /* Host CTA */
  .host-cta { padding: 32px 24px; gap: 20px; grid-template-columns: 1fr; }
  /* Section headers */
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-5); }
  .section-head h2 { font-size: clamp(28px, 8vw, 40px); }
  /* Stats strip: 2-col on mobile */
  .dest-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .dest-stats b { font-size: 24px; }
  /* Nachfolge / content grids (2-col inline grids in templates) */
  footer.site .inner { grid-template-columns: 1fr; }
  .page { padding: 0 var(--s-4); }
  .crumbs { padding: 12px var(--s-4); font-size: 11px; }
  .newsletter { grid-template-columns: 1fr; gap: 20px; }
  .news-form { flex-direction: column; }
  /* Room title on cards */
  .room-title { font-size: 20px; }
  /* Results heading */
  .results-heading { font-size: 26px; }
  /* Listing type */
  .listing-top h3 { font-size: 18px; }
  /* Amenity grid: single column */
  .amenity-grid { grid-template-columns: 1fr; }
  /* Map frame: shorter on mobile */
  .map-frame { aspect-ratio: 4/3; }
  /* Dest hero copy padding */
  .dest-hero { padding: 0; gap: 24px; }
  .dest-hero-media { max-height: 260px; border-radius: 2px; }
}

/* =========================================================
   Story cards — link wrapper keeps same visual as article
   ========================================================= */
a.story { display: block; text-decoration: none; }
a.story:hover img { transform: scale(1.03); transition: transform 0.4s ease; }
a.story img { transition: transform 0.4s ease; }

/* =========================================================
   Story detail page
   ========================================================= */

/* Full-bleed hero */
.story-detail-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.story-detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-detail-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,24,20,0.15) 0%, rgba(26,24,20,0.72) 70%, rgba(26,24,20,0.88) 100%);
}
.story-detail-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 64px;
  color: var(--cream);
}
.story-detail-h1 {
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.02;
  color: var(--cream);
  margin: 8px 0 16px;
  max-width: 20ch;
}
.story-detail-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(245,239,228,0.85);
  margin: 0 0 20px;
  max-width: 52ch;
  line-height: 1.45;
}
.story-detail-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,239,228,0.55);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Reading layout */
.story-detail-page {
  padding-top: 64px;
  padding-bottom: 80px;
}
.story-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 72ch);
  justify-content: center;
}
.story-detail-body {
  min-width: 0;
}

/* Prose typography */
.story-prose h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  color: var(--ink);
  margin: 56px 0 16px;
  line-height: 1.15;
}
.story-prose h2:first-child { margin-top: 0; }
.story-prose h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--ink);
  margin: 40px 0 12px;
}
.story-prose p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.story-prose strong {
  color: var(--ink);
  font-weight: 600;
}
.story-prose ul, .story-prose ol {
  font-family: var(--serif);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 24px;
  padding-left: 28px;
}
.story-prose li { margin-bottom: 8px; }
.story-prose blockquote {
  border-left: 3px solid var(--amber);
  margin: 36px 0;
  padding: 2px 0 2px 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--ink-2);
  line-height: 1.5;
}
.story-prose a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-prose a:hover { color: var(--ink); }
.story-prose img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 32px 0;
}

/* FAQ accordion */
.story-faq {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.story-faq-heading {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--ink);
}
.story-faq-item {
  border-bottom: 1px solid var(--line-2);
}
.story-faq-q {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.story-faq-q::-webkit-details-marker { display: none; }
.story-faq-q::after {
  content: '+';
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ink-3);
  flex-shrink: 0;
}
details[open] .story-faq-q::after { content: '−'; }
.story-faq-a {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.65;
  padding: 0 0 20px;
}

/* =========================================================
   Stories index page
   ========================================================= */
.stories-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stories-index-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.stories-index-card:hover { border-color: var(--ink); }
.stories-index-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.stories-index-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.stories-index-card:hover .stories-index-media img { transform: scale(1.04); }
.stories-index-overlay {
  position: absolute;
  bottom: 12px;
  left: 16px;
}
.stories-index-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.stories-index-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 8px 0 12px;
  line-height: 1.2;
}
.stories-index-body p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
  margin: 0 0 16px;
  line-height: 1.5;
}
.stories-index-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.story-arrow {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}

@media (max-width: 1024px) {
  .stories-index-grid { grid-template-columns: repeat(2, 1fr); }
  .story-detail-hero { min-height: 60vh; }
}
@media (max-width: 640px) {
  .stories-index-grid { grid-template-columns: 1fr; }
  .story-detail-h1 { font-size: 36px; }
  .story-detail-hero { min-height: 55vh; }
}
