/* ==========================================================================
   CARPEJEM Properties PH — Design System
   Plain CSS, mobile-first. One stylesheet for the whole site.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Colour palette (derived from the navy + gold logo, warmed with neutrals) */
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #ffffff;          /* raised surface (inputs, popovers) */
  --ink: #1f2433;
  --muted: #6b7280;
  --navy: #1b2a4a;               /* brand ink — used as readable text */
  --navy-700: #243a63;
  --navy-fill: #1b2a4a;          /* solid fill for navy buttons / chips */
  --gold: #c8a24b;
  --gold-600: #b08c38;
  --gold-soft: rgba(200, 162, 75, 0.18);
  --taupe: #e8e2d6;
  --taupe-200: #f2eee6;
  --sage: #8a9a85;
  --line: #e7e3da;
  --danger: #b3261e;

  /* Semantic surfaces (so dark mode can re-skin them) */
  --dark-section-bg: var(--navy);     /* .section--navy background */
  --dark-section-ink: #f4f6fb;
  --dark-section-muted: #d6def0;
  --footer-bg: var(--navy);
  --hero-bg: var(--navy);

  /* Status + badge tints */
  --ok-bg: #e8f1e8; --ok-ink: #2f5d34; --ok-line: #cfe3cf;
  --err-bg: #f7e7e6; --err-ink: #8a2e27; --err-line: #eccdca;
  --badge-ok-bg: #e8f1e8; --badge-ok-ink: #2f5d34;
  --badge-no-bg: #f3e1df; --badge-no-ink: #8a2e27;

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing / layout */
  --maxw: 1200px;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(31, 36, 51, 0.06);
  --shadow: 0 8px 24px rgba(31, 36, 51, 0.08);
  --shadow-lg: 0 18px 40px rgba(31, 36, 51, 0.12);
  --transition: 180ms ease;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Dark theme ---------------------------------------------------------- */
html[data-theme="dark"] {
  --bg: #14171c;                 /* deep charcoal, not pure black */
  --surface: #1e222a;            /* cards */
  --surface-2: #242932;          /* inputs / raised */
  --ink: #eceae6;               /* soft off-white */
  --muted: #a3a8b2;
  --navy: #e9ebf2;               /* brand ink reads light on dark */
  --navy-700: #38456e;           /* navy-fill hover */
  --navy-fill: #2b3656;          /* deep indigo fill stays distinct on dark */
  --gold: #d8b667;               /* lighter gold for contrast on dark */
  --gold-600: #c8a24b;
  --gold-soft: rgba(216, 182, 103, 0.16);
  --taupe: #2a303a;
  --taupe-200: #191d23;          /* subtle section tint */
  --sage: #9aa893;
  --line: #2c313b;
  --danger: #f1857c;

  --dark-section-bg: #11141a;
  --dark-section-ink: #f1f3f8;
  --dark-section-muted: #b9c0cd;
  --footer-bg: #101319;
  --hero-bg: #11141a;

  --ok-bg: #16271b; --ok-ink: #8fd39a; --ok-line: #24412b;
  --err-bg: #2c1a1a; --err-ink: #f1a7a1; --err-line: #4a2a28;
  --badge-ok-bg: #1c3322; --badge-ok-ink: #8fd39a;
  --badge-no-bg: #3a2422; --badge-no-ink: #f1a7a1;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Smooth theme switch (disabled for reduced-motion further down) */
body, .site-header, .card, .feature, .quote, .channel, .detail-aside,
.filters, .faq__item, .field input, .field select, .field textarea,
.section--taupe, .section--navy, .site-footer, .badge, .pill {
  transition: background-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}

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

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { color: var(--ink); }

ul { padding-left: 1.1rem; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--navy-fill);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1100;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--taupe { background: var(--taupe-200); }
.section--navy { background: var(--dark-section-bg); color: var(--dark-section-ink); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: #fff; }
.section--navy p { color: var(--dark-section-muted); }

.section-head { max-width: 640px; margin-bottom: 2.25rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-600);
  margin-bottom: 0.6rem;
}
.lead { font-size: 1.075rem; color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold { background: var(--gold); color: #20180a; }
.btn--gold:hover { background: var(--gold-600); color: #fff; }

.btn--navy { background: var(--navy-fill); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy-fill); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-fill); }

.btn--block { width: 100%; }

/* ---- Header / navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.7rem;
}
/* Push the menu + controls to the right of the brand */
.nav > nav { margin-left: auto; }
.nav-controls { display: flex; align-items: center; gap: 0.5rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
}
.brand:hover { color: var(--navy); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand b { display: block; font-size: 1.05rem; }
.brand span { display: block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-600); font-family: var(--font-body); font-weight: 600; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  /* Mobile: clean dropdown panel anchored under the sticky header */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.5rem 1.25rem 1rem;
}
.nav-menu.is-open { display: flex; }
.nav-menu a:not(.btn) {
  display: block;
  padding: 0.7rem 0.25rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-menu a[aria-current="page"] { color: var(--gold-600); font-weight: 600; }
.nav-cta { margin-top: 0.5rem; }
.nav-cta .btn { width: 100%; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;           /* avoids mobile URL-bar height jump */
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--hero-bg);
  color: #fff;
  overflow: hidden;
}
/* Dark scrim over the background image for guaranteed text contrast */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 20, 30, 0.55), rgba(15, 20, 30, 0.8));
  pointer-events: none;
}
/* Soft decorative glow */
.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, var(--gold-soft), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 3;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  max-width: 760px;
}
.hero h1 { color: #fff; }
.hero p { color: #e7ecf6; font-size: 1.15rem; margin-top: 1rem; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.9rem; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  object-fit: cover; width: 100%; height: 100%;
}
/* Hero trust indicators */
.hero__trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  padding-left: 0;
}
.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #e7ecf6;
}
.hero__trust svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

