/* =========================================================
   BYBLOS GATE — design system
   Palette set by the owner: dark green, brass, white.
   Light-dominant. Green is punctuation, not the ground.
   ========================================================= */

:root {
  /* --- ground --- */
  --paper:      #FCFBF7;   /* warm white, the page */
  --paper-2:    #F3F4EE;   /* off-white with a green bias, for banded sections */
  --paper-3:    #E9EBE3;

  /* --- dark green --- */
  --green:      #1B3A31;
  --green-2:    #2A5546;
  --green-deep: #112820;
  --green-far:  #92A89C;

  /* --- brass --- */
  --brass:      #B08C43;
  --brass-lt:   #D6B876;
  --brass-pale: #EEDEBE;

  /* --- text --- */
  --ink:        #14201C;
  --muted:      #5F7268;
  --line:       #DEE2D9;

  /* --- mockup-only flag, deleted before launch --- */
  --flag:       #B3452F;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --bay: clamp(3.5rem, 9vw, 8rem);
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  /* A whisper of grain so large flat fields read as paper rather than as a
     blank canvas. Barely perceptible on its own; you notice its absence. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .3vw, 1.1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; background: var(--paper-3); }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: var(--paper);
  padding: .75rem 1.25rem; font-size: .85rem;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */

/* Fraunces carries an optical-size axis: at display sizes it wants tighter
   tracking and a lighter weight, at small sizes the opposite. Letting each
   step set its own is what stops the scale reading as one font blown up. */
.h-xl, .h-lg, .h-md, .h-sm {
  font-family: var(--display);
  font-optical-sizing: auto;
  margin: 0;
  text-wrap: balance;
  color: var(--green);
}
.h-xl {
  font-size: clamp(2.9rem, 1.1rem + 7.2vw, 7rem);
  font-weight: 400; line-height: .95; letter-spacing: -.032em;
}
.h-lg {
  font-size: clamp(2.05rem, 1.1rem + 4.1vw, 4.1rem);
  font-weight: 400; line-height: 1.02; letter-spacing: -.026em;
}
.h-md {
  font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.6rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -.018em;
}
.h-sm {
  font-size: clamp(1.12rem, 1rem + .8vw, 1.45rem);
  font-weight: 500; line-height: 1.22; letter-spacing: -.008em;
}

.lede {
  font-size: clamp(1.1rem, 1rem + .65vw, 1.42rem);
  line-height: 1.52;
  font-weight: 400;
  max-width: 36ch;
  color: var(--ink);
  text-wrap: pretty;
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.dim { color: var(--muted); }

/* An eyebrow names the section. The brass rule is the one flourish. */
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px;
  background: var(--brass); flex: none;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- unresolved-decision marker (mockup only) ---------- */

.tbc { color: var(--flag); border-bottom: 1px dotted currentColor; cursor: help; }
body.show-tbc .tbc { background: rgba(179,69,47,.14); box-shadow: 0 0 0 3px rgba(179,69,47,.14); }

/* ---------- layout ---------- */

.wrap { width: min(100% - (var(--gut) * 2), var(--max)); margin-inline: auto; }
.section { padding-block: var(--bay); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 6vw, 5rem); }

.panel-soft { background: var(--paper-2); }

/* The one strong dark moment. Everything inside inverts. */
.panel-green { background: var(--green); color: var(--paper); }
.panel-green .h-xl, .panel-green .h-lg,
.panel-green .h-md, .panel-green .h-sm { color: var(--paper); }
.panel-green .lede { color: var(--paper); }
.panel-green .dim { color: #A9BDB2; }
.panel-green .eyebrow { color: var(--brass-lt); }
.panel-green .eyebrow::before { background: var(--brass-lt); }
.panel-green .link-act { color: var(--brass-lt); }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide { grid-template-columns: 1.15fr .85fr; }
  .split-narrow { grid-template-columns: .8fr 1.2fr; }
  .sticky-col { position: sticky; top: 7rem; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.75rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  letter-spacing: .01em; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 2px;
  cursor: pointer; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--brass); color: #1A1408; border-color: var(--brass); }
.btn-primary:hover { background: #C09A4C; border-color: #C09A4C; }

.btn-ghost { background: transparent; color: var(--green); border-color: var(--green-far); }
.btn-ghost:hover { border-color: var(--green); background: rgba(27,58,49,.05); }
.panel-green .btn-ghost { color: var(--paper); border-color: rgba(252,251,247,.4); }
.panel-green .btn-ghost:hover { border-color: var(--paper); background: rgba(252,251,247,.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-act {
  font-size: .84rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: var(--green);
  display: inline-flex; align-items: center; gap: .5rem;
  padding-block: .35rem;
  border-bottom: 1.5px solid var(--brass);
  transition: gap .18s ease, color .18s ease;
}
.link-act:hover { gap: .85rem; color: var(--brass); }

/* ---------- header ---------- */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem var(--gut);
  background: rgba(252,251,247,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.hdr.is-stuck { background: rgba(252,251,247,.97); border-bottom-color: var(--line); }

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--green); margin-right: auto; flex: none;
}
.brand svg { width: 26px; height: 28px; color: var(--brass); flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1;
}
.brand-sub {
  display: block; font-family: var(--sans);
  font-size: .6rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-top: .3rem;
}

.nav { display: none; gap: .25rem; align-items: center; }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .5rem .9rem; color: var(--green); border-radius: 2px;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: rgba(27,58,49,.06); }
.nav a[aria-current="page"] { color: var(--brass); }

.hdr-end { display: flex; align-items: center; gap: .6rem; flex: none; }

.lang {
  display: none; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  gap: .1rem; align-items: center; color: var(--muted);
}
@media (min-width: 780px) { .lang { display: flex; } }
.lang button {
  background: none; border: 0; padding: .35rem .45rem;
  font: inherit; color: inherit; cursor: pointer; border-radius: 2px;
}
.lang button[aria-pressed="true"] { color: var(--green); }
.lang button:disabled { opacity: .4; cursor: not-allowed; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 10px;
  background: none; border: 1.5px solid var(--line); border-radius: 2px; cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { display: block; height: 1.5px; background: var(--green); transition: transform .22s ease, opacity .22s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 620px) {
  .hdr { gap: .75rem; padding-inline: 1rem; }
  .brand svg { width: 22px; height: 24px; }
  .brand-name { font-size: .95rem; }
  .brand-sub { display: none; }
  .hdr-end .btn { padding: .7rem .9rem; font-size: .84rem; }
}
@media (max-width: 400px) {
  .hdr { gap: .5rem; padding-inline: .75rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-name { font-size: .88rem; }
  .hdr-end .btn { padding: .65rem .7rem; font-size: .78rem; }
}

.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: 6rem var(--gut) 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateY(-100%);
  transition: transform .34s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
@media (min-width: 1000px) { .drawer { display: none; } }
.drawer a {
  font-family: var(--display);
  text-decoration: none; font-size: 1.8rem; font-weight: 500;
  letter-spacing: -.02em; color: var(--green);
  padding: .7rem 0; border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 1.5rem; }

/* ---------- SIGNATURE: the section through the building ---------- */

.rail {
  display: none; position: fixed;
  left: max(8px, calc((100vw - var(--max)) / 2 - 120px));
  top: 50%; transform: translateY(-50%); z-index: 60;
  width: 88px; padding-left: 1rem;
  border-left: 1px solid var(--line);
}
@media (min-width: 1500px) { .rail { display: block; } }

.rail-item {
  display: block; position: relative;
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  color: var(--muted); padding: .85rem 0; opacity: .6;
  transition: opacity .25s ease, color .25s ease;
}
.rail-item::before {
  content: ""; position: absolute; left: -1.0625rem; top: 50%;
  width: 2px; height: 0; background: var(--brass);
  transform: translateY(-50%); transition: height .3s ease;
}
.rail-item:hover { opacity: .9; }
.rail-item.is-active { opacity: 1; color: var(--green); }
.rail-item.is-active::before { height: 100%; }

.rail.on-light { border-left-color: rgba(252,251,247,.28); }
.rail.on-light .rail-item { color: #A9BDB2; }
.rail.on-light .rail-item.is-active { color: var(--paper); }
.rail.on-light .rail-item::before { background: var(--brass-lt); }

/* ---------- hero ----------
   The imagery is light, so the type sits dark on it and the scrim
   lightens rather than darkens. */

/* Split. On a light page a white scrim over a pale image erases the image and
   leaves grey mush, so the type sits on clean paper and the picture gets its
   own panel at full strength. */
.hero { display: grid; }
.hero-media { position: relative; overflow: hidden; min-height: 44svh; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform; transform: scale(1.06);
}
.hero-body {
  display: flex; align-items: center;
  padding: 7rem var(--gut) clamp(3rem, 7vw, 4.5rem);
}
.hero-body > .wrap { width: 100%; max-width: 40rem; margin: 0; }
.hero .lede { max-width: 34ch; margin: 1.6rem 0 0; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.02fr .98fr; min-height: 100svh; }
  .hero-media { order: 2; min-height: 0; }
  .hero-body { padding-inline: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 3vw, 3rem); }
  .hero-body > .wrap { margin-left: auto; }
}
@media (min-width: 1500px) {
  .hero-body > .wrap { max-width: 44rem; }
}

.hero-foot {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  align-items: flex-end; justify-content: space-between;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem;
  margin: 0; padding: 0; border: 0;
}
.hero-meta div { display: flex; flex-direction: column; gap: .25rem; }
.hero-meta dt {
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass); margin: 0;
}
.hero-meta dd { margin: 0; font-size: 1.05rem; font-weight: 500; color: var(--green); }

.cue {
  display: none; font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  align-items: center; gap: .6rem; text-decoration: none;
}
@media (min-width: 760px) { .cue { display: inline-flex; } }
.cue span {
  width: 2px; height: 2.25rem; background: var(--brass);
  display: block; transform-origin: top;
  animation: cue 2.4s ease-in-out 4;
}
@keyframes cue { 0%,100% { transform: scaleY(.35); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cue span { animation: none; } }

/* ---------- booking ---------- */

.bookbar {
  background: var(--green);
  border-radius: 3px;
  padding: 1.1rem;
  display: grid; gap: .75rem;
}
@media (min-width: 820px) { .bookbar { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } }
.hero .bookbar {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 18px 44px rgba(17,40,32,.18);
}
/* The hero column is narrower than the page, so the four-across booking row
   would crush. Two-up until there is genuinely room for four. */
@media (min-width: 900px) {
  .hero .bookbar { grid-template-columns: 1fr 1fr; }
  .hero .bookbar .btn { grid-column: 1 / -1; }
}
@media (min-width: 1500px) {
  .hero .bookbar { grid-template-columns: 1fr 1fr auto; }
  .hero .bookbar .btn { grid-column: auto; }
}
.bookbar .field { margin: 0; }
.bookbar .field label { color: var(--brass-lt); }
.bookbar .field input, .bookbar .field select {
  background: var(--paper); color: var(--ink); border-color: transparent;
}

/* ---------- distances ---------- */

.dist { list-style: none; margin: 0; padding: 0; }
.dist li {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.dist li:first-child { border-top: 1px solid var(--line); }
.dist .where { font-size: 1.05rem; }
.dist .how { font-size: .9rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.dist .how b { color: var(--green); font-weight: 600; }
.dist .on-foot .how b { color: var(--brass); }
.panel-green .dist li { border-color: rgba(252,251,247,.18); }
.panel-green .dist .how { color: #A9BDB2; }
.panel-green .dist .how b { color: var(--paper); }

.foot-note { font-size: .82rem; line-height: 1.6; color: var(--muted); margin-top: 1.25rem; }
.panel-green .foot-note { color: #A9BDB2; }

/* --- proof band ---
   Walkability is the property's single strongest asset (§1.5.1). Setting it
   in body text buried the one number that sells the address. */
.proof {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}
@media (min-width: 640px)  { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .proof { grid-template-columns: repeat(4, 1fr); } }

.proof-item { border-top: 2px solid var(--brass); padding-top: 1.1rem; }
.proof-fig {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(3.2rem, 2rem + 4.4vw, 5.4rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.045em;
  color: var(--green);
  margin: 0;
  display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap;
}
.proof-fig .unit {
  font-family: var(--sans);
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass);
  letter-spacing: .14em;
}
.proof-label {
  margin: .6rem 0 0;
  font-size: .98rem; color: var(--muted); max-width: 22ch;
}
/* At 86px the pending-decision colour would shout. The dotted rule still marks
   the number as unverified; the toolbar toggle still highlights it. */
.proof-fig .tbc {
  color: inherit;
  border-bottom: 3px dotted var(--flag);
  padding-bottom: .06em;
}

/* The price is the last thing read before a click — give it presence. */
.card-foot .num { font-family: var(--display); font-size: 1.2rem; color: var(--green); }

/* ---------- guest reviews ----------
   Social proof only. Google disallows self-serving review schema for hotels,
   so this earns trust on the page but never stars in search — the ranking
   work happens on the Google Business Profile instead. */
.rating { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; }
.rating-fig {
  font-family: var(--display); font-optical-sizing: auto;
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  font-weight: 400; line-height: .9; letter-spacing: -.04em;
  color: var(--green); margin: 0;
}
.rating-of { font-size: 1rem; color: var(--muted); }
.stars { color: var(--brass); font-size: 1.15rem; letter-spacing: .12em; line-height: 1; }
.rating-count { margin: .6rem 0 0; font-size: .95rem; color: var(--muted); }

.review {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 3px;
  padding: 1.5rem 1.5rem 1.6rem;
}
.review blockquote {
  margin: 0; font-family: var(--display); font-optical-sizing: auto;
  font-size: 1.12rem; line-height: 1.45; color: var(--green); font-weight: 400;
}
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; }
.review-who { font-weight: 600; font-size: .95rem; }
.review-where {
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: .5rem;
}
.review-where::before { content: ""; width: 1rem; height: 2px; background: var(--brass); }

/* ---------- why book direct (§9.3) ---------- */
.perks { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2.5rem; }
@media (min-width: 640px)  { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { border-top: 2px solid var(--brass-lt); padding-top: 1rem; }
.perk h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 500; margin: 0 0 .4rem; color: var(--paper); }
.perk p { margin: 0; font-size: .93rem; line-height: 1.55; color: #A9BDB2; }

/* ---------- captured-enquiry viewer (mockup only) ---------- */
.capture {
  margin-top: 1rem; padding: 1rem 1.1rem;
  background: var(--paper-2); border: 1px dashed var(--brass);
  border-radius: 3px; font-size: .85rem; line-height: 1.6;
}
.capture strong { color: var(--green); }
.capture code {
  display: block; margin-top: .5rem; padding: .6rem .7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  font-family: ui-monospace, Consolas, monospace; font-size: .76rem;
  white-space: pre-wrap; word-break: break-word; color: var(--ink);
}

/* ---------- cards ---------- */

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(17,40,32,.10);
}
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.card-media-tall { aspect-ratio: 4 / 5; }
/* The illustrations sit their subject low in the frame — castle, boats, the
   line of the sea. A centre crop lands on empty sky, so bias downward. */
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 68%;
  transition: transform .5s ease;
}
a.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-body p { margin: 0; font-size: .96rem; color: var(--muted); line-height: 1.6; }
.card-foot { margin-top: auto; padding-top: 1rem; }
.panel-green .card { background: var(--green-2); border-color: rgba(252,251,247,.14); }
.panel-green .card-body p { color: #A9BDB2; }

.tag-float {
  position: absolute; left: .8rem; top: .8rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--paper); color: var(--green);
  padding: .4rem .65rem; border-radius: 2px;
}

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 2px; color: var(--muted);
}
.tag-sea      { color: #2F6E6A; border-color: #9FC2BE; }
.tag-mountain { color: var(--green-2); border-color: var(--green-far); }
.tag-city     { color: var(--brass); border-color: var(--brass-lt); }

/* ---------- always on ---------- */

.alwayson { background: var(--green); color: var(--paper); }
.always-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; }
@media (min-width: 800px) { .always-grid { grid-template-columns: repeat(3, 1fr); } }
.always-item { border-top: 1px solid rgba(252,251,247,.22); padding-top: 1.25rem; }
.always-item h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 500; margin: 0 0 .5rem; color: var(--paper); }
.always-item p { margin: 0; font-size: .95rem; color: #A9BDB2; line-height: 1.6; }
.always-item .ix {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  color: var(--brass-lt); display: block; margin-bottom: .9rem;
}

/* ---------- full-bleed feature ---------- */

/* Picture and words side by side, both at full strength. Same markup as the
   old overlay version — only the layout changed. */
.feature { display: grid; align-items: center; background: var(--paper-2); }
.feature > img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature-body { padding: clamp(2.5rem, 7vw, 5rem) var(--gut); }
.feature-body > .wrap { width: 100%; max-width: 34rem; margin: 0; }

@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; min-height: min(78svh, 700px); }
  .feature > img { height: 100%; }
  .feature-body { padding-inline: clamp(2rem, 5vw, 4.5rem); }
}
/* Flip which side the picture lands on, so consecutive bands don't march. */
@media (min-width: 900px) {
  .feature-flip > img { order: 2; }
  .feature-flip .feature-body > .wrap { margin-left: auto; }
}

/* ---------- downstairs strip ---------- */

.strip { display: grid; gap: 2px; }
@media (min-width: 700px)  { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* Caption sits under the picture rather than on top of it — the picture stays
   a picture, and the words stay readable. */
.strip-cell {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.strip-cell img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .6s ease;
}
.strip-cell:hover img { transform: scale(1.04); }
.strip-txt {
  padding: 1.35rem 1.5rem 1.75rem;
  border-top: 2px solid var(--brass);
}
.strip-cell .h-sm { margin-bottom: .35rem; }
.strip-cell p { margin: 0; font-size: .92rem; color: var(--muted); max-width: 34ch; }

/* ---------- editorial pair ---------- */

.duo { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) {
  .duo { grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); }
  .duo-offset > *:first-child { margin-block: -3.5rem 3.5rem; }
  .duo img { height: 100%; object-fit: cover; }
}
.figure { border-radius: 3px; overflow: hidden; }
.figure img { width: 100%; display: block; }
.figure-tall { aspect-ratio: 3 / 4; }
.figure-tall img { height: 100%; object-fit: cover; }

/* ---------- filters ---------- */

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 1.1rem 0; border-block: 1px solid var(--line);
  margin-bottom: 2.5rem; align-items: center;
}
.filters-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-right: .5rem;
}
.chip {
  font-family: var(--sans);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  background: transparent; color: var(--green);
  border: 1.5px solid var(--line); border-radius: 2px;
  padding: .48rem .9rem; cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.chip:hover { border-color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--green); color: var(--paper); border-color: var(--green); }

.result-count { font-size: .82rem; color: var(--muted); margin-left: auto; }
.is-hidden { display: none !important; }

/* ---------- table ---------- */

.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec caption {
  text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding-bottom: 1rem;
}
.spec th, .spec td { text-align: left; padding: .85rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.spec td:first-child { font-weight: 600; color: var(--green); }
.spec tbody tr:hover { background: var(--paper-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- principle ---------- */

.principle {
  font-family: var(--display);
  border-left: 3px solid var(--brass);
  padding: .35rem 0 .35rem 1.75rem;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  line-height: 1.4; font-weight: 400; letter-spacing: -.01em;
  max-width: 44ch; color: var(--green);
}
.panel-green .principle { color: var(--paper); }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 2px;
  padding: .8rem .9rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; }
.panel-green .field label { color: var(--brass-lt); }
.panel-green .field input, .panel-green .field select, .panel-green .field textarea {
  background: var(--green-2); color: var(--paper); border-color: rgba(252,251,247,.2);
}

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

.ftr { background: var(--green-deep); color: var(--paper); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.ftr .brand { color: var(--paper); }
.ftr-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px)  { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1050px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.ftr h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass-lt); margin: 0 0 1.1rem;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.ftr a { text-decoration: none; font-size: .95rem; opacity: .85; }
.ftr a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ftr .dim { color: #93A89C; }
.ftr-base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(252,251,247,.16);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-size: .82rem; color: #93A89C;
}

/* ---------- WhatsApp float ---------- */

.wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--green); color: var(--paper);
  padding: .8rem 1.1rem; border-radius: 999px;
  text-decoration: none; font-size: .9rem; font-weight: 600;
  box-shadow: 0 10px 28px rgba(17,40,32,.28);
  transition: transform .18s ease, background .18s ease;
}
.wa:hover { transform: translateY(-2px); background: var(--green-2); }
.wa svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .wa span { display: none; } .wa { padding: .9rem; } }

