/* ===========================================================================
   24773 Cove Trail — styles
   =========================================================================== */
:root {
  --ink: #1f2a24;
  --ink-soft: #4a5751;
  --paper: #f7f5f0;
  --paper-2: #efece3;
  --line: #ddd8cc;
  --forest: #2e5d4b;
  --forest-dark: #214437;
  --gold: #b08d4f;
  --gold-soft: #c7a96b;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(30, 42, 36, 0.12);
  --shadow-lg: 0 24px 60px rgba(30, 42, 36, 0.22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; }
.serif { font-family: var(--serif); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 12px;
  font-weight: 600; color: var(--gold); margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.section-lead { color: var(--ink-soft); max-width: 60ch; font-size: 18px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ----------------------------- Nav ----------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px); box-shadow: 0 2px 18px rgba(0,0,0,.07);
  padding: 12px 28px;
}
.nav__brand { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--white); text-decoration: none; }
.nav.scrolled .nav__brand { color: var(--ink); }
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a {
  color: rgba(255,255,255,.92); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: .02em; transition: color .2s;
}
.nav.scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: var(--gold-soft); }
.nav__cta {
  background: var(--gold); color: #fff !important; padding: 9px 18px;
  border-radius: 999px; font-weight: 600;
}
.nav__cta:hover { background: var(--gold-soft); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.nav.scrolled .nav__toggle span { background: var(--ink); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,25,.45) 0%, rgba(20,30,25,.15) 40%, rgba(20,30,25,.78) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 64px; }
.hero__loc {
  text-transform: uppercase; letter-spacing: .32em; font-size: 13px;
  font-weight: 600; color: var(--gold-soft); margin-bottom: 18px;
}
.hero__title { font-size: clamp(48px, 8vw, 104px); line-height: .98; letter-spacing: -0.5px; }
.hero__tag { font-size: clamp(22px, 3vw, 34px); width: 100%; margin-top: 20px; color: rgba(255,255,255,.9); font-family: var(--serif); font-style: italic; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 38px; margin-top: 40px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25);
}
.hero__stat .v { font-family: var(--serif); font-size: 34px; line-height: 1; }
.hero__stat .l { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.78); margin-top: 6px; }
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ----------------------------- Overview ----------------------------- */
.overview { background: var(--white); }
.overview__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.overview__body p { font-size: 18px; color: var(--ink-soft); margin: 0 0 18px; }
.overview__body p:first-child { font-size: 21px; color: var(--ink); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 30px; box-shadow: var(--shadow);
}
.card h3 { font-size: 24px; margin-bottom: 16px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: 15px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.feature-tags span {
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
}
.cafe-link {
  display: inline-block; margin-top: 18px; font-size: 13.5px; font-weight: 600;
  color: var(--forest); text-decoration: none; letter-spacing: .01em;
}
.cafe-link:hover { color: var(--gold); }

/* ----------------------------- Gallery / Carousel ----------------------------- */
.gallery { background: var(--paper); }
/* Outer wrap: max-width container + side padding that hosts the arrows */
.car__wrap {
  position: relative; max-width: 1100px; margin: 32px auto 0;
  padding: 0 88px; /* flanks where arrows live */
}
.car__viewport {
  overflow: hidden; border-radius: 14px; box-shadow: var(--shadow-lg);
  background: #1a1f1c;
}
.car__track {
  display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); will-change: transform;
}
.car__slide {
  flex: 0 0 100%; position: relative;
}
.car__slide img {
  width: 100%; height: 62vh; max-height: 620px; min-height: 320px;
  object-fit: cover; display: block; cursor: zoom-in;
}
.car__cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(transparent, rgba(12,18,14,.8));
  color: #fff; font-size: 15px; font-weight: 500; text-align: center;
}
/* Arrows live in the cream flanks beside the image */
.car__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--forest); color: #fff;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  font-size: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(30,42,36,.25);
  transition: background .2s, transform .15s;
  line-height: 1;
}
.car__btn:hover { background: var(--forest-dark); transform: translateY(-50%) scale(1.08); }
.car__prev { left: 10px; }
.car__next { right: 10px; }
.car__counter {
  display: inline-block; margin-top: 14px;
  font-size: 13px; color: var(--ink-soft); letter-spacing: .06em;
}

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(12,16,13,.94); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 82vh; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lb__cap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: #fff; font-size: 16px; }
.lb__cap small { display: block; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; margin-top: 6px; }
.lb__btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12);
  border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 26px;
  cursor: pointer; transition: background .2s;
}
.lb__btn:hover { background: rgba(255,255,255,.25); }
.lb__prev { left: 24px; } .lb__next { right: 24px; }
.lb__close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ----------------------------- Floor plan ----------------------------- */
.floorplan { background: var(--white); }
.floorplan .wrap { max-width: 1360px; }
.fp__toggle { display: flex; gap: 8px; justify-content: center; margin: 26px 0 8px; }
.fp__toggle button {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  padding: 10px 26px; border-radius: 999px; cursor: pointer; font-size: 15px;
  font-weight: 500; font-family: var(--sans); transition: all .2s;
}
.fp__toggle button.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.fp__hint { text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.fp__layout { display: flex; flex-direction: column; gap: 26px; }
.fp__detail { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.fp__stage {
  position: relative; width: 100%; aspect-ratio: 2000 / 945; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.fp__measure {
  text-align: center; color: var(--ink-soft); font-size: 13px; font-style: italic;
  margin: 22px 0 0; letter-spacing: .01em;
}
.fp__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fp__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Pulsing dot markers — ellipse rx/ry compensates for 2000:945 aspect ratio
   so the dots render as visually perfect circles on the stretched SVG */
@keyframes fp-pulse {
  0%   { transform: scale(1);   opacity: 0.85; }
  100% { transform: scale(2.9); opacity: 0; }
}
.fp__pulse { cursor: pointer; }
.fp__pulse-ring {
  fill: none; stroke: var(--gold); stroke-width: 0.25;
  transform-box: fill-box; transform-origin: center;
  animation: fp-pulse 1.9s ease-out infinite;
}
.fp__pulse-dot {
  fill: var(--gold); opacity: 0.92;
  filter: drop-shadow(0 0 0.8px rgba(176,141,79,.7));
  transition: fill .2s;
}
.fp__pulse:hover .fp__pulse-dot,
.fp__pulse.active .fp__pulse-dot { fill: var(--forest); }
.fp__pulse:hover .fp__pulse-ring,
.fp__pulse.active .fp__pulse-ring { stroke: var(--forest); }

.fp__info {
  position: static; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); min-height: 260px;
}
.fp__info img { width: 100%; height: 188px; object-fit: cover; background: #ddd; }
.fp__info-body { padding: 20px 22px 24px; }
.fp__info-body h3 { font-size: 24px; }
.fp__info .dim { color: var(--gold); font-weight: 600; font-size: 15px; margin: 4px 0 12px; font-family: var(--sans); }
.fp__info .note { color: var(--ink-soft); font-size: 15px; }
.fp__info .placeholder { color: var(--ink-soft); font-size: 15px; padding: 40px 22px; text-align: center; }
.fp__roomlist { list-style: none; padding: 4px 2px 0; margin: 0; columns: 3; column-gap: 24px; }
.fp__roomlist-head {
  column-span: all; font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--forest); margin: 16px 0 6px;
}
.fp__roomlist-head:first-child { margin-top: 0; }
.fp__roomlist li { font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; cursor: pointer; break-inside: avoid; }
.fp__roomlist li:hover { color: var(--forest); }

/* ----------------------------- Specs ----------------------------- */
.specs { background: var(--paper); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 34px; }
.spec-block { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; box-shadow: var(--shadow); }
.spec-block h3 { font-size: 19px; font-family: var(--sans); font-weight: 700; letter-spacing: .01em; color: var(--forest); margin-bottom: 14px; text-transform: uppercase; font-size: 13px; letter-spacing: .12em; }
.spec-block table { width: 100%; border-collapse: collapse; }
.spec-block td { padding: 7px 0; font-size: 14.5px; vertical-align: top; border-bottom: 1px solid var(--paper-2); }
.spec-block td:first-child { color: var(--ink-soft); width: 46%; }
.spec-block td:last-child { color: var(--ink); font-weight: 500; }
.spec-block tr:last-child td { border-bottom: 0; }

/* ----------------------------- Map ----------------------------- */
.map-section { background: var(--white); }
#map { height: 560px; border-radius: 16px; box-shadow: var(--shadow); z-index: 1; margin-top: 32px; }
.map-key { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.map-key h3 { font-size: 22px; margin-bottom: 6px; }
.map-key p.sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.legend { list-style: none; padding: 0; margin: 0 0 18px; }
.legend li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.legend .swatch { flex: 0 0 26px; height: 4px; border-radius: 3px; margin-top: 9px; }
.legend .ltitle { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.legend .ldesc { font-size: 13px; color: var(--ink-soft); }
.map-note { font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; }
.leaflet-popup-content { font-family: var(--sans); }
.leaflet-popup-content b { font-family: var(--serif); font-size: 16px; }
.leaflet-tooltip.map-label {
  background: rgba(255,255,255,.92); border: 1px solid var(--line); color: var(--forest-dark);
  font-family: var(--sans); font-size: 12px; font-weight: 700; padding: 2px 8px;
  border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,.18); white-space: nowrap;
}
.leaflet-tooltip.map-label::before { border-top-color: rgba(255,255,255,.92); }
/* Nearby distances */
.nearby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.nearby-group { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); }
.nearby-group h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--forest); margin-bottom: 14px; font-family: var(--sans); }
.nearby-table { width: 100%; border-collapse: collapse; }
.nearby-table td { padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.nearby-table td:last-child { text-align: right; color: var(--gold); font-weight: 600; white-space: nowrap; padding-left: 12px; }
.nearby-table tr:last-child td { border-bottom: none; }

/* ----------------------------- Contact / footer ----------------------------- */
.contact { background: var(--forest-dark); color: #fff; text-align: center; }
.contact .eyebrow { color: var(--gold-soft); }
.contact h2 { font-size: clamp(32px, 5vw, 54px); color: #fff; margin-bottom: 14px; }
.contact p.lead { color: rgba(255,255,255,.82); font-size: 19px; max-width: 52ch; margin: 0 auto 34px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 16px; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.contact .agent { margin-top: 30px; font-size: 15px; color: rgba(255,255,255,.7); }
.footer { background: #16241d; color: rgba(255,255,255,.55); text-align: center; padding: 26px; font-size: 12.5px; }
.footer a { color: rgba(255,255,255,.75); }

/* ----------------------------- Reveal animation ----------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 900px) {
  section { padding: 60px 0; }
  .overview__grid { grid-template-columns: 1fr; gap: 34px; }
  .fp__detail { grid-template-columns: 1fr; }
  .fp__roomlist { columns: 2; }
  .spec-grid { grid-template-columns: 1fr; }
  #map { height: 420px; }
  .car__wrap { padding: 0 64px; }
  .car__btn { width: 44px; height: 44px; font-size: 22px; }
  .car__slide img { height: 50vh; min-height: 260px; }
  .nav__links { display: none; }
  .nav__links.show {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 16px;
    background: var(--white); padding: 18px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); gap: 16px;
  }
  .nav__links.show a { color: var(--ink-soft); }
  .nav__toggle { display: block; }
  .hero__tag { font-size: clamp(18px, 4vw, 26px); }
  .fp__info img { height: 220px; }
}
@media (max-width: 560px) {
  .grid { columns: 1; }
  .fp__roomlist { columns: 1; }
  .hero__stats { gap: 18px; flex-wrap: wrap; }
  .hero__stat { min-width: calc(33% - 12px); }
  .hero__stat .v { font-size: 26px; }
  .hero__tag { font-size: clamp(17px, 5vw, 22px); }
  .fp__info img { height: 200px; }
  #map { height: 360px; }
  .car__wrap { padding: 0 48px; }
  .car__btn { width: 36px; height: 36px; font-size: 18px; }
  .car__slide img { height: 42vh; min-height: 220px; }
  .nearby-grid { grid-template-columns: 1fr; }
}
