/* =========================================================
   Jivaros Friendrely — The Affordable Europe Edit
   Contemporary Budget Travel Editorial Design System
   ========================================================= */

:root {
  --terracotta: #A64B36;
  --terracotta-deep: #8C3D2B;
  --olive: #536746;
  --olive-deep: #415237;
  --gold: #D5A64A;
  --ivory: #F5EFE5;
  --cream: #FFFCF7;
  --ink: #292522;
  --muted: #8B8177;
  --muted-text: #6E655C;
  --line: rgba(41, 37, 34, .12);
  --line-strong: rgba(41, 37, 34, .24);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --shadow-sm: 0 2px 10px rgba(41, 37, 34, .06);
  --shadow-md: 0 18px 40px -18px rgba(41, 37, 34, .28);
  --shadow-lg: 0 40px 80px -30px rgba(41, 37, 34, .35), 0 14px 28px -14px rgba(41, 37, 34, .18);
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(213, 166, 74, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(83, 103, 70, .08), transparent 60%),
    var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
img.is-fallback { object-fit: cover; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1260px, 100% - 3rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .7rem 1rem; border-radius: 10px;
  text-decoration: none; transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--terracotta); }
h2 { font-size: clamp(2.2rem, 5vw, 4.3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p { margin: 0 0 1.1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1.2rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow--olive { color: var(--olive); }
.eyebrow--gold { color: var(--gold); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--muted-text); max-width: 56ch; }
.muted { color: var(--muted-text); }
.small { font-size: .86rem; }

/* ---------- Header (NON-STICKY) ---------- */
.site-header {
  position: relative; /* intentionally not fixed or sticky */
  z-index: 30;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 247, .55);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--terracotta), var(--terracotta-deep));
  color: var(--cream); font: italic 600 1.5rem/1 var(--serif);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), var(--shadow-sm);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
}
.brand-text { display: flex; flex-direction: column; font: 500 1.28rem/1.1 var(--serif); letter-spacing: -.01em; }
.brand-text small { font: 600 .62rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-text); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  position: relative; text-decoration: none;
  font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem 0;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--terracotta); }
.nav-cta {
  padding: .75rem 1.15rem !important; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav-cta:hover { background: var(--terracotta); transform: translateY(-2px); }

.nav-toggle {
  display: none; align-items: center; gap: .55rem;
  background: var(--cream); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
  font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.nav-toggle span { width: 18px; height: 10px; position: relative; display: inline-block; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease);
}
.nav-toggle span::before { top: 1px; }
.nav-toggle span::after { bottom: 1px; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.3rem; border-radius: 999px;
  font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terracotta); color: var(--cream); box-shadow: 0 10px 24px -12px rgba(166, 75, 54, .7); }
.btn--primary:hover { background: var(--terracotta-deep); box-shadow: 0 16px 30px -14px rgba(166, 75, 54, .8); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 252, 247, .6); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--olive { background: var(--olive); color: var(--cream); }
.btn--olive:hover { background: var(--olive-deep); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #c69638; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .5rem 1rem; background: rgba(255, 252, 247, .7);
  font: 500 .84rem/1.1 var(--sans); cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--cream); box-shadow: 0 8px 18px -10px rgba(83,103,70,.8); }
.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }

/* ---------- HERO: Affordable Europe Drift ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 8rem);
  min-height: min(940px, 96vh);
  display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--ivory) 0%, rgba(245,239,229,.96) 34%, rgba(245,239,229,.55) 54%, rgba(245,239,229,0) 72%);
}
.hero__collage { position: absolute; inset: 0; z-index: 1; }
.drift-layer { position: absolute; will-change: transform; }
.drift-card {
  margin: 0; background: var(--cream);
  padding: 10px 10px 38px; border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(var(--rot, 0deg));
  animation: drift var(--dur, 15s) ease-in-out infinite alternate;
  position: relative;
}
.drift-card img { width: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; border-radius: 2px; }
.drift-card figcaption {
  position: absolute; left: 14px; bottom: 10px;
  font: italic .82rem/1 var(--serif); color: var(--muted-text);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)); }
  100% { transform: translate3d(var(--dx, 12px), var(--dy, -20px), 0) rotate(calc(var(--rot, 0deg) + var(--dr, 2deg))); }
}
.layer-1 { top: 7%; right: 3%; width: clamp(220px, 25vw, 380px); }
.layer-2 { bottom: 5%; right: 21%; width: clamp(170px, 18vw, 280px); }
.layer-3 { top: 11%; right: 30%; width: clamp(130px, 13vw, 210px); }
.layer-4 { bottom: 12%; right: 1%; width: clamp(150px, 15vw, 240px); }
.layer-5 { top: 46%; right: 41%; width: clamp(110px, 10vw, 170px); }

.hero__inner { position: relative; z-index: 3; width: min(1260px, 100% - 3rem); margin-inline: auto; }
.hero__content { max-width: 660px; }
.hero h1 { font-size: clamp(3.1rem, 8.4vw, 7.4rem); line-height: .95; margin-bottom: 1.6rem; }
.mask-line { display: block; overflow: hidden; padding-bottom: .06em; }
.mask-line > span {
  display: inline-block; transform: translateY(108%);
  animation: maskUp 1.15s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 130ms + 150ms);
}
@keyframes maskUp { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.search-shell {
  margin-top: 2rem; display: flex; align-items: center; gap: .5rem;
  background: rgba(255, 252, 247, .92); border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem .45rem .45rem 1.3rem;
  box-shadow: var(--shadow-md); max-width: 580px;
  backdrop-filter: blur(10px);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.search-shell:focus-within { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(166, 75, 54, .12), var(--shadow-md); }
.search-shell svg { flex: none; color: var(--muted); }
.search-shell input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 400 1rem var(--sans); color: var(--ink); padding: .7rem .2rem;
}
.search-shell input::placeholder { color: var(--muted); }
.search-hints { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.search-hints > span { font: 600 .7rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-text); margin-right: .3rem; }
.search-status { margin-top: .8rem; font-size: .9rem; color: var(--olive); min-height: 1.4em; }

.budget-float {
  position: absolute; z-index: 4; right: clamp(1rem, 4vw, 4rem); bottom: clamp(1.5rem, 5vw, 3.5rem);
  width: min(300px, 80vw);
  background: rgba(255, 252, 247, .86); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 20px;
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow-lg);
  animation: drift 9s ease-in-out infinite alternate; --dx: 0px; --dy: -10px; --dr: 0deg;
}
.budget-float__label { font: 600 .66rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
.budget-float__value { font: 500 2rem/1.1 var(--serif); margin: .3rem 0; }
.budget-float__value small { font: 400 .9rem var(--sans); color: var(--muted-text); }
.budget-float p { font-size: .76rem; color: var(--muted-text); margin: 0; line-height: 1.45; }

.spin-badge {
  position: absolute; z-index: 4; left: clamp(52%, 50vw, 56%); top: clamp(1.5rem, 5vw, 3rem);
  width: 128px; height: 128px;
}
.spin-badge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.spin-badge__core {
  position: absolute; inset: 30px; border-radius: 50%;
  background: var(--terracotta); color: var(--cream);
  display: grid; place-items: center; text-align: center;
  font: italic 500 1rem/1.05 var(--serif); box-shadow: var(--shadow-md);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Decorative 3D-ish elements */
