/* ==========================================================================
   Nordwhim Curios — The 2026 Travel Edit
   Contemporary Earthy Travel Editorial design system
   Palette: Terracotta, Roasted Chestnut, Antique Gold, Warm Sand,
            Soft Ivory, Deep Espresso, Warm Taupe, Pale Clay, Natural Linen
   ========================================================================== */

:root {
  --terracotta: #B65D3D;
  --chestnut: #70432F;
  --gold: #D7A94E;
  --sand: #F5EFE5;
  --ivory: #FFFCF6;
  --espresso: #302820;
  --taupe: #8C8072;
  --taupe-dark: #6A5E51;
  --clay: #E8D7C2;
  --linen: #E1D5C5;
  --ivory-glass: rgba(255, 252, 246, 0.78);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Hoefler Text", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 40px -20px rgba(48, 40, 32, 0.35);
  --shadow-lg: 0 34px 70px -28px rgba(48, 40, 32, 0.5);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .25s; }
a:hover { color: var(--chestnut); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--clay); color: var(--espresso); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--espresso); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: var(--ivory); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; color: var(--ivory); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--ivory { background: var(--ivory); }
.section--clay { background: var(--clay); }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--terracotta);
  margin: 0 0 .9em;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--taupe-dark); max-width: 62ch; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--taupe-dark); margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Header (non-sticky, scrolls with document) ---------- */
.site-header { position: relative; z-index: 30; background: var(--sand); border-bottom: 1px solid var(--linen); }
.header-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--espresso); }
.brand:hover { color: var(--espresso); }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-name { font-family: var(--serif); font-size: 1.36rem; font-weight: 700; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe-dark); font-weight: 700; margin-top: 3px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 16px; border-radius: 999px; color: var(--espresso); text-decoration: none; font-weight: 600; font-size: .94rem; transition: background .3s, color .3s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--clay); color: var(--chestnut); }
.nav-toggle { display: none; align-items: center; gap: 10px; background: var(--ivory); border: 1px solid var(--linen); color: var(--espresso); border-radius: 999px; padding: 9px 16px; font: 600 .9rem var(--sans); cursor: pointer; }
.nav-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--terracotta); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--linen); box-shadow: var(--shadow); display: none; }
  .main-nav.is-open { display: block; animation: navIn .35s var(--ease); }
  .main-nav ul { flex-direction: column; padding: 14px 20px 22px; }
  .main-nav a { padding: 13px 16px; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font: 700 .92rem var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: var(--ivory); box-shadow: 0 10px 24px -12px rgba(182, 93, 61, .8); }
.btn-primary:hover { background: var(--chestnut); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--chestnut); border-color: var(--chestnut); }
.btn-ghost:hover { background: var(--chestnut); color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--espresso); }
.btn-gold:hover { background: var(--chestnut); color: var(--ivory); }
.btn-small { padding: 9px 16px; font-size: .84rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ivory); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--linen); background: var(--ivory); color: var(--espresso);
  padding: 8px 16px; border-radius: 999px; font: 600 .86rem var(--sans); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--terracotta); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--terracotta); color: var(--ivory); border-color: var(--terracotta); }

.info-tag { display: inline-flex; align-items: center; gap: 6px; font: 700 .68rem var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; vertical-align: middle; }
.info-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.info-tag--estimate { background: rgba(215, 169, 78, .22); color: var(--chestnut); }
.info-tag--check { border: 1px solid var(--terracotta); color: var(--terracotta); }
.info-tag--general { background: var(--clay); color: var(--taupe-dark); }

/* ---------- Media + image fallback ---------- */
.media {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--clay) 0%, #d9b99a 45%, var(--terracotta) 100%);
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), clip-path 1.3s var(--ease); }
.media.is-broken img { display: none; }
.media.is-broken::after {
  content: attr(data-fallback);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 2rem); color: var(--ivory); font-style: italic;
  background: radial-gradient(circle at 70% 30%, rgba(215, 169, 78, .55), transparent 55%);
}
.js .wipe img { clip-path: inset(0 100% 0 0); }
.js .in-view .wipe img, .js .wipe.in-view img { clip-path: inset(0 0 0 0); }

