/* ==========================================================================
   Enclave Maldives - public site stylesheet
   Brand system: Tenor Sans (display, weight 400 only) + Mulish (text/UI).
   Deep Ocean Blue dominates; Soft Lagoon Blue is an accent for titles, rules
   and labels - never a large fill. See the brand guidelines deck.
   ========================================================================== */

:root {
  /* Colour */
  --ocean: #0b192c;        /* Deep Ocean Blue - dominant background */
  --ocean-2: #070f1c;      /* deepest, for gradient ends */
  --night: #0f172a;        /* Night Slate - footer / panels */
  --lagoon: #38bdf8;       /* Soft Lagoon Blue - accent */
  --channel: #0284c7;      /* Channel Blue - deep accent (focus, hover) */
  --channel-2: #0369a1;    /* Channel on light grounds (eyebrows, links) */
  --shell: #f8fafc;        /* Shell White - headings on dark, page ground */
  --wash: #edf3f7;         /* alternating light section */
  --mist: #94a3b8;         /* Mist Slate - muted text on dark */
  --fog: #d7e0e8;          /* hero body copy on dark */
  --cloud: #cbd5e1;        /* rules on light, light copy on dark */
  --line: #e2e8f0;         /* card rules */
  --slate: #475569;        /* body copy on light */
  --slate-2: #64748b;      /* secondary copy on light */
  --danger: #b23434;

  /* Type */
  --font-display: 'Tenor Sans', 'Trebuchet MS', sans-serif;
  --font-body: 'Mulish', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 74px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-card: 0 1px 2px rgba(11, 25, 44, .08);
  --shadow-lift: 0 24px 50px rgba(11, 25, 44, .15);
  --shadow-float: 0 2px 4px rgba(11, 25, 44, .08), 0 20px 44px rgba(11, 25, 44, .08);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* `clip`, not `hidden`: overflow-x:hidden on html/body turns the body into a
   scroll container, which silently disables every position:sticky element on
   the page (the homepage stage, the category filter bar, the inquiry card). */
html, body { overflow-x: clip; }
/* Scripts toggle visibility with el.hidden. Without this, any element that
   also has a display rule (.field, .detail-block, .mobile-bar...) out-ranks the
   UA's [hidden] and stays visible. */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .005em;
  color: var(--ocean);
  line-height: 1.12;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--channel-2); text-decoration: none; }
a:hover { color: var(--ocean); }
img, video { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
::selection { background: var(--lagoon); color: var(--ocean); }

:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--shell); color: var(--ocean);
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Honeypot - visually and semantically removed but still in the DOM so a naive
   bot fills it in. A submission with it populated is dropped server-side. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(70px, 10vw, 140px) 0; }
.section--tight { padding: clamp(50px, 7vw, 96px) 0 clamp(60px, 9vw, 130px); }
.section--wash { background: var(--wash); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font: 600 11px/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase;
  color: var(--channel-2);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.eyebrow--lagoon { color: var(--lagoon); }
.eyebrow--plain::before { display: none; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: clamp(38px, 5vw, 64px);
}
.section-head > div { display: flex; flex-direction: column; gap: 20px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 58px); }

