@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --green: #123d2d;
  --green-deep: #0a281e;
  --green-soft: #eaf0eb;
  --gold: #c4a36b;
  --ink: #1d2923;
  --muted: #727b75;
  --paper: #faf9f6;
  --white: #fff;
  --line: #e7e8e2;
  --shadow: 0 18px 50px rgba(19, 42, 30, .09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--paper); color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; line-height: 1.65; }
button, input, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Header & Navigation Workspace Links */
.navbar { position: sticky; top: 0; z-index: 30; background: #ffffff; border-bottom: 1px solid rgba(18,61,45,.09); }
.nav-container { max-width: 1320px; min-height: 88px; margin: auto; padding: 12px 42px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo-area { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { width: 190px; max-height: 62px; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { position: relative; color: #35443b; font-size: .88rem; font-weight: 600; text-decoration: none; transition: color .2s; }
.nav-links a:not(:last-child)::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-cta { padding: 12px 20px; border: 1px solid var(--green); color: var(--green); transition: .2s; text-decoration: none; }
.nav-links a.nav-cta:hover { color: white; background: var(--green); }

/* Hero Showcases */
.hero-section { min-height: 660px; position: relative; display: flex; align-items: center; overflow: hidden; color: white; background: #203c2e url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=88') center 54%/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,29,21,.83) 0%, rgba(7,29,21,.64) 43%, rgba(7,29,21,.12) 100%); }
.hero-content { position: relative; z-index: 1; width: min(1320px, 100%); margin: 0 auto; padding: 110px 42px 145px; text-align: left; }
.eyebrow { color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .23em; text-transform: uppercase; margin-bottom: 17px; }
.hero-content h1 { max-width: 760px; margin-bottom: 22px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(3.2rem, 6.3vw, 5.7rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.hero-content > p:not(.eyebrow) { max-width: 540px; color: rgba(255,255,255,.87); font-size: 1.08rem; line-height: 1.8; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; padding: 15px 27px; border: 1px solid var(--gold); background: var(--gold); color: var(--green-deep); font-size: .83rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: .25s; }
.hero-button:hover { color: white; background: transparent; transform: translateY(-2px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.hero-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.06); color: white; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: .25s; }
.hero-secondary:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 38px; }
.hero-metric { min-width: 150px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.18); background: rgba(9,25,20,.18); backdrop-filter: blur(8px); }
.hero-metric strong { display: block; color: white; font-size: 1.15rem; }
.hero-metric span { color: rgba(255,255,255,.82); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }

/* Real Estate Listing Cards Properties Grid */
.section-container { max-width: 1320px; margin: auto; padding: 105px 42px 112px; }
.section-heading { max-width: 680px; margin-bottom: 37px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-title { color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.35rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.16; letter-spacing: -.025em; margin-bottom: 12px; }
.section-subtitle, .calc-intro { color: var(--muted); font-size: .98rem; }
.property-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 35px 0 14px; }
.filter-btn { padding: 10px 18px; border: 1px solid #dce2dc; border-radius: 2px; color: #536158; background: transparent; cursor: pointer; font-size: .79rem; font-weight: 600; transition: .2s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--green); color: white; background: var(--green); }
.property-count { margin-bottom: 22px; color: #89918b; font-size: .78rem; letter-spacing: .04em; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; align-items: stretch; }

@media (max-width: 992px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .property-grid { grid-template-columns: 1fr; }
}

.property-card { min-width: 0; overflow: hidden; border: 1px solid #ecece6; background: white; box-shadow: 0 7px 25px rgba(20,40,28,.035); transition: transform .3s, box-shadow .3s; border-radius: 18px; }
.property-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.img-wrapper { position: relative; height: 275px; overflow: hidden; background: #e7e9e3; }
.prop-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.property-card:hover .prop-img { transform: scale(1.045); }
.price-tag { position: absolute; z-index: 2; left: 18px; bottom: 18px; padding: 9px 13px; color: var(--green-deep); background: rgba(250,249,246,.96); font-size: .83rem; font-weight: 700; letter-spacing: .01em; border-radius: 999px; }
.prop-details { padding: 25px 24px 24px; }
.property-type { display: inline-block; margin-bottom: 9px; color: #9a7b49; font-size: .67rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.prop-details h3 { margin-bottom: 5px; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.42rem; font-weight: 600; line-height: 1.25; }
.location { margin-bottom: 15px; color: #78827b; font-size: .83rem; }
.specs { min-height: 48px; padding-top: 14px; margin-bottom: 19px; border-top: 1px solid var(--line); color: #5f6a63; font-size: .78rem; }
.specs span { padding: 0 4px; color: var(--gold); }
.enquire-btn { display: flex; justify-content: center; align-items: center; min-height: 45px; padding: 10px 14px; border: 1px solid var(--green); color: var(--green); font-size: .77rem; font-weight: 700; letter-spacing: .035em; text-decoration: none; transition: .2s; border-radius: 10px; }
.enquire-btn:hover { color: white; background: var(--green); }
.listing-badge { position: absolute; z-index: 2; top: 17px; padding: 7px 11px; color: white; font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.badge-age { left: 17px; background: var(--gold); color: #1e2b22; }
.badge-status { right: 17px; background: #285b40; }
.listing-age { margin-top: -8px; margin-bottom: 12px; color: #8b938d; font-size: .76rem; }
.slide-controls { position: absolute; z-index: 3; right: 15px; bottom: 17px; display: flex; align-items: center; gap: 9px; color: white; }
.slide-btn { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: white; background: rgba(12,35,25,.55); cursor: pointer; transition: .2s; }
.slide-btn:hover { color: var(--green); background: white; }
.slide-indicator { min-width: 35px; text-align: center; font-size: .73rem; font-weight: 700; text-shadow: 0 1px 5px #000; }
.image-note { margin-top: 24px; color: #929991; font-size: .75rem; }
.no-properties { padding: 30px; border: 1px dashed var(--line); color: var(--muted); }

/* ZAR Bond Calculator System */
.calculator-section { padding: 105px 42px 112px; background: #eef1ec; }
.calc-container { max-width: 1190px; margin: auto; }
.calc-intro { max-width: 650px; margin-bottom: 38px; line-height: 1.8; }
.calc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 65px; align-items: start; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 18px; }
.input-group { min-width: 0; }
.input-group label { display: block; margin-bottom: 8px; color: #34463a; font-size: .78rem; font-weight: 700; }
.input-group input, .input-group select { width: 100%; min-height: 49px; padding: 12px 14px; border: 1px solid #d8dfd8; border-radius: 0; outline: none; color: var(--ink); background: rgba(255,255,255,.8); font-size: .88rem; }
.input-group input:focus, .input-group select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18,61,45,.08); }
.rate-help { display: block; margin-top: 7px; color: #7d887f; font-size: .7rem; line-height: 1.5; }
.calc-buttons { grid-column: 1/-1; display: flex; gap: 14px; margin-top: 5px; }
.calc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: none; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: background .2s, transform .2s; border-radius: 10px; }
.calc-btn:hover { transform: translateY(-1px); }
.calc-btn.primary { background: var(--green); color: white; }
.calc-btn.primary:hover { background: var(--green-deep); }
.calc-btn.secondary { background: #d0d7d1; color: #3b4840; }
.calc-btn.secondary:hover { background: #c2cac3; }
.calc-results { padding: 38px 34px; background: white; border-top: 4px solid var(--green); box-shadow: 0 4px 20px rgba(0,0,0,.015); border-radius: 18px; }
.calc-results h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; margin-bottom: 18px; color: var(--green); }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed #e6eae5; font-size: .9rem; }
.highlight-text { font-size: 1.45rem; color: var(--green); font-weight: 700; }
.disclaimer { font-size: .72rem; color: var(--muted); margin-top: 20px; line-height: 1.4; }

@media (max-width: 868px) {
  .calc-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Footer Section */
.footer-section { background: var(--green-deep); color: #b1b9b4; padding: 80px 42px 40px; text-align: center; }
.footer-container { max-width: 1320px; margin: auto; }
.footer-container h2 { color: white; font-family: 'Playfair Display', Georgia, serif; font-size: 2.1rem; margin-bottom: 8px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 99999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-content { background: #fff; padding: 35px; border-radius: 18px; width: 100%; max-width: 450px; position: relative; box-shadow: var(--shadow); text-align: left; }
.modal-content button:focus,
.modal-content input:focus,
.modal-content textarea:focus { outline: 2px solid rgba(18,61,45,0.22); }

.whatsapp-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.18); font-size: 1rem; }
.whatsapp-label { font-size: .8rem; }

@media (max-width: 640px) {
  .nav-container { padding: 12px 18px; }
  .nav-links { gap: 12px; flex-wrap: wrap; }
  .hero-content { padding: 90px 20px 110px; }
  .section-container, .calculator-section { padding-left: 20px; padding-right: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-button, .hero-secondary { width: 100%; }
  .hero-metric { width: 100%; }
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-buttons { flex-direction: column; }
  .property-grid { grid-template-columns: 1fr; }
}
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
}

.whatsapp-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: #25d366;
  color: white;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.38);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.28);
  z-index: -1;
  animation: whatsapp-pulse 1.8s ease-out infinite;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.42);
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.18);
    opacity: 0;
  }

  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.whatsapp-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  background: rgba(10, 40, 30, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.whatsapp-choice-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-choice-card {
  position: relative;
  width: min(100%, 380px);
  padding: 28px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.whatsapp-choice-modal.is-open .whatsapp-choice-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.whatsapp-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  color: var(--green);
  font-size: 1.7rem;
  cursor: pointer;
}

.whatsapp-choice-card h3 {
  margin-bottom: 8px;
  color: var(--green);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
}

.whatsapp-choice-text {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.whatsapp-choice-actions {
  display: grid;
  gap: 10px;
}

.whatsapp-choice-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 61, 45, 0.16);
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease;
}

.whatsapp-choice-btn:hover {
  background: #dfe9e1;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-choice-modal {
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
  }

  .whatsapp-choice-card {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-button::before,
  .whatsapp-choice-modal,
  .whatsapp-choice-card {
    animation: none;
    transition: none;
  }
}

/* =====================================================================
   SMALL-SCREEN FIXES (phones and tablets)
   ===================================================================== */

/* 1. Stop iPhones zooming into a field when you tap it (needs 16px+ text) */
textarea { font: inherit; }
@media (max-width: 900px) {
  .input-group input,
  .input-group select,
  #enquiry-form input,
  #enquiry-form textarea { font-size: 16px; }
}

/* 2. Pop-ups can never be taller than the screen; they scroll inside instead */
.modal-overlay { padding: 16px; }
.modal-content {
  margin: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.whatsapp-choice-card {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

/* 3. A compact header on phones: logo on top, links in ONE row underneath */
@media (max-width: 640px) {
  html { scroll-padding-top: 104px; }
  .nav-container { flex-wrap: wrap; justify-content: center; min-height: 0; padding: 10px 16px; gap: 6px; }
  .logo-img { width: 150px; }
  .nav-links { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 6px; }
  .nav-links a { padding: 6px 0; font-size: .78rem; white-space: nowrap; }
  .modal-content { padding: 24px !important; }
  .whatsapp-button { padding: 10px 14px; }
  .footer-section { padding-bottom: 100px; }
}

/* =====================================================================
   EXPANDING HEADER (menu is built in layout.js)
   ===================================================================== */
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; color: #35443b; font-size: .88rem; font-weight: 600; cursor: pointer; transition: color .2s; }
.nav-item::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .25s; }
.nav-item:hover, .nav-item[aria-expanded="true"], .nav-item.is-current { color: var(--green); }
.nav-item:hover::after, .nav-item[aria-expanded="true"]::after, .nav-item.is-current::after { width: 100%; }
.nav-item:focus-visible, .nav-panel a:focus-visible, .footer-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.chev { width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s, margin .25s; }
.nav-item[aria-expanded="true"] .chev { margin-top: 3px; transform: rotate(-135deg); }

.nav-panel { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-rows: 0fr; visibility: hidden; background: rgba(250,249,246,.98); backdrop-filter: blur(14px); box-shadow: 0 24px 40px rgba(19,42,30,.08); border-bottom: 1px solid transparent; transition: grid-template-rows .3s ease, visibility 0s .3s; }
.navbar.is-open .nav-panel { grid-template-rows: 1fr; visibility: visible; border-bottom-color: rgba(18,61,45,.09); transition: grid-template-rows .3s ease, visibility 0s; }
.nav-panel-inner { min-height: 0; overflow: hidden; }
.nav-panel-group { display: none; max-width: 1320px; margin: auto; padding: 26px 42px 32px; grid-template-columns: repeat(auto-fill, minmax(220px, 270px)); gap: 14px; }
.nav-panel-group.is-active { display: grid; }
.nav-panel a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; background: white; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.nav-panel a:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.nav-panel a strong { display: block; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; font-weight: 600; }
.nav-panel a span { color: var(--muted); font-size: .8rem; line-height: 1.45; }

@media (max-width: 640px) {
  .nav-item { padding: 6px 0; font-size: .78rem; gap: 5px; white-space: nowrap; }
  .nav-panel-group { grid-template-columns: 1fr; padding: 16px 16px 22px; gap: 10px; }
}

/* =====================================================================
   INNER PAGES
   ===================================================================== */
.page-hero { padding: 84px 42px 76px; background: var(--green-deep); color: white; }
.page-hero-inner { max-width: 1320px; margin: auto; }
.page-hero h1 { margin-bottom: 14px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.page-hero p:not(.eyebrow) { max-width: 560px; color: rgba(255,255,255,.82); font-size: 1.02rem; line-height: 1.8; }
.section-container.tight { padding-top: 64px; padding-bottom: 88px; }
.calculator-section.tight { padding-top: 70px; padding-bottom: 88px; }
a.filter-btn { display: inline-block; text-decoration: none; }

.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.info-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { display: block; padding: 28px 26px; border: 1px solid #ecece6; border-top: 3px solid var(--gold); border-radius: 18px; background: white; text-decoration: none; transition: transform .3s, box-shadow .3s; }
a.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-card h3 { margin-bottom: 8px; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; font-weight: 600; }
.info-card p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
@media (max-width: 992px) { .info-grid, .info-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .info-grid, .info-grid.three { grid-template-columns: 1fr; }
  .page-hero { padding: 60px 20px 54px; }
}

.prose { max-width: 760px; }
.prose h3 { margin: 34px 0 8px; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.prose p, .prose li { color: #46524a; font-size: .97rem; line-height: 1.85; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0 20px; }
.prose a { color: var(--green); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose .updated { margin-top: 36px; color: var(--muted); font-size: .8rem; }
.page-divider { max-width: 1320px; height: 1px; margin: 0 auto; border: 0; background: var(--line); }

.partner-card { max-width: 620px; margin: 0 auto; padding: 48px 34px; border: 1px solid #ecece6; border-radius: 18px; background: white; box-shadow: 0 4px 20px rgba(0,0,0,.02); text-align: center; }
.partner-card img { display: block; width: 100%; max-width: 240px; height: auto; margin: 26px auto 30px; object-fit: contain; }
.partner-card .calc-btn { display: inline-flex; width: auto; min-width: 240px; padding: 14px 28px; text-decoration: none; }
.steps { max-width: 760px; margin-top: 34px; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 64px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.steps li::after { content: ''; position: absolute; left: 21px; top: 50px; bottom: 8px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 4px; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: .93rem; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 30px; }
.footer-links a { color: #b1b9b4; font-size: .85rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.contact-details { margin-top: 18px; }
.footer-divider { margin: 34px 0 22px; border: 0; border-top: 1px solid rgba(255,255,255,.12); }

@media (prefers-reduced-motion: reduce) {
  .nav-panel, .chev, .nav-item::after { transition: none; }
}

/* =====================================================================
   PROPERTY MAP
   ===================================================================== */
.location { margin-bottom: 15px; }
.location-link { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 0; border: 0; background: none; color: #78827b; font-size: .83rem; text-align: left; cursor: pointer; transition: color .2s; }
.location-link:hover { color: var(--green); }
.location-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.map-hint { color: var(--green); font-size: .74rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.map-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10,40,30,.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.map-modal.is-open { opacity: 1; pointer-events: auto; }
.map-card { position: relative; width: min(100%, 760px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.map-card h3 { margin-bottom: 4px; padding-right: 30px; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; }
.map-address { margin-bottom: 16px; color: var(--muted); font-size: .9rem; }
.map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: 12px; background: var(--green-soft); }
.map-open { display: inline-flex; width: auto; margin-top: 16px; padding: 0 22px; text-decoration: none; }
@media (max-width: 640px) { .map-frame { height: 300px; } .map-card { padding: 22px; } }

/* =====================================================================
   PROPERTY CARD: icon specs, view-details link, clickable image/title
   ===================================================================== */
a.img-wrapper { display: block; text-decoration: none; }
.prop-details h3 a { color: inherit; text-decoration: none; }
.prop-details h3 a:hover { color: var(--gold); }
.specs { display: flex; flex-wrap: wrap; gap: 8px 16px; min-height: 0; }
.spec-pill { display: inline-flex; align-items: center; gap: 6px; color: #5f6a63; font-size: .83rem; font-weight: 600; }
.spec-icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--gold); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; }
.view-details-link { color: var(--green); font-size: .83rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; white-space: nowrap; }
.view-details-link:hover { color: var(--gold); }

/* =====================================================================
   PROPERTY DETAIL PAGE
   ===================================================================== */
.gallery { margin-bottom: 30px; }
.gallery-main { position: relative; height: 480px; border-radius: 16px; overflow: hidden; background: #e7e9e3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(13,36,25,.55); color: #fff; font-size: 1rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.gallery-nav:hover { background: rgba(13,36,25,.8); }
.gallery-nav.prev { left: 16px; } .gallery-nav.next { right: 16px; }
.gallery-count { position: absolute; right: 16px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(13,36,25,.55); color: #fff; font-size: .78rem; font-weight: 600; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { flex: 0 0 auto; width: 88px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #e7e9e3; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--gold); }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.detail-card { padding: 28px; border: 1px solid #ecece6; border-radius: 16px; background: white; }
.detail-card:empty, [hidden] { display: none; }
.detail-price { color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.9rem; font-weight: 600; }
.detail-title { margin: 4px 0 8px; color: #273228; font-size: 1.15rem; font-weight: 700; }
.detail-specs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
#detail-size { display: inline-flex; align-items: center; gap: 6px; color: #5f6a63; font-size: .83rem; font-weight: 600; }
#detail-size.is-toggle { cursor: pointer; }
.size-toggle-arrow { color: var(--gold); font-size: .7rem; }

#detail-features h3 { margin-bottom: 14px; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; font-weight: 600; }
#detail-features ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
#detail-features li { position: relative; padding-left: 20px; color: #46524a; font-size: .92rem; line-height: 1.5; }
#detail-features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.accordion h3 { margin-bottom: 6px; color: var(--green); font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; font-weight: 600; }
.accordion-item { border-top: 1px solid var(--line); }
.accordion-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; border: 0; background: none; color: #273228; font-size: .97rem; font-weight: 700; text-align: left; cursor: pointer; }
.accordion-plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.accordion-plus::before, .accordion-plus::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--green); transition: transform .2s; }
.accordion-plus::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.accordion-plus::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.accordion-header[aria-expanded="true"] .accordion-plus::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.overview-row { display: flex; gap: 20px; padding: 10px 0; font-size: .89rem; }
.overview-row:nth-child(odd) { background: #fafaf7; }
.overview-label { flex: 0 0 180px; color: #6d776f; font-weight: 600; }
.overview-value { color: #2c362d; }

.detail-sidebar { position: sticky; top: 90px; }
.detail-contact-card { text-align: center; }

@media (max-width: 992px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .gallery-main { height: 320px; }
  #detail-features ul { grid-template-columns: 1fr; }
  .overview-label { flex-basis: 130px; }
}
@media (max-width: 640px) {
  .detail-card { padding: 20px; }
  .gallery-main { height: 240px; }
  .card-actions { flex-wrap: wrap; }
}

/* =====================================================================
   PROPERTY PAGE ADDITIONS: full-screen photo viewer, accordion spacing, helpers
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.lb-lock { overflow: hidden; }

.accordion-inner { padding: 0 0 16px; }
.overview-group { margin: 14px 0 4px; color: var(--green); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.overview-group:first-child { margin-top: 2px; }
.gallery-main img:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
#detail-size:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.gallery-nav:focus-visible, .gallery-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.lb { position: fixed; inset: 0; z-index: 100001; display: flex; flex-direction: column; background: #060e0a; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 64px 8px; }
.lb-figure { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-btn { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.3); outline: none; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 10px; top: 50%; margin-top: -24px; }
.lb-next { right: 10px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; top: 20px; left: 20px; color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.lb-thumbs { display: flex; gap: 8px; padding: 10px 16px 16px; overflow-x: auto; justify-content: center; }
.lb-thumbs button { flex: 0 0 auto; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #222; opacity: .55; cursor: pointer; overflow: hidden; transition: opacity .2s; }
.lb-thumbs button.active { border-color: var(--gold); opacity: 1; }
.lb-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 700px) {
  .lb-stage { padding: 56px 8px 4px; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-thumbs { justify-content: flex-start; }
  .lb-thumbs button { width: 62px; height: 46px; }
}