/* ---------- mockup toolbar (remove before launch) ---------- */

.mock {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 95;
  display: flex; align-items: center; gap: .5rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 2px; padding: .45rem .55rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--muted);
  box-shadow: 0 6px 18px rgba(17,40,32,.10);
}
.mock button {
  font: inherit; letter-spacing: inherit; text-transform: uppercase;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 2px;
  padding: .35rem .55rem; cursor: pointer;
}
.mock button[aria-pressed="true"] { background: var(--flag); color: #fff; border-color: var(--flag); }
@media (max-width: 700px) { .mock { display: none; } }

/* ---------- reveal ---------- */

.rv { transition: opacity .7s ease, transform .7s ease; }
html.js .rv { opacity: 0; transform: translateY(18px); }
html.js .rv.in { opacity: 1; transform: none; }

html.js .rv-img { clip-path: inset(0 0 100% 0); transform: scale(1.05); }
html.js .rv-img.in {
  clip-path: inset(0 0 0 0); transform: none;
  transition: clip-path 1.05s cubic-bezier(.22,1,.36,1), transform 1.3s cubic-bezier(.22,1,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  html.js .rv { opacity: 1; transform: none; }
  html.js .rv-img { clip-path: none; transform: none; }
}

/* =========================================================
   V2 — components added after the Zoku Amsterdam review.
   Zoku's operating model is the reference: the room is sold
   as a specified product, the shared floor is sold as named
   places, and length of stay is sold as a named programme.
   ========================================================= */

/* ---------- top strip: the one-line proposition, always on ---------- */

.topstrip {
  background: var(--green-deep); color: var(--paper);
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  padding: .5rem var(--gut); font-size: .82rem; letter-spacing: .01em;
  text-align: center;
}
.topstrip b { font-weight: 600; }
.topstrip a { color: var(--brass-lt); text-underline-offset: 3px; }
@media (max-width: 700px) { .topstrip { font-size: .74rem; padding: .45rem .75rem; } }

/* ---------- ratings row: proof from platforms we don't control ------ */

.ratings {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--line);
}
.rate-cell { background: var(--paper); padding: 1.25rem 1rem; text-align: center; }
.rate-score {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1; margin: 0 0 .3rem; font-variant-numeric: tabular-nums;
}
.rate-where {
  margin: 0; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- card metadata: the Zoku eyebrow above each product ------ */

.card-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem;
  padding: .7rem 1.25rem 0;
  font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.card-meta .price {
  margin-left: auto; color: var(--ink); font-weight: 600; letter-spacing: .04em;
}
.card-meta .flag-pop { color: var(--brass); font-weight: 700; }

/* ---------- spec list: what the room actually is -------------------- */

.speclist {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .9rem;
  font-size: .87rem; color: var(--muted);
}
.speclist li { display: flex; gap: .45rem; align-items: flex-start; line-height: 1.45; }
.speclist li::before {
  content: ""; flex: none; width: 5px; height: 5px; margin-top: .55em;
  background: var(--brass); border-radius: 50%;
}
@media (max-width: 420px) { .speclist { grid-template-columns: 1fr; } }

/* ---------- dual call to action on every product card -------------- */

.dual { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.dual .btn { flex: 1 1 auto; justify-content: center; padding: .6rem 1rem; font-size: .85rem; }

/* ---------- named stay programmes ---------------------------------- */

.pkgs { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 30%, 320px), 1fr)); }
.pkg {
  border: 1px solid var(--line); background: var(--paper);
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column;
}
.pkg-top {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .75rem;
}
.pkg-fig {
  font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1;
  margin: 0 0 .2rem; font-variant-numeric: tabular-nums;
}
.pkg-unit { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pkg h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 500; margin: 1rem 0 .5rem; }
.pkg p { margin: 0; font-size: .92rem; color: var(--muted); }
.pkg .speclist { grid-template-columns: 1fr; margin-top: .9rem; }
.pkg .dual { margin-top: auto; padding-top: 1.25rem; }