.link-more {
  font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ocean); border-bottom: 1px solid var(--channel-2); padding-bottom: 6px;
}
.link-more:hover { color: var(--channel-2); }
.link-more--light { color: var(--shell); border-bottom-color: var(--lagoon); }
.link-more--light:hover { color: var(--lagoon); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px; padding: 20px 38px; border: 1px solid transparent;
  cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease;
  min-height: 48px; white-space: nowrap;
}
.btn-lagoon { background: var(--lagoon); color: var(--ocean); }
.btn-lagoon:hover { background: var(--shell); color: var(--ocean); }
.btn-ghost { color: var(--shell); border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--shell); color: var(--shell); }
.btn-ocean { background: var(--ocean); color: var(--shell); }
.btn-ocean:hover { background: var(--channel); color: var(--shell); }
.btn-outline { background: #fff; color: var(--ocean); border-color: var(--cloud); }
.btn-outline:hover { border-color: var(--ocean); color: var(--ocean); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes riseSm { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomOut { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes drift { from { transform: translateY(4%) scale(1.06); } to { transform: translateY(-4%) scale(1.06); } }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(9px); opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* Scroll-reveal: main.js flips .is-in via IntersectionObserver. Works in every
   browser (unlike animation-timeline) and degrades to "just visible". */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Site nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 80;
  background: var(--ocean); border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 0;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
body.nav-overlay .site-nav { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; padding: 22px 0; }
body.nav-overlay .site-nav.is-scrolled { background: rgba(11, 25, 44, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, .1); padding: 12px 0; }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; flex-direction: column; gap: 3px; color: var(--shell); flex: 0 0 auto; }
.brand:hover { color: var(--shell); }
.brand-name { font: 400 clamp(19px, 2vw, 23px)/1 var(--font-display); letter-spacing: .14em; }
.brand-sub { font: 600 clamp(8px, 1vw, 9px)/1 var(--font-body); letter-spacing: .44em; color: var(--lagoon); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav-links a { font: 500 14px/1 var(--font-body); letter-spacing: .06em; color: var(--line); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--lagoon); }
.nav-links a.nav-cta {
  font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ocean); background: var(--lagoon); border-radius: 999px; padding: 13px 24px;
}
.nav-links a.nav-cta:hover { background: var(--shell); color: var(--ocean); }

.nav-burger {
  display: none; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm); width: 46px; height: 46px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  backdrop-filter: blur(6px);
}
.nav-burger span { width: 19px; height: 1.5px; background: var(--shell); display: block; transition: transform .3s, opacity .3s, width .3s; }
.nav-burger span:nth-child(3) { width: 12px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { width: 19px; transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

.menu-overlay {
  position: fixed; inset: 0; z-index: 95; background: var(--ocean);
  display: flex; flex-direction: column; padding: 26px var(--gutter) 40px;
  animation: fade .28s ease both;
}
.menu-overlay[hidden] { display: none; }
.menu-overlay-head { display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  background: none; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-sm);
  width: 48px; height: 48px; font: 300 26px/1 var(--font-body); color: var(--shell); cursor: pointer;
}
.menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow-y: auto; }
.menu-links a {
  font: 400 clamp(30px, 9vw, 44px)/1.3 var(--font-display); color: var(--shell);
  border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 14px 0;
}
.menu-links a:last-child { border-bottom: none; }
.menu-links a:hover, .menu-links a.active { color: var(--lagoon); }
.menu-foot { display: flex; flex-direction: column; gap: 14px; }
.menu-foot .btn { padding: 20px; }
.menu-foot .menu-wa { text-align: center; font: 500 14px/1 var(--font-body); color: var(--mist); }
body.menu-open { overflow: hidden; }

/* ---------- Full hero (home) ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ocean);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoomOut 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.hero-poster { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(175deg, rgba(11, 25, 44, .72) 0%, rgba(11, 25, 44, .45) 38%, rgba(11, 25, 44, .9) 100%); }
.hero-body { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hero-body .container { padding-bottom: clamp(56px, 9vh, 110px); }
.hero-copy { max-width: 920px; display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); }
.hero-copy .eyebrow { animation: riseSm .8s var(--ease) .15s both; }
.hero-copy h1 { font-size: clamp(42px, 8.6vw, 116px); line-height: 1.02; color: var(--shell); animation: rise 1.1s var(--ease) .28s both; }
.hero-copy p { max-width: 600px; font: 300 clamp(17px, 2vw, 23px)/1.55 var(--font-body); color: var(--fog); animation: rise 1.1s var(--ease) .44s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1.1s var(--ease) .58s both; }
.hero-cue { position: absolute; right: var(--gutter); bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-cue span:first-child { font: 600 9px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--mist); }
.hero-cue span:last-child { width: 1px; height: 34px; background: linear-gradient(var(--lagoon), transparent); animation: cue 2s ease-in-out infinite; }

/* ---------- Page hero (category / property / contact) ---------- */
.page-hero { position: relative; height: clamp(400px, 62vh, 620px); overflow: hidden; background: var(--ocean); }
.page-hero--short { height: clamp(340px, 52vh, 520px); }
.page-hero--tall { height: clamp(420px, 66vh, 660px); }
.page-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; animation: zoomOut 2s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(170deg, rgba(11, 25, 44, .7), rgba(11, 25, 44, .45) 40%, rgba(11, 25, 44, .94)); }
.page-hero-body { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.page-hero-body .container { padding-bottom: clamp(40px, 6vh, 72px); }
.page-hero-copy { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 22px); max-width: 820px; }
.page-hero-copy h1 { font-size: clamp(38px, 7vw, 84px); line-height: 1.04; color: var(--shell); animation: rise 1s var(--ease) .22s both; }
.page-hero-copy p { max-width: 600px; font: 300 clamp(16px, 1.8vw, 21px)/1.6 var(--font-body); color: var(--fog); animation: rise 1s var(--ease) .34s both; }
.page-hero-copy .eyebrow { animation: riseSm .8s ease .1s both; }
.page-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font: 400 clamp(15px, 1.6vw, 18px)/1 var(--font-body); color: var(--fog); animation: rise 1s var(--ease) .32s both; }
.page-hero-meta .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--lagoon); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 500 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); animation: riseSm .8s ease .1s both; }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--shell); }
.breadcrumb [aria-current] { color: var(--lagoon); }