/* ---------- Hero: Wanderlust Layered Drift ---------- */
.hero {
  position: relative; min-height: min(94vh, 920px); overflow: hidden;
  display: grid; place-items: center; padding: 90px 24px;
  background: radial-gradient(ellipse at 25% 15%, #fbf5ea 0%, var(--sand) 50%, var(--clay) 100%);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; opacity: .5;
  background:
    radial-gradient(circle at 80% 70%, rgba(182, 93, 61, .18), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(215, 169, 78, .22), transparent 35%);
}
.hero-layers { position: absolute; inset: 0; pointer-events: none; }
.postcard {
  position: absolute; width: var(--w, 240px);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotate(calc(var(--r, 0deg) + var(--rot, 0deg)));
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.postcard-inner {
  background: var(--ivory); padding: 10px 10px 36px; border-radius: 6px; box-shadow: var(--shadow-lg);
  animation: drift var(--dur, 18s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s);
  position: relative;
}
.postcard .media { aspect-ratio: 4 / 5; border-radius: 3px; }
.postcard figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 9px; font-family: var(--serif); font-style: italic;
  font-size: .88rem; color: var(--chestnut); display: flex; justify-content: space-between;
}
.postcard figcaption span:last-child { font-family: var(--sans); font-style: normal; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); align-self: center; }
.pc-1 { top: 7%; left: 3%; --r: -9deg; --w: 230px; --dur: 19s; }
.pc-2 { top: 9%; right: 5%; --r: 7deg; --w: 250px; --dur: 22s; --delay: -4s; }
.pc-3 { bottom: 6%; left: 10%; --r: 5deg; --w: 210px; --dur: 17s; --delay: -7s; }
.pc-4 { bottom: 8%; right: 12%; --r: -6deg; --w: 230px; --dur: 21s; --delay: -2s; }
.pc-5 { top: 40%; right: -1%; --r: 12deg; --w: 170px; --dur: 24s; --delay: -9s; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(14px, -18px) rotate(1.6deg); }
  100% { transform: translate(-12px, 10px) rotate(-1.4deg); }
}
.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 900px;
  background: var(--ivory-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 52px 44px 46px; border-radius: var(--radius-lg); border: 1px solid rgba(225, 213, 197, .9);
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 6.4rem); letter-spacing: -.025em; margin-bottom: .3em; }
.hero h1 em { color: var(--terracotta); font-style: italic; }
.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: var(--d, 0s); }
@keyframes maskUp { to { transform: translateY(0); } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--taupe-dark); max-width: 60ch; margin: 0 auto 28px; opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.stamp { position: absolute; width: 132px; height: 132px; z-index: 3; }
.stamp svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.stamp-core { position: absolute; inset: 34px; border-radius: 50%; background: var(--terracotta); color: var(--ivory); display: grid; place-items: center; font: 700 1.3rem var(--serif); box-shadow: inset 0 0 0 3px var(--gold); }
.hero .stamp { top: -46px; right: -38px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .pc-5, .pc-3 { display: none; }
  .pc-1 { --w: 170px; top: 3%; left: -3%; }
  .pc-2 { --w: 180px; top: 2%; right: -4%; }
  .pc-4 { --w: 170px; bottom: 2%; right: -2%; }
}
@media (max-width: 640px) {
  .hero { padding: 70px 16px; }
  .hero-content { padding: 40px 22px 34px; }
  .hero .stamp { width: 96px; height: 96px; top: -40px; right: -10px; }
  .stamp-core { inset: 25px; font-size: 1rem; }
  .pc-1 { --w: 130px; } .pc-2 { --w: 130px; } .pc-4 { --w: 130px; }
}

/* ---------- Search ---------- */
.search-panel {
  background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; margin-top: -70px; position: relative; z-index: 5;
}
.search-field { position: relative; }
.search-field svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--terracotta); }
.search-field input {
  width: 100%; padding: 18px 20px 18px 56px; border-radius: 999px; border: 1.5px solid var(--linen);
  background: var(--sand); font: 500 1.08rem var(--sans); color: var(--espresso); transition: border-color .3s, background .3s;
}
.search-field input::placeholder { color: var(--taupe); }
.search-field input:focus { outline: none; border-color: var(--terracotta); background: var(--ivory); box-shadow: 0 0 0 4px rgba(215, 169, 78, .3); }
.search-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--taupe-dark); font-size: .92rem; }