.float-ticket {
  position: absolute; z-index: 2; width: 170px; height: 74px;
  background: linear-gradient(135deg, var(--gold), #e7c27a);
  border-radius: 10px; color: var(--ink);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  padding: .7rem 1.2rem; box-shadow: var(--shadow-md);
  font: 600 .62rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  animation: drift 11s ease-in-out infinite alternate; --rot: -9deg; --dx: 8px; --dy: -14px;
}
.float-ticket strong { display: block; font: italic 500 1.2rem/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
.float-ticket--hero { bottom: 18%; right: 44%; }
.float-stamp {
  position: absolute; z-index: 2; width: 96px; height: 96px; border-radius: 50%;
  border: 2px dashed rgba(83, 103, 70, .65); color: var(--olive);
  display: grid; place-items: center; text-align: center;
  font: 700 .58rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  transform: rotate(14deg); background: rgba(255, 252, 247, .5);
}
.float-stamp--hero { top: 62%; right: 34%; }
.float-pin { position: absolute; z-index: 3; width: 44px; filter: drop-shadow(0 12px 10px rgba(41,37,34,.25)); animation: bob 5s ease-in-out infinite; }
.float-pin--hero { top: 9%; right: 23%; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .lede, .section--ink .muted { color: rgba(255, 252, 247, .7); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin: 0; }
.section-index { font: italic 400 clamp(4rem, 10vw, 8rem)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--line-strong); }

/* ---------- Destination Cards ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1.2rem, 2.5vw, 2.5rem); }
.featured-grid .dest-card { grid-column: span 6; }
.featured-grid .dest-card:nth-child(4n+1) { grid-column: 1 / span 7; }
.featured-grid .dest-card:nth-child(4n+2) { grid-column: 8 / span 5; margin-top: 6rem; }
.featured-grid .dest-card:nth-child(4n+3) { grid-column: 1 / span 5; }
.featured-grid .dest-card:nth-child(4n+4) { grid-column: 6 / span 7; margin-top: -3rem; }
.featured-grid .dest-card:nth-child(4n+2) .dest-card__media img,
.featured-grid .dest-card:nth-child(4n+3) .dest-card__media img { aspect-ratio: 4 / 5; }
.featured-grid .dest-card[hidden] { display: none; }

.dest-card { position: relative; display: flex; flex-direction: column; }
.dest-card__media {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-md); background: #e8dfd2;
}
.dest-card__media img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.dest-card:hover .dest-card__media img { transform: scale(1.06); }
.dest-card__media figcaption {
  position: absolute; left: 1.1rem; top: 1.1rem;
  background: rgba(41, 37, 34, .55); color: var(--cream); backdrop-filter: blur(6px);
  font: italic .82rem/1 var(--serif); padding: .45rem .75rem; border-radius: 999px;
}
.dest-card__badge {
  position: absolute; z-index: 2; top: -18px; right: 22px;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform .8s var(--ease);
}
.dest-card__badge::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(41,37,34,.4); }
.dest-card:hover .dest-card__badge { transform: rotate(-14deg) scale(1.04); }
.dest-card__badge span { font: 600 .55rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.dest-card__badge strong { font: 500 1.15rem/1.1 var(--serif); }
.dest-card__body {
  position: relative; z-index: 1;
  margin: -4.5rem 1.2rem 0 clamp(1rem, 3vw, 2.4rem);
  background: rgba(255, 252, 247, .9); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px; padding: 1.5rem clamp(1.2rem, 2.4vw, 1.9rem) 1.6rem;
  box-shadow: var(--shadow-md);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.dest-card:hover .dest-card__body { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.kicker { font: 600 .68rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-text); margin: 0 0 .7rem; display: flex; gap: .7rem; }
.kicker span { color: var(--terracotta); }
.dest-card__title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .35rem; }
.dest-card__text { color: var(--muted-text); font-size: .98rem; margin-bottom: 1rem; }
.tag-list { list-style: none; margin: 0 0 1.3rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list li { font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: .45rem .65rem; border-radius: 999px; background: rgba(83, 103, 70, .1); color: var(--olive-deep); }
.card-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.no-results {
  grid-column: 1 / -1; text-align: center; padding: 3rem 1rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,252,247,.6);
}
.no-results h3 { margin-bottom: .4rem; }

/* ---------- Editorial Spread ---------- */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.spread__media { grid-column: 1 / span 7; position: relative; }
.spread__media > img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.spread__inset {
  position: absolute; right: -10%; bottom: -9%; width: 46%;
  border: 10px solid var(--cream); border-radius: 8px; box-shadow: var(--shadow-lg);
  transform: rotate(3deg); background: var(--cream);
}
.spread__inset img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.spread__caption { position: absolute; left: 1.2rem; bottom: 1.2rem; max-width: 50%; font: italic .9rem/1.4 var(--serif); color: var(--cream); text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.spread__text { grid-column: 9 / span 4; }
.drop-cap::first-letter { float: left; font: 500 4.6rem/.8 var(--serif); color: var(--terracotta); padding: .4rem .6rem 0 0; }
.pullquote {
  margin: 2rem 0; padding: 1.4rem 0 1.4rem 1.6rem; border-left: 2px solid var(--gold);
  font: italic 400 clamp(1.3rem, 2.2vw, 1.7rem)/1.3 var(--serif);
}

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 1.2rem; }
.collection {
  position: relative; overflow: hidden; border-radius: var(--radius);
  text-decoration: none; color: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem;
  box-shadow: var(--shadow-md); isolation: isolate;
}
.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.collection::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(41,37,34,0) 20%, var(--tint, rgba(41,37,34,.85)) 100%); }
.collection:hover img { transform: scale(1.08); }
.collection h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: .3rem; }
.collection p { margin: 0; font-size: .92rem; opacity: .88; }
.collection__label { position: absolute; top: 1.2rem; left: 1.2rem; font: 600 .62rem var(--sans); letter-spacing: .2em; text-transform: uppercase; background: rgba(255,252,247,.92); color: var(--ink); padding: .45rem .7rem; border-radius: 999px; }
.collection--a { grid-column: span 3; grid-row: span 2; --tint: rgba(140, 61, 43, .92); }
.collection--b { grid-column: span 3; --tint: rgba(65, 82, 55, .92); }
.collection--c { grid-column: span 2; --tint: rgba(41, 37, 34, .88); }
.collection--d { grid-column: span 1; --tint: rgba(150, 108, 30, .9); }
.collection--e { grid-column: span 3; --tint: rgba(65, 82, 55, .92); }
.collection--f { grid-column: span 3; --tint: rgba(140, 61, 43, .9); }

