/* ==========================================================================
   HotelTerracotta.com — Core Design System
   Path: /assets/css/styles.css
   Version: 2026-11-20 (Batch 1)

   Contents
   01. Tokens
   02. Reset & base
   03. Typography
   04. Layout
   05. Header & navigation
   06. Footer
   07. Hero
   08. Editorial prose & bylines
   09. Buttons & links
   10. Resort cards & scorecards
   11. Verdict callouts (Book This / Skip This)
   12. Verification stamp
   13. Vibe Matcher
   14. Comparison drawer & matrix
   15. Tables
   16. Disclosure, notes, FAQ
   17. Ad containers (CLS-safe)
   18. Toast
   19. Utilities
   20. Motion, print

   Colour note: brand terracotta #B85D3B measures about 4.2:1 on #FAF7F2
   and 4.5:1 with white text, which misses WCAG AA for body-size text.
   It is used for fills, rules and large display type only. Text-size
   terracotta and button fills use --tc-600 (#9A4A2D, about 5.8:1 on sand).
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --tc-500: #B85D3B;          /* terracotta: fills, rules, large type */
  --tc-600: #9A4A2D;          /* terracotta: text, button fills (AA) */
  --tc-700: #7A3A23;          /* hover / pressed */
  --tc-100: #F3E1D8;          /* tint */
  --tc-50:  #F9EFEA;

  --sand-50:  #FAF7F2;        /* limestone page */
  --sand-100: #F1EAE0;        /* sand panels */
  --sand-200: #E6DCCD;        /* borders on sand */
  --sand-300: #D6C8B4;

  --ink-900: #1E1C1A;         /* espresso charcoal */
  --ink-700: #3A3632;
  --ink-600: #57514B;         /* secondary text, 7.4:1 on sand-50 */
  --ink-500: #6E675F;         /* muted text, 5.3:1 on sand-50 */
  --white:   #FFFFFF;

  --sage-700: #3F5B47;        /* "Book This" */
  --sage-50:  #EEF3EE;
  --clay-800: #7C2E22;        /* "Skip This" */
  --clay-50:  #F8ECE9;

  /* Semantic */
  --bg: var(--sand-50);
  --bg-alt: var(--sand-100);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-2: var(--ink-600);
  --text-3: var(--ink-500);
  --rule: var(--sand-200);
  --accent: var(--tc-600);
  --focus: #1E1C1A;

  /* Type. System stacks only: no web-font request, no FOIT/CLS. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.1875rem;   /* 19 */
  --fs-lg: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Space (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem; --s-9: 6rem;

  --measure: 68ch;
  --container: 76rem;
  --container-narrow: 46rem;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-1: 0 1px 2px rgba(30, 28, 26, 0.06), 0 1px 1px rgba(30, 28, 26, 0.04);
  --shadow-2: 0 6px 24px rgba(30, 28, 26, 0.08), 0 2px 6px rgba(30, 28, 26, 0.05);
  --shadow-3: 0 18px 48px rgba(30, 28, 26, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;

  --header-h: 4rem;
  --drawer-h: 0px;            /* set by app.js when the drawer is open */
  --tap: 44px;
}

/* 02. Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--drawer-h);
}

img, picture, video, svg { display: block; max-width: 100%; }
/* Browsers derive aspect-ratio from the width/height attributes, so height:auto keeps CLS at zero. */
img { height: auto; background: var(--sand-100); } /* placeholder tone while loading */

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-7) 0; }

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