/* ---------- Destination cards ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.dest-grid.is-switching { opacity: 0; transform: translateY(10px); }
.dest-grid .dest-card { grid-column: span 4; }
.dest-grid.editorial .dest-card:nth-child(5n+1) { grid-column: span 7; }
.dest-grid.editorial .dest-card:nth-child(5n+2) { grid-column: span 5; margin-top: 70px; }
.dest-grid.editorial .dest-card:nth-child(5n+4) { margin-top: 40px; }
.dest-grid.editorial .dest-card:nth-child(5n+1) .media { aspect-ratio: 16 / 10; }
.dest-grid.layered .dest-card:nth-child(3n+2) { margin-top: 48px; }
.dest-card {
  position: relative; background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius-lg);
  padding: 12px; display: flex; flex-direction: column; box-shadow: 0 2px 0 rgba(48, 40, 32, .03);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.dest-card::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; border-radius: var(--radius-lg);
  background: var(--clay); z-index: -1; transition: transform .5s var(--ease);
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dest-card:hover::before { transform: translate(6px, 6px) rotate(1deg); }
.dest-card .media { aspect-ratio: 4 / 3; }
.dest-card:hover .media img { transform: scale(1.06); }
.dest-label {
  position: absolute; left: 14px; top: 14px; background: var(--ivory-glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--chestnut); font: 700 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px;
}
.budget-chip { position: absolute; right: 14px; bottom: 14px; background: var(--espresso); color: var(--gold); font: 700 .78rem var(--sans); padding: 7px 12px; border-radius: 999px; }
.card-body { padding: 22px 14px 12px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: .3em; }
.card-tagline { color: var(--taupe-dark); font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.card-highlights { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-highlights li { font-size: .78rem; background: var(--sand); border: 1px solid var(--linen); padding: 4px 10px; border-radius: 999px; color: var(--chestnut); }
.card-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 20px; padding: 14px 0; border-top: 1px solid var(--linen); border-bottom: 1px solid var(--linen); }
.card-meta div { min-width: 0; }
.card-meta dt { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe-dark); font-weight: 700; }
.card-meta dd { margin: 3px 0 0; font-weight: 600; font-size: .9rem; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.card-actions .btn { flex: 1 1 140px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: var(--ivory); border: 1px dashed var(--linen); border-radius: var(--radius-lg); color: var(--taupe-dark); }
.empty-state h3 { color: var(--espresso); }

@media (max-width: 1060px) {
  .dest-grid .dest-card, .dest-grid.editorial .dest-card:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .dest-grid.editorial .dest-card:nth-child(5n+1) { grid-column: span 12; }
  .dest-grid.layered .dest-card:nth-child(3n+2) { margin-top: 0; }
  .dest-grid.layered .dest-card:nth-child(2n) { margin-top: 36px; }
}
@media (max-width: 680px) {
  .dest-grid { gap: 26px; }
  .dest-grid .dest-card, .dest-grid.editorial .dest-card:nth-child(n), .dest-grid.layered .dest-card:nth-child(n) { grid-column: span 12; margin-top: 0; }
  .card-meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reveal & staggered page transitions ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in-view { opacity: 1; transform: none; }
.page-enter > * { animation: pageIn .9s var(--ease) both; }
.page-enter > *:nth-child(2) { animation-delay: .08s; }
.page-enter > *:nth-child(3) { animation-delay: .16s; }
.page-enter > *:nth-child(4) { animation-delay: .24s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Budget compass (home) ---------- */
.compass { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.compass-panel { background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.compass-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--taupe-dark); margin-bottom: 20px; }
.compass-legend span { display: inline-flex; align-items: center; gap: 8px; }
.compass-legend i { width: 22px; height: 8px; border-radius: 4px; display: inline-block; }
.legend-budget { background: var(--gold); } .legend-mid { background: var(--terracotta); }
.compass-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.compass-row { display: grid; grid-template-columns: 170px 1fr 120px; gap: 16px; align-items: center; }
.compass-row a { font-family: var(--serif); font-weight: 600; color: var(--espresso); text-decoration: none; font-size: 1.05rem; }
.compass-row a:hover { color: var(--terracotta); }
.compass-row .val { text-align: right; font-size: .85rem; font-weight: 600; color: var(--chestnut); }
.bar-track { position: relative; height: 22px; background: var(--sand); border-radius: 999px; overflow: hidden; border: 1px solid var(--linen); }
.bar { position: absolute; top: 3px; bottom: 3px; left: var(--from); width: calc(var(--to) - var(--from)); border-radius: 999px; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.bar--budget { background: var(--gold); }
.bar--mid { background: var(--terracotta); opacity: .85; }
.in-view .bar { transform: scaleX(1); }
.scale-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--taupe-dark); margin: 10px 0 0 186px; padding-right: 136px; }
@media (max-width: 900px) {
  .compass { grid-template-columns: 1fr; gap: 30px; }
  .compass-row { grid-template-columns: 1fr; gap: 6px; }
  .compass-row .val { text-align: left; }
  .scale-labels { margin-left: 0; padding-right: 0; }
}