/* ---------- Budget Board ---------- */
.budget-board { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: var(--shadow-lg); }
.budget-board__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.toggle { display: inline-flex; padding: .3rem; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); }
.toggle button { border: 0; background: transparent; padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; font: 600 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: all .3s var(--ease); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.budget-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.budget-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 1.2rem; align-items: center; }
.budget-row a { font: 500 1.2rem var(--serif); text-decoration: none; }
.budget-row a:hover { color: var(--terracotta); }
.budget-row__country { display: block; font: 600 .62rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-text); }
.budget-track { position: relative; height: 14px; border-radius: 999px; background: rgba(41,37,34,.06); overflow: hidden; }
.budget-fill {
  position: absolute; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--olive), var(--gold), var(--terracotta));
  transition: left 1s var(--ease), width 1s var(--ease);
}
.budget-row__value { font: 500 1.05rem var(--serif); text-align: right; }
.budget-note { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted-text); }

/* ---------- Tips ---------- */
.tips-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.tip { padding: 1.8rem 1.5rem; border-top: 1px solid rgba(255,252,247,.25); position: relative; }
.tip__num { font: italic 400 3.4rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: .8rem; }
.tip h3 { font-size: 1.35rem; }
.tip p { color: rgba(255,252,247,.72); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.postcard {
  position: relative; background: var(--cream); padding: 14px; border-radius: 10px;
  box-shadow: var(--shadow-lg); transform: rotate(-3deg);
  transition: transform .8s var(--ease);
}
.postcard:hover { transform: rotate(0deg) translateY(-6px); }
.postcard img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 4px; }
.postcard__stamp { position: absolute; top: -18px; right: -14px; width: 86px; height: 100px; background: var(--terracotta); color: var(--cream); display: grid; place-items: center; text-align: center; font: italic .9rem/1.1 var(--serif); padding: .5rem; border: 5px dotted var(--cream); transform: rotate(8deg); box-shadow: var(--shadow-md); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: .96; max-width: 14ch; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; align-items: end; }
.page-hero__stack { position: relative; height: 320px; }
.page-hero__stack figure { position: absolute; margin: 0; background: var(--cream); padding: 8px 8px 30px; box-shadow: var(--shadow-lg); border-radius: 6px; }
.page-hero__stack figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.page-hero__stack figure:nth-child(1) { width: 52%; right: 4%; top: 0; transform: rotate(5deg); }
.page-hero__stack figure:nth-child(2) { width: 44%; left: 6%; top: 12%; transform: rotate(-6deg); }
.page-hero__stack figcaption { position: absolute; left: 10px; bottom: 7px; font: italic .76rem var(--serif); color: var(--muted-text); }