::selection { background: var(--tc-100); color: var(--ink-900); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 1000;
  padding: var(--s-3) var(--s-4);
  background: var(--ink-900);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

/* 03. Typography --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); margin-top: var(--s-8); }
h3 { font-size: var(--fs-lg); margin-top: var(--s-6); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }
h2:first-child, h3:first-child { margin-top: 0; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
small { font-size: var(--fs-xs); }
strong { font-weight: 650; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.lede {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: var(--measure);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--tc-700); text-decoration-thickness: 2px; }

/* 04. Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink-900); color: var(--sand-100); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink a { color: #F0B79E; }
.section__head { max-width: var(--measure); margin-bottom: var(--s-6); }
.section__head h2 { margin-top: 0; }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.layout-article {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 64rem) {
  .layout-article { grid-template-columns: minmax(0, 1fr) 18rem; }
  .layout-article__aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); align-self: start; }
}

/* 05. Header & navigation ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.94);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: var(--tap);
  align-self: center;
  line-height: var(--tap);
}
.brand:hover { color: var(--ink-900); text-decoration: none; }
.brand__mark {
  width: 0.7em; height: 0.7em;
  border-radius: 50% 50% 4px 50%;
  background: var(--tc-500);
  transform: translateY(0.05em);
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: 0 var(--s-3);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav { display: none; }
.site-nav[data-open="true"] {
  display: block;
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
  padding: var(--s-3) clamp(1rem, 4vw, 2rem) var(--s-5);
}
.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.site-nav__link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s-3);
  border-radius: var(--radius);
  color: var(--ink-700);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 550;
}
.site-nav__link:hover { background: var(--sand-100); color: var(--ink-900); }
.site-nav__link[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--tc-500); border-radius: 0; }

/* No-JS: show nav as a wrapped list */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; box-shadow: none; padding: 0 0 var(--s-3); }
.no-js .site-nav__list { display: flex; flex-wrap: wrap; }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[data-open="true"] { display: block; position: static; box-shadow: none; padding: 0; border: 0; background: transparent; }
  .site-nav__list { display: flex; gap: var(--s-1); }
}

/* 06. Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: #CFC6BA;
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-sm);
}
.site-footer a { color: #F1EAE0; text-decoration-color: rgba(241, 234, 224, 0.4); }
.site-footer a:hover { color: var(--white); }
.site-footer__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.site-footer__brand { font-family: var(--font-display); font-size: 1.375rem; color: var(--white); margin-bottom: var(--s-3); }
.site-footer__title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A89F94;
  margin: 0 0 var(--s-3);
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.site-footer__list a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer__legal {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(241, 234, 224, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  color: #A89F94;
  font-size: var(--fs-xs);
}

/* 07. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); } }
.hero h1 { margin-bottom: var(--s-5); }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.hero__media img { width: 100%; object-fit: cover; }
.hero__caption {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  background: rgba(30, 28, 26, 0.72); color: var(--sand-50);
  font-size: var(--fs-xs); padding: var(--s-1) var(--s-3); border-radius: 999px;
}
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); color: var(--text-2); font-size: var(--fs-sm); }

/* 08. Editorial prose & bylines ----------------------------------------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--tc-500); }
.prose blockquote {
  margin: var(--s-6) 0;
  padding: 0 0 0 var(--s-5);
  border-left: 3px solid var(--tc-500);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--ink-700);
}
.prose figure { margin: var(--s-6) 0; }
.prose figcaption { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--text-3); }

.byline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2) var(--s-4);
  font-size: var(--fs-sm); color: var(--text-2);
  padding-block: var(--s-4);
  border-block: 1px solid var(--rule);
  margin-block: var(--s-5);
}
.byline a { color: var(--ink-900); font-weight: 600; }
.byline__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--sand-300); }

.toc { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--s-5); font-size: var(--fs-sm); }
.toc__title { font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--s-3); }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin-bottom: var(--s-2); }

/* 09. Buttons & links ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap);
  padding: 0 var(--s-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--tc-600); color: var(--white); }
.btn--primary:hover { background: var(--tc-700); color: var(--white); }
.btn--secondary { background: var(--surface); color: var(--ink-900); border-color: var(--sand-300); }
.btn--secondary:hover { border-color: var(--ink-900); color: var(--ink-900); }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: transparent; padding-inline: var(--s-3); }
.btn--ghost:hover { background: var(--sand-100); color: var(--ink-900); }
.btn--ink { background: var(--ink-900); color: var(--white); }
.btn--ink:hover { background: var(--ink-700); color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { min-height: var(--tap); padding: 0 var(--s-4); font-size: var(--fs-xs); } /* smaller type, same 44px target */
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Paid / affiliate link label — must stay visible next to any sponsored CTA */
.paid-label {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: var(--s-2);
}

.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " \2192"; transition: margin var(--dur) var(--ease); }
.link-arrow:hover::after { margin-left: 3px; }