/* ---------- Editorial story columns ---------- */
.story-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.story { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--espresso); }
.story:nth-child(2) { margin-top: 70px; }
.story .media { aspect-ratio: 3 / 4; }
.story:hover .media img { transform: scale(1.06); }
.story h3 { margin: 0; transition: color .3s; }
.story:hover h3 { color: var(--terracotta); }
.story p { color: var(--taupe-dark); margin: 0; }
.story-caption { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-dark); font-weight: 700; border-top: 1px solid var(--linen); padding-top: 12px; }
@media (max-width: 860px) { .story-columns { grid-template-columns: 1fr; } .story:nth-child(2) { margin-top: 0; } .story .media { aspect-ratio: 16 / 10; } }

/* ---------- Tips ---------- */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; counter-reset: tip; }
.tip { background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius); padding: 28px; position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tip:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); }
.tip::before { counter-increment: tip; content: counter(tip, decimal-leading-zero); font: 600 2.6rem var(--serif); color: var(--gold); display: block; line-height: 1; margin-bottom: 12px; }
.tip h3 { font-size: 1.3rem; }
.tip p { color: var(--taupe-dark); margin: 0; font-size: .96rem; }

/* ---------- Seasonal collections ---------- */
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; text-decoration: none; color: var(--ivory); }
.season-card .media { position: absolute; inset: 0; border-radius: 0; }
.season-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(48, 40, 32, 0) 30%, rgba(48, 40, 32, .85) 100%); }
.season-card:hover .media img { transform: scale(1.07); }
.season-card-body { position: relative; z-index: 2; padding: 24px; }
.season-card-body h3 { color: var(--ivory); margin-bottom: .2em; }
.season-card-body p { margin: 0; font-size: .9rem; color: var(--clay); }
.season-card-body .eyebrow { color: var(--gold); }
@media (max-width: 1000px) { .season-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .season-grid { grid-template-columns: 1fr; } .season-card { min-height: 300px; } }

/* ---------- Stylesheet image band ---------- */
.band--open-road-travel-landscape {
  position: relative; padding: clamp(90px, 12vw, 160px) 0; color: var(--ivory);
  background-color: var(--chestnut);
  background-image: linear-gradient(90deg, rgba(48, 40, 32, .85) 0%, rgba(112, 67, 47, .55) 60%, rgba(182, 93, 61, .3) 100%),
    url("images/photo-1469854523086-cc02fe5d8800.png");
  background-size: cover; background-position: center;
}
.band--open-road-travel-landscape h2 { color: var(--ivory); max-width: 16ch; }
.band--open-road-travel-landscape p { color: var(--clay); max-width: 56ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 15ch; }
.page-hero .lede { margin-top: 10px; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.page-hero-figure { aspect-ratio: 4 / 5; transform: rotate(3deg); box-shadow: var(--shadow-lg); border: 10px solid var(--ivory); border-radius: 8px; }
.page-hero-figure.media { border-radius: 8px; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-figure { max-width: 320px; aspect-ratio: 4 / 3; } }

/* ---------- Listings filters ---------- */
.filter-panel {
  background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius-lg); padding: 28px;
  display: grid; gap: 22px; box-shadow: var(--shadow); margin-bottom: 44px;
}
.filter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: end; }
.field label, .field .field-label { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--taupe-dark); margin-bottom: 8px; }
.field select, .field input[type="search"], .field input[type="number"] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--linen); background: var(--sand);
  font: 500 .95rem var(--sans); color: var(--espresso); appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--terracotta) 50%), linear-gradient(135deg, var(--terracotta) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(215, 169, 78, .35); }
input[type="range"] { width: 100%; accent-color: var(--terracotta); }
.range-value { font-weight: 700; color: var(--chestnut); }
.filter-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--linen); padding-top: 18px; color: var(--taupe-dark); font-size: .92rem; }
@media (max-width: 1100px) { .filter-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .filter-grid { grid-template-columns: 1fr; } .filter-panel { padding: 20px; } }

.note-box { background: var(--ivory); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; color: var(--taupe-dark); font-size: .94rem; }
.note-box strong { color: var(--espresso); }

