/* Spa Escape - editorial ivory / forest theme */
:root {
  --ivory: #f6f1e7;
  --paper: #fbf8f2;
  --sand: #e9e0cf;
  --ink: #1f3a34;
  --ink-soft: #4a5f59;
  --line: #d6cdbb;
  --terracotta: #b65f3c;
  --lime: #c9d77a;
  --amber: #e8b04a;
  --amber-bg: #fbecc9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1240px, 100% - 2.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2rem; padding: .9rem max(1.25rem, (100% - 1240px) / 2); background: rgb(246 241 231 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.topnav { display: flex; gap: 1.4rem; font-size: .9rem; }
.topnav a { text-decoration: none; color: var(--ink-soft); }
.topnav a:hover { color: var(--terracotta); }
.topbar__note { margin-left: auto; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }

/* Shared */
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; }
.section { width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 0 0; }
.section__head { max-width: 760px; margin-bottom: 2.5rem; }
.section__head h2 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.section__lead { font-size: 1.15rem; color: var(--ink-soft); }
.hint { font-size: .85rem; color: var(--ink-soft); }
.note { font-size: .95rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid var(--ink); font: 500 .95rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: .3rem .7rem; border-radius: 999px; }
.badge--lime { background: #e6edc0; color: #3a4a12; }
.badge--amber { background: var(--amber-bg); color: #7a4c00; box-shadow: inset 0 0 0 1px var(--amber); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 4rem); width: var(--wrap); margin: 0 auto; gap: 3rem; align-items: center; padding: 2.5rem 0 3rem; }
.hero__media { margin: 0; order: 2; position: relative; height: 100%; min-height: 420px; }
.hero__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero__media figcaption, figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: .6rem; }
.hero__text { order: 1; }
.hero h1 { font-size: clamp(3.4rem, 8.5vw, 7.6rem); line-height: .95; margin-bottom: 2rem; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Value strip */
.values { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.value { padding: 2rem 2rem 1.5rem 0; }
.value + .value { border-left: 1px solid var(--line); padding-left: 2rem; }
.value__num { font-family: var(--serif); font-size: .95rem; color: var(--terracotta); }
.value h2 { font-size: 1.6rem; margin-top: .4rem; }
.value p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1.2rem 2rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.seg__btn { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 .9rem var(--sans); cursor: pointer; }
.seg__btn:hover { border-color: var(--ink); }
.seg__btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.select { display: inline-flex; flex-direction: column; gap: .35rem; font-size: .8rem; color: var(--ink-soft); max-width: 100%; }
.select select { appearance: none; font: 500 .95rem var(--sans); color: var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f3a34' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .9rem center; border: 1px solid var(--line); border-radius: 999px; padding: .6rem 2.4rem .6rem 1rem; min-width: 10rem; }
.filters__count { margin: 0 0 0 auto; font-size: .85rem; color: var(--ink-soft); }
.empty { padding: 2rem 0; color: var(--ink-soft); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem 3rem; }
.card { display: flex; flex-direction: column; animation: rise .5s ease both; }
.card[hidden] { display: none; }
.card:nth-child(even) { margin-top: 5rem; }
.card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.card--feature + .card { margin-top: 0; }
.cards.is-filtered .card { margin-top: 0; }
.card__media { margin: 0 0 1.5rem; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); transition: transform .8s ease; }
.card:hover .card__media img { transform: scale(1.025); }
.card--feature .card__media img { aspect-ratio: 4 / 3.2; }
.card__place { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.card h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.card__lead { color: var(--ink-soft); }
.minstay { display: inline-block; font-weight: 600; font-size: .9rem; color: #7a4c00; border-left: 3px solid var(--amber); padding-left: .7rem; margin-bottom: 1rem; }
.facts { margin: 0 0 1.2rem; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
.more { margin-bottom: 1.4rem; font-size: .92rem; }
.more summary { cursor: pointer; font-weight: 500; color: var(--terracotta); padding: .3rem 0; }
.more ul { padding-left: 1.1rem; margin: .8rem 0 0; color: var(--ink-soft); }
.more li { margin-bottom: .55rem; }
.more b { color: var(--ink); }
.card .btn { align-self: flex-start; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Massage feature */
.massage { margin-top: clamp(5rem, 10vw, 9rem); background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr 1.15fr; }
.massage__media { margin: 0; position: relative; min-height: 420px; }
.massage__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.massage__media figcaption { position: absolute; left: 1rem; bottom: .8rem; margin: 0; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.massage__text { padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); }
.massage .eyebrow { color: var(--lime); }
.massage h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.massage p { color: #d9e2dc; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0; }
.stat { border-top: 1px solid rgb(255 255 255 / .25); padding-top: 1rem; }
.stat__big { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 3.8rem); line-height: 1; color: var(--paper); margin-bottom: .8rem; }
.stat__big small { font-size: .4em; }
.stat p { font-size: .9rem; }
.stat b { color: var(--paper); }
.massage .note { color: #c6d1cb; border-color: rgb(255 255 255 / .2); }

/* Budget */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.calc > *, .inquiry__grid > * { min-width: 0; }
.select select { max-width: 100%; min-width: 0; }
.calc__form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.2rem 0 1.4rem; min-width: 0; }
.calc__form legend { font-family: var(--serif); font-size: 1.3rem; padding: 0 0 .7rem; float: left; width: 100%; }
.calc__form legend + * { clear: both; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .92rem; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1rem; }
.calc__out { position: sticky; top: 6rem; background: var(--paper); border: 1px solid var(--line); padding: 2rem; border-radius: var(--radius); }
.lines { margin: 0; }
.lines div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.lines dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin: 1.2rem 0 .4rem; }
.total strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); font-variant-numeric: tabular-nums; }
.formula { font-size: .78rem; color: var(--ink-soft); font-family: ui-monospace, Menlo, monospace; word-break: break-word; }
.warn, .disclose { font-size: .85rem; background: var(--amber-bg); border-left: 3px solid var(--amber); padding: .7rem .9rem; }

/* Itinerary */
.timeline { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--ink); }
.timeline li { border-bottom: 1px solid var(--line); }
.timeline summary { display: flex; align-items: baseline; gap: 1.5rem; padding: 1.3rem 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); list-style: none; }
.timeline summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.timeline summary::after, .faq summary::after { content: "+"; margin-left: auto; color: var(--terracotta); font-family: var(--sans); }
.timeline details[open] summary::after, .faq details[open] summary::after { content: "\2212"; }
.day { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); min-width: 4.5rem; }
.timeline p { max-width: 62ch; margin: 0 0 1.4rem 6rem; color: var(--ink-soft); }

/* Compare */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem .9rem 1rem 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.compare tbody th { font-weight: 500; color: var(--ink-soft); width: 13%; }

/* Inquiry */
.inquiry__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.checklist { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.checklist li { counter-increment: q; position: relative; padding: 1rem 0 1rem 3rem; border-bottom: 1px solid var(--line); }
.checklist li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 1rem; font-family: var(--serif); color: var(--terracotta); }
.inquiry__box textarea { width: 100%; margin-top: 1rem; padding: 1rem; font: .85rem/1.55 ui-monospace, Menlo, monospace; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); resize: vertical; }
.status { margin: 0; font-size: .9rem; }

/* FAQ */
.faq__list { border-top: 1px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; gap: 1rem; padding: 1.2rem 0; cursor: pointer; font-family: var(--serif); font-size: 1.3rem; list-style: none; }
.faq details p { margin: 0 0 1.3rem; color: var(--ink-soft); max-width: 70ch; }

/* Footer */
.footer { margin-top: clamp(5rem, 10vw, 8rem); background: var(--sand); padding: 3.5rem 0 3rem; font-size: .9rem; }
.footer__grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 2.5rem; }
.footer h2 { font-size: 1.3rem; }
.credits summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; }
.credits ul { padding-left: 1.1rem; }
.credits li { margin-bottom: .6rem; overflow-wrap: anywhere; }

/* Responsive */
@media (max-width: 980px) {
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; padding-top: 1.5rem; }
  .hero__media { order: 1; min-height: 0; height: auto; }
  .hero__media img { height: auto; }
  .hero__text { order: 2; }
  .cards, .card--feature, .calc, .inquiry__grid, .footer__grid, .massage { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .card--feature { display: flex; gap: 0; }
  .massage__media { min-height: 0; aspect-ratio: 4 / 3; }
  .calc__out { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .calc__out { padding: 1.25rem; }
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 1.4rem 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
  .timeline p { margin-left: 0; }
  .filters__count { margin-left: 0; }
  .topbar__note { display: none; }
}
