/* Bay Breeze Village — styles */
:root {
  --ocean: #0f3b4c;
  --ocean-2: #164e63;
  --sea: #2a8c8c;
  --sea-light: #d6ecea;
  --sand: #f6f0e6;
  --sand-2: #ece2d1;
  --sun: #f2b880;
  --coral: #d9694a;
  --ink: #1d2a30;
  --muted: #5b6b72;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 59, 76, 0.10);
  --max: 1160px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); color: var(--ocean); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--white { background: var(--white); }
.section--ocean { background: var(--ocean); color: #e8f1f2; }
.section--ocean h2, .section--ocean h3 { color: var(--white); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sea); margin-bottom: .8em;
}
.section--ocean .eyebrow { color: var(--sun); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section--ocean .lead { color: #c4d8dc; }
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--coral); color: var(--white); }
.btn--primary:hover { background: #c55a3d; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--ocean); color: var(--ocean); background: transparent; }
.btn--outline:hover { background: var(--ocean); color: var(--white); }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 240, 230, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ocean); line-height: 1; }
.brand-text small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sea); margin-top: 4px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--sea); }
.nav-links .btn { padding: 10px 20px; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ocean); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--sand-2);
    display: none; padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
}

/* Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,42,54,.25) 0%, rgba(10,42,54,.35) 40%, rgba(10,42,54,.82) 100%),
    url("../images/pool-palms.jpg") center 40%/cover,
    linear-gradient(160deg, #f2b880 0%, #e9a17a 22%, #5fa8a8 55%, #0f3b4c 100%);
  min-height: 82vh; display: flex; align-items: flex-end;
}
.hero .container { padding-top: 120px; padding-bottom: 96px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero p { font-size: 1.2rem; max-width: 560px; color: #eef5f6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-waves { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; }

/* Stats strip */
.stats { background: var(--white); border-bottom: 1px solid var(--sand-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 30px 12px; }
.stat + .stat { border-left: 1px solid var(--sand-2); }
.stat strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--ocean); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--sand-2); }
}

/* Feature cards */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.feature { background: var(--sand); border-radius: var(--radius); padding: 30px 26px; }
.section--white .feature { background: var(--sand); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sea-light); color: var(--sea); margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; }

/* Listing cards */
.listing-card {
  text-decoration: none; color: inherit;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,59,76,.16); }
.listing-card:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
.listing-photo { position: relative; aspect-ratio: 4 / 3; background: var(--sea-light); overflow: hidden; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #f6dcc0 0%, #a9d3cf 60%, #5fa8a8 100%);
  color: var(--ocean); font-family: var(--serif); font-size: 1.6rem;
}
.photo-placeholder small { display: block; font-family: var(--sans); font-size: .8rem; opacity: .7; }
.badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--white); color: var(--ocean);
}
.badge--rent { background: var(--sea); color: var(--white); }
.badge--sale { background: var(--ocean); color: var(--white); }
.badge--application, .badge--under-offer { background: var(--sun); color: var(--ocean); }
.badge--pets { background: var(--white); color: var(--sea); }
.listing-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: var(--serif); font-size: 1.6rem; color: var(--ocean); font-weight: 600; }
.listing-price small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 500; }
.listing-title { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--ink); margin: 4px 0 12px; }
.listing-meta { display: flex; gap: 18px; color: var(--muted); font-size: .95rem; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sand-2); }
.listing-meta span { display: inline-flex; align-items: center; gap: 6px; }
.listing-meta svg { width: 18px; height: 18px; color: var(--sea); }
.listing-avail { font-size: .9rem; color: var(--sea); font-weight: 600; margin-bottom: 4px; }

.empty-state {
  grid-column: 1 / -1; background: var(--white); border-radius: var(--radius); padding: 48px 28px; text-align: center;
}
.empty-state p { color: var(--muted); max-width: 480px; margin: 0 auto 20px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--sand-2); background: var(--white);
  font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.filters select {
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--sand-2); background: var(--white);
  font: 500 .95rem var(--sans); color: var(--ink);
}
.filters .count { margin-left: auto; color: var(--muted); font-size: .95rem; }

/* Page header (inner pages) */
.page-hero { background: var(--ocean); color: #dbe9eb; padding: 72px 0 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
.page-hero p { max-width: 620px; font-size: 1.1rem; margin: 0; }

/* Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-image {
  border-radius: 20px; aspect-ratio: 5 / 4; overflow: hidden;
  background: url("../images/pool.jpg") center/cover, linear-gradient(150deg, #a9d3cf, #2a8c8c 70%, #0f3b4c);
}
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--sea); font-weight: 700; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .checklist { grid-template-columns: 1fr; }
}

/* Location */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--sea-light); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.nearby { list-style: none; padding: 0; margin: 0; }
.nearby li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--sand-2); }
.nearby li span:last-child { color: var(--sea); font-weight: 600; white-space: nowrap; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 12px; margin-bottom: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Forms */
.form-card { background: var(--white); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ocean); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--sand-2); border-radius: 10px;
  font: 400 1rem var(--sans); color: var(--ink); background: #fffdf9;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-light); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--sea-light); color: var(--ocean); }