/* ---------- named places on the ground floor ----------------------- */

.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 24%, 280px), 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.place {
  background: var(--paper); padding: 1.4rem 1.3rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.place h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 500; margin: 0 0 .45rem; }
.place p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.place .ix {
  display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass); margin-bottom: .7rem;
}

/* ---------- the resident promise (long stays) ---------------------- */

.resident {
  border-left: 3px solid var(--brass);
  padding: 1.5rem 0 1.5rem 1.5rem;
}
.resident h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem,2.6vw,1.5rem); margin: 0 0 .75rem; }
.resident ol { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }
.resident li { margin-bottom: .45rem; }

/* ---------- an honest gap, rather than a fake photograph ----------- */

.nophoto {
  display: grid; place-content: center; text-align: center; gap: .4rem;
  background: var(--paper-3);
  border: 1px dashed var(--line);
  aspect-ratio: 3 / 2; padding: 1.5rem;
  color: var(--muted); font-size: .78rem; letter-spacing: .06em;
}
.nophoto b { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flag); }

/* ---------- image credit ------------------------------------------ */

.credit {
  margin: .5rem 0 0; font-size: .7rem; color: var(--muted); letter-spacing: .02em;
}

/* --- v2 layout corrections ------------------------------------------ */

/* Four programmes should sit on one row on a desktop, not 3 + 1 */
.pkgs { grid-template-columns: repeat(auto-fit, minmax(clamp(210px, 22%, 280px), 1fr)); }

