/* RheinCIFI Immobilien — Bright modern proptech */
:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eef1f5;
  --ink: oklch(0.18 0.012 250);
  --ink-2: oklch(0.38 0.012 250);
  --ink-3: oklch(0.58 0.012 250);
  --line: oklch(0.92 0.005 250);
  --line-2: oklch(0.86 0.008 250);
  --accent: oklch(0.55 0.18 245);
  --accent-2: oklch(0.45 0.18 245);
  --accent-soft: oklch(0.96 0.04 245);
  --rose: oklch(0.66 0.15 25);
  --green: oklch(0.6 0.13 155);
  --r: 10px;
  --r-sm: 6px;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad-section: clamp(72px, 8vw, 120px);
  --shadow-card: 0 1px 2px rgba(20,30,50,.04), 0 4px 14px rgba(20,30,50,.05);
  --shadow-pop: 0 10px 30px rgba(20,30,50,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
.dense { --pad-section: clamp(48px, 5vw, 72px); }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-feature-settings: "tnum"; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
}
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 1px;
}
.nav { display: flex; gap: 6px; justify-content: center; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
  font-weight: 500;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
}
.lang button {
  background: transparent; border: 0; padding: 5px 9px; cursor: pointer;
  color: var(--ink-3); border-radius: 4px; font: inherit;
  letter-spacing: 0.04em;
}
.lang button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: inherit;
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: var(--bg-2); color: var(--ink); }
.btn.ghost:hover { background: var(--bg-3); }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.outline:hover { background: var(--bg-2); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* Hero */
.hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  background:
    radial-gradient(60% 80% at 80% 20%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%),
    var(--bg);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 14ch;
}
.hero h1 .ac { color: var(--accent); }
.hero .lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero-pill .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }

