/* Kam's Resort. Client mockup (2026-11-21): tropical resort, photo hero, gold script, gold wave
   lines, deep teal bands, cream sections. Real property photos only; licensed beach photo. No palms (Rory). */
:root {
  --sea: #0B4450;
  --sea-deep: #073540;
  --gold: #F2B632;
  --gold-hi: #F8CB55;
  --gold-deep: #C58907;
  --gold-ink: #8A5F00;
  --ink: #10262B;
  --muted: #3E5A60;
  --cream: #F7F1E3;
  --line: #E4D9BE;
  --on-sea-muted: #BFD8D6;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 5vw, 56px);
  --max: 1240px;
  --r: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.6 var(--text); padding-bottom: calc(76px + env(safe-area-inset-bottom)); overflow-x: clip; }
@media (min-width: 960px) { body { padding-bottom: 0; } :root { --head-h: 108px; } }
img { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 5.4vw, 2.8rem); color: var(--sea); }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.script { font-family: var(--script); font-weight: 400; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; left: 8px; top: 8px; background: #fff; padding: 10px 14px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* Buttons: gold pills with dark text, like the mockup */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--serif); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn .chev { width: 18px; height: 18px; stroke-width: 2.4; margin-left: -2px; }
.btn--gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #E0A21F); color: var(--sea-deep); box-shadow: 0 6px 16px -6px rgba(140, 95, 0, .55), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(140, 95, 0, .6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--gold svg[aria-hidden] { color: var(--sea-deep); }
.btn--teal { background: var(--sea); color: #fff; }
.btn--teal:hover { background: var(--sea-deep); }
.btn--wa { background: #fff; color: var(--sea); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn:active { transform: translateY(1px); }

/* Header: white bar, gold logo with TOBAGO under it, centred menu, WhatsApp pill */
.site-head {
  position: sticky; top: 0; z-index: 40; height: var(--head-h);
  display: flex; align-items: center; gap: 18px; padding: 0 var(--gut);
  background: #fff;
}
/* Wavy bottom edge with a gold line, hanging over the photo below (client mockup). */
.head-wave { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: clamp(16px, 2.6vw, 36px); pointer-events: none; }
.head-wave__fill { fill: #fff; stroke: none; }
.head-wave__line { fill: none; stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; position: relative; z-index: 5; }
.brand__mark { height: 50px; width: auto; filter: drop-shadow(0 1px 1px rgba(90, 60, 0, .25)); }
.brand__text { display: flex; flex-direction: column; align-items: center; }
/* The wordmark from the client mockup: bold gold serif with a dark edge, TOBAGO between gold rules. */
.brand__name { font: 900 19px/1.05 var(--serif); white-space: nowrap; letter-spacing: .005em;
  background: linear-gradient(180deg, #FFE287 0%, #F2B632 48%, #C88A0A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 .6px #6E4800) drop-shadow(0 1px 0 #6E4800); }
.brand__sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font: 700 .56rem/1 var(--serif); letter-spacing: .38em; color: var(--sea); text-transform: uppercase; padding-left: .38em; }
.brand__sub::before, .brand__sub::after { content: ""; width: 12px; height: 1.5px; background: var(--gold-deep); }
.site-nav { display: none; }
.site-head__book { display: none; }
.site-head__menu {
  margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--sea);
  display: grid; place-items: center; cursor: pointer;
}
.site-head__menu svg { width: 26px; height: 26px; stroke-width: 2.2; }
.site-head__menu .ic-close { display: none; }
.menu-open .site-head__menu .ic-open { display: none; }
.menu-open .site-head__menu .ic-close { display: block; }
/* Phone menu: a panel under the bar */
.menu-open .site-nav {
  display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: var(--head-h); bottom: 0; z-index: 39;
  background: #fff; padding: 12px var(--gut) 32px; overflow-y: auto; gap: 2px;
}
.site-nav > a, .site-nav__drop > a { font: 700 1.1rem/1.2 var(--serif); color: var(--sea); text-decoration: none; padding: 14px 4px; border-bottom: 1px solid var(--cream); display: flex; align-items: center; gap: 6px; }
.site-nav__drop > a svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.site-nav__drop.is-open > a svg { transform: rotate(180deg); }
/* Phones: the apartments list stays closed until "Our Apartments" is tapped. */
.site-nav__menu { display: none; flex-direction: column; padding: 4px 0 10px 12px; }
.site-nav__drop.is-open .site-nav__menu { display: flex; }
.site-nav__all { font-weight: 700 !important; color: var(--sea) !important; }
.site-nav__menu a { text-decoration: none; color: var(--ink); padding: 8px 4px; font-weight: 500; }
.site-nav__menu small { color: var(--muted); font-weight: 400; }
.site-nav__group { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin: 10px 0 2px; }
@media (min-width: 960px) {
  .site-head { gap: 24px; }
  /* Stacked lockup that fits inside the header bar. */
  .brand { flex-direction: column; gap: 1px; }
  .brand__mark { height: 54px; }
  .brand__name { font-size: 20px; }
  .brand__sub { font-size: .6rem; gap: 8px; letter-spacing: .5em; padding-left: .5em; margin-top: 3px; }
  .brand__sub::before, .brand__sub::after { width: 18px; height: 1.5px; }
  .site-head__menu { display: none; }
  .site-nav, .menu-open .site-nav { display: flex; flex-direction: row; position: static; padding: 0; background: none; margin: 0 auto; gap: 4px; overflow: visible; align-items: center; }
  .site-nav > a, .site-nav__drop > a { font-size: .98rem; padding: 10px 12px; border-bottom: 0; position: relative; }
  .site-nav > a::after, .site-nav__drop > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2.5px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
  .site-nav > a:hover::after, .site-nav > a.is-active::after, .site-nav__drop > a:hover::after, .site-nav__drop > a.is-active::after { transform: scaleX(1); }
  /* No dropdown on the top bar (Rory, 2026-11-25): Our Apartments goes to the list. Phones keep their tap-open list. */
  .site-nav__menu, .site-nav__drop > a svg { display: none; }
  .site-head__book { display: inline-flex; min-height: 48px; white-space: nowrap; }
  .site-nav > a, .site-nav__drop > a { white-space: nowrap; }
}
/* Laptops: tighter menu, WhatsApp as an icon button, so nothing wraps or runs off the edge. */
@media (min-width: 960px) and (max-width: 1199px) {
  .site-nav { gap: 0; }
  .site-nav > a, .site-nav__drop > a { font-size: .88rem; padding: 10px 8px; }
  .site-nav > a::after, .site-nav__drop > a::after { left: 8px; right: 8px; }
  .site-head__book { padding: 0 18px; }
}

/* Gold wave line (top edge of teal bands and the beach banner) */
/* Wavy section edges: the teal fills one side of the curve so a photo only ever shows on the
   other side, and the gold line runs along the curve itself. */
.wave-edge { position: absolute; left: 0; width: 100%; height: clamp(18px, 3vw, 40px); pointer-events: none; z-index: 3; }
.wave-edge__fill { fill: var(--sea); stroke: none; }
.wave-edge__line { fill: none; stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; }
.wave-edge--rise { bottom: calc(100% - 1px); }  /* sits on the photo above; teal below the curve */
.wave-edge--cap { top: -1px; }                  /* sits on the photo below; teal above the curve */

/* Hero: full-bleed pool photo, teal shade on the left, gold script */
.hero { position: relative; min-height: min(86svh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--sea); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,53,64,.92) 0%, rgba(7,53,64,.55) 45%, rgba(7,53,64,0) 75%); }
.hero__copy { position: relative; z-index: 3; padding: 0 var(--gut) clamp(54px, 9vw, 96px); width: 100%; max-width: 640px; }
.hero h1 { display: flex; flex-direction: column; line-height: 1; }
.hero__l1 { font-size: clamp(1.75rem, 9.2vw, 4rem); white-space: nowrap; font-weight: 900; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.hero__l2 { font-size: clamp(3.6rem, 15vw, 6.4rem); color: var(--gold); line-height: .95; margin-top: .05em; text-shadow: 0 3px 0 rgba(120, 78, 0, .55), 0 6px 24px rgba(0,0,0,.35); transform: rotate(-3deg); transform-origin: left; }
.swash { width: min(330px, 78%); height: 22px; stroke: var(--gold); stroke-width: 3; margin: 2px 0 10px; }
.swash path + path { stroke-width: 1.6; opacity: .7; }
.hero__tag { font: italic 400 clamp(1.25rem, 4.6vw, 1.75rem)/1.3 var(--serif); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero__tag i { color: var(--gold); font-style: normal; padding: 0 .2em; }
.hero .btn { margin-top: 22px; }
@media (min-width: 960px) {
  .hero { align-items: center; min-height: min(84vh, 720px); }
  .hero__photo { object-position: 50% 44%; }
  .hero__shade { background: linear-gradient(90deg, rgba(7,53,64,.92) 0%, rgba(7,53,64,.7) 32%, rgba(7,53,64,0) 62%); }
  .hero__copy { padding: 0 0 20px clamp(48px, 6vw, 96px); }
}

/* Highlights strip: teal band, white icons, gold dividers */
.strip { position: relative; background: var(--sea); color: #fff; padding: 30px var(--gut) 28px; overflow-x: clip; }
.strip__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; position: relative; z-index: 3; }
.strip__list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font: 700 .98rem/1.25 var(--serif); }
.strip__list svg { width: 40px; height: 40px; stroke-width: 1.6; }
@media (min-width: 760px) {
  .strip { padding: 34px var(--gut) 30px; }
  .strip__list { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .strip__list li { padding: 4px 18px; font-size: 1.05rem; }
  .strip__list li + li { border-left: 2px solid var(--gold); }
}

/* Group finder: the "How many of you?" counter on cream */
.finder { background: var(--cream); padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 40px); }
.finder__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.finder__copy p { margin-top: 10px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.count { background: #fff; border-radius: var(--r); padding: 20px 22px 22px; box-shadow: 0 14px 34px -22px rgba(7,53,64,.45); border: 1px solid var(--line); }
.count__label { display: block; font: 900 1.3rem/1.2 var(--serif); color: var(--sea); margin-bottom: 12px; }
.count__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } /* 320px phones: 'people' drops under the number instead of pushing the page sideways */
.count__btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--sea); background: #fff; color: var(--sea); display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.count__btn svg { width: 22px; height: 22px; stroke-width: 2.4; }
.count__btn:hover { background: var(--sea); color: #fff; }
.count__btn:disabled { opacity: .35; cursor: not-allowed; }
.count__n { width: 2.4ch; text-align: center; border: 0; background: transparent; color: var(--gold-ink); font: 900 52px/1 var(--serif); font-variant-numeric: tabular-nums; padding: 0; -moz-appearance: textfield; }
.count__n::-webkit-inner-spin-button, .count__n::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.count__unit { color: var(--muted); }
.count__answer { margin-top: 14px; font-size: 18px; font-weight: 500; min-height: 3.2em; }
.count__answer b { color: var(--sea); font-weight: 700; }
.count__go { display: inline-block; margin-top: 6px; color: var(--sea); font-weight: 700; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
@media (min-width: 900px) { .finder__inner { grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; } }

/* Our Apartments: ruled heading, three size cards, then the list */
.apartments { background: var(--cream); padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 9vw, 104px); }
.ruled-h { display: flex; align-items: center; gap: 18px; justify-content: center; text-align: center; }
.ruled-h::before, .ruled-h::after { content: ""; flex: 1; max-width: 260px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ruled-h::after { background: linear-gradient(90deg, var(--gold), transparent); }
.cats { display: grid; gap: 18px; margin-top: clamp(24px, 4vw, 40px); }
.cat { position: relative; display: block; border-radius: 20px; overflow: hidden; text-decoration: none; background: var(--sea); box-shadow: 0 16px 36px -22px rgba(7,53,64,.6); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.cat__label { position: absolute; left: 0; right: 0; bottom: 0; background: var(--sea); color: #fff; font: 700 1.08rem/1.25 var(--serif); text-align: center; padding: 14px 12px; border-radius: 22px 22px 0 0; }
.cat:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(7,53,64,.7); }
.cat:hover img { transform: scale(1.04); }
.cat.is-on { outline: 4px solid var(--gold); outline-offset: 3px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: clamp(40px, 6vw, 64px) 0 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.list-head__t { font: 900 1.3rem/1.2 var(--serif); color: var(--sea); }
.list-head__all { background: none; border: 1.5px solid var(--sea); color: var(--sea); border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.units { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.unit { view-transition-name: var(--vt); }
.unit[hidden] { display: none; }
.unit__link { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; align-items: start; gap: 14px; text-decoration: none; color: inherit; background: #fff; border-radius: var(--r); padding: 12px; border: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.unit__link:hover { box-shadow: 0 16px 34px -22px rgba(7,53,64,.55); }
.unit__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--line); }
.unit__text { padding: 2px 4px 2px 0; min-width: 0; }
.unit__sleeps { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: baseline; gap: 6px; }
.unit__num { font: 900 26px/1 var(--serif); color: var(--gold-ink); }
.unit__name { font-size: clamp(1.3rem, 5vw, 1.7rem); color: var(--sea); margin-top: 2px; }
.unit__facts { margin-top: 6px; font-weight: 600; color: var(--sea); }
.unit__blurb { margin-top: 6px; color: var(--muted); max-width: 52ch; font-size: 15px; display: none; }
@media (min-width: 600px) { .unit__blurb { display: block; } }
.unit__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--sea); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.unit__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.unit__link:hover .unit__more svg { transform: translateX(4px); }
.unit.is-pick .unit__link { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (min-width: 900px) {
  .units:not(.units--out) { grid-template-columns: 1fr 1fr; gap: 18px; }
  .unit__link { grid-template-columns: 42% 1fr; }
  .units--out { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .units--out .unit__link { grid-template-columns: 112px 1fr; }
}

/* Everything on the compound */
.compound { background: #fff; padding: clamp(56px, 9vw, 104px) 0; }
.compound__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; margin-bottom: clamp(28px, 5vw, 52px); background: var(--line); }
.compound__inner { display: grid; gap: 30px; }
.compound__copy p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.compound__copy .proof { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--sea); font-size: 16px; }
.proof svg { width: 22px; height: 22px; fill: var(--gold); stroke: var(--gold-deep); }
.proof b { font: 900 1.4rem/1 var(--serif); }
.proof a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.apt-proof { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--sea); }
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.amen li { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); font-weight: 600; }
.amen svg { width: 26px; height: 26px; flex: none; color: var(--sea); }
@media (min-width: 900px) { .compound__inner { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .amen { gap: 0 36px; } }

/* Location */
.where { background: var(--cream); padding: clamp(56px, 9vw, 104px) 0; }
.where__inner { display: grid; gap: 32px; }
.where__addr { display: flex; align-items: center; gap: 8px; margin: 14px 0 22px; font-weight: 600; color: var(--sea); }
.where__addr svg { width: 22px; height: 22px; }
.dist { margin: 0; }
.dist div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.dist div:last-child { border-bottom: 1px solid var(--line); }
.dist dt { font-weight: 600; }
.dist dd { margin: 0; color: var(--muted); white-space: nowrap; }
.dist dd span { font: 900 38px/1 var(--serif); color: var(--sea); margin-right: 4px; }
@media (min-width: 900px) { .where__inner { grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; } }

/* Car rental band */
.cars { background: var(--sea); color: #fff; padding: clamp(44px, 7vw, 80px) 0; }
.cars h2 { color: #fff; font-size: clamp(1.7rem, 5.4vw, 2.5rem); }
.cars__inner { display: grid; gap: 18px; justify-items: start; }
.cars__icon { width: 46px; height: 46px; color: var(--gold); }
.cars p { margin-top: 10px; color: var(--on-sea-muted); font-size: 18px; max-width: 46ch; }
@media (min-width: 900px) { .cars__inner { grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; } }

/* Beach banner: licensed photo, script line, gold pill */
.banner { position: relative; min-height: clamp(300px, 46vw, 460px); display: flex; align-items: center; color: #fff; background: var(--sea); }
.banner__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,53,64,.55), rgba(7,53,64,.15) 60%, rgba(7,53,64,.35)); }
.banner__inner { position: relative; z-index: 3; width: 100%; max-width: var(--max); margin: 0 auto; padding: 48px var(--gut) 80px; display: grid; gap: 22px; justify-items: start; }
.banner h2 { color: #fff; font-size: clamp(2.3rem, 8.4vw, 4.4rem); line-height: 1.1; text-shadow: 0 3px 16px rgba(0,0,0,.45); }
.banner h2 i { color: var(--gold); font-style: normal; }
@media (min-width: 900px) { .banner__inner { grid-template-columns: 1fr auto; align-items: center; padding-bottom: 96px; } }

/* Footer: wave top with a gold line, script logo, contacts */
.site-foot { position: relative; background: var(--sea); color: var(--on-sea-muted); margin-top: calc(-1 * clamp(34px, 6vw, 80px)); z-index: 4; }
/* The footer is pulled up by the wave height and the wave rises that much again, so the bottom of every page
   needs room for both or the wave covers its last lines (it hid buttons on the gallery and car rental pages).
   The home page ends on the beach photo, which the wave is meant to overlap. */
main { padding-bottom: calc(2 * clamp(34px, 6vw, 80px) - 40px); }
main:has(> .banner:last-child) { padding-bottom: 0; }
.gallery-end { height: 64px; } /* the gallery has no section padding of its own */
.foot-wave { position: absolute; bottom: calc(100% - 1px); left: 0; width: 100%; height: clamp(34px, 6vw, 80px); }
.foot-wave__fill { fill: var(--sea); stroke: none; }
.foot-wave__line { fill: none; stroke: var(--gold); stroke-width: 3; }
.site-foot__inner { max-width: var(--max); margin: 0 auto; padding: 18px var(--gut) 36px; }
.site-foot__brand { display: grid; gap: 4px; justify-items: start; margin-bottom: 34px; }
.script-logo { font: 400 clamp(2.6rem, 9vw, 3.8rem)/1 var(--script); color: #fff; }
.ruled-sub { display: flex; align-items: center; gap: 12px; font: 700 .9rem/1 var(--serif); letter-spacing: .5em; text-transform: uppercase; color: #fff; padding-left: 4px; }
.ruled-sub::before, .ruled-sub::after { content: ""; width: 44px; height: 2px; background: var(--gold); }
.site-foot__tag { margin-top: 12px; font: italic 400 1.25rem/1.3 var(--serif); color: #fff; }
.site-foot__cols { display: grid; gap: 26px; }
.site-foot__h { font: 700 .8rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.site-foot p { margin-top: 6px; }
.site-foot a { color: #fff; }
.site-foot__small { margin-top: 36px !important; font-size: 14px; }
.site-foot__credit { font-size: 12px; opacity: .8; }
@media (min-width: 760px) {
  .site-foot__cols { grid-template-columns: repeat(3, 1fr); }
  .site-foot__brand { grid-template-columns: auto 1fr; align-items: end; column-gap: 40px; }
  .site-foot__brand .ruled-sub { grid-column: 1; }
  .site-foot__tag { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; font-size: 1.6rem; }
}

/* Phone dock */
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 53, 64, .97); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.4); }
.dock .btn { min-height: 52px; padding: 0 12px; font-size: 15px; }
.dock__wa svg { color: #1f9d55; }
.menu-open .dock { display: none; }
@media (min-width: 960px) { .dock { display: none; } }

/* Inner pages: teal band with a gold line under it */
.page-top { position: relative; background: var(--sea); color: #fff; padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 8vw, 92px); overflow: hidden; }
.page-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.page-top .wrap { position: relative; z-index: 3; }
.page-top h1 { font-size: clamp(2.3rem, 8.4vw, 3.8rem); }
.page-top p { margin-top: 12px; color: var(--on-sea-muted); font-size: 18px; max-width: 48ch; }
.page-top a { color: #fff; text-decoration-color: var(--gold); }
.apt-top { padding-bottom: 48px; }
.apt-top__back { margin: 0 0 16px !important; font-weight: 600; }
.apt-top__back a { color: #fff; text-decoration-thickness: 2px; }
.apt-top__facts { color: #fff !important; font-weight: 600; }
.apt-top__facts span { color: var(--gold); }
.embed-wrap { padding: 40px 0 72px; }
.embed-h { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 20px; }
.embed-help { margin-top: 18px; color: var(--muted); }
.gm-embed { width: 100%; border: 0; min-height: 760px; border-radius: var(--r); background: #fff; }
.gallery { padding-top: 32px; }
.gallery__grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--line); }
.gallery__item:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; }
  .gallery__item:first-child { grid-column: 1; grid-row: span 2; }
  .gallery__item:first-child img { aspect-ratio: auto; }
}
.gal-sec { padding: 36px 0 8px; }
.gal-sec h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-bottom: 14px; }
.gal-sec h2 a { text-decoration: none; }
.gal-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gal-grid a { display: block; border-radius: 12px; overflow: hidden; background: var(--line); }
.gal-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gal-grid a:hover img { transform: scale(1.04); }
@media (min-width: 760px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }
.steps { padding: 48px 0 88px; }
.steps__inner { display: grid; gap: 40px; }
.step h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.step p { margin: 10px 0 20px; color: var(--muted); font-size: 18px; max-width: 42ch; }
/* Each button sits at the foot of its column, so side by side they line up whatever the text length (Rory, 2026-11-25). */
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step .btn { margin-top: auto; }
@media (min-width: 900px) { .steps__inner { grid-template-columns: 1fr 1fr; gap: 72px; } }
.prose { padding: 40px 0 88px; }
.prose .wrap { max-width: 760px; }
.prose p + p { margin-top: 16px; }

/* Gallery photo viewer (2026-11-25): one apartment's photos with back / forward arrows, swipe on phones. */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(4, 22, 27, .95); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; width: 100%; max-width: 1200px; padding: 64px 80px 20px; display: flex; flex-direction: column; align-items: center; }
.lb__img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 8px; }
.lb__cap { color: #fff; margin-top: 12px; font-size: .95rem; text-align: center; }
.lb__nav, .lb__x { position: absolute; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease); }
.lb__nav:hover, .lb__x:hover { background: rgba(255, 255, 255, .3); }
.lb__nav svg, .lb__x svg { width: 24px; height: 24px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__prev svg { transform: rotate(180deg); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__x { top: 14px; right: 16px; }
body.lb-open { overflow: hidden; }
.gallery__grid img { cursor: zoom-in; }
@media (max-width: 640px) {
  .lb__fig { padding: 64px 0 96px; }
  .lb__img { border-radius: 0; max-height: calc(100svh - 190px); }
  .lb__nav { top: auto; bottom: 24px; transform: none; }
  .lb__prev { left: calc(50% - 68px); }
  .lb__next { right: calc(50% - 68px); }
}