/* A four-cell strip shouldn't leave a hole in a three-column grid */
@media (min-width: 1050px) { .strip-4 { grid-template-columns: repeat(4, 1fr); } }

/* On the dark green band, muted grey text is unreadable */
.alwayson .dim, .panel-green .dim { color: var(--green-far); }

/* =========================================================
   V3 — hero slideshow, social, video, stamps, and two
   overlap fixes reported on the first review.
   ========================================================= */

/* ---------- hero slideshow ---------- */

.hs { position: absolute; inset: 0; will-change: transform; }
.hs-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.1s ease;
}
.hs-slide.is-on { opacity: 1; }

/* Controls sit on the picture, bottom-right, clear of the type panel. */
.hs-ui {
  display: flex; align-items: center; gap: .5rem; flex: none;
  background: rgba(17,40,32,.42); backdrop-filter: blur(6px);
  border-radius: 999px; padding: .35rem .5rem;
}
.hs-nav {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--paper); font-size: 1.1rem; line-height: 1;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center;
}
.hs-nav:hover { background: rgba(252,251,247,.16); }
.hs-dots { display: flex; gap: .4rem; padding: 0 .2rem; }
.hs-dot {
  appearance: none; border: 0; cursor: pointer; padding: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(252,251,247,.42); transition: background .2s ease, transform .2s ease;
}
.hs-dot[aria-selected="true"] { background: var(--brass-lt); transform: scale(1.35); }