/* 10. Resort cards & scorecards ----------------------------------------- */
.resort-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.resort-card:hover { box-shadow: var(--shadow-2); }
.resort-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-100); }
.resort-card__media img { width: 100%; height: 100%; object-fit: cover; }
.resort-card__tag {
  position: absolute; top: var(--s-3); left: var(--s-3);
  background: rgba(250, 247, 242, 0.95); color: var(--ink-900);
  font-size: var(--fs-xs); font-weight: 650;
  padding: var(--s-1) var(--s-3); border-radius: 999px;
}
.resort-card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }
.resort-card__title { font-size: var(--fs-lg); margin: 0; }
.resort-card__title a { color: inherit; text-decoration: none; }
.resort-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* whole card clickable */
.resort-card__title a:hover { color: var(--accent); }
.resort-card__loc { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.resort-card__summary { font-size: var(--fs-sm); color: var(--ink-700); margin: 0; }
.resort-card__footer {
  position: relative; z-index: 1; /* above the stretched link */
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--rule);
}
.resort-card__price { font-size: var(--fs-sm); color: var(--text-2); }
.resort-card__price strong { font-size: var(--fs-md); color: var(--ink-900); font-family: var(--font-display); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center;
  font-size: var(--fs-xs); font-weight: 600;
  padding: 2px var(--s-3);
  border-radius: 999px;
  background: var(--sand-100); color: var(--ink-700);
  border: 1px solid var(--sand-200);
}
.chip--accent { background: var(--tc-50); color: var(--tc-700); border-color: var(--tc-100); }

.card-facts { display: grid; gap: var(--s-3); margin: 0; font-size: var(--fs-sm); }
.card-facts > div { display: grid; gap: 2px; }
.card-facts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.card-facts dd { margin: 0; color: var(--ink-700); }
.card-facts small { color: var(--text-3); }
.hero__caption a { color: inherit; }

/* Booking box on hotel profiles (works with /booking-links.js) */
.book-box { margin-block: var(--s-5); padding: var(--s-5); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.book-dates { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
.book-dates[hidden] { display: none; }
/* With JS on, booking-links.js reveals the dates after load: keep their space so nothing shifts. */
.js .book-dates[hidden] { display: flex; visibility: hidden; }
.book-dates label { display: grid; gap: var(--s-1); font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); }
.book-dates input { min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--sand-300); border-radius: var(--radius); background: var(--sand-50); }
.book-note { flex-basis: 100%; margin: 0; font-size: var(--fs-xs); color: var(--text-3); }
.book-box .paid-label { display: block; margin: var(--s-3) 0 0; }
.profile-facts { gap: var(--s-4); }
@media (min-width: 40rem) { .profile-facts > div { grid-template-columns: 11rem 1fr; gap: var(--s-4); align-items: baseline; } }

/* Compare toggle on cards */
.compare-toggle {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: var(--tap);
  padding: 0 var(--s-3);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-900);
  font-size: var(--fs-xs); font-weight: 650;
}
.compare-toggle__box {
  width: 16px; height: 16px; border-radius: 3px;
  border: 1.5px solid currentColor;
  display: grid; place-items: center; flex: none;
}
.compare-toggle[aria-pressed="true"] { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.compare-toggle[aria-pressed="true"] .compare-toggle__box::after {
  content: ""; width: 8px; height: 4px; border: 2px solid currentColor; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.compare-toggle[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.no-js .compare-toggle { display: none; }

/* Scorecard */
.scorecard {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
}
.scorecard__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.scorecard__title { font-size: var(--fs-md); margin: 0; }
.scorecard__note { font-size: var(--fs-xs); color: var(--text-3); margin: var(--s-4) 0 0; }
.scorecard__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.score { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); align-items: center; }
.score__label { font-size: var(--fs-sm); font-weight: 600; }
.score__value { font-family: var(--font-display); font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.score__value small { font-family: var(--font-body); color: var(--text-3); }
.score__bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--sand-100); overflow: hidden; }
.score__bar > span { display: block; height: 100%; background: var(--tc-500); border-radius: inherit; width: calc(var(--score, 0) * 10%); }
.score__basis { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--text-2); margin: 0; }

/* 11. Verdict callouts -------------------------------------------------- */
.verdicts { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); margin-block: var(--s-6); }
.verdict {
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  border: 1px solid;
  border-top-width: 4px;
}
.verdict__title {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs); font-weight: 750;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 var(--s-3);
}
.verdict__title::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.verdict ul { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); }
.verdict li { margin-bottom: var(--s-2); }
.verdict li:last-child { margin-bottom: 0; }
.verdict p:last-child { margin-bottom: 0; }