/* ---------- Home: intro ---------- */
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(40px, 6vw, 90px); align-items: start; }
.intro > div { display: flex; flex-direction: column; gap: 26px; }
.intro h2 { font-size: clamp(30px, 4.4vw, 58px); }
.intro .lead { font: 300 clamp(18px, 1.7vw, 22px)/1.65 var(--font-body); color: var(--slate); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 24px; border-top: 1px solid var(--cloud); padding-top: clamp(24px, 3vw, 36px); }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value { font: 400 clamp(32px, 3.6vw, 46px)/1 var(--font-display); color: var(--ocean); }
.stat-label { font: 600 11px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); }

/* ---------- Home: "ways to travel" scroll-driven stage ---------- */
.ways { position: relative; background: var(--ocean); }
.ways-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ways-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); will-change: opacity, transform; }
.ways-img--blank { background: linear-gradient(160deg, var(--channel), var(--ocean)); }
.ways-shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11, 25, 44, .85) 0%, rgba(11, 25, 44, .42) 42%, rgba(11, 25, 44, .96) 100%); }
.ways-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.ways-content .container { padding-bottom: clamp(28px, 4vh, 56px); }
.ways-content .eyebrow { margin-bottom: clamp(20px, 4vh, 44px); }
.ways-panels { position: relative; min-height: clamp(300px, 40vh, 380px); }
.ways-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 660px; display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 22px); opacity: 0; transform: translateY(40px); will-change: opacity, transform; }
.ways-index { font: 600 11px/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase; color: var(--mist); }
.ways-panel h3 { font-size: clamp(32px, 5.4vw, 68px); line-height: 1.06; color: var(--shell); }
.ways-panel p { font: 300 clamp(16px, 1.7vw, 21px)/1.6 var(--font-body); color: var(--fog); }
.ways-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding-top: 6px; }
.ways-foot .price { font: 400 clamp(20px, 2.2vw, 28px)/1 var(--font-display); color: var(--lagoon); display: inline-flex; align-items: baseline; gap: 8px; }
.ways-foot .price-unit { font: 400 13px/1 var(--font-body); color: var(--mist); }
.ways-ticks { display: flex; gap: 10px; margin-top: clamp(24px, 4vh, 44px); }
.ways-tick { flex: 1; height: 2px; background: rgba(255, 255, 255, .18); transition: background .4s ease; }
.ways-tick.is-on { background: var(--lagoon); }