/* ---------- Detail page ---------- */
.breadcrumb { font-size: .86rem; color: var(--taupe-dark); padding: 22px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--linen); }
.breadcrumb a { color: var(--chestnut); }
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden; background: var(--ivory); border: 1px solid var(--linen); box-shadow: var(--shadow-lg); }
.spread .media { border-radius: 0; min-height: 520px; }
.spread-copy { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; position: relative; }
.spread-copy h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
.spread-copy .card-tagline { font-size: 1.25rem; }
.spread .stamp { top: 22px; right: 22px; width: 110px; height: 110px; }
.spread .stamp-core { inset: 28px; font-size: 1rem; }
.quick-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 26px; }
.quick-facts div { background: var(--sand); border: 1px solid var(--linen); border-radius: 14px; padding: 12px 16px; }
.quick-facts dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-dark); font-weight: 700; }
.quick-facts dd { margin: 2px 0 0; font-weight: 600; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .spread { grid-template-columns: 1fr; } .spread .media { min-height: 320px; } }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; margin-top: 70px; }
.detail-main > section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--linen); }
.detail-main > section:last-child { border-bottom: 0; }
.detail-main h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.two-col p { color: var(--taupe-dark); }
.pull-quote { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-style: italic; color: var(--chestnut); border-left: 3px solid var(--gold); padding-left: 22px; line-height: 1.4; }
.attraction-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: attr; }
.attraction-list li { background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius); padding: 20px 22px 20px 74px; position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.attraction-list li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.attraction-list li::before { counter-increment: attr; content: counter(attr, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font: 600 1.6rem var(--serif); color: var(--terracotta); }
.attraction-list h3 { font-size: 1.2rem; margin-bottom: .25em; }
.attraction-list p { margin: 0; color: var(--taupe-dark); font-size: .96rem; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--gold) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; padding: 0 0 26px 58px; }
.timeline li::before { content: attr(data-day); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--terracotta); color: var(--ivory); display: grid; place-items: center; font: 700 .8rem var(--sans); box-shadow: 0 0 0 5px var(--sand); }
.timeline h3 { font-size: 1.2rem; margin-bottom: .2em; padding-top: 5px; }
.timeline p { margin: 0; color: var(--taupe-dark); }
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier-card { background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius); padding: 22px; }
.tier-card h3 { font-size: 1.15rem; }
.tier-card p { margin: 0; color: var(--taupe-dark); font-size: .94rem; }
.tier-card .eyebrow { margin-bottom: .5em; }
.bullet-list { padding-left: 1.2em; margin: 0; }
.bullet-list li { margin-bottom: .6em; color: var(--taupe-dark); }
.bullet-list li::marker { color: var(--terracotta); }
.month-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin: 18px 0 20px; }
.month { text-align: center; padding: 12px 0; border-radius: 10px; background: var(--clay); font-size: .74rem; font-weight: 700; color: var(--taupe-dark); }
.month.is-best { background: var(--terracotta); color: var(--ivory); }
.resource-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.resource-list a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; background: var(--ivory); border: 1px solid var(--linen); border-radius: 14px; text-decoration: none; color: var(--espresso); font-weight: 600; transition: border-color .3s, transform .3s var(--ease); }
.resource-list a:hover { border-color: var(--terracotta); transform: translateX(4px); color: var(--terracotta); }
.resource-list a span { color: var(--terracotta); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery button:first-child { grid-row: span 2; }
.gallery .media { width: 100%; height: 100%; }
.gallery button:hover img { transform: scale(1.06); }
@media (max-width: 1060px) { .detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .two-col, .tier-cards { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; } .gallery button:first-child { grid-row: auto; } .gallery .media { aspect-ratio: 4 / 3; } .month-strip { grid-template-columns: repeat(6, 1fr); } }

.budget-panel { position: sticky; top: 24px; background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.budget-panel h2 { font-size: 1.6rem; }
.tier-bars { display: grid; gap: 14px; margin: 18px 0 22px; }
.tier-bar-label { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.tier-bar-label span:last-child { color: var(--chestnut); }
.split-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 20px; }
.split-table caption { text-align: left; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--taupe-dark); padding-bottom: 8px; }
.split-table th, .split-table td { padding: 9px 0; border-bottom: 1px solid var(--linen); text-align: left; }
.split-table td { text-align: right; font-weight: 600; color: var(--chestnut); }
.estimator { background: var(--sand); border-radius: 16px; padding: 18px; display: grid; gap: 12px; margin-bottom: 18px; }
.estimator-out { font: 600 1.5rem var(--serif); color: var(--terracotta); line-height: 1.2; }
.estimator small, .panel-note { color: var(--taupe-dark); font-size: .8rem; display: block; line-height: 1.5; }
.panel-actions { display: grid; gap: 10px; margin-top: 14px; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(48, 40, 32, .86); }
.lightbox-inner { background: var(--ivory); padding: 12px 12px 18px; border-radius: 10px; position: relative; }
.lightbox .media { aspect-ratio: 3 / 2; border-radius: 6px; }
.lightbox p { margin: 12px 6px 0; font-family: var(--serif); font-style: italic; color: var(--chestnut); }
.lightbox-close { position: absolute; top: -16px; right: -10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--terracotta); color: var(--ivory); font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow); }