.verdict--book { background: var(--sage-50); border-color: #CFDCCF; border-top-color: var(--sage-700); }
.verdict--book .verdict__title { color: var(--sage-700); }
.verdict--book .verdict__title::before {
  background-color: var(--sage-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.verdict--skip { background: var(--clay-50); border-color: #EBCFC8; border-top-color: var(--clay-800); }
.verdict--skip .verdict__title { color: var(--clay-800); }
.verdict--skip .verdict__title::before {
  background-color: var(--clay-800);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.verdict--neutral { background: var(--surface); border-color: var(--rule); border-top-color: var(--tc-500); }
.verdict--neutral .verdict__title { color: var(--tc-700); }
.verdict--neutral .verdict__title::before { background-color: var(--tc-500); }

/* 12. Verification stamp ----------------------------------------------- */
.stamp {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2);
  border: 1px dashed var(--tc-500);
  border-radius: 999px;
  background: var(--tc-50);
  color: var(--ink-900);
  font-size: var(--fs-xs);
  line-height: 1.35;
}
.stamp__seal {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--tc-600);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--tc-50), 0 0 0 1px var(--tc-600);
}
.stamp__seal::after {
  content: ""; width: 10px; height: 5px;
  border: 2px solid var(--white); border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.stamp__label { font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tc-700); display: block; }
.stamp time { font-weight: 600; }
.stamp a { color: inherit; }
.stamp--stale { border-color: var(--ink-500); background: var(--sand-100); }
.stamp--stale .stamp__seal { background: var(--ink-500); box-shadow: inset 0 0 0 2px var(--sand-100), 0 0 0 1px var(--ink-500); }
.stamp--stale .stamp__label { color: var(--ink-600); }

/* 13. Vibe Matcher ----------------------------------------------------- */
.matcher {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.matcher__head { padding: var(--s-5) var(--s-5) 0; }
.matcher__head h2 { margin: 0 0 var(--s-2); font-size: var(--fs-lg); }
.matcher__head p { color: var(--text-2); font-size: var(--fs-sm); margin: 0; }
.matcher__form { display: grid; gap: var(--s-5); padding: var(--s-5); }
@media (min-width: 52rem) { .matcher__form { grid-template-columns: 1.3fr 1fr 0.7fr; align-items: start; } }

.matcher__legend {
  display: block;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s-3);
}
.option-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option label {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s-4);
  border: 1px solid var(--sand-300);
  border-radius: 999px;
  background: var(--sand-50);
  font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  user-select: none;
}
.option label:hover { border-color: var(--ink-900); }
.option input:checked + label { background: var(--ink-900); border-color: var(--ink-900); color: var(--white); }
.option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--sand-300); border-radius: var(--radius); overflow: hidden; background: var(--sand-50); }
.stepper button { width: var(--tap); min-height: var(--tap); border: 0; background: transparent; font-size: 1.25rem; line-height: 1; }
.stepper button:hover { background: var(--sand-100); }
.stepper input {
  width: 3.5rem; text-align: center; border: 0; border-inline: 1px solid var(--sand-300);
  background: var(--surface); font-weight: 650; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.matcher__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.matcher__hint { font-size: var(--fs-xs); color: var(--text-3); }

.matcher__results { border-top: 1px solid var(--rule); background: var(--sand-50); padding: var(--s-5); }
.matcher__results[hidden] { display: none; }
.matcher__summary { font-size: var(--fs-sm); color: var(--text-2); margin: 0 0 var(--s-4); }
.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); counter-reset: match; }
.match {
  counter-increment: match;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.match::before {
  content: counter(match);
  grid-row: span 3;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tc-50); color: var(--tc-700);
  font-family: var(--font-display); font-weight: 600;
}
.match__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); align-items: baseline; }
.match__name { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; margin: 0; }
.match__name a { color: var(--ink-900); text-decoration: none; }
.match__name a:hover { color: var(--accent); text-decoration: underline; }
.match__cost { font-family: var(--font-display); font-size: var(--fs-md); font-variant-numeric: tabular-nums; white-space: nowrap; }
.match__cost small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-3); text-align: right; }
.match__why { font-size: var(--fs-sm); color: var(--ink-700); margin: 0; }
.match__breakdown { font-size: var(--fs-xs); color: var(--text-2); margin: 0; font-variant-numeric: tabular-nums; }
.match__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.match--incomplete .match__cost { color: var(--text-3); }
.match__quote { grid-column: 2; }
.quote-field { display: grid; gap: var(--s-1); max-width: 18rem; }
.quote-field label { font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); }
.quote-field input { min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--sand-300); border-radius: var(--radius); background: var(--surface); font-variant-numeric: tabular-nums; }
.quote-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.option input:disabled + label { opacity: 0.45; cursor: not-allowed; border-style: dashed; }
.match-empty { padding: var(--s-5); text-align: center; color: var(--text-2); background: var(--surface); border: 1px dashed var(--sand-300); border-radius: var(--radius); }
.matcher__method { margin: var(--s-4) 0 0; font-size: var(--fs-xs); color: var(--text-3); }