/* Stacked fallback - reduced motion, or when the stage can't run. */
.ways--stacked .ways-stage { position: static; height: auto; }
.ways--stacked .ways-item { position: relative; min-height: 70svh; display: flex; align-items: flex-end; overflow: hidden; }
.ways--stacked .ways-item .ways-img { position: absolute; opacity: 1; transform: none; }
.ways--stacked .ways-item .ways-panel { position: relative; opacity: 1; transform: none; padding: clamp(40px, 6vw, 80px) var(--gutter); max-width: none; }
.ways--stacked .ways-item .ways-panel > * { max-width: 660px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
/* Listing pages (category grid): a fixed 4-up grid - smaller, denser cards
   than the homepage featured grid - paginated at 12 (4x3) per page by
   category.js rather than left to grow unbounded. */
.card-grid--listing { grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.card-grid--listing .card-body { padding: 16px 18px; gap: 6px; }
.card-grid--listing .card-badge { font-size: 9px; padding: 7px 12px; top: 12px; left: 12px; }
.card-grid--listing .card-kicker { font-size: 10px; }
.card-grid--listing .card h3 { font-size: 16px; line-height: 1.3; }
.card-grid--listing .card-desc {
  font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-grid--listing .card-foot { padding-top: 12px; margin-top: 2px; }
.card-grid--listing .card-foot .price-amount { font-size: 17px; }
.card-grid--listing .card-foot .price-unit { font-size: 9px; }
.card-grid--listing .card-cta { font-size: 10px; }
@media (max-width: 980px) { .card-grid--listing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid--listing { grid-template-columns: 1fr; } }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-badge {
  position: absolute; top: 16px; left: 16px;
  font: 600 10px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ocean); background: rgba(248, 250, 252, .94); border-radius: 999px; padding: 9px 15px;
}
.card-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-kicker { font: 600 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--channel-2); }
.card h3 { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.2; }
.card-desc { font: 400 15px/1.6 var(--font-body); color: var(--slate-2); flex: 1; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.card-foot .price { display: flex; flex-direction: column; gap: 3px; }
.card-foot .price-amount { font: 400 22px/1 var(--font-display); color: var(--ocean); }
.card-foot .price-unit { font: 400 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); }
.card-cta { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--channel-2); }

.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(32px, 4vw, 48px); }
.pager-btn {
  font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; padding: 13px 26px; border: 1px solid var(--cloud); background: #fff; color: var(--ocean);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--ocean); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-status { font: 500 13px/1 var(--font-body); letter-spacing: .08em; color: var(--slate-2); }

.empty-state { grid-column: 1 / -1; text-align: center; color: var(--slate-2); padding: 60px 0; font-size: 15px; }
.loader { grid-column: 1 / -1; text-align: center; color: var(--slate-2); padding: 60px 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Home: features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(28px, 3vw, 44px); }
.feature { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--cloud); padding-top: 26px; }
.feature .icon { width: 26px; height: 26px; color: var(--channel-2); }
.feature h4 { font-size: clamp(20px, 2vw, 25px); line-height: 1.25; }
.feature p { font: 400 15px/1.6 var(--font-body); color: var(--slate-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ocean); }
.cta-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.cta-band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 25, 44, .85), rgba(11, 25, 44, .95)); }
.cta-band .container { position: relative; padding-top: clamp(80px, 12vw, 170px); padding-bottom: clamp(80px, 12vw, 170px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(22px, 3vw, 34px); }
.cta-band h2 { max-width: 940px; font-size: clamp(32px, 6vw, 80px); line-height: 1.06; color: var(--shell); }
.cta-band p { max-width: 620px; font: 300 clamp(17px, 1.8vw, 22px)/1.6 var(--font-body); color: var(--cloud); }
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.cta-soft { background: var(--wash); }
.cta-soft .container { max-width: 900px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta-soft h2 { font-size: clamp(28px, 4.4vw, 54px); }
.cta-soft p { max-width: 520px; font: 300 clamp(16px, 1.7vw, 20px)/1.6 var(--font-body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--mist); }
.site-footer .container { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 34px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(34px, 4vw, 60px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer-brand { display: flex; flex-direction: column; gap: 22px; }
.logo-plate { background: var(--shell); border-radius: 14px; padding: 12px 14px; align-self: flex-start; }
.logo-plate img { height: 66px; width: auto; }
.footer-brand p { max-width: 300px; font: 400 15px/1.65 var(--font-body); }
.footer-col { display: flex; flex-direction: column; gap: 18px; }
.footer-col h4 { font: 600 11px/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--shell); }
.footer-col ul { display: flex; flex-direction: column; gap: 18px; }
.footer-col a, .footer-col span { font: 400 15px/1.5 var(--font-body); color: var(--mist); }
.footer-col a:hover { color: var(--lagoon); }
.footer-col a.footer-cta { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font: 400 13px/1.5 var(--font-body); }

/* ---------- Category: sticky filter bar ---------- */
.filter-bar { position: sticky; top: var(--nav-h); z-index: 60; background: var(--shell); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.filter-bar.is-scrolled { box-shadow: 0 10px 24px rgba(11, 25, 44, .07); }
.filter-bar .container { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px; padding: 12px 20px; border: 1px solid var(--cloud); background: #fff; color: var(--ocean);
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--channel-2); color: var(--channel-2); }
.chip.is-on { background: var(--ocean); border-color: var(--ocean); color: var(--shell); }
.filter-count { font: 500 13px/1 var(--font-body); letter-spacing: .08em; color: var(--slate-2); }

/* ---------- Property detail ---------- */
.detail-layout { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); align-items: flex-start; }
.detail-main { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: clamp(34px, 4vw, 54px); }
.detail-block { display: flex; flex-direction: column; gap: 20px; }
.detail-block h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.2; }
.detail-block .prose { display: flex; flex-direction: column; gap: 16px; }
.detail-block .prose p { font: 300 clamp(16px, 1.6vw, 19px)/1.7 var(--font-body); color: var(--slate); }
.detail-block .eyebrow { letter-spacing: .28em; }
.detail-block .eyebrow::before { width: 28px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.gallery button { border: none; padding: 0; background: var(--wash); cursor: pointer; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.07); }

.includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 34px; }
.includes li { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 16px; font: 400 15px/1.6 var(--font-body); color: var(--slate); }
.includes li::before { content: '\2726'; color: var(--channel-2); flex: 0 0 auto; }

