/* Snider's Realty — shared shell styles */
:root {
  --navy: #002947;
  --navy-deep: #001a2e;
  --red: #9f1319;
  --red-dark: #7f0f14;
  --rope: #c8b27e;
  --sand: #f6f1e7;
  --ink: #0b1b29;
  --muted: #5a6772;
  --white: #ffffff;
  --gallery-bg: #0d0f11;
  --font-ui: 'Libre Franklin', 'Franklin Gothic Medium', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --header-h: 72px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 41, 71, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 18px/1.55 var(--font-body);
  color: var(--ink);
  background: var(--sand);
}
@media (min-width: 900px) {
  body { font-size: 20px; line-height: 1.4; }
}

h1, h2, h3, .price, .btn, nav, label, .chip, .eyebrow { font-family: var(--font-ui); }

h1, h2, h3 { margin: 0 0 .5em; }

h1 { font-weight: 600; font-size: clamp(32px, 5vw, 48px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
h2 { font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
h3 { font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: .01em; color: var(--navy); }

.eyebrow { font: 500 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.rope-rule {
  height: 6px; border: 0; margin: 16px 0 24px; width: 96px;
  background: repeating-linear-gradient(-45deg, var(--rope) 0 4px, #a8915e 4px 8px);
  border-radius: 3px;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.muted { color: var(--muted); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 20px;
  background: var(--sand);
  color: var(--ink);
  border-bottom: 1px solid rgba(31, 42, 51, 0.08);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.site-header.transparent {
  background: transparent;
  color: var(--white);
  border-bottom-color: transparent;
  background-image: linear-gradient(to bottom, rgba(13, 15, 17, .55), rgba(13, 15, 17, 0));
}

.site-header.transparent.scrolled,
.site-header.scrolled {
  background: var(--sand);
  background-image: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  border-bottom-color: rgba(31, 42, 51, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  height: 56px;
  width: auto;
  display: block;
}
.site-header.transparent:not(.scrolled) .brand img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}
.brand { gap: 10px; }
.brand-name {
  display: flex;
  flex-direction: column;
  font: 700 21px/1.05 var(--font-ui);
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-name small {
  font: 500 11px/1.2 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 3px;
}
.site-header.transparent:not(.scrolled) .brand-name { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
@media (max-width: 899px) {
  .brand img { height: 44px; }
  .brand-name { font-size: 18px; }
}
@media (max-width: 479px) {
  .brand-name small { display: none; }
}
@media (max-width: 374px) {
  .brand { gap: 8px; }
  .brand img { height: 40px; }
  .brand-name { font-size: 16px; white-space: normal; width: min-content; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 16px/1.1 var(--font-ui);
  letter-spacing: .02em;
  position: relative;
}
.nav a.active { font-weight: 600; }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 2px;
  background: currentColor;
  opacity: .6;
}

.lang {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.lang button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: .7;
}
.lang button[aria-pressed="true"] { opacity: 1; background: rgba(127, 127, 127, .18); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: inherit;
  position: relative;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn span { top: 21px; }
.menu-btn span::before, .menu-btn span::after { left: 0; right: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.site-header.open .menu-btn span { opacity: 0; }
.site-header.open .menu-btn span::before { transform: translateY(7px) rotate(45deg); top: 0; }
.site-header.open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); top: 0; }

@media (max-width: 899px) {
  .menu-btn { display: block; order: 3; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--sand);
    color: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 16px 20px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .site-header.open .nav { transform: translateX(0); }
  .nav a { width: 100%; min-height: 52px; font-size: 18px; }
  .lang { order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 4px;
  font: 600 14px/1 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(159, 19, 25, .35);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 8px 22px rgba(159, 19, 25, .45); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(127, 127, 127, .1); }

.btn-ghost {
  border: 2px solid currentColor;
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover { background: rgba(0, 41, 71, .08); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img, .card picture {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card .price {
  font: 600 22px/1 var(--font-ui);
  color: var(--navy);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 41, 71, .1);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 241, 231, .85);
  padding: 32px 20px 100px;
  margin-top: 40px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer strong { color: var(--white); font-family: var(--font-ui); }
.site-footer .disclaimer { opacity: .7; font-size: 13px; margin: 0; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.footer-contact a { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-brand img {
  height: 72px;
  width: auto;
  display: block;
  background: var(--sand);
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
}

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(13, 15, 17, .35);
  z-index: 60;
  transition: transform .15s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:active { transform: scale(.96); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  z-index: 80;
  max-width: calc(100vw - 40px);
  animation: toast-in .2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Full-screen viewer ---------- */
.viewer {
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 17, .97);
  color: var(--white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.viewer .vstage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.viewer .vstage .vmedia {
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
}
.wm.vmedia > img,
.wm.vmedia > video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
}
.wm.vmedia::after { width: clamp(56px, 10%, 110px); }
.viewer .vx {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.viewer .vcount {
  position: absolute;
  top: 20px;
  left: 16px;
  font-size: 13px;
  opacity: .75;
  z-index: 2;
}
.viewer .vprev,
.viewer .vnext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.viewer .vprev { left: 10px; }
.viewer .vnext { right: 10px; }
.viewer .vcap {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  opacity: .9;
}
.viewer .vcap a { text-decoration: underline; font-weight: 600; }
.viewer .vthumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 0 2px;
}
.viewer .vthumbs button {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  opacity: .6;
}
.viewer .vthumbs button img { width: 100%; height: 100%; object-fit: cover; }
.viewer .vthumbs button.on { border-color: var(--red); opacity: 1; }

@media (max-width: 899px) {
  .viewer .vthumbs { display: none; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.kenburns {
  animation: kenburns 14s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .kenburns { animation: none !important; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Home */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .55) 100%);
}
.hero-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12svh;
  max-width: 760px;
}
.hero-copy h1 {
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1.02;
  color: #fff;
  margin: 0 0 .3em;
}
.hero-copy p {
  font-size: 17px;
  margin: 0 0 20px;
  max-width: 46ch;
  opacity: .95;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  opacity: .85;
  animation: hero-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
}

/* ---------- Search bar ---------- */
.search-bar {
  background: var(--white);
  padding: 20px 20px 24px;
  margin-top: -1px;
}
.search-form {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 600 13px/1 var(--font-ui);
  color: var(--ink);
}
.search-field select {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(11, 27, 41, .18);
  background: var(--white);
  color: var(--ink);
  font: 500 15px/1 var(--font-ui);
}
.search-submit { width: 100%; margin-top: 4px; }

@media (min-width: 720px) {
  .search-form {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
  }
  .search-submit { width: auto; margin-top: 0; }
}

/* ---------- Featured homes ---------- */
.featured { max-width: 1320px; margin: 0 auto; padding: 48px 20px; }
.featured h2, .beach-explore h2 {
  margin-bottom: 20px;
  border-bottom: 3px solid var(--rope);
  padding-bottom: 10px;
  display: inline-block;
}

.featured-rail.grid-3 { margin-top: 0; grid-template-columns: 1fr; gap: 20px; }
.featured-rail .photo { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .featured-rail.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .featured-rail .photo { aspect-ratio: 3 / 2; }
}

/* ---------- Explore by beach ---------- */
.beach-explore { padding: 8px 20px 48px; }
.beach-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .beach-tiles { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.beach-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.beach-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.beach-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 17, 0) 45%, rgba(13, 15, 17, .75) 100%);
}
.beach-tile-label {
  position: absolute;
  left: 12px;
  max-width: 70%;
  bottom: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  z-index: 1;
}

/* ---------- Video band ---------- */
.video-band {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}
.band-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 17, .25) 0%, rgba(13, 15, 17, .6) 100%);
}
.band-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 60px 20px;
  margin: 0 auto;
  text-align: center;
}
.band-copy h2 { color: #fff; }
.band-copy p { opacity: .95; margin: 0; }

/* ---------- Testimonial ---------- */
.testimonial {
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.testimonial-photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-body { display: flex; flex-direction: column; gap: 10px; }
.sample-chip {
  align-self: flex-start;
  background: rgba(159, 19, 25, .18);
  color: var(--red);
}
.testimonial-body blockquote {
  margin: 0;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .testimonial { flex-direction: row; align-items: center; gap: 40px; }
  .testimonial-photo { flex: 0 0 50%; aspect-ratio: 1 / 1; }
  .testimonial-body { flex: 1; }
}

/* ---------- Contact strip ---------- */
.contact-strip {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
}
.contact-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-strip-inner h2 { color: var(--white); margin: 0; }
.contact-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-strip .btn-outline { border-color: var(--white); }

@media (min-width: 720px) {
  .contact-strip-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Map + homes */
.filters { position: sticky; top: var(--header-h); z-index: 500; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px; background: var(--sand); border-bottom: 1px solid rgba(0,41,71,.1); }
.filters select { min-height: 44px; font: 500 14px var(--font-ui); color: var(--navy); background: #fff;
  border: 1px solid rgba(0,41,71,.25); border-radius: 999px; padding: 0 14px; }
.homes-wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.map-pane { position: sticky; top: calc(var(--header-h) + 64px); height: 46vh; z-index: 1; }
.map-pane #map { height: 100%; }
body.map-tall .map-pane { height: 70vh; }
.list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 8px 20px;
  background: var(--sand); position: relative; z-index: 2; }
.list .card { flex: 0 0 92%; scroll-snap-align: center; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; border-left: 4px solid transparent; }
.list .card.active { border-left-color: var(--red); }
.list .card .photo { aspect-ratio: 4 / 3; }
.list .card-body { padding: 12px 14px; }
.list .card .price { font-size: 24px; }
@media (min-width: 900px) {
  .homes-wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .map-pane { top: calc(var(--header-h) + 64px); height: calc(100vh - var(--header-h) - 64px); }
  body.map-tall .map-pane { height: calc(100vh - var(--header-h) - 64px); }
  .list { flex-direction: column; overflow: visible; scroll-snap-type: none; padding: 24px 32px 50vh; gap: 20px; }
  .list .card { flex: none; }
  .list .card .photo { aspect-ratio: 3 / 2; }
}
.pin span { position: absolute; transform: translate(-50%, calc(-100% - 8px)); background: var(--navy); color: #fff;
  font: 600 13px/1 var(--font-ui); letter-spacing: .02em; padding: 7px 10px; border-radius: 4px; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0,26,46,.35); transition: transform .2s, background .2s; }
.pin span::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--navy); }
.pin.active span, .pin-home span { background: var(--red); transform: translate(-50%, calc(-100% - 8px)) scale(1.15); z-index: 1000; }
.pin.active span::after, .pin-home span::after { border-top-color: var(--red); }
.pin.active { z-index: 1000 !important; }
@media (prefers-reduced-motion: reduce) { .pin span { transition: none; } }
.homes .empty { padding: 60px 20px; text-align: center; }
.homes .empty button { margin-top: 16px; }

/* Watermark: client logo in the bottom-right corner of a photo frame */
.wm { position: relative; overflow: hidden; }
.wm > img, .wm > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.wm::after { content: ''; position: absolute; right: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  width: clamp(44px, 14%, 84px); aspect-ratio: 404 / 387;
  background: url('../brand/logo.webp') center / contain no-repeat;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 2px 6px rgba(0,0,0,.4)); opacity: .95; }

.photo { width: 100%; display: block; }

/* Listing */
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 16px 16px 20px; background: var(--gallery-bg); }
.gallery .photo { flex: 0 0 92%; scroll-snap-align: center; aspect-ratio: 4 / 3; border-radius: var(--radius);
  cursor: pointer; }
@media (min-width: 900px) {
  .gallery { padding: 24px 32px 28px; gap: 16px; }
  .gallery .photo { flex: 0 0 70%; aspect-ratio: auto; height: 520px; }
}

.listing-body { padding-top: 28px; padding-bottom: 32px; }
.l-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.l-price { font: 600 30px/1 var(--font-ui); color: var(--navy); }

.facts { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px 0; margin: 20px 0;
  border-top: 1px solid rgba(0, 41, 71, .12); border-bottom: 1px solid rgba(0, 41, 71, .12); }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-value { font: 600 18px/1.2 var(--font-ui); color: var(--navy); }
.fact-label { font: 500 15px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.l-meta { font: 500 15px/1.4 var(--font-ui); margin: 0 0 20px; }
.l-desc { font: 400 18px/1.6 var(--font-body); max-width: 70ch; }

.agent-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin: 28px 0 8px; display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.agent-info { display: flex; align-items: center; gap: 12px; }
.agent-info img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.agent-info div { display: flex; flex-direction: column; font: 500 14px/1.3 var(--font-ui); }
.agent-info strong { color: var(--navy); }
.agent-wa { align-self: flex-start; }
.agent-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font: 500 15px/1.3 var(--font-ui); }
.agent-contact a { color: var(--navy); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.agent-contact a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form label { display: flex; flex-direction: column; gap: 4px; font: 600 13px/1 var(--font-ui); color: var(--ink); }
.contact-form input, .contact-form textarea {
  min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(11, 27, 41, .18);
  font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--white);
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form button { align-self: flex-start; }

.notfound { padding: 80px 20px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 16px; }

/* Nearby homes — surfnsr-style sticky map, dark panel */
.nearby { background: var(--navy-deep); color: #fff; }
.nearby .eyebrow { color: var(--rope); padding: 24px 16px 0; }
.nearby .list { background: transparent; }
.nearby .card { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: none; }
.nearby .card h3, .nearby .card .price { color: #fff; }
.nearby .card p { color: rgba(255, 255, 255, .7); }
/* home.html has no .filters bar above this section, so the sticky pane only offsets by the header */
.nearby .map-pane { top: var(--header-h); height: 46vh; }
.map-pane #nearby-map { height: 100%; }
@media (min-width: 900px) {
  .nearby .eyebrow { padding: 32px 32px 0; }
  .nearby .map-pane { top: var(--header-h); height: calc(100vh - var(--header-h) - 48px); }
}

/* Gallery */
body.dark { background: var(--gallery-bg); color: #fff; }
body.dark h1, body.dark h2, body.dark h3 { color: #fff; }

.g-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #fff;
}
.g-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 17, .15) 0%, rgba(13, 15, 17, 0) 35%, rgba(13, 15, 17, .75) 100%);
}
.g-banner-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  font-size: clamp(26px, 6vw, 56px);
  color: #fff;
}
@media (min-width: 900px) {
  .g-banner { aspect-ratio: 21 / 9; }
  .g-banner-title { left: 32px; bottom: 28px; }
}

.g-chips {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.g-chips::-webkit-scrollbar { display: none; }
.g-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: 600 13px/1 var(--font-ui);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease;
}
.g-chip[aria-pressed="true"] { background: var(--red); color: #fff; }
.g-chip:hover { background: rgba(255, 255, 255, .22); }
.g-chip[aria-pressed="true"]:hover { background: var(--red-dark); }
@media (min-width: 900px) {
  .g-chips { justify-content: center; padding: 20px 32px; flex-wrap: wrap; overflow-x: visible; }
}

.masonry {
  columns: 1;
  column-gap: 10px;
  padding: 0 10px 40px;
}
@media (min-width: 600px) {
  .masonry { columns: 2; }
}
@media (min-width: 1024px) {
  .masonry { columns: 3; padding: 0 20px 56px; }
}
.g-tile {
  margin: 0 0 8px;
  break-inside: avoid;
  cursor: pointer;
}
.masonry .wm > img,
.masonry .wm > video {
  height: auto;
}
.masonry .wm > video { aspect-ratio: 16 / 9; }

.masonry .kenburns { animation: none; transition: transform 6s ease; }
@media (min-width: 900px) {
  .g-tile:hover .kenburns { transform: scale(1.06); }
}

/* Contact */
.about-intro { padding: 32px 0 8px; }
.about-lead { max-width: 70ch; }
.areas-section { padding: 24px 0 8px; }
.areas-section h2, .areas-map-section h2, .contact-section h2 {
  margin-bottom: 20px;
  border-bottom: 3px solid var(--rope);
  padding-bottom: 10px;
  display: inline-block;
}
.areas-grid .area-card .photo { aspect-ratio: 4 / 3; }
.areas-grid .area-card h3 { margin: 0; }
.areas-map-section { padding: 16px 0 8px; }
.areas-map {
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-section { padding: 16px 0 48px; }
@media (min-width: 900px) {
  .areas-map { height: 420px; }
}
