:root {
  color-scheme: light;
  --bg: #f6f5f0;
  --surface: #fff;
  --ink: #102036;
  --text: #3e4a5a;
  --muted: #5a6677;
  --line: #dfe3e6;
  --soft: #eceeea;
  --navy: #0B2D5B;
  --green: #16A34A;
  --button-green: #15803d;
  --green-dark: #116a32;
  --tint: #eef3f9;
  --photo-bg: #dde3ea;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(11, 45, 91, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid #d59a32; outline-offset: 3px; }
h1, h2, h3, p, ul, figure { margin: 0; }
.skip { position: absolute; top: -100px; left: 16px; background: var(--surface); padding: 12px; z-index: 20; }
.skip:focus { top: 16px; }

.demo {
  display: block;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy), #163f78);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex: none;
}
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand span { display: block; font-size: 0.78rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { background: var(--tint); color: var(--navy); }

.hero {
  padding: 40px 0 28px;
  background:
    radial-gradient(900px 280px at 10% -20%, rgba(22, 163, 74, 0.12), transparent 60%),
    radial-gradient(700px 260px at 90% 0%, rgba(11, 45, 91, 0.12), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  gap: 24px;
  align-items: end;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: color-mix(in srgb, var(--green) 14%, white);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 16ch;
}
.hero-lead {
  margin-top: 14px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
}
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero-panel h2 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.agent-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.agent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--soft);
  border-radius: 12px;
  background: #fafbfc;
}
.agent-list strong { display: block; font-size: 0.95rem; }
.agent-list span { display: block; font-size: 0.8rem; color: var(--muted); }
.wa-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--button-green);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.wa-mini:hover { background: var(--green-dark); }

.section { padding: 12px 0 48px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head p { color: var(--text); font-size: 0.95rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { background: var(--tint); }
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.filter-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(6, 20, 35, 0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card[hidden] { display: none !important; }
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(11,45,91,.55), rgba(22,163,74,.35)),
    var(--photo-bg);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  mix-blend-mode: luminosity;
}
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 45, 91, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.card-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.95);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-place {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.card-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  padding: 0;
  color: var(--text);
  font-size: 0.85rem;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-primary { background: var(--button-green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  background: var(--tint);
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #e4ebf5; }

.empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}
.empty.is-visible { display: block; }

.cta-band {
  margin: 8px 0 48px;
  background: linear-gradient(135deg, var(--navy), #163f78);
  color: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .cta-band { grid-template-columns: 1.4fr auto; align-items: center; padding: 32px; }
}
.cta-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cta-band p { opacity: 0.9; margin-top: 8px; line-height: 1.5; max-width: 48ch; }
.cta-band .btn-primary { background: var(--green); }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-note { font-size: 0.82rem; color: var(--muted); max-width: 42ch; line-height: 1.45; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border: 1px solid #dfe3e6;
  border-radius: 14px;
  background: #fff;
  color: #0b2d5b;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(6,20,35,.05);
}
.footer-brand span { font-size: 0.82rem; color: #4b5563; }
.footer-brand strong { font-size: 0.95rem; color: #0b2d5b; letter-spacing: -0.02em; }
.footer-brand img {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  object-fit: contain;
}

/* Property detail */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 18px 0 8px;
}
.crumb a { color: var(--navy); text-decoration: none; font-weight: 600; }
.detail {
  display: grid;
  gap: 24px;
  padding-bottom: 48px;
}
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.45fr 0.9fr; align-items: start; }
}
.detail-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(11,45,91,.5), rgba(22,163,74,.28)),
    var(--photo-bg);
  aspect-ratio: 16 / 10;
  position: relative;
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  mix-blend-mode: luminosity;
}
.detail-media .card-badge { top: 16px; left: 16px; }
.detail-main { display: grid; gap: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  background: color-mix(in srgb, var(--green) 15%, white);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.detail h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}
.price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts li { padding: 12px 8px; }
.facts li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
.facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.05rem; }
.facts span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.lead { color: var(--text); line-height: 1.6; max-width: 58ch; }
.amenities {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.amenities li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.amenities li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 11px;
  margin: 0 4px 3px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}
.contact-card .price { font-size: 1.55rem; }
.contact-sub { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.contact-card .btn { width: 100%; margin-top: 14px; }
.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--soft);
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
}
.agent-row strong { display: block; }
.agent-row span { display: block; font-size: 0.8rem; color: var(--muted); }
.note { margin-top: 12px; font-size: 0.78rem; line-height: 1.5; color: var(--muted); }

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(6,20,35,.08);
}
.mobile-bar strong { display: block; font-size: 1rem; color: var(--navy); }
.mobile-bar span { display: block; font-size: 0.75rem; color: var(--muted); }
.mobile-bar .btn { min-width: 132px; min-height: 44px; margin: 0; }
body.has-mobile-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body.has-mobile-bar { padding-bottom: 0; }
}

.icon { width: 18px; height: 18px; flex: none; }