/* ---------- Listings ---------- */
.filter-panel {
  background: rgba(255, 252, 247, .88); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 30px;
  padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow-md);
  display: grid; gap: 1.4rem;
}
.filter-panel__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem; }
.field label, .field .field-label { display: block; font: 600 .66rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-text); margin-bottom: .5rem; }
.field input, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--cream);
  font: 400 .96rem var(--sans); color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(166,75,54,.12); }
.filter-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.filter-panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.result-count { font: italic 1.15rem var(--serif); margin: 0; }
.result-count strong { color: var(--terracotta); font-style: normal; }
.text-btn { background: none; border: 0; cursor: pointer; font: 600 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); text-decoration: underline; text-underline-offset: 4px; }

.listing-results { margin-top: clamp(3rem, 6vw, 5rem); }
.listing-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); animation: pageIn .9s var(--ease) both; animation-delay: var(--delay, 0ms); }
@keyframes pageIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.listing-row__media { grid-column: 1 / span 7; grid-row: 1; margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #e8dfd2; }
.listing-row__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s var(--ease); }
.listing-row:hover .listing-row__media img { transform: scale(1.05); }
.listing-row__num { position: absolute; left: 1.2rem; bottom: .4rem; font: italic 400 5rem/1 var(--serif); color: rgba(255,252,247,.9); text-shadow: 0 6px 24px rgba(0,0,0,.35); }
.listing-row__body {
  grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 2;
  background: rgba(255, 252, 247, .93); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease);
}
.listing-row:hover .listing-row__body { transform: translateY(-6px); }
.listing-row:nth-child(even) .listing-row__media { grid-column: 6 / span 7; }
.listing-row:nth-child(even) .listing-row__body { grid-column: 1 / span 6; }
.listing-row__body h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .4rem; }
.fact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0 1.4rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-strip dt { font: 600 .6rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-text); }
.fact-strip dd { margin: .2rem 0 0; font: 500 1rem/1.3 var(--serif); }