.form-status.err { background: #fbe3dc; color: #8a3520; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form-card { padding: 26px 20px; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-list .feature-icon { margin: 0; flex: none; width: 46px; height: 46px; background: rgba(255,255,255,.1); color: var(--sun); }
.contact-list strong { display: block; color: var(--white); }
.contact-list a { color: #dbe9eb; text-decoration: none; }
.contact-list a:hover { color: var(--sun); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Waitlist band */
.waitlist { background: var(--sea); color: var(--white); border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.waitlist h2 { color: var(--white); }
.waitlist p { color: #e2f2f1; }
@media (max-width: 860px) { .waitlist { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 38, .6); }
.modal-panel {
  position: relative; background: var(--white); border-radius: 18px; width: 100%; max-width: 880px;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--ocean); font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow);
}
.modal-gallery { position: relative; aspect-ratio: 16 / 9; background: var(--sea-light); }
.gallery-frame { width: 100%; height: 100%; }
.modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ocean); font-size: 1.3rem; cursor: pointer; }
.gallery-nav.prev { left: 14px; } .gallery-nav.next { right: 14px; }
.gallery-count { position: absolute; bottom: 14px; right: 14px; background: rgba(15,59,76,.8); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
.modal-content { padding: 32px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.modal-content h2 { font-size: 1.8rem; }
.modal-side { background: var(--sand); border-radius: 14px; padding: 22px; align-self: start; }
.modal-side .listing-meta { border: 0; padding: 0; margin: 10px 0 18px; }
.modal-side .btn + .btn { margin-top: 10px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.feature-tags li { background: var(--sea-light); color: var(--ocean); padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
@media (max-width: 760px) { .modal-content { grid-template-columns: 1fr; padding: 24px 20px; } }

/* Footer */
.site-footer { background: #0a2a36; color: #a9c2c8; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #a9c2c8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand-text { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .section { padding: 64px 0; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Meet Phoebe */
.split--reverse > :first-child { order: 0; }
.portrait {
  position: relative; border-radius: 20px; aspect-ratio: 4 / 5; max-width: 440px; justify-self: center; width: 100%;
  background: url("../images/phoebe.jpg") center/cover, linear-gradient(160deg, #f6dcc0 0%, #a9d3cf 60%, #2a8c8c 100%);
  box-shadow: var(--shadow);
}
.portrait-badge {
  position: absolute; left: -18px; bottom: 28px; background: var(--white); border-radius: 14px;
  padding: 14px 20px; box-shadow: var(--shadow);
}
.portrait-badge strong { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--ocean); }
.portrait-badge span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .portrait-badge { left: 16px; } }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--sea-light); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 20, 26, .92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; }
.lightbox .modal-close { position: fixed; top: 18px; right: 18px; }
.lightbox .gallery-nav { position: fixed; }
.lightbox-caption { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: #dbe9eb; font-size: .95rem; }

/* Numbered benefit cards (owners page) */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; counter-reset: b; }
.benefit { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); position: relative; }
.benefit::before {
  counter-increment: b; content: counter(b); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--coral); color: var(--white); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 16px;
}
.benefit p { color: var(--muted); margin-bottom: .8em; }
.benefit p:last-child { margin-bottom: 0; }
.tagline { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--sun); margin: 0 0 1em; }
.page-hero--photo { position: relative; background-color: var(--ocean); background-size: cover; background-position: center; padding: 96px 0 88px; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,42,54,.92) 0%, rgba(10,42,54,.72) 55%, rgba(10,42,54,.4) 100%); }
.page-hero--photo .container { position: relative; }
.section:not(.section--white) .feature { background: var(--white); }

/* Notice box */
.note { background: #fff7ec; border-left: 4px solid var(--sun); border-radius: 10px; padding: 18px 22px; color: var(--ink); }
.note strong { color: var(--ocean); }
.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; }

.modal-permalink { display: block; text-align: center; margin-top: 14px; font-size: .9rem; font-weight: 600; }

/* Listing page */
.crumbs { font-size: .9rem; margin-bottom: 14px; color: #a9c2c8; }
.crumbs a { color: #dbe9eb; text-decoration: none; }
.crumbs a:hover { color: var(--sun); }
.listing-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.listing-page .gallery { margin-bottom: 32px; }
.listing-page h2 { font-size: 1.6rem; }
.listing-page .modal-side { position: sticky; top: 96px; background: var(--white); box-shadow: var(--shadow); }
.listing-page .floorplan img { border-radius: 12px; border: 1px solid var(--sand-2); background: #fff; margin-top: 12px; }
.listing-address { color: var(--muted); margin: 18px 0 0; }
@media (max-width: 860px) { .listing-page { grid-template-columns: 1fr; } .listing-page .modal-side { position: static; } }