/* 14. Comparison drawer & matrix --------------------------------------- */
.compare-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink-900); color: var(--sand-50);
  box-shadow: 0 -8px 30px rgba(30, 28, 26, 0.25);
  transform: translateY(110%);
  transition: transform 260ms var(--ease);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.compare-drawer[data-open="true"] { transform: translateY(0); }
.compare-drawer:not([data-open="true"]) { visibility: hidden; transition: transform 260ms var(--ease), visibility 0s 260ms; }
.compare-drawer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4);
  padding-block: var(--s-3);
}
.compare-drawer__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #C9BFB3; }
.compare-drawer__items { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; flex: 1 1 18rem; }
.compare-pill {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding-left: var(--s-3);
  background: rgba(250, 247, 242, 0.1);
  border: 1px solid rgba(250, 247, 242, 0.2);
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
}
.compare-pill button {
  width: var(--tap); height: var(--tap); border: 0; background: transparent; color: inherit; border-radius: 50%;
  font-size: 1.1rem; line-height: 1;
}
.compare-pill button:hover { background: rgba(250, 247, 242, 0.15); }
.compare-pill--empty { padding: 0 var(--s-3); min-height: var(--tap); border-style: dashed; color: #A89F94; font-weight: 500; }
.compare-drawer__actions { display: flex; gap: var(--s-2); margin-left: auto; }
.compare-drawer .btn--secondary { background: transparent; color: var(--sand-50); border-color: rgba(250, 247, 242, 0.35); }
.compare-drawer .btn--secondary:hover { border-color: var(--sand-50); color: var(--white); }
.compare-drawer .btn--primary { background: var(--sand-50); color: var(--ink-900); }
.compare-drawer .btn--primary:hover { background: var(--white); color: var(--ink-900); }
.compare-drawer :focus-visible { outline-color: var(--sand-50); }

.matrix-dialog {
  width: min(64rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.matrix-dialog[open] { display: flex; flex-direction: column; }
.matrix-dialog::backdrop { background: rgba(30, 28, 26, 0.55); }
/* Fallback when <dialog> is unsupported */
.matrix-dialog--fallback { position: fixed; inset: 0.75rem; margin: auto; z-index: 70; }
.matrix-dialog--fallback:not([open]) { display: none; }

.matrix__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.matrix__title { font-size: var(--fs-lg); margin: 0; }
.matrix__close { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); font-size: 1.4rem; line-height: 1; flex: none; }
.matrix__close:hover { background: var(--sand-100); }
.matrix__body { overflow: auto; padding: var(--s-5); -webkit-overflow-scrolling: touch; }
.matrix__foot {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.matrix__note { font-size: var(--fs-xs); color: var(--text-3); margin: 0; flex: 1 1 20rem; }

.matrix-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); min-width: 34rem; }
.matrix-table th, .matrix-table td { padding: var(--s-3) var(--s-4); vertical-align: top; text-align: left; border-bottom: 1px solid var(--rule); }
.matrix-table thead th {
  position: sticky; top: calc(-1 * var(--s-5)); z-index: 1;
  background: var(--bg);
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600;
  border-bottom: 2px solid var(--ink-900);
}
.matrix-table thead th a { color: var(--ink-900); }
.matrix-table thead th .btn { font-family: var(--font-body); margin-left: calc(-1 * var(--s-3)); }
.matrix__area { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 400; color: var(--text-2); margin-block: 2px var(--s-2); }
.matrix-table tbody th {
  position: sticky; left: 0; z-index: 1;
  background: var(--bg);
  width: 11rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2);
}
.matrix-table td { font-variant-numeric: tabular-nums; }
.matrix-table td small { display: block; color: var(--text-3); font-size: var(--fs-xs); margin-top: 2px; }
.matrix-table .is-best { background: var(--sage-50); }
.matrix-table .is-best::after { content: " \2022 lowest"; color: var(--sage-700); font-size: var(--fs-xs); font-weight: 650; }
.matrix-table .is-missing { color: var(--text-3); font-style: italic; }
.meter { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: var(--s-2); }
.meter i { width: 8px; height: 8px; border-radius: 2px; background: var(--sand-200); }
.meter i.on { background: var(--tc-500); }