/* ---------- Detail ---------- */
.detail-hero { position: relative; height: min(80vh, 780px); min-height: 480px; overflow: hidden; }
.detail-hero > img { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 18s ease-out forwards; }
@keyframes slowZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41,37,34,.15) 0%, rgba(41,37,34,0) 40%, rgba(41,37,34,.55) 100%); }
.detail-hero__card {
  position: absolute; z-index: 2; left: max(1.5rem, calc((100vw - 1260px) / 2)); bottom: 2.5rem;
  max-width: 640px; background: rgba(255, 252, 247, .93); backdrop-filter: blur(14px);
  border-radius: 26px; padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg);
  animation: fadeUp 1s var(--ease) .3s both;
}
.detail-hero__card h1 { font-size: clamp(3rem, 7vw, 5.8rem); line-height: .92; margin-bottom: .6rem; }
.breadcrumb { font-size: .82rem; color: var(--muted-text); margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(3rem, 6vw, 5rem) 0; }
.detail-main section { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.detail-main h2 { font-size: clamp(2rem, 4vw, 3rem); }
.attraction-list { list-style: none; padding: 0; margin: 0; counter-reset: attr; }
.attraction-list li { counter-increment: attr; display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.attraction-list li::before { content: counter(attr, decimal-leading-zero); font: italic 400 2.3rem/1 var(--serif); color: var(--terracotta); }
.attraction-list h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.attraction-list p { margin: 0; color: var(--muted-text); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.check-list li { position: relative; padding: 1rem 1rem 1rem 3rem; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; font-size: .96rem; }
.check-list li::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 18px; height: 18px; border-radius: 50%; background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23FFFCF7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.food-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.food-card { padding: 1.3rem 1.4rem; border-radius: 18px; background: linear-gradient(160deg, var(--cream), #f7ecdc); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.food-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.food-card h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.food-card p { margin: 0; font-size: .93rem; color: var(--muted-text); }
.info-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.info-card { padding: 1.6rem; border-radius: 20px; background: var(--cream); border: 1px solid var(--line); }
.info-card h3 { font-size: 1.4rem; }
.info-card p { margin: 0; color: var(--muted-text); font-size: .96rem; }

.side-panel { position: sticky; top: 2rem; display: grid; gap: 1.2rem; align-self: start; }
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow-md); }
.panel--ink { background: var(--ink); color: var(--cream); }
.panel h2, .panel h3 { font-size: 1.5rem; }
.panel dl { margin: 0; display: grid; gap: .9rem; }
.panel dt { font: 600 .62rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-text); }
.panel--ink dt { color: rgba(255,252,247,.6); }
.panel dd { margin: .15rem 0 0; font: 500 1.02rem/1.35 var(--serif); }
.panel .btn { width: 100%; margin-top: .6rem; }
.split-row { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; margin-bottom: .9rem; font-size: .9rem; }
.split-row .budget-track { grid-column: 1 / -1; height: 8px; }
.split-row .budget-fill { left: 0; }
.big-figure { font: 500 2.5rem/1 var(--serif); margin: .3rem 0 .2rem; }
.big-figure small { font: 400 .9rem var(--sans); opacity: .7; }

.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 180px; gap: .9rem; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; border-radius: 18px; background: #e8dfd2; box-shadow: var(--shadow-sm); position: relative; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.07); }
.gallery button:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery button:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.gallery button:nth-child(3) { grid-column: span 2; grid-row: span 1; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(28, 25, 22, .92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.is-open { display: flex; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 1rem; font: italic 1rem var(--serif); }
.lightbox__btn { position: absolute; background: rgba(255,252,247,.12); border: 1px solid rgba(255,252,247,.3); color: var(--cream); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; transition: background .3s; }
.lightbox__btn:hover { background: var(--terracotta); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.related-grid .dest-card__title { font-size: 2rem; }

/* ---------- Guide / Prose ---------- */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.toc { position: sticky; top: 2rem; align-self: start; padding: 1.5rem; border-radius: 22px; background: var(--cream); border: 1px solid var(--line); }
.toc h2 { font-size: 1.3rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; font-size: .92rem; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--terracotta); }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1.2em; scroll-margin-top: 2rem; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--terracotta); text-underline-offset: 3px; }
.prose figure { margin: 2.4rem 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose figcaption { font: italic .9rem var(--serif); color: var(--muted-text); margin-top: .7rem; }
.itinerary { display: grid; gap: 1rem; margin: 1.6rem 0; }
.itinerary__stop { display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; padding: 1.2rem 1.4rem; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; }
.itinerary__stop strong { font: italic 500 1.2rem var(--serif); color: var(--terracotta); }
.itinerary__stop p { margin: 0; font-size: .96rem; }
.data-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .94rem; background: var(--cream); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; background: var(--ink); color: var(--cream); }
.callout { padding: 1.5rem 1.7rem; border-radius: 20px; background: rgba(213,166,74,.14); border: 1px solid rgba(213,166,74,.45); margin: 1.8rem 0; }
.callout p:last-child { margin: 0; }
.guide-banner { position: relative; border-radius: 30px; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; padding: 2.4rem; color: var(--cream); box-shadow: var(--shadow-lg); }
.guide-banner--rail-journey-europe { background: linear-gradient(180deg, rgba(41,37,34,.05), rgba(41,37,34,.75)), url("images/photo-1474487548417-781cb71495f3.png") center / cover, var(--olive); }
.guide-banner h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 18ch; margin: 0; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.2rem; }
.legal-meta { display: inline-block; padding: .5rem .9rem; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: .84rem; color: var(--muted-text); margin-bottom: 1.5rem; }
.placeholder-note { background: rgba(166,75,54,.08); border: 1px dashed rgba(166,75,54,.5); border-radius: 16px; padding: 1rem 1.2rem; font-size: .9rem; }
.company-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.company-card div { padding: 1.3rem; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.company-card dt { font: 600 .62rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-text); }
.company-card dd { margin: .3rem 0 0; font: 500 1.05rem/1.4 var(--serif); }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.value-card { padding: 2rem 1.6rem; border-radius: 24px; background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card span { font: italic 2.6rem/1 var(--serif); color: var(--gold); }
.value-card h3 { margin-top: .8rem; }
.value-card p { color: var(--muted-text); margin: 0; font-size: .96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 252, 247, .82); padding: clamp(4rem, 8vw, 6rem) 0 2rem; position: relative; overflow: hidden; }
.site-footer::before { content: "Affordable Europe"; position: absolute; right: -2rem; top: 1rem; font: italic 400 clamp(5rem, 14vw, 12rem)/1 var(--serif); color: rgba(255,252,247,.035); white-space: nowrap; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; gap: 2.2rem; position: relative; }
.site-footer .brand-text { color: var(--cream); }
.site-footer .brand-text small { color: rgba(255,252,247,.55); }
.site-footer h2 { font: 600 .68rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }
.site-footer a { text-decoration: none; color: rgba(255,252,247,.82); transition: color .3s; }
.site-footer a:hover { color: var(--gold); }
.footer-about { font-size: .93rem; margin-top: 1.2rem; max-width: 34ch; }
.footer-contact address { font-style: normal; font-size: .92rem; line-height: 1.6; }
.footer-contact .tag-placeholder { display: inline-block; margin-top: .6rem; font: 600 .58rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(213,166,74,.5); border-radius: 999px; padding: .3rem .6rem; }
.footer-notices { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.2rem; position: relative; }
.notice { padding: 1.3rem 1.5rem; border: 1px solid rgba(255,252,247,.16); border-radius: 18px; font-size: .86rem; line-height: 1.6; background: rgba(255,252,247,.03); }
.notice strong { color: var(--gold); }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,252,247,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .84rem; color: rgba(255,252,247,.6); }
.footer-bottom button { background: none; border: 0; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: .84rem; padding: 0; }

