/* Saeng Sai Pool Villas Hua Hin (fictional brand) — shared styles
   Palette: salt, gulf, tile, mist, sand, sun, teak. Type: Trirong (display) + Anuphan (body). */

:root {
  --salt: #F3F6F5;
  --white: #FFFFFF;
  --gulf: #0F3B45;
  --tile: #1D6677;
  --mist: #D7E7E4;
  --sand: #E9E0CF;
  --sun: #F2C14E;
  --sun-hover: #F6D27F;
  --teak: #D4A872;
  --teak-ink: #3A2A1A;
  --muted: #4A6168;
  --rule: rgba(15, 59, 69, 0.16);
  --field: #6E8C92;
  --error: #A33B22;

  --f-display: "Trirong", Georgia, "Times New Roman", serif;
  --f-body: "Anuphan", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --bar-h: 68px;
}

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

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

body {
  margin: 0;
  background: var(--salt);
  color: var(--gulf);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.4;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.5rem); line-height: 1.4; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.375rem; font-weight: 500; }

p { margin: 0 0 1em; }

a { color: var(--tile); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--tile); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--sun); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--gulf); color: var(--salt); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

[id] { scroll-margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--salt); }
.header-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.25rem 1.5rem; padding-block: 0.6rem 0.4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--gulf); text-decoration: none; min-height: 48px;
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand__name { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.375rem; line-height: 1.25; }
.brand__sub { display: block; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }

.lang { display: flex; align-items: center; font-size: 0.9375rem; font-weight: 600; }
.lang a, .lang span[aria-current] {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding-inline: 0.25rem; text-decoration: none; color: var(--muted);
}
.lang span[aria-current] { color: var(--gulf); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.lang a:hover { color: var(--gulf); }
.lang__sep { color: var(--rule); }

.nav { order: 3; width: 100%; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--gulf); text-decoration: none; font-weight: 400;
}
.nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
.nav a.nav__book { background: var(--sun); padding-inline: 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.nav a.nav__book:hover { background: var(--sun-hover); }

.concept-row { padding-block: 0.5rem 0; }
.concept {
  display: inline-block; margin: 0; padding: 0.1rem 0.75rem;
  font-size: 0.8125rem; line-height: 1.6; color: var(--muted);
  background: var(--white); border: 1px solid var(--rule); border-radius: 999px;
}

@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin-left: auto; }
  .nav ul { gap: 0.5rem 1.75rem; }
  .header-in { flex-wrap: nowrap; padding-block: 0.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.55rem 1.4rem; border-radius: 999px;
  border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.4;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn--sun { background: var(--sun); color: var(--gulf); border-color: var(--sun); }
.btn--sun:hover { background: var(--sun-hover); border-color: var(--sun-hover); }
.btn--ghost { color: var(--gulf); border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(15, 59, 69, 0.06); }
.on-dark .btn--ghost { color: var(--salt); }
.on-dark .btn--ghost:hover { background: rgba(243, 246, 245, 0.1); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Key fob (signature element) ---------- */
.fob {
  position: absolute; z-index: 2; width: 9.75rem;
  transform-origin: 50% 0; rotate: -6deg;
  color: var(--teak-ink); text-align: center;
  filter: drop-shadow(0 8px 10px rgba(15, 59, 69, 0.3));
}
.fob::before { /* cord */
  content: ""; position: relative; z-index: 1; display: block;
  width: 2px; height: 2.6rem; margin: 0 auto -0.8rem; border-radius: 1px; background: var(--gulf);
}
.fob::after { /* nail */
  content: ""; position: absolute; top: -5px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px;
  border-radius: 50%; background: var(--gulf); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
.fob__body {
  padding: 2.5rem 0.85rem 1.15rem;
  border-radius: 4.875rem 4.875rem 1.5rem 1.5rem;
  background:
    repeating-linear-gradient(174deg, rgba(58, 42, 26, 0.07) 0 1px, transparent 1px 7px),
    var(--teak);
  box-shadow: inset 0 0 0 7px var(--teak), inset 0 0 0 8px rgba(58, 42, 26, 0.38);
  -webkit-mask: radial-gradient(circle 0.55rem at 50% 1.35rem, transparent 96%, #000 100%);
  mask: radial-gradient(circle 0.55rem at 50% 1.35rem, transparent 96%, #000 100%);
}
.fob__title { display: block; margin: 0 0 0.35rem; font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.3; }
.fob__list { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; line-height: 1.5; }
.fob__list li + li { border-top: 1px solid rgba(58, 42, 26, 0.25); margin-top: 0.3rem; padding-top: 0.3rem; }

.fob--sm { width: 6.75rem; }
.fob--sm::before { height: 2rem; margin-bottom: -0.65rem; }
.fob--sm .fob__body {
  padding: 2rem 0.5rem 0.85rem; border-radius: 3.375rem 3.375rem 1.1rem 1.1rem;
  box-shadow: inset 0 0 0 5px var(--teak), inset 0 0 0 6px rgba(58, 42, 26, 0.38);
  -webkit-mask: radial-gradient(circle 0.45rem at 50% 1.1rem, transparent 96%, #000 100%);
  mask: radial-gradient(circle 0.45rem at 50% 1.1rem, transparent 96%, #000 100%);
}
.fob--sm .fob__title { font-size: 1.0625rem; margin: 0; }
.fob--sm .fob__note { display: block; font-size: 0.8125rem; line-height: 1.4; }

@keyframes fob-swing {
  0% { rotate: -22deg; }
  30% { rotate: 6deg; }
  52% { rotate: -11deg; }
  72% { rotate: -3deg; }
  88% { rotate: -7deg; }
  100% { rotate: -6deg; }
}
.hero .fob { animation: fob-swing 2.2s cubic-bezier(0.3, 0.7, 0.4, 1) 0.3s both; }

/* ---------- Hero ---------- */
.hero { padding-block: 1.75rem 3.5rem; overflow-x: clip; }
@media (max-width: 599px) {
  .hero__media .fob { right: 0.75rem; width: 8.25rem; }
  .hero__media .fob .fob__title { font-size: 1.25rem; }
}
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }
.hero h1 { max-width: 15em; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 34em; }
.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--mist); }
.hero__media .fob { top: 0; right: 1.25rem; }
.facts { display: grid; gap: 0.6rem; list-style: none; margin: 2rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
.facts strong { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; color: var(--gulf); margin-right: 0.25rem; }

@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 900px) {
  .hero { padding-block: 3rem 5rem; }
  .hero__grid { grid-template-columns: 5fr 6fr; gap: 4rem; }
  .hero__media img { aspect-ratio: 4 / 5; }
  .hero__media .fob { right: 2rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section--mist { background: var(--mist); }
.section--sand { background: var(--sand); }
.section--gulf { background: var(--gulf); color: var(--salt); }
.section--gulf h2, .section--gulf h3 { color: var(--white); }
.section-intro { max-width: 40rem; margin-bottom: 2.5rem; }
.section-intro p { color: var(--muted); }
.section--gulf .section-intro p { color: var(--mist); }

@media (min-width: 900px) { .section { padding-block: 6rem; } }

/* Book-direct band */
.perks { display: grid; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.perk svg { width: 44px; height: 44px; margin-bottom: 0.75rem; }
.perk h3 { margin-bottom: 0.4rem; }
.perk p { color: var(--mist); margin: 0; }
.direct-note { margin-top: 1rem; font-size: 0.9375rem; color: #B9D3CF; }
@media (min-width: 768px) {
  .perks { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* Villa rows (home) */
.vrow { display: grid; gap: 1.75rem; padding-block: 2.75rem; border-top: 1px solid var(--rule); }
.vrow:last-child { border-bottom: 1px solid var(--rule); }
.vrow__media { position: relative; margin: 0; }
.vrow__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--mist); }
.vrow__media .fob { top: 0; left: 1.25rem; rotate: 5deg; }
.vrow h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); font-weight: 300; margin-bottom: 0.1rem; }
.vrow__en { margin: 0 0 1rem; color: var(--muted); font-size: 0.9375rem; }
.specs { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: 0.9375rem; }
.specs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.specs svg { width: 20px; height: 20px; flex: none; color: var(--tile); }
.from { margin: 0 0 1rem; color: var(--muted); }
.from strong { font-family: var(--f-display); font-size: 1.75rem; font-weight: 500; color: var(--gulf); margin-inline: 0.2rem; }
@media (min-width: 900px) {
  .vrow { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center; }
  .vrow:nth-child(even) .vrow__media { order: 2; }
  .vrow:nth-child(even) .vrow__media .fob { left: auto; right: 1.5rem; rotate: -4deg; }
}

/* Amenities */
.amen { display: grid; gap: 2.5rem; }
.amen h3 { padding-bottom: 0.5rem; border-bottom: 2px solid var(--gulf); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.95rem; height: 0.5rem;
  border-left: 2px solid var(--tile); border-bottom: 2px solid var(--tile); rotate: -45deg;
}
.ticks small { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
@media (min-width: 768px) { .amen { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* A day in light (gallery) */
.day { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 0.75rem; list-style: none; margin: 0; padding: 0; }
.day figure { margin: 0; }
.day img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: var(--mist); }
.day li:first-child { grid-column: 1 / -1; }
.day li:first-child img { aspect-ratio: 3 / 2; }
.day figcaption { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.day time { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; color: var(--gulf); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .day { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
  .day li { grid-column: span 2; }
  .day li:first-child { grid-column: span 2; }
  .day li:first-child img { aspect-ratio: 1 / 1; }
  .day li:nth-child(4), .day li:nth-child(5) { grid-column: span 3; }
  .day li:nth-child(4) img, .day li:nth-child(5) img { aspect-ratio: 3 / 2; }
}

/* Location */
.loc { display: grid; gap: 2.5rem; }
.loc__media { margin: 0; }
.loc__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--mist); }
.loc__media figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.dist { margin: 1.5rem 0; padding: 0; }
.dist__row { display: flex; align-items: baseline; gap: 0.75rem; padding-block: 0.45rem; border-bottom: 1px dotted rgba(15, 59, 69, 0.35); }
.dist dt { flex: 1; margin: 0; }
.dist dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dist__cap { margin: 0 0 0.25rem; font-size: 0.9375rem; color: var(--muted); }
.address { font-style: normal; margin-bottom: 1rem; }
@media (min-width: 900px) { .loc { grid-template-columns: 6fr 5fr; gap: 4rem; align-items: start; } }

/* Reviews */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: -1rem 0 2.5rem; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: #C99415; }
.stars svg { width: 20px; height: 20px; }
.reviews { display: grid; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.review { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--tile); }
.review p { font-family: var(--f-display); font-size: 1.1875rem; line-height: 1.75; margin-bottom: 0.75rem; }
.review footer { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }
.review cite { font-style: normal; font-weight: 600; color: var(--gulf); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  min-height: 44px; padding: 0.9rem 2.75rem 0.9rem 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 0.5rem; top: 1.55rem; width: 16px; height: 2px; background: var(--tile);
  transition: rotate 0.2s ease;
}
.faq summary::after { rotate: 90deg; }
.faq details[open] summary::after { rotate: 0deg; }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); max-width: 42rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta h2 { max-width: 20em; }
.cta p { color: var(--mist); max-width: 38rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gulf); color: var(--mist); padding-block: 3.5rem 2.5rem; border-top: 1px solid rgba(215, 231, 228, 0.18); font-size: 0.9375rem; }
.site-footer a { color: var(--white); }
.foot { display: grid; gap: 2rem; }
.foot h2 { font-size: 1.25rem; font-weight: 500; color: var(--white); margin-bottom: 0.5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding-block: 0.15rem; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .brand { color: var(--white); }
.foot__map { display: inline-flex; align-items: center; min-height: 44px; }
.foot .brand__sub { color: var(--mist); }
.foot__fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(215, 231, 228, 0.18); font-size: 0.8125rem; color: #B9D3CF; }
@media (min-width: 768px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }

/* ---------- PV Dev strip (separate from the demo design) ---------- */
.pv-strip {
  background: #1c1c1c; color: #d6d6d6;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
  font-size: 0.875rem; line-height: 1.6; padding: 0.85rem 0;
}
.pv-strip p { margin: 0; }
.pv-strip a { color: #ffffff; font-weight: 600; display: inline-block; padding-block: 0.7rem; }
.pv-strip a:focus-visible { outline-color: #ffffff; }

/* ---------- Mobile action bar ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: var(--gulf); box-shadow: 0 -6px 18px rgba(15, 59, 69, 0.2);
}
.mbar a {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; border-radius: 999px; border: 1px solid rgba(215, 231, 228, 0.4);
  color: var(--salt); text-decoration: none; font-weight: 600; font-size: 0.9375rem; line-height: 1.3;
}
.mbar a svg { width: 22px; height: 22px; flex: none; }
.mbar a.mbar__book { background: var(--sun); border-color: var(--sun); color: var(--gulf); }
.mbar :focus-visible { outline-color: var(--sun); }
@media (min-width: 900px) {
  .mbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Inner page head ---------- */
.page-head { padding-block: 2rem 2.5rem; }
.page-head .lead { margin-bottom: 0; }
.seasons { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.season { padding: 0.6rem 1rem; border-radius: 12px; background: var(--mist); line-height: 1.5; }
.season--high { background: var(--sand); }
.season b { display: block; }
.season span { font-size: 0.9375rem; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 1rem;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--gulf);
}
.jump a:hover { border-color: var(--tile); }

/* ---------- Villa detail (villas.html) ---------- */
.villa { padding-block: 3rem; border-top: 1px solid var(--rule); }
.villa__photos { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 0.6rem; margin: 0 0 2rem; }
.villa__photos img { width: 100%; height: clamp(200px, 48vw, 470px); object-fit: cover; border-radius: 4px; background: var(--mist); }
.villa__photos .fob { top: 0; left: 1.25rem; rotate: 5deg; }
.villa__body { display: grid; gap: 2rem; }
.villa h2 { margin-bottom: 0.1rem; }
.villa__en { color: var(--muted); margin-bottom: 1.25rem; }
.villa__desc { max-width: 38rem; }
.facts-table { margin: 0 0 1.5rem; padding: 0; }
.facts-table div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: 0.55rem; border-bottom: 1px solid var(--rule); }
.facts-table dt { color: var(--muted); font-size: 0.9375rem; }
.facts-table dd { margin: 0; }
.rates { background: var(--sand); border-radius: 16px; padding: 1.25rem 1.25rem 1.5rem; }
.rates h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.rates__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.5rem; border-bottom: 1px solid rgba(15, 59, 69, 0.18); }
.rates__row span { font-size: 0.9375rem; line-height: 1.45; }
.rates__row small { display: block; color: var(--muted); font-size: 0.8125rem; }
.rates__row strong { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; white-space: nowrap; }
.rates__note { font-size: 0.875rem; color: var(--muted); margin: 0.75rem 0 1rem; }
.rates .btn { width: 100%; }
@media (min-width: 900px) {
  .villa { padding-block: 4.5rem; }
  .villa__body { grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: start; }
}

.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.compare caption { text-align: left; color: var(--muted); padding-bottom: 0.75rem; }
.compare th, .compare td { padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--f-display); font-weight: 500; font-size: 1rem; border-bottom: 2px solid var(--gulf); }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare td { font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .compare th, .compare td { padding: 0.75rem 1rem; } .compare { font-size: 1rem; } }

.extras { columns: 1; list-style: none; margin: 0; padding: 0; }
.extras li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.extras b { font-weight: 600; white-space: nowrap; }
@media (min-width: 768px) { .extras { columns: 2; column-gap: 3rem; } }

/* ---------- Booking ---------- */
.perk-line { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.perk-line li { padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--mist); font-size: 0.9375rem; font-weight: 600; }

.bform { display: grid; gap: 1.5rem; padding-bottom: 4rem; grid-template-areas: "stay" "est" "who" "send"; }
.bform__stay { grid-area: stay; }
.bform__who { grid-area: who; }
.bform__send { grid-area: send; }
.estimate { grid-area: est; }
@media (min-width: 900px) {
  .bform { grid-template-columns: minmax(0, 1fr) 24rem; column-gap: 3rem; grid-template-areas: "stay est" "who est" "send est"; align-items: start; }
  .estimate { position: sticky; top: 1.5rem; }
}

fieldset { margin: 0; padding: 1.25rem 1.1rem 1.5rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--white); min-width: 0; }
legend { padding-inline: 0.4rem; font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; line-height: 1.4; }
.fields { display: grid; gap: 1.1rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: end; }
.field { display: grid; gap: 0.3rem; align-content: start; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.9375rem; line-height: 1.5; }
.hint { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 0.55rem 0.8rem;
  font: inherit; font-size: 1rem; line-height: 1.6; color: var(--gulf);
  background: var(--white); border: 1.5px solid var(--field); border-radius: 10px;
}
input[type="date"] { min-width: 0; -webkit-appearance: none; appearance: none; }
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--tile); outline-offset: 1px; border-color: var(--tile); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: 0.875rem; font-weight: 600; line-height: 1.5; margin: 0; }
.err:empty { display: none; }

.choice { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; padding: 0; margin: 0; background: none; }
.choice legend { font-family: var(--f-body); font-size: 0.9375rem; font-weight: 600; padding: 0; margin-bottom: 0.3rem; }
.choice label { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding-inline: 1.1rem;
  border: 1.5px solid var(--field); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.9375rem;
}
.choice input:checked + span { background: var(--gulf); border-color: var(--gulf); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--tile); outline-offset: 2px; }

.bform__send p { font-size: 0.875rem; color: var(--muted); margin: 0.75rem 0 0; }
.bform__send .btn { width: 100%; }
@media (min-width: 600px) { .bform__send .btn { width: auto; min-width: 16rem; } }

.estimate { background: var(--sand); border-radius: 16px; padding: 1.4rem 1.25rem 1.5rem; }
.estimate h2 { font-size: 1.375rem; font-weight: 500; margin-bottom: 0.25rem; }
.est__villa { margin: 0; font-weight: 600; }
.est__dates { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.9375rem; }
.est__lines { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.est__lines li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; border-bottom: 1px solid rgba(15, 59, 69, 0.18); line-height: 1.5; }
.est__lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.est__free { color: var(--tile); font-weight: 600; }
.est__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0.9rem 0 0.25rem; }
.est__total span { font-weight: 600; }
.est__total strong { font-family: var(--f-display); font-size: 2rem; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.est__meta { font-size: 0.875rem; color: var(--muted); margin: 0.25rem 0 0; }
.est__save { margin: 1rem 0 0; padding: 0.75rem 0.9rem; background: rgba(255, 255, 255, 0.6); border-radius: 10px; font-size: 0.9375rem; line-height: 1.55; }
.est__empty { color: var(--muted); margin: 0.5rem 0 0; }

.thanks { padding: 2rem 1.25rem; margin-bottom: 4rem; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; max-width: 44rem; }
.thanks:focus { outline: none; }
.thanks h2 { margin-bottom: 0.4rem; }
.thanks__sum { margin: 1.25rem 0; padding: 0; }
.thanks__sum div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding-block: 0.45rem; border-bottom: 1px solid var(--rule); }
.thanks__sum dt { color: var(--muted); font-size: 0.9375rem; }
.thanks__sum dd { margin: 0; }
@media (min-width: 600px) { .thanks { padding: 2.5rem 2.25rem; } }

[hidden] { display: none !important; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