.page-hero {
  background: var(--hero-bg);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #d6def0; margin-top: 0.75rem; max-width: 640px; }
.breadcrumb { font-size: 0.85rem; color: #aeb9d4; margin-bottom: 0.75rem; }
.breadcrumb a { color: #aeb9d4; }
.breadcrumb a:hover { color: #fff; }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Property card */
.property-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--taupe); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.badge--available { background: var(--badge-ok-bg); color: var(--badge-ok-ink); }
.badge--booked { background: var(--badge-no-bg); color: var(--badge-no-ink); }
.badge--inquire { background: var(--taupe); color: var(--ink); }

.property-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.property-card__name { font-size: 1.2rem; }
.property-card__loc { color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.35rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--taupe-200); color: var(--navy);
  border: 1px solid var(--line);
}
.property-card__price { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); font-weight: 700; }
.property-card__price small { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.specs { display: flex; flex-wrap: wrap; gap: 0.9rem; color: var(--muted); font-size: 0.88rem; margin-top: 0.1rem; }
.specs span { display: inline-flex; align-items: center; gap: 0.3rem; }
.property-card__body .btn { margin-top: auto; }

/* Feature / value cards */
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.feature .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--taupe-200);
  color: var(--gold-600);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}
.feature h3 { margin-bottom: 0.4rem; }
.feature p { color: var(--muted); }