/* ---------- Cookie Consent ---------- */
.cookie-banner {
  position: fixed; z-index: 80; left: 1.2rem; bottom: 1.2rem; width: min(460px, calc(100% - 2.4rem));
  background: rgba(255, 252, 247, .97); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem;
  box-shadow: var(--shadow-lg); animation: fadeUp .7s var(--ease) both;
}
.cookie-banner h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.cookie-banner p { font-size: .9rem; color: var(--muted-text); margin-bottom: 1rem; }
.cookie-banner p a { color: var(--terracotta); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { padding: .75rem 1rem; font-size: .68rem; }
.cookie-modal { position: fixed; inset: 0; z-index: 85; background: rgba(28,25,22,.6); display: none; align-items: center; justify-content: center; padding: 1.2rem; }
.cookie-modal.is-open { display: flex; animation: fadeIn .3s var(--ease); }
.cookie-modal__dialog { background: var(--cream); border-radius: 26px; padding: clamp(1.4rem, 3vw, 2.2rem); width: min(560px, 100%); box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }
.cookie-modal__dialog h2 { font-size: 1.8rem; }
.cookie-option { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cookie-option h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.cookie-option p { margin: 0; font-size: .86rem; color: var(--muted-text); }
.switch { position: relative; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(41,37,34,.2); transition: background .3s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--olive); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { background: var(--muted); opacity: .7; }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease); }
.wipe.is-visible, .is-visible .wipe { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .filter-panel__top { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: .6rem 1.5rem 1.4rem; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
  .hero { min-height: auto; padding-top: 2rem; }
  .hero::after { background: linear-gradient(180deg, rgba(245,239,229,.3) 0%, rgba(245,239,229,.85) 32%, var(--ivory) 60%); }
  .hero__collage { height: 52%; }
  .hero__inner { padding-top: 34vh; }
  .layer-1 { top: 2%; right: 4%; width: 46vw; }
  .layer-2 { top: 16%; left: 4%; right: auto; bottom: auto; width: 34vw; }
  .layer-3 { top: 4%; left: 30%; right: auto; width: 24vw; }
  .layer-4, .layer-5, .float-ticket--hero, .float-stamp--hero { display: none; }
  .spin-badge { left: auto; right: 1rem; top: 30vh; width: 104px; height: 104px; }
  .spin-badge__core { inset: 24px; font-size: .86rem; }
  .budget-float { position: relative; right: auto; bottom: auto; margin: 2rem auto 0; width: min(100% - 3rem, 420px); display: block; animation: none; }
  .featured-grid .dest-card, .featured-grid .dest-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .featured-grid .dest-card:nth-child(n) .dest-card__media img { aspect-ratio: 4 / 3; }
  .spread { grid-template-columns: 1fr; }
  .spread__media, .spread__text { grid-column: 1 / -1; }
  .spread__inset { right: 4%; width: 40%; }
  .spread__text { margin-top: 3rem; }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .collection--a, .collection--b, .collection--c, .collection--d, .collection--e, .collection--f { grid-column: span 1; grid-row: span 1; }
  .collection--a { grid-column: span 2; grid-row: span 1; }
  .cta-band, .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__stack { height: 260px; max-width: 420px; }
  .filter-groups { grid-template-columns: 1fr; }
  .listing-row__media, .listing-row:nth-child(even) .listing-row__media { grid-column: 1 / -1; grid-row: 1; }
  .listing-row__body, .listing-row:nth-child(even) .listing-row__body { grid-column: 1 / -1; grid-row: 2; margin: -3rem 1rem 0; }
  .detail-layout, .guide-layout { grid-template-columns: 1fr; }
  .side-panel, .toc { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-notices { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-index { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap, .hero__inner { width: min(100% - 2rem, 1260px); }
  .brand-text small { display: none; }
  .budget-row { grid-template-columns: 1fr; gap: .4rem; }
  .budget-row__value { text-align: left; }
  .tips-grid, .check-list, .food-grid, .info-split, .company-card, .filter-panel__top { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .gallery button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery button:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }
  .detail-hero__card { left: 1rem; right: 1rem; bottom: 1rem; }
  .itinerary__stop { grid-template-columns: 1fr; gap: .3rem; }
  .data-table { display: block; overflow-x: auto; }
  .search-shell .btn { padding: .8rem 1rem; }
  .dest-card__badge { width: 88px; height: 88px; right: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .mask-line > span, .fade-up { transform: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .wipe { clip-path: none; }
  .drift-card, .float-ticket, .budget-float { animation: none !important; }
  .spin-badge svg { animation: none !important; }
}