/* 15. Tables ---------------------------------------------------------- */
.table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-block: var(--s-5);
}
.table-wrap:focus-visible { outline-offset: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 36rem; }
.table caption { text-align: left; padding: var(--s-4) var(--s-4) 0; font-size: var(--fs-xs); color: var(--text-3); caption-side: bottom; padding-bottom: var(--s-4); }
.table th, .table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table thead th { background: var(--sand-100); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-700); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: var(--sand-50); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tbody th { font-weight: 650; }

/* 16. Disclosure, notes, FAQ ------------------------------------------ */
.disclosure {
  display: flex; gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--radius);
  background: var(--sand-100);
  border-left: 3px solid var(--tc-500);
  font-size: var(--fs-sm);
  color: var(--ink-700);
  margin-block: var(--s-5);
}
.disclosure p:last-child { margin-bottom: 0; }

.note {
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  margin-block: var(--s-5);
}
.note--warn { border-color: #E6C9A8; background: #FBF4EA; }
.note__title { font-weight: 700; margin: 0 0 var(--s-2); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; margin-block: var(--s-5); }
.facts > div { background: var(--surface); padding: var(--s-4); }
.facts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-1); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: var(--fs-md); }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: var(--tap);
  padding: var(--s-4) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.5rem; font-weight: 300; color: var(--tc-600); flex: none; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: var(--s-4); max-width: var(--measure); }

.sources { font-size: var(--fs-sm); color: var(--text-2); }
.sources ol { padding-left: 1.25em; }
.sources li { margin-bottom: var(--s-2); word-break: break-word; }

/* 17. Ad containers (CLS-safe) ----------------------------------------- */
/* Reserve space before the ad loads so nothing below it shifts.
   Keep ad slots away from booking buttons (minimum one full block apart). */
.ad-slot {
  position: relative;
  display: block;
  min-height: 280px;
  margin-block: var(--s-7);
  padding-top: 1.5rem;          /* room for the label */
  background: var(--sand-100);
  border-radius: var(--radius);
  overflow: hidden;
  contain: layout;
}
.ad-slot::before {
  content: "Advertisement";
  position: absolute; top: 0.35rem; left: 0; right: 0;
  text-align: center;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
}
.ad-slot > ins { display: block; min-height: 250px; }
.ad-slot--inline { max-width: var(--measure); }
@media (min-width: 64rem) { .ad-slot--sidebar { min-height: 600px; } }
/* If AdSense leaves a slot unfilled, collapse only the label so the reserved box still prevents shift above the fold;
   below the fold the slot may collapse fully. */
.ad-slot--below-fold:has(ins[data-ad-status="unfilled"]) { min-height: 0; padding: 0; margin: 0; background: none; }
.ad-slot--below-fold:has(ins[data-ad-status="unfilled"])::before { content: none; }

/* 18. Toast ----------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--drawer-h) + var(--s-5)); z-index: 80;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: var(--s-3) var(--s-5);
  max-width: calc(100vw - 2rem);
  background: var(--ink-900); color: var(--sand-50);
  border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600;
  box-shadow: var(--shadow-3);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

.copy-buffer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.share-fallback[hidden] { display: none; }
.share-fallback { display: flex; gap: var(--s-2); width: 100%; }
.share-fallback input { flex: 1; min-height: var(--tap); padding: 0 var(--s-3); border: 1px solid var(--sand-300); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-xs); }

/* 19. Utilities ------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--text-2); }
.text-small { font-size: var(--fs-sm); }
.tabular { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.stack > * + * { margin-top: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.divider { height: 1px; background: var(--rule); margin-block: var(--s-6); }
.placeholder-verify { background: #FFF3C4; outline: 1px dashed #B58A00; padding: 0 2px; } /* visible marker for unverified copy; must not ship */

/* 20. Motion & print -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .compare-drawer, .ad-slot, .matcher__form, .compare-toggle, .toast, .nav-toggle { display: none !important; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .resort-card, .verdict, .scorecard, .table-wrap { break-inside: avoid; box-shadow: none; }
}