/* Search */
.search-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  padding: 8px;
  display: grid;
  grid-template-columns: 80px 1.6fr 1fr 1fr 1fr auto;
  gap: 4px;
  margin-top: 16px;
  align-items: stretch;
}
.search-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  padding: 4px;
}
.search-tab {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.search-tab.on { background: var(--bg-2); color: var(--ink); }
.search-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 1px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.search-field {
  background: #fff;
  padding: 10px 14px;
}
.search-field label {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.search-field input,
.search-field select {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  padding: 0;
}
.search-submit {
  background: var(--accent);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 0 24px;
  font-family: inherit;
  gap: 6px;
}
.search-submit:hover { background: var(--accent-2); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
}
.hero-stats .item .v {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-stats .item .l {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* Section heads */
section { padding: var(--pad-section) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.1;
  max-width: 22ch;
}
.section-head .lede {
  color: var(--ink-2);
  margin: 0;
  max-width: 52ch;
  font-size: 15.5px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Listings */
.listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip .count {
  font-size: 11px;
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 99px;
  color: var(--ink-3);
  font-weight: 600;
}
.chip.on .count { background: rgba(255,255,255,.18); color: rgba(255,255,255,.88); }
.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.listing {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.listing:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-2);
}
.listing-img {
  aspect-ratio: 4/3;
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.plate-img {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg,
    transparent 0 14px,
    color-mix(in oklab, var(--ink) 4%, transparent) 14px 15px);
  position: relative;
}
.plate-img .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.listing-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.badge {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.badge.accent { background: var(--accent); color: #fff; }
.badge.green { background: var(--green); color: #fff; }
.badge.rose { background: var(--rose); color: #fff; }
.fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.95);
  border: 0; border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .15s;
}
.fav:hover { transform: scale(1.1); }
.fav.on svg { fill: var(--rose); stroke: var(--rose); }

.listing-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.listing-price {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-family: "JetBrains Mono", monospace;
}
.listing-rent {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.listing-rent .per { font-size: 13px; color: var(--ink-3); font-family: "Inter", sans-serif; font-weight: 500; }
.listing-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.listing-loc {
  font-size: 13px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 5px;
}
.listing-specs {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.listing-specs span { display: inline-flex; align-items: center; gap: 5px; }
.listing-specs b { font-weight: 600; color: var(--ink); }

.empty-state {
  grid-column: 1 / -1;
  padding: 64px;
  text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service {
  padding: 24px;
  background: var(--bg-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: background .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service:hover { background: var(--bg-3); }
.service-icon {
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.service h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.service p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}
.service-link {
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Valuation form */
.valuation {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.valuation-intro h3 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.valuation-intro p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
  margin: 0 0 24px;
  line-height: 1.55;
}
.valuation-bullets {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.valuation-bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.valuation-bullets li svg {
  flex-shrink: 0; margin-top: 3px;
  color: var(--accent);
}

.val-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 24px;
}
.steps-bar {
  display: flex; gap: 6px; margin-bottom: 20px;
}
.step-pill {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 99px;
  overflow: hidden;
}
.step-pill .fill {
  height: 100%;
  background: var(--accent);
  transition: width .3s;
}
.step-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.step-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.step-sub {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin: 0 0 20px;
}
.dark-field {
  margin-bottom: 14px;
}
.dark-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
.dark-field input,
.dark-field select,
.dark-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.dark-field input:focus,
.dark-field select:focus,
.dark-field textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
}
.dark-field.error input,
.dark-field.error select { border-color: var(--rose); }
.dark-field .err {
  font-size: 11px;
  color: var(--rose);
  margin-top: 4px;
  display: none;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
.dark-field.error .err { display: block; }
.tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.tile {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  padding: 14px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: all .15s;
  font-family: inherit;
}
.tile:hover { border-color: rgba(255,255,255,.28); }
.tile.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tile-icon { display: block; font-size: 22px; margin-bottom: 6px; }
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.step-actions {
  display: flex; gap: 10px; margin-top: 20px;
  justify-content: space-between;
}
.btn-light {
  background: #fff; color: var(--ink);
  border: 0; padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-light:hover { background: rgba(255,255,255,.92); }
.btn-light.primary { background: var(--accent); color: #fff; }
.btn-light.primary:hover { background: var(--accent-2); }
.btn-link {
  background: transparent; color: rgba(255,255,255,.7);
  border: 0;
  padding: 11px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.btn-link:hover { color: #fff; }

.val-summary {
  display: flex; flex-direction: column; gap: 8px;
}
.val-summary .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.12);
  font-size: 13px;
}
.val-summary .row:last-child { border: 0; }
.val-summary .l { color: rgba(255,255,255,.55); }
.val-summary .v { color: #fff; font-weight: 500; }

.val-success {
  text-align: center;
  padding: 32px 16px;
}
.val-success .check-circle {
  width: 56px; height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.val-success h4 { font-size: 24px; margin: 0 0 8px; font-weight: 600; }
.val-success p { color: rgba(255,255,255,.7); margin: 0 0 24px; }
.val-success .estimate {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0 24px;
}
.val-success .estimate .l {
  font-size: 12px; color: rgba(255,255,255,.55);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.val-success .estimate .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.val-success .estimate .range {
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* Region map */
.region {
  background: var(--bg-2);
  border-radius: 16px;
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.region h3 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 14ch;
}
.region p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.region-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.region-list li {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.region-list li b { font-weight: 500; color: var(--ink); }
.region-list li .px {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.map-svg {
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}
.contact-card {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.contact-card .info-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.contact-card .info-row:last-of-type { border-bottom: 1px solid var(--line); }
.contact-card .info-row .l { color: var(--ink-3); font-weight: 500; }
.contact-card .info-row .v { color: var(--ink); }
.contact-card .info-row .v a { color: var(--accent); text-decoration: none; font-weight: 500; }
.contact-card .info-row .v a:hover { text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
}
.light-field {
  margin-bottom: 14px;
}
.light-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.light-field input,
.light-field select,
.light-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.light-field input:focus,
.light-field select:focus,
.light-field textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.light-field.error input,
.light-field.error select { border-color: var(--rose); background: oklch(0.98 0.02 25); }
.light-field .err {
  font-size: 11px;
  color: var(--rose);
  margin-top: 4px;
  display: none;
  font-weight: 500;
}
.light-field.error .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.contact-success {
  text-align: center; padding: 32px 16px;
}
.contact-success .ck {
  width: 56px; height: 56px; background: var(--accent); color: #fff;
  border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
}
.contact-success h4 { font-size: 22px; margin: 0 0 8px; }
.contact-success p { color: var(--ink-2); margin: 0; }

/* Property modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 30, 50, .55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  animation: fade .2s;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(6px);
}
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  aspect-ratio: 16/9;
  background: var(--bg-2);
}
.gallery .plate-img:nth-child(1) { grid-row: span 2; }
.gallery .plate-img { background-color: var(--bg-2); cursor: pointer; }
.gallery .plate-img:hover .label { background: var(--accent); color: #fff; border-color: var(--accent); }
.modal-body { padding: 32px clamp(20px, 3vw, 40px); }
.modal-head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: end;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.modal-head h3 {
  font-size: 28px; font-weight: 600;
  margin: 6px 0 4px; letter-spacing: -0.02em;
}
.modal-head .modal-loc { color: var(--ink-3); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.modal-head .price {
  font-family: "JetBrains Mono", monospace;
  font-size: 32px; font-weight: 600; letter-spacing: -0.02em;
  text-align: right;
}
.modal-head .price small { display: block; color: var(--ink-3); font-weight: 500; font-size: 13px; font-family: "Inter", sans-serif; margin-top: 2px; }
.modal-specs {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.modal-specs .item .l { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; font-weight: 500; }
.modal-specs .item .v { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.modal-cols {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px;
  align-items: start;
}
.modal-cols h4 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.modal-cols p { color: var(--ink-2); line-height: 1.65; margin: 0 0 16px; }
.feat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px;
}
.feat {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2);
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: 6px;
}
.feat svg { color: var(--accent); }

.agent-card {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 20px;
  position: sticky; top: 100px;
}
.agent-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.agent-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #fff; font-weight: 600;
}
.agent-name { font-weight: 600; font-size: 15px; }
.agent-role { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.agent-card .btn { width: 100%; justify-content: center; }
.agent-card .btn + .btn { margin-top: 8px; }

/* Footer */
footer {
  background: var(--bg-2);
  padding: 64px 0 24px;
  font-size: 14px;
  margin-top: var(--pad-section);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-grid h5 {
  font-size: 13px; font-weight: 600; margin: 0 0 14px;
  color: var(--ink);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: 5px 0; }
.footer-grid ul a { color: var(--ink-2); text-decoration: none; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-grid .colophon p {
  font-size: 14px; color: var(--ink-2); max-width: 38ch;
  margin: 12px 0 0; line-height: 1.55;
}
.parent-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  align-items: center;
  gap: 10px;
  transition: border-color .15s;
}
.parent-link:hover { border-color: var(--ink-3); }
.parent-link b { font-weight: 600; }
.parent-link span { color: var(--ink-3); }
.bottom-bar {
  display: flex; justify-content: space-between;
  padding-top: 20px;
  font-size: 12px;
  color: var(--ink-3);
}
.bottom-bar a { color: inherit; text-decoration: none; }
.bottom-bar a:hover { color: var(--ink); }

@media (max-width: 1000px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .valuation, .region, .contact-grid { grid-template-columns: 1fr; }
  .modal-cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav { display: none; }
  .listings-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .bottom-bar { flex-direction: column; gap: 8px; }
  .modal-specs { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 200px repeat(2, 100px); }
  .gallery .plate-img:nth-child(1) { grid-row: 1; }
}