/* Option (rental type) cards */
.option-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy-fill);
  box-shadow: var(--shadow);
}
.option-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.option-card__body { position: relative; z-index: 2; padding: 1.6rem; }
.option-card h3 { color: #fff; font-size: 1.5rem; }
.option-card p { color: #e7ecf6; margin: 0.5rem 0 1rem; }

/* ---- How it works -------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step__num {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-fill); color: #fff;
  font-family: var(--font-display); font-weight: 700;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---- Testimonials -------------------------------------------------------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.quote p { font-style: italic; color: var(--ink); }
.quote footer { margin-top: 1rem; font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.quote footer span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.placeholder-note {
  font-size: 0.8rem; color: var(--muted);
  background: var(--taupe-200); border: 1px dashed var(--taupe);
  padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
  display: inline-block; margin-top: 1rem;
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 1.25rem; }
.cta-band .btn { margin-top: 0.25rem; }

/* ---- Filters (listings) -------------------------------------------------- */
.listing-layout { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.filters__toggle { width: 100%; }
.filters__body { display: grid; gap: 1rem; margin-top: 1rem; }
.filters.is-collapsed .filters__body { display: none; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field select,
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;             /* >=16px avoids iOS zoom-on-focus */
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition),
              background-color 0.3s var(--ease-out);
}
.field select { appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field select:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field .hint { font-size: 0.78rem; color: var(--muted); }

.results-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.results-count { color: var(--muted); font-size: 0.92rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- Property detail ----------------------------------------------------- */
.gallery { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
.gallery__main { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--taupe); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gallery__thumbs button { border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; padding: 0; cursor: pointer; background: var(--taupe); aspect-ratio: 4/3; }
.gallery__thumbs button.is-active { border-color: var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 2rem; }
.detail-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  align-self: start;
}
.detail-aside .price { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); font-weight: 700; }
.detail-aside .price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.detail-aside .btn { margin-top: 0.75rem; }
.detail-aside hr { border: none; border-top: 1px solid var(--line); margin: 1.25rem 0; }

.amenity-list, .rules-list, .nearby-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
.amenity-list li, .nearby-list li { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); }
.amenity-list li::before, .nearby-list li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.rules-list li { display: flex; gap: 0.55rem; color: var(--ink); }
.rules-list li::before { content: "•"; color: var(--gold-600); font-weight: 700; }
.detail-block { margin-top: 2rem; }
.detail-block h2 { font-size: 1.4rem; margin-bottom: 0.9rem; }

/* ---- FAQ accordion ------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 0.75rem; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: none;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--navy);
  padding: 1.1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__q .chev { transition: transform var(--transition); flex: none; color: var(--gold-600); }
.faq__q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq__a { padding: 0 1.2rem; max-height: 0; overflow: hidden; transition: max-height var(--transition), padding var(--transition); }
.faq__a p { color: var(--muted); }
.faq__item.is-open .faq__a { padding: 0 1.2rem 1.2rem; max-height: 500px; }

/* ---- Contact / email channels -------------------------------------------- */
.contact-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.channel-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.channel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.channel h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.channel a { font-weight: 600; word-break: break-word; }
.channel p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.form-status { padding: 0.9rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 500; display: none; }
.form-status.is-success { display: block; background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.form-status.is-error { display: block; background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-line); }
.required { color: var(--danger); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 1.5rem; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---- Floating contact button --------------------------------------------- */
.float-contact {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 900;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: #06381b; font-weight: 600;
  padding: 0.75rem 1.1rem; border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.float-contact:hover { color: #06381b; transform: translateY(-2px); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--footer-bg) 88%, #000), var(--footer-bg));
  color: #cdd6ea;
  padding-block: 3rem 1.5rem;
  border-top: 1px solid var(--gold-soft);
}
.site-footer a { color: #cdd6ea; transition: color var(--transition); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 0.85rem; display: block; }
.footer-brand b { color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.footer-brand p { color: #aeb9d4; margin-top: 0.6rem; font-size: 0.92rem; max-width: 30ch; }
.footer-address { color: #aeb9d4; margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.5; font-style: normal; }
.footer-contact { margin-top: 0.4rem; font-size: 0.92rem; }
.footer-contact a { font-weight: 600; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-col li { font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; color: #aeb9d4; text-align: center; }

/* ---- Misc ---------------------------------------------------------------- */
.prose p { margin-bottom: 1rem; max-width: 68ch; }
.prose ul { margin-bottom: 1rem; max-width: 68ch; }
.prose li { margin-bottom: 0.35rem; }
.tag-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* ==========================================================================
   Theme toggle
   ========================================================================== */
.theme-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-600); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 20px; height: 20px; }
html:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   Microinteractions & hover states
   ========================================================================== */
/* Buttons: subtle lift + shadow */
.btn { will-change: transform; }
.btn--gold:hover, .btn--navy:hover, .btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Property cards: image zoom, lift, gold accent */
.property-card { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.property-card__media img { transition: transform 0.55s var(--ease-out); }
.property-card:hover,
.property-card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.property-card:hover .property-card__media img,
.property-card:focus-within .property-card__media img { transform: scale(1.06); }

/* Feature / quote / channel cards: gentle lift */
.feature, .quote, .channel { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.feature:hover, .quote:hover, .channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Option cards: image zoom on hover */
.option-card img { transition: transform 0.6s var(--ease-out), opacity var(--transition); }
.option-card:hover img { transform: scale(1.05); opacity: 0.65; }

/* ==========================================================================
   Scroll-reveal (JS adds .is-visible via IntersectionObserver)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Hero entrance (runs once on load)
   ========================================================================== */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero__inner > *, .hero__trust { animation: heroUp 0.7s var(--ease-out) both; }
.hero__inner > .eyebrow { animation-delay: 0.05s; }
.hero__inner > h1 { animation-delay: 0.14s; }
.hero__inner > p { animation-delay: 0.24s; }
.hero__inner > .hero__actions { animation-delay: 0.34s; }
.hero__trust { animation-delay: 0.44s; }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive — tablet & up
   ========================================================================== */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-list, .nearby-list { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { min-width: 180px; }
}

@media (min-width: 768px) {
  .filters { display: block; }
  .filters__toggle { display: none; }
  .filters.is-collapsed .filters__body { display: grid; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .listing-layout { grid-template-columns: 280px 1fr; align-items: start; }
  .filters { position: sticky; top: 88px; }

  .detail-layout { grid-template-columns: 1fr 340px; }
  .contact-layout { grid-template-columns: 1.3fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; }

  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { flex-direction: column; }
}

@media (min-width: 1024px) {
  .gallery__main { aspect-ratio: 16 / 9; }

  /* Horizontal nav row — needs ~1024px for brand + 7 links + CTA pill */
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    /* reset the mobile dropdown panel */
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-menu a:not(.btn) {
    padding: 0.4rem 0;
    border-bottom: none;
    position: relative;
  }
  /* Animated hover/active underline */
  .nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
  }
  .nav-menu a:not(.btn):hover::after,
  .nav-menu a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
  .nav-cta { margin-top: 0; margin-left: 0.25rem; flex: 0 0 auto; }
  .nav-cta .btn { width: auto; }
}

/* Mobile menu entrance */
@media (max-width: 1023.98px) {
  .nav-menu.is-open { animation: navIn 0.22s var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  /* Ensure revealed content is always visible without motion */
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__inner > *, .hero__trust { opacity: 1 !important; transform: none !important; }
}