.inquiry-card {
  flex: 0 1 380px; position: sticky; top: calc(var(--nav-h) + 24px);
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-float);
  padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 20px;
}
.inquiry-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.inquiry-card-head .price { display: flex; flex-direction: column; gap: 4px; }
.inquiry-card-head .price-amount { font: 400 clamp(28px, 2.8vw, 36px)/1 var(--font-display); color: var(--ocean); }
.inquiry-card-head .price-unit { font: 400 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--slate-2); }
.inquiry-card h3 { font-size: 20px; line-height: 1.3; }
.inquiry-regarding { font: 400 13px/1.5 var(--font-body); color: var(--slate-2); }
.inquiry-regarding strong { color: var(--ocean); font-weight: 600; }

/* Mobile: the card becomes a fixed bar + bottom sheet. */
.mobile-bar { display: none; }
.sheet { display: none; }
@media (max-width: 1023px) {
  .inquiry-card { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--ocean); border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 14px clamp(16px, 4vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .mobile-bar .price { display: flex; flex-direction: column; gap: 3px; }
  .mobile-bar .price-amount { font: 400 22px/1 var(--font-display); color: var(--shell); }
  .mobile-bar .price-unit { font: 400 10px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
  .mobile-bar .btn { padding: 18px 26px; font-size: 12px; }
  body.has-mobile-bar { padding-bottom: 84px; }

  .sheet { position: fixed; inset: 0; z-index: 96; background: rgba(11, 25, 44, .72); animation: fade .25s ease both; display: flex; align-items: flex-end; }
  .sheet[hidden] { display: none; }
  .sheet-panel { width: 100%; max-height: 92svh; overflow-y: auto; background: var(--shell); border-radius: 24px 24px 0 0; padding: 22px clamp(18px, 5vw, 28px) 32px; animation: sheetUp .38s cubic-bezier(.2, .85, .25, 1) both; }
  .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
  .sheet-head .name { font: 400 24px/1.2 var(--font-display); color: var(--ocean); display: block; }
  .sheet-head .sub { font: 400 13px/1.4 var(--font-body); color: var(--slate-2); display: block; margin-top: 5px; }
}
.icon-btn { flex: 0 0 auto; background: #fff; border: 1px solid var(--cloud); border-radius: var(--radius-sm); width: 46px; height: 46px; font: 300 24px/1 var(--font-body); color: var(--ocean); cursor: pointer; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 98; background: rgba(6, 15, 28, .96); animation: fade .22s ease both; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 5vw, 56px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82svh; object-fit: contain; border-radius: 10px; }
.lightbox-btn { position: absolute; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); color: var(--shell); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { top: 20px; right: 22px; border-radius: var(--radius-sm); width: 48px; height: 48px; font: 300 26px/1 var(--font-body); }
.lightbox-nav { top: 50%; transform: translateY(-50%); border-radius: 999px; width: 52px; height: 52px; font: 400 22px/1 var(--font-body); }
.lightbox-prev { left: clamp(8px, 2vw, 24px); }
.lightbox-next { right: clamp(8px, 2vw, 24px); }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font: 500 13px/1 var(--font-body); letter-spacing: .16em; color: var(--mist); }

/* ---------- Contact ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 70px); align-items: flex-start; }
.contact-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 44px); }
.contact-side h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.2; }
.contact-side .lead { font: 300 clamp(16px, 1.6vw, 19px)/1.7 var(--font-body); }
.contact-rows { display: flex; flex-direction: column; }
.contact-row { display: flex; gap: 20px; align-items: flex-start; border-top: 1px solid var(--cloud); padding: 24px 0; color: inherit; transition: padding-left .35s ease; }
.contact-row:last-child { border-bottom: 1px solid var(--cloud); }
a.contact-row:hover { padding-left: 8px; color: inherit; }
.contact-row .icon { width: 22px; height: 22px; color: var(--channel-2); flex: 0 0 auto; margin-top: 3px; }
.contact-row > span { display: flex; flex-direction: column; gap: 6px; }
.contact-row .k { font: 600 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--slate-2); }
.contact-row .v { font: 400 clamp(19px, 2vw, 24px)/1.3 var(--font-display); color: var(--ocean); }
.contact-row .n { font: 400 14px/1.5 var(--font-body); color: var(--slate-2); }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 25, 44, .08), rgba(11, 25, 44, .85)); }
.photo-card p { position: absolute; left: clamp(20px, 3vw, 30px); right: clamp(20px, 3vw, 30px); bottom: clamp(20px, 3vw, 28px); z-index: 1; font: 400 clamp(15px, 1.6vw, 18px)/1.5 var(--font-body); color: var(--line); }
.form-card { flex: 1 1 400px; min-width: 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow-float); padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; gap: 22px; }
.form-card-head { display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.form-card-head h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; }
.form-card-head p { font: 400 14px/1.55 var(--font-body); color: var(--slate-2); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px/1.2 var(--font-body); color: var(--ocean);
  background: var(--shell); border: 1px solid var(--cloud); border-radius: 11px; padding: 14px 15px; outline: none;
  transition: border-color .2s, background .2s;
}
.field textarea { line-height: 1.5; resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--channel); background: #fff; }
.field input:disabled { background: var(--wash); color: var(--slate-2); cursor: not-allowed; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: 12px; min-height: 15px; }
.form-note { text-align: center; font: 400 12px/1.5 var(--font-body); color: var(--slate-2); }
.form-note--left { text-align: left; }
.form-msg { display: none; border-radius: 11px; padding: 14px 16px; font: 500 14px/1.5 var(--font-body); }
.form-msg.is-shown { display: block; }
.form-success { background: rgba(56, 189, 248, .12); border: 1px solid rgba(56, 189, 248, .36); color: var(--ocean); }
.form-error { background: rgba(178, 52, 52, .08); border: 1px solid rgba(178, 52, 52, .25); color: var(--danger); }

/* ---------- 404 ---------- */
.not-found { position: relative; overflow: hidden; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; background: var(--ocean); }
.not-found-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; animation: drift 20s ease-in-out infinite alternate; }
.not-found-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 25, 44, .85), rgba(11, 25, 44, .96)); }
.not-found .container { position: relative; max-width: 900px; padding-top: clamp(60px, 10vw, 120px); padding-bottom: clamp(60px, 10vw, 120px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(18px, 2.6vw, 30px); }
.not-found h1 { font-size: clamp(56px, 14vw, 150px); line-height: 1; letter-spacing: .02em; color: var(--shell); animation: rise 1s var(--ease) .2s both; }
.not-found p { max-width: 520px; font: 300 clamp(17px, 2vw, 22px)/1.6 var(--font-body); color: var(--cloud); animation: rise 1s var(--ease) .32s both; }
.not-found .eyebrow { animation: rise .8s ease .1s both; }
.not-found .cta-band-actions { animation: rise 1s var(--ease) .44s both; }