/* ---------- Guide page ---------- */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; align-items: start; }
.toc { position: sticky; top: 24px; background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius); padding: 22px; }
.toc h2 { font-size: 1.15rem; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.toc li { margin-bottom: 6px; }
.toc li::marker { color: var(--gold); font-weight: 700; }
.toc a { color: var(--espresso); text-decoration: none; }
.toc a:hover { color: var(--terracotta); text-decoration: underline; }
.guide-article > section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--linen); scroll-margin-top: 24px; }
.guide-article h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.guide-article p, .guide-article li { color: #4a3f35; }
.guide-figure { margin: 26px 0; aspect-ratio: 21 / 9; }
.guide-figure-caption { font-size: .8rem; color: var(--taupe-dark); margin-top: -14px; font-style: italic; }
.data-table { width: 100%; border-collapse: collapse; background: var(--ivory); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linen); font-size: .94rem; margin: 18px 0; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--linen); }
.data-table thead th { background: var(--clay); color: var(--chestnut); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } .toc { position: relative; top: 0; } }

/* ---------- Legal / About ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #4a3f35; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--terracotta); }
.placeholder { background: rgba(215, 169, 78, .2); border: 1px dashed var(--gold); padding: 2px 8px; border-radius: 6px; font-weight: 600; color: var(--chestnut); }
.details-card { background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.details-card dl { display: grid; grid-template-columns: 200px 1fr; gap: 14px 20px; margin: 0; }
.details-card dt { font-weight: 700; color: var(--taupe-dark); font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; }
.details-card dd { margin: 0; }
@media (max-width: 640px) { .details-card dl { grid-template-columns: 1fr; gap: 4px; } .details-card dd { margin-bottom: 12px; } }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--clay); padding: 80px 0 30px; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(215, 169, 78, .18); right: -160px; top: -200px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; position: relative; }
.site-footer .brand, .site-footer .brand:hover { color: var(--ivory); }
.site-footer .brand-name small { color: var(--gold); }
.footer-brand p { margin-top: 18px; font-size: .94rem; color: var(--clay); }
.footer-col h2 { font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-notices { max-width: var(--max); margin: 50px auto 0; padding: 30px 28px 0; border-top: 1px solid rgba(225, 213, 197, .18); display: grid; gap: 14px; font-size: .84rem; color: #cbbba6; position: relative; }
.footer-notices p { margin: 0; }
.footer-notices strong { color: var(--gold); }
.footer-bottom { max-width: var(--max); margin: 28px auto 0; padding: 20px 28px 0; border-top: 1px solid rgba(225, 213, 197, .12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: #b5a590; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Cookie banner & modal ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90; max-width: 760px; margin: 0 auto;
  background: var(--ivory); border: 1px solid var(--linen); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 24px 26px; display: grid; gap: 14px; animation: fadeUp .6s var(--ease);
}
/* Ensure the banner actually disappears once a choice (e.g. "Accept all") is made */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner h2 { font-size: 1.35rem; margin: 0; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--taupe-dark); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { position: relative; z-index: 1; }
.cookie-modal { position: fixed; inset: 0; z-index: 95; background: rgba(48, 40, 32, .7); display: grid; place-items: center; padding: 20px; }
.cookie-modal[hidden] { display: none !important; }
.cookie-dialog { background: var(--ivory); border-radius: var(--radius-lg); max-width: 560px; width: 100%; padding: 30px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }
.cookie-dialog h2 { font-size: 1.6rem; }
.cookie-option { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--linen); }
.cookie-option p { margin: 4px 0 0; font-size: .86rem; color: var(--taupe-dark); }
.cookie-option input { width: 22px; height: 22px; accent-color: var(--terracotta); flex: none; margin-top: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mask-line > span { transform: none; }
  .hero-sub, .hero-actions { opacity: 1; }
  .js .wipe img { clip-path: none; }
}