/* Motel The Village — redesign layer over the Organic design system.
   Load after organic.css. Layout only; all colour/type/space from tokens. */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; }

.container { max-width: 1240px; margin: 0 auto; padding-inline: clamp(var(--space-4), 5vw, 72px); }
.container-narrow { max-width: 1000px; margin: 0 auto; padding-inline: clamp(var(--space-4), 5vw, 72px); }
.section { padding-block: clamp(var(--space-8), 6vw, 88px); }
.section-tight { padding-block: clamp(var(--space-6), 4vw, 56px); }
.section-surface { background: var(--color-surface); }
.stack > * + * { margin-top: var(--space-3); }

/* ── header ─────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: clamp(var(--space-3), 2vw, var(--space-6));
  padding: var(--space-3) clamp(var(--space-3), 3vw, 48px);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
}
.site-nav .brand {
  font-family: var(--font-heading); font-size: clamp(15px, 1.35vw, 21px);
  color: var(--color-text); text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.site-nav .brand:hover { color: var(--color-accent); }
.nav-links {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-start;
  gap: clamp(10px, 1.3vw, var(--space-4)); overflow-x: auto; scrollbar-width: thin;
}
.nav-links::-webkit-scrollbar { height: 4px; }
.nav-links::-webkit-scrollbar-thumb { background: var(--color-neutral-400); border-radius: 999px; }
.nav-links a {
  font-size: clamp(12px, 1vw, 14px); white-space: nowrap;
  color: var(--color-text); text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-accent); }
.nav-cta { display: flex; align-items: center; gap: clamp(6px, 0.6vw, var(--space-2)); flex-shrink: 0; }
.nav-cta .btn {
  padding: 9px clamp(10px, 1vw, 18px);
  font-size: clamp(13px, 0.9vw, 14px); white-space: nowrap;
}
/* ── hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-8), 5vw, 72px) clamp(var(--space-6), 4vw, 56px); }
.hero .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-accent { background: var(--color-accent-200); }
.blob-sage { background: var(--color-accent-2-200); }
.hero .blob { opacity: 0.48; }
.blob-tr { top: -150px; right: -120px; width: 420px; height: 420px; }
.blob-tl { top: -150px; left: -130px; width: 420px; height: 420px; }
.blob-top { top: -160px; left: 50%; transform: translateX(-50%); width: 520px; height: 520px; }
.blob-small { top: 200px; right: 280px; width: 140px; height: 140px; }
.hero-grid {
  position: relative; display: grid; align-items: center;
  max-width: 1360px; padding-inline: clamp(var(--space-4), 4vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--space-4), 4vw, 64px);
}
.hero h1 { max-width: 18ch; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.06; text-wrap: balance; margin: var(--space-3) 0 var(--space-4); }
.hero-lede { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.7; max-width: 46ch; color: var(--color-neutral-800); margin-bottom: var(--space-6); }
.hero-center { text-align: center; }
.hero-center .hero-lede { margin-inline: auto; }
.mtv-reveal { animation: mtvRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.mtv-reveal-2 { animation: mtvRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
@keyframes mtvRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .mtv-reveal, .mtv-reveal-2 { animation: none; } }

.frame { border-radius: calc(var(--radius-lg) * 2.2); overflow: hidden; }
.frame-bl { border-bottom-left-radius: var(--radius-lg); }
.frame-tl { border-top-left-radius: var(--radius-lg); }
.frame-br { border-bottom-right-radius: var(--radius-lg); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-54 { aspect-ratio: 5 / 4; }
.ratio-1 { aspect-ratio: 1 / 1; }
.ratio-1610 { aspect-ratio: 16 / 10; }

/* ── stats ──────────────────────────────────────────────── */
.stats { display: flex; flex-wrap: wrap; gap: clamp(var(--space-4), 3vw, var(--space-8)); }
.stat b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--color-accent-700); }
.stat span { display: block; margin-top: var(--space-1); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }

/* ── section headings ───────────────────────────────────── */
.lede-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(var(--space-4), 4vw, 64px); align-items: end; }
.lede-grid h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.06; margin: 0; }
.lede-grid p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--color-neutral-700); max-width: 48ch; }
.section-head { max-width: 50ch; margin-bottom: clamp(var(--space-6), 4vw, 52px); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); margin: var(--space-3) 0 var(--space-3); }
.section-head p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--color-neutral-700); }

/* ── chips / tabs ───────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips > .btn, .actions > .btn, .booking .btn { white-space: nowrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: var(--space-2); }
.chips-scroll::-webkit-scrollbar { height: 0; }
.chip {
  padding: var(--space-2) var(--space-4); font-size: 14px; white-space: nowrap;
  background: transparent; color: var(--color-text); border: 1px solid var(--color-divider);
}
.chip:hover { border-color: var(--color-accent); }
.chip.is-active { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.chip-sage.is-active { background: var(--color-accent-2-500); border-color: var(--color-accent-2-500); }
.chip-stack { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.chip-stack { white-space: normal; }
.chip-stack b { font-family: var(--font-heading); font-weight: 400; font-size: 16px; }
.chip-stack span { font-size: 12px; opacity: 0.8; }
[data-panel][hidden] { display: none; }

/* ── grids ──────────────────────────────────────────────── */
.grid { display: grid; gap: clamp(var(--space-3), 2vw, var(--space-6)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(var(--space-4), 4vw, 56px); align-items: center; }
.split-top { align-items: start; }

/* ── media card ─────────────────────────────────────────── */
.media-card { padding: 0; overflow: hidden; gap: 0; }
.media-card .media { aspect-ratio: 4 / 3; overflow: hidden; }
.media-card .media img { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.media-card .card-title { font-size: 21px; }
.media-card .card-body { font-size: 14px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--color-divider); }
.price { font-family: var(--font-heading); font-size: 20px; color: var(--color-accent-700); }

/* ── selectable card (activities, passes) ───────────────── */
.pick { text-align: left; cursor: pointer; border: 1px solid var(--color-divider); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.pick:hover { box-shadow: var(--shadow-md); }
.pick.is-active { background: var(--color-accent-100); border-color: var(--color-accent); box-shadow: var(--shadow-lg); }
.pick-num { position: absolute; top: var(--space-3); left: var(--space-3); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-size: 17px; background: var(--color-bg); color: var(--color-accent-700); }
.pick.is-active .pick-num { background: var(--color-accent); color: var(--color-bg); }
.meter { display: flex; gap: 4px; }
.meter i { width: 16px; height: 4px; border-radius: 999px; background: var(--color-accent-200); }
.meter i.on { background: var(--color-accent); }

/* ── menu list (spa + dining) ───────────────────────────── */
.menu-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 clamp(var(--space-6), 4vw, 64px); }
.menu-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--color-divider); padding: var(--space-3) 0;
  font-family: var(--font-body); font-size: 15px; color: var(--color-text);
}
button.menu-row { cursor: pointer; }
button.menu-row:hover { border-bottom-color: var(--color-accent); }
.menu-row .rate { font-family: var(--font-heading); font-size: 16px; white-space: nowrap; color: var(--color-accent-700); }
.menu-row.is-active { color: var(--color-accent-700); font-weight: 600; }
.menu-row.is-active .rate { color: var(--color-accent-700); }

/* ── strips ─────────────────────────────────────────────── */
.strip { display: flex; gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-2); scrollbar-width: thin; }
.strip figure { flex: 0 0 clamp(190px, 22vw, 290px); }
.strip .shot { overflow: hidden; border-radius: calc(var(--radius-lg) * 1.4); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.strip figure:hover img { transform: scale(1.05); }
.strip figcaption { margin-top: var(--space-2); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-600); }