/* The caption names what you are looking at — hotel or town. */
.hs-cap {
  margin: 0; max-width: 24ch;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper); line-height: 1.5;
  background: rgba(17,40,32,.5); backdrop-filter: blur(6px);
  border-radius: 999px; padding: .45rem 1rem;
}
.hs-cap b { display: block; color: var(--brass-lt); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .hs-slide { transition: none; } }

/* ---------- social ---------- */

.social { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.social a {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border: 1px solid currentColor; border-radius: 50%;
  color: inherit; opacity: .72; transition: opacity .2s ease, transform .2s ease;
}
.social a:hover { opacity: 1; transform: translateY(-2px); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.ftr .social { margin-top: 1.25rem; color: var(--paper); }
.drawer .social { margin-top: 1.25rem; color: var(--ink); }

/* ---------- video ---------- */

.vid { position: relative; background: var(--green-deep); overflow: hidden; }
.vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-note {
  position: absolute; left: 0; bottom: 0; right: 0; margin: 0;
  padding: .6rem .9rem; font-size: .72rem; letter-spacing: .06em;
  color: var(--paper); background: linear-gradient(transparent, rgba(17,40,32,.82));
}

/* ---------- coming-soon stamp ---------- */

.stamped { position: relative; }
.stamp {
  position: absolute; top: 1.1rem; right: .9rem; z-index: 2;
  transform: rotate(-11deg);
  border: 3px double var(--flag); color: var(--flag);
  padding: .5rem 1.1rem; border-radius: 4px;
  font-size: clamp(.7rem, 1.6vw, .85rem); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-align: center;
  background: rgba(252,251,247,.86);
  box-shadow: 0 2px 0 rgba(179,69,47,.12);
  pointer-events: none; white-space: nowrap;
}
.stamp small { display: block; font-size: .62em; letter-spacing: .12em; opacity: .8; font-weight: 600; }

/* ---------- FIX 1: the floor rail was crossing the text column ----------
   It was allowed in at 1500px, where the gutter outside a 1200px content
   column is only 150px and the rail needs 88px plus breathing room. Give it
   a width where it genuinely clears, and pin it to the real gutter. */

.rail { left: calc((100vw - var(--max)) / 2 - 132px); width: 96px; }
@media (min-width: 1500px) { .rail { display: none; } }
@media (min-width: 1640px) { .rail { display: block; } }

/* ---------- FIX 2: the build toolbar was sitting on top of the page ------
   It is a review tool, so it stays out of the way until you reach for it. */

.mock {
  opacity: .3; transform: translateY(0);
  transition: opacity .18s ease, background .18s ease;
}
.mock:hover, .mock:focus-within { opacity: 1; }
.mock button { max-width: 0; padding-inline: 0; border-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .22s ease, padding .22s ease; }
.mock:hover button, .mock:focus-within button { max-width: 16rem; padding-inline: .55rem; border-width: 1px; }
@media (max-width: 1000px) { .mock { display: none; } }

/* Keep the WhatsApp float off the last line of the footer. */
.ftr { padding-bottom: clamp(4.5rem, 8vw, 6rem); }

/* ---------- FIX 1b: the rail was still crossing the hero copy ----------
   Two bugs, not one. The rail was pinned to the gutter of the 1200px content
   column, which works for a .wrap — but the hero and the flipped feature band
   are full-bleed two-column grids whose left column starts at the page edge,
   nowhere near that gutter. So the rail sat directly on the headline.
   Pin the rail to a fixed left offset so it stops drifting right on very wide
   screens, then give the two left-hand full-bleed columns room to clear it. */

.rail { left: min(132px, calc((100vw - var(--max)) / 2 - 132px)); }

@media (min-width: 1640px) {
  .hero-body { padding-left: 16.5rem; }
  .feature-flip .feature-body { padding-left: 16.5rem; }
}


/* The slideshow bar sits at the TOP of the picture, clear of the header —
   at the bottom it fell below the fold on any laptop screen, because the
   hero's type column is taller than the viewport. */
.hs-bar {
  position: absolute; z-index: 3;
  top: clamp(5.25rem, 8vw, 6.5rem);
  left: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (min-width: 900px) { .hs-bar { top: clamp(6rem, 7vw, 7rem); } }
@media (max-width: 520px) { .hs-cap { display: none; } .hs-bar { justify-content: flex-end; } }

/* Named places link to their section — the gym was there all along and
   nobody could find it, because a heading that isn't a link isn't a door. */
.place h3 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--brass), var(--brass));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s ease; }
.place h3 a:hover { background-size: 100% 1px; }
.place h3 a::after { content: " →"; color: var(--brass); font-size: .8em; opacity: .55; }

/* The drawer styles every <a> as a big bordered nav row. The social icons
   are anchors too, so they need to opt back out. */
.drawer .social { gap: .7rem; }
.drawer .social a {
  font-size: 0; padding: 0; border: 1px solid currentColor; border-radius: 50%;
  width: 2.4rem; height: 2.4rem; margin: 0;
}
.drawer .social svg { width: 18px; height: 18px; }
