/* Three designs share one page. Each sets its own tokens here and
   overrides layout further down under [data-design="2"] / ["3"]. */

:root,
[data-design="1"] {
  --bg: #f6f0e4;
  --surface: #fffaf1;
  --band: #ead9c1;
  --ink: #2a1d14;
  --muted: #7a6656;
  --accent: #b2452a;
  --on-accent: #fff8ee;
  --line: rgba(42, 29, 20, 0.16);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --display-weight: 400;
  --radius: 3px;
  --pill: 3px;
  --h1: clamp(44px, 6.4vw, 92px);
  --h2: clamp(32px, 4vw, 54px);
}

[data-design="2"] {
  --bg: #ffffff;
  --surface: #f4f4f2;
  --band: #0e0e0e;
  --ink: #0e0e0e;
  --muted: #6b6b6b;
  --accent: #0e0e0e;
  --on-accent: #ffffff;
  --line: rgba(14, 14, 14, 0.14);
  --display: "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --display-weight: 500;
  --radius: 0px;
  --pill: 0px;
  --h1: clamp(38px, 5vw, 72px);
  --h2: clamp(28px, 3.2vw, 44px);
}

[data-design="3"] {
  --bg: #11251e;
  --surface: #1a3429;
  --band: #0c1b16;
  --ink: #f2ebda;
  --muted: #a8b6a6;
  --accent: #d9a84e;
  --on-accent: #11251e;
  --line: rgba(242, 235, 218, 0.18);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --display-weight: 300;
  --radius: 20px;
  --pill: 999px;
  --h1: clamp(42px, 6vw, 88px);
  --h2: clamp(30px, 3.8vw, 52px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s, color 0.35s;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.04; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; line-height: 1.15; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); }
.kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.head { margin-bottom: clamp(28px, 4vw, 52px); }
.head h2 { margin-top: 12px; max-width: 20ch; }
main > section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font: 500 14px var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { opacity: 0.86; }
.btn-ghost { background: none; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand-small { font-size: 0.62em; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-right: 4px; }
.top-nav { display: flex; gap: 24px; }
.top-nav a { font-size: 14px; text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; }
.langs button {
  background: none;
  border: 0;
  padding: 6px 7px;
  font: 500 12px var(--body);
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Hero: design 1 (full-bleed) ---------- */

main > .hero { position: relative; padding: 0 0 56px; }
.hero-media { position: relative; height: min(84vh, 780px); min-height: 520px; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, 0.12) 0%, rgba(20, 12, 8, 0.7) 100%); }
.hero-copy {
  position: absolute;
  left: clamp(20px, 5vw, 56px);
  right: clamp(20px, 5vw, 56px);
  top: 0;
  height: min(84vh, 780px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 110px;
  color: #fff8ee;
}
.hero-copy .kicker { color: #f1c9a5; }
.hero-copy h1 { max-width: 15ch; margin-top: 16px; }
.hero-sub { max-width: 52ch; margin-top: 20px; font-size: 18px; opacity: 0.92; }

.booking {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0 18px;
  align-items: end;
  max-width: 1128px;
  margin: -64px auto 0;
  padding: 22px 24px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(20, 12, 8, 0.5);
  width: calc(100% - 2 * clamp(20px, 5vw, 56px));
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font: 500 15px var(--body);
  color-scheme: light;
}
[data-design="3"] .field input,
[data-design="3"] .field select { color-scheme: dark; }
.field input:focus,
.field select:focus { outline: 0; border-bottom-color: var(--accent); }
.booking .btn { height: 46px; }
.booking-note { grid-column: 1 / -1; margin-top: 12px; font-size: 13px; color: var(--muted); }
.booking-note.is-error { color: #c0392b; }

/* ---------- Intro ---------- */

.intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro h2 { margin: 14px 0 22px; }
.intro-text p + p { margin-top: 14px; }
.intro-text > p:not(.kicker) { max-width: 56ch; }
.facts { display: flex; flex-wrap: wrap; gap: 20px 44px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.facts strong { font-family: var(--display); font-weight: var(--display-weight); font-size: 40px; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.intro-media { position: relative; padding-bottom: 64px; }
.intro-media .tall { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.intro-media .small { position: absolute; left: -36px; bottom: 0; width: 46%; height: auto; aspect-ratio: 1; border: 8px solid var(--bg); border-radius: var(--radius); }

/* ---------- Perks ---------- */

main > .perks { padding: 0; background: var(--band); }
.perks-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; padding-top: 26px; padding-bottom: 26px; }
.perks-title { font-family: var(--display); font-size: 22px; }
.perks ul { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 14px; }
.perks li::before { content: "✓"; margin-right: 8px; color: var(--accent); }
[data-design="2"] .perks { color: #fff; }
[data-design="2"] .perks li::before { color: #fff; }

/* ---------- Rooms ---------- */

.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.room { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.room > img { aspect-ratio: 3 / 2; height: auto; }
.room-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.room-meta { font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.room-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 22px; }
.price { font-size: 14px; color: var(--muted); }
.price strong { font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; color: var(--ink); }

/* ---------- Experiences ---------- */

main > .exp { background: var(--surface); }
.exp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.exp-card img { aspect-ratio: 4 / 5; height: auto; border-radius: var(--radius); }
.exp-card h3 { font-size: 24px; margin: 18px 0 8px; }
.exp-card p { font-size: 15px; color: var(--muted); }

/* ---------- Gallery ---------- */

.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 22vw, 300px); gap: 12px; }
.gal-grid img { border-radius: var(--radius); }
.g-wide { grid-column: span 2; }

/* ---------- Location ---------- */

main > .location { background: var(--band); }
[data-design="2"] .location { color: #fff; --line: rgba(255, 255, 255, 0.22); --muted: #b9b9b9; --accent: #fff; --ink: #fff; }
.loc-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.location h2 { margin: 14px 0 20px; }
.location p { max-width: 52ch; margin-bottom: 26px; }
.distances li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.distances li:first-child { border-top: 1px solid var(--line); }
.distances strong { font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; white-space: nowrap; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--display); font-weight: var(--display-weight); font-size: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--body); font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--muted); }

/* ---------- Contact / footer ---------- */

.contact { padding: clamp(64px, 9vw, 120px) 0 150px; border-top: 1px solid var(--line); }
.contact h2 { margin: 14px 0 36px; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.channel { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color 0.2s; }
.channel:hover { border-color: var(--ink); }
.channel-main { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.channel-name { font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; }
.channel-note { font-size: 14px; opacity: 0.85; }
.address { margin-top: 28px; font-size: 14px; color: var(--muted); }
.about-demo { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; font-size: 14px; color: var(--muted); }
.about-demo h3 { font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.demo-contact { margin-top: 16px; color: var(--ink); }
.demo-contact a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }
.credits-title { margin-top: 16px; }
.credits a { text-underline-offset: 3px; }

/* ---------- Demo switcher ---------- */

.switcher {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: #161616;
  border-radius: 999px;
  box-shadow: 0 12px 34px -12px rgba(0, 0, 0, 0.55);
  font: 500 13px "Inter", system-ui, sans-serif;
}
.switcher-label { padding: 0 8px 0 12px; color: #9a9a9a; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.switcher button { background: none; border: 0; border-radius: 999px; padding: 9px 15px; color: #d6d6d6; font: inherit; cursor: pointer; }
.switcher button[aria-pressed="true"] { background: #fff; color: #161616; }

/* On wide screens the switcher sits on the right edge, clear of the booking bar. */
@media (min-width: 761px) {
  .switcher { left: auto; right: 14px; bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: column; border-radius: 22px; padding: 10px 6px 6px; }
  .switcher-label { padding: 0 0 6px; }
  .switcher button { width: 100%; }
}

/* ---------- Mobile booking bar ---------- */

.mobile-bar { display: none; }

/* ---------- Request sheet ---------- */

.sheet {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 32px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sheet::backdrop { background: rgba(10, 8, 6, 0.6); }
.sheet h2 { font-size: 34px; margin: 10px 0 22px; }
.sheet-close { position: absolute; top: 10px; right: 12px; }
.sheet-close button { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { text-align: right; font-weight: 500; }
.sheet-name { margin-top: 18px; }
.sheet-actions { display: grid; gap: 10px; margin-top: 22px; }
.sheet-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.sheet-preview { margin-top: 14px; font-size: 13px; color: var(--muted); }
.sheet-preview summary { cursor: pointer; }
.sheet-preview pre { margin: 10px 0 0; padding: 14px; background: var(--surface); border-radius: var(--radius); font: 13px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; color: var(--ink); }

/* =====================================================================
   Design 2 · Atelier: split hero, rooms as full-width rows, hard edges
   ===================================================================== */

[data-design="2"] h1,
[data-design="2"] h2 { letter-spacing: -0.035em; }
[data-design="2"] h3 { letter-spacing: -0.02em; font-size: 24px; }
[data-design="2"] .brand { letter-spacing: -0.03em; font-size: 22px; }
[data-design="2"] .kicker { color: var(--muted); }

[data-design="2"] main > .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 70px);
  padding: 0;
}
[data-design="2"] .hero-media { grid-column: 2; grid-row: 1 / 3; height: auto; min-height: 560px; }
[data-design="2"] .hero-media::after { display: none; }
[data-design="2"] .hero-copy {
  position: static;
  height: auto;
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 56px) 32px;
  color: var(--ink);
}
[data-design="2"] .hero-copy .kicker { color: var(--muted); }
[data-design="2"] .hero-sub { opacity: 1; color: var(--muted); }
[data-design="2"] .booking {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 26px clamp(20px, 5vw, 56px) 30px;
  background: var(--surface);
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
}
[data-design="2"] .booking .btn { grid-column: 1 / -1; }
[data-design="2"] .booking-note { margin-top: 0; }

[data-design="2"] .room-grid { grid-template-columns: 1fr; gap: 0; }
[data-design="2"] .room { flex-direction: row; background: none; border: 0; border-top: 1px solid var(--line); }
[data-design="2"] .room:last-child { border-bottom: 1px solid var(--line); }
[data-design="2"] .room > img { width: 46%; aspect-ratio: 16 / 10; flex: none; }
[data-design="2"] .room:nth-child(even) { flex-direction: row-reverse; }
[data-design="2"] .room-body { padding: clamp(24px, 4vw, 56px); justify-content: center; }
[data-design="2"] .room-foot { margin-top: 28px; padding-top: 0; }

[data-design="2"] .exp-grid { gap: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
[data-design="2"] .exp-card { padding: 18px 18px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
[data-design="2"] .exp-card img { aspect-ratio: 1; }
[data-design="2"] .gal-grid { gap: 2px; }
[data-design="2"] .intro-media .small { left: auto; right: -20px; border-width: 0; }
[data-design="2"] .faq summary { font-size: 20px; }

/* =====================================================================
   Design 3 · Jardin: dark green, centred, arched imagery, soft corners
   ===================================================================== */

[data-design="3"] h1 em,
[data-design="3"] h2 { font-style: italic; }
[data-design="3"] .head { text-align: center; }
[data-design="3"] .head h2 { margin-left: auto; margin-right: auto; }

[data-design="3"] main > .hero { display: flex; flex-direction: column; align-items: center; padding: clamp(40px, 6vw, 80px) 0 64px; }
[data-design="3"] .hero-copy {
  position: static;
  height: auto;
  min-height: 0;
  order: 1;
  align-items: center;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 56px) 44px;
  color: var(--ink);
}
[data-design="3"] .hero-copy .kicker { color: var(--accent); }
[data-design="3"] .hero-copy h1 { max-width: 17ch; font-style: italic; }
[data-design="3"] .hero-media {
  order: 2;
  width: min(880px, calc(100% - 40px));
  height: min(70vh, 640px);
  min-height: 420px;
  border-radius: 440px 440px var(--radius) var(--radius);
  overflow: hidden;
}
[data-design="3"] .hero-media::after { background: linear-gradient(180deg, transparent 55%, rgba(12, 27, 22, 0.55) 100%); }
[data-design="3"] .booking { order: 3; margin-top: -48px; border-radius: 28px; padding: 22px 28px 16px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
[data-design="3"] .booking-note { text-align: center; }

[data-design="3"] .intro-media .tall { border-radius: 300px 300px var(--radius) var(--radius); }
[data-design="3"] .intro-media .small { border-radius: 50%; left: auto; right: -18px; width: 40%; }
[data-design="3"] .room { border: 0; }
[data-design="3"] .room > img { aspect-ratio: 4 / 3; }
[data-design="3"] .exp-card { text-align: center; }
[data-design="3"] .exp-card img { border-radius: 300px 300px var(--radius) var(--radius); }
[data-design="3"] .perks ul { margin-left: auto; }
[data-design="3"] .faq-list { margin: 0 auto; }
[data-design="3"] .contact { text-align: center; }
[data-design="3"] .about-demo { margin-left: auto; margin-right: auto; }
[data-design="3"] .channel { align-items: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .top-nav { display: none; }
  .booking { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .booking .btn { grid-column: 1 / -1; }
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-design="2"] main > .hero { grid-template-columns: 1fr; min-height: 0; }
  [data-design="2"] .hero-media { grid-column: 1; grid-row: auto; order: -1; min-height: 0; height: 46vh; }
  [data-design="2"] .hero-copy,
  [data-design="2"] .booking { grid-row: auto; }
}

@media (max-width: 760px) {
  .top { gap: 12px; }
  .top-cta { display: none; }
  .brand { font-size: 22px; }
  .hero-copy { padding-bottom: 96px; }
  .hero-sub { font-size: 16px; }
  .intro, .loc-inner { grid-template-columns: 1fr; }
  .intro-media .small { left: -8px; }
  .room-grid { grid-template-columns: 1fr; }
  [data-design="2"] .room,
  [data-design="2"] .room:nth-child(even) { flex-direction: column; }
  [data-design="2"] .room > img { width: 100%; }
  .channels { grid-template-columns: 1fr; }
  .perks-inner { flex-direction: column; align-items: flex-start; }
  [data-design="3"] .perks ul { margin-left: 0; }
  [data-design="3"] .hero-media { height: 52vh; min-height: 340px; }
  .sheet { padding: 26px 22px; }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
  }
  .mobile-bar strong { font-family: var(--display); font-size: 24px; color: var(--ink); }
  .mobile-bar .btn { padding: 12px 18px; }
  .switcher { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .switcher-label { display: none; }
  .contact { padding-bottom: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
}