/* ── booking block ──────────────────────────────────────── */
.booking { padding: clamp(var(--space-6), 4vw, 56px); gap: var(--space-6); }
.booking h2 { font-size: clamp(24px, 2.8vw, 36px); margin: 0 0 var(--space-3); }
.booking p.note { margin: 0; font-size: 16px; line-height: 1.8; color: var(--color-neutral-700); }
.selection {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3);
  padding: var(--space-4) var(--space-6); border-radius: 999px; background: var(--color-accent-100);
}
.selection b { font-family: var(--font-heading); font-weight: 400; font-size: 19px; color: var(--color-accent-900); }
.selection span { font-size: 14px; color: var(--color-accent-800); }
.selection-sage { background: var(--color-accent-2-100); }
.selection-sage b { color: var(--color-accent-2-900); }
.selection-sage span { color: var(--color-accent-2-800); }
.actions { display: flex; flex-direction: column; gap: var(--space-2); }
.actions .btn { padding: var(--space-3) var(--space-6); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb658; color: #fff; }
.form-wrap { padding-top: var(--space-4); border-top: 1px solid var(--color-divider); }
.form-wrap[hidden] { display: none; }
.gform { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.gform .wide { grid-column: 1 / -1; }
.gform .row { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--color-accent-2-700); }

/* ── comparison table ───────────────────────────────────── */
.table-scroll { overflow-x: auto; }
.table-scroll .table { min-width: 660px; }
.table th.room { font-family: var(--font-heading); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--color-accent-700); }
.table td.on { color: var(--color-accent-700); font-weight: 600; }

/* ── feature pills ──────────────────────────────────────── */
.feats { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.feats .tag { gap: 6px; padding: 7px 14px; font-size: 13px; }
.feats svg { width: 15px; height: 15px; }

/* ── panels of soft colour ──────────────────────────────── */
.patch { border-radius: calc(var(--radius-lg) * 1.6); padding: clamp(var(--space-6), 4vw, 56px); }
.patch-accent { background: var(--color-accent-100); }
.patch-accent h3 { color: var(--color-accent-900); }
.patch-accent p { color: var(--color-accent-800); }
.patch-sage { background: var(--color-accent-2-100); }
.patch-sage h3 { color: var(--color-accent-2-900); }
.patch-sage p { color: var(--color-accent-2-800); }
.pill-note { padding: var(--space-4) var(--space-6); border-radius: 999px; background: var(--color-accent-2-100); text-align: center; }
.pill-note b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 20px; color: var(--color-accent-2-900); }
.pill-note span { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-2-800); }

/* numbered principles */
.principle { display: flex; gap: var(--space-4); align-items: flex-start; }
.principle .n { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-bg); font-family: var(--font-heading); font-size: 15px; }
.principle h4 { margin: 0 0 4px; font-size: 18px; color: var(--color-accent-900); }
.principle p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--color-accent-800); }

/* team */
.portrait { width: clamp(140px, 18vw, 200px); aspect-ratio: 1 / 1; margin: 0 auto var(--space-4); border-radius: 50%; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.person { text-align: center; }
.person b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: 20px; }
.person span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-600); }

/* ── gallery ────────────────────────────────────────────── */
.tile { position: relative; padding: 0; border: 0; cursor: pointer; background: none; overflow: hidden; border-radius: calc(var(--radius-lg) * 1.4); aspect-ratio: 4 / 5; display: block; width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.tile:hover img { transform: scale(1.05); }
.tile:hover { box-shadow: var(--shadow-md); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: var(--space-6) var(--space-4) var(--space-3); text-align: left;
  font-family: var(--font-heading); font-size: 15px; color: #fff;
  background: linear-gradient(to top, rgba(32, 30, 29, 0.85), transparent);
}
.tile[hidden] { display: none; }
.count { text-align: center; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-600); }
#lightbox[hidden] { display: none; }
#lightbox { z-index: 80; }
.lb-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: min(1000px, 92vw); }
.lb-inner img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: calc(var(--radius-lg) * 1.4); box-shadow: var(--shadow-lg); }
.lb-inner p { margin: 0; font-family: var(--font-heading); font-size: 18px; color: var(--color-bg); }
.lb-nav { display: flex; gap: var(--space-2); }
.lb-nav .btn { padding: var(--space-2) var(--space-6); }
.lb-nav .btn-secondary { background: var(--color-bg); }

/* ── event archive ───────────────────────────────────────── */
.stat-band { background: var(--color-accent-2-100); padding-block: clamp(var(--space-6), 4vw, 52px); }
.stat-band .grid { text-align: center; }
.stat-band b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: clamp(28px, 3.2vw, 42px); line-height: 1; color: var(--color-accent-2-900); }
.stat-band span { display: block; margin-top: var(--space-1); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-2-800); }
.label { margin: 0 0 var(--space-3); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-600); }

/* faq */
.faq { display: flex; flex-direction: column; gap: var(--space-2); }
.faq details { padding: 0; gap: 0; overflow: hidden; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-6); cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--color-accent); transition: transform 0.25s; }
.faq details[open] summary { color: var(--color-accent-700); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 var(--space-6) var(--space-4); font-size: 15px; line-height: 1.8; color: var(--color-neutral-700); }

/* ── footer ─────────────────────────────────────────────── */
.site-foot { background: var(--color-neutral-900); color: var(--color-neutral-200); padding: clamp(var(--space-8), 6vw, 80px) 0 var(--space-6); margin-top: var(--space-8); }
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(var(--space-6), 4vw, 56px); }
.site-foot h6 { margin: 0 0 var(--space-4); color: var(--color-accent-300); }
.site-foot .mark { font-family: var(--font-heading); font-size: 22px; margin: 0 0 var(--space-3); color: var(--color-accent-300); }
.site-foot .motto { margin: 0 0 var(--space-2); font-size: 18px; font-family: var(--font-heading); color: var(--color-neutral-100); }
.site-foot .sub { margin: 0 0 var(--space-4); font-size: 14px; color: var(--color-neutral-400); }
.site-foot .addr { margin: 0; font-size: 13px; line-height: 1.8; color: var(--color-neutral-400); }
.site-foot .links { display: flex; flex-direction: column; gap: var(--space-2); }
.site-foot .links a { font-size: 14px; color: var(--color-neutral-300); text-decoration: none; }
.site-foot .links a:hover { color: var(--color-accent-300); }
.site-foot .tel { display: block; font-family: var(--font-heading); font-size: 20px; color: var(--color-neutral-100); text-decoration: none; margin-bottom: var(--space-2); }
.site-foot .wa { font-size: 14px; color: var(--color-accent-300); text-decoration: none; }
.site-foot .know { margin: 0; font-size: 14px; line-height: 1.8; color: var(--color-neutral-400); }
.site-foot .legal { margin: clamp(var(--space-6), 4vw, 56px) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--color-neutral-800); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-500); text-align: center; }
.site-foot .developer-credit { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-3); margin: var(--space-3) auto 0; padding: 0 var(--space-4); color: var(--color-neutral-500); font-size: 12px; line-height: 1.8; text-align: center; }
.site-foot .developer-credit span { display: inline-block; }

/* floating contact */
.floaties { position: fixed; right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.floaties a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.floaties a:hover { transform: scale(1.06); }
.fl-wa { background: #25d366; color: #fff; }
.fl-tel { background: var(--color-accent); color: var(--color-bg); }
.activity-number { display: grid; place-items: center; background: linear-gradient(135deg, var(--color-accent-2-100), var(--color-accent-100)); }
.activity-index { font-family: var(--font-heading); font-size: clamp(56px, 8vw, 96px); line-height: 1; color: var(--color-accent-2-300); }

@media (max-width: 640px) {
  .site-nav { flex-wrap: wrap; }
  .nav-links { order: 3; flex: 1 1 100%; justify-content: flex-start; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .floaties a { width: 48px; height: 48px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > .mtv-reveal { max-width: 64ch; }
  .hero-grid .frame, .hero-grid .hero-image { width: 100%; max-width: 760px; margin-inline: auto; }
}
