:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --ink: #18231a;
  --muted: #6d756f;
  --line: #dedfd8;
  --brand: #1f6f43;
  --brand-dark: #155333;
  --accent: #e7b84b;
  --soft-green: #e9f4ed;
  --soft-red: #faece9;
  --shadow: 0 24px 80px rgba(26, 40, 29, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar {
  width: min(1400px, calc(100% - 48px));
  margin: 18px auto 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 12px 0 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--brand); color: white; border-radius: 14px;
  font-weight: 800; letter-spacing: -.04em;
}
.brand strong { display: block; font-size: 18px; }
.brand small, .footer-brand small { color: var(--muted); display: block; margin-top: 2px; font-size: 11px; }

.desktop-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.desktop-nav a:hover { color: var(--brand); }
.header-actions { display: flex; gap: 10px; }
.primary-btn, .ghost-btn, .cta-btn, .search-btn {
  border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700;
}
.primary-btn, .search-btn { background: var(--brand); color: white; }
.primary-btn:hover, .search-btn:hover { background: var(--brand-dark); }
.ghost-btn { background: white; border: 1px solid var(--line); color: var(--ink); }

.hero {
  min-height: 680px;
  width: min(1400px, calc(100% - 48px));
  margin: 24px auto 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(231,184,75,.24), transparent 26%),
    linear-gradient(135deg, #edf4ec 0%, #f9f1dc 100%);
  border: 1px solid rgba(24,35,26,.08);
  border-radius: 36px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
}
.hero-copy { padding: 84px 62px; position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; color: var(--brand); font-size: 12px; font-weight: 800;
  letter-spacing: .13em; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(52px, 6vw, 88px); line-height: .95; letter-spacing: -.07em; margin: 0; max-width: 780px; }
.hero h1 span { color: var(--brand); }
.hero-copy > p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.7; margin: 26px 0 30px; }

.search-shell {
  max-width: 860px; background: rgba(255,255,255,.92); border: 1px solid rgba(24,35,26,.1);
  border-radius: 20px; padding: 16px; box-shadow: var(--shadow); backdrop-filter: blur(14px);
}
.search-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 8px; font-weight: 700; }
.tab.active { background: var(--soft-green); color: var(--brand); }
.search-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 10px; margin-top: 14px; }
.search-field { background: #f7f7f3; padding: 9px 12px; border-radius: 11px; border: 1px solid transparent; }
.search-field:focus-within { border-color: var(--brand); }
.search-field span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.search-field input, .search-field select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-btn { align-self: stretch; padding-inline: 22px; }

.hero-stats { display: flex; gap: 36px; margin-top: 38px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 23px; }
.hero-stats span { font-size: 11px; color: var(--muted); margin-top: 4px; }

.hero-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
  background:
    linear-gradient(rgba(31,111,67,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,111,67,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.property-preview {
  width: min(410px, 78%);
  background: white; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(24,35,26,.18);
  transform: rotate(2deg);
}
.preview-photo {
  height: 290px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.4)),
    url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=900&q=80") center/cover;
  position: relative;
}
.verified-pill, .preview-price { position: absolute; top: 18px; padding: 8px 11px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.verified-pill { left: 18px; background: white; color: var(--brand); }
.preview-price { right: 18px; background: var(--accent); color: #332607; }
.preview-body { padding: 22px; }
.preview-body small { color: var(--muted); }
.preview-body h3 { margin: 7px 0 14px; font-size: 23px; }
.preview-details, .portal-mini-row { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-details span, .portal-mini-row span { background: #f2f4ef; border-radius: 999px; padding: 7px 9px; font-size: 11px; font-weight: 700; }
.portal-mini-row { margin-top: 18px; }
.portal-mini-row span { background: var(--soft-green); color: var(--brand); }
.floating-card {
  position: absolute; background: white; box-shadow: var(--shadow); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px; z-index: 3;
}
.status-card { top: 110px; left: 6%; display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.live { background: #28a764; box-shadow: 0 0 0 5px #e5f6ec; }
.status-card strong, .status-card small { display: block; }
.status-card small, .price-card small, .price-card span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.price-card { bottom: 100px; right: 5%; display: flex; flex-direction: column; }
.price-card strong { font-size: 18px; margin: 5px 0; color: var(--brand); }

.trust-strip {
  width: min(1280px, calc(100% - 48px)); margin: 24px auto;
  display: flex; justify-content: center; align-items: center; gap: 32px;
  color: var(--muted); font-size: 12px;
}
.portal-logos { display: flex; gap: 28px; flex-wrap: wrap; color: #4e5650; font-size: 13px; }

.section { width: min(1280px, calc(100% - 48px)); margin: 100px auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-heading h2, .compare-copy h2, .cta-section h2 { font-size: clamp(32px, 4vw, 50px); margin: 0; letter-spacing: -.04em; line-height: 1.05; }
.section-heading p, .compare-copy > p, .cta-section p { color: var(--muted); line-height: 1.7; max-width: 700px; margin-bottom: 0; }
.sort-box { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.sort-box select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: white; }

.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.property-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image {
  height: 220px; background-size: cover; background-position: center; position: relative;
}
.card-badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 7px; }
.badge { padding: 7px 9px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 10px; font-weight: 800; }
.badge.verified { color: var(--brand); }
.save-btn {
  position: absolute; right: 14px; top: 14px; width: 38px; height: 38px;
  border: 0; background: rgba(255,255,255,.93); border-radius: 50%; font-size: 18px;
}
.save-btn.saved { background: var(--brand); color: white; }
.card-body { padding: 18px; }
.card-location { color: var(--muted); font-size: 11px; }
.card-title { font-size: 19px; margin: 5px 0 13px; }
.card-specs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.card-price-row { display: flex; align-items: end; justify-content: space-between; margin: 20px 0 14px; }
.price-main strong { font-size: 24px; display: block; }
.price-main small { color: var(--muted); font-size: 10px; }
.price-range { text-align: right; }
.price-range b { color: var(--brand); font-size: 12px; }
.price-range small { display: block; color: var(--muted); font-size: 9px; }
.portal-row { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 13px; }
.portal-chip {
  background: #f3f5f1; border-radius: 8px; padding: 7px 8px; font-size: 9px; font-weight: 800;
}
.portal-chip.offline { opacity: .45; text-decoration: line-through; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.portal-count { font-size: 10px; color: var(--muted); }
.view-btn { border: 0; color: var(--brand); background: transparent; padding: 0; font-weight: 800; font-size: 12px; }

.compare-section {
  width: min(1280px, calc(100% - 48px)); margin: 100px auto;
  background: #18231a; color: white; border-radius: 30px; padding: 58px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.compare-copy > p { color: #b9c1bb; }
.feature-list { margin-top: 28px; display: grid; gap: 16px; }
.feature-list > div { display: flex; gap: 14px; }
.feature-list b { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: rgba(231,184,75,.13); color: var(--accent); font-size: 11px; }
.feature-list strong, .feature-list small { display: block; }
.feature-list small { color: #aab3ac; margin-top: 4px; line-height: 1.5; }
.compare-table-card { background: white; color: var(--ink); border-radius: 22px; padding: 24px; }
.compare-title { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.compare-title small { color: var(--muted); }
.compare-title h3 { margin: 6px 0 0; }
.compare-title > strong { color: var(--brand); }
.comparison-row { display: grid; grid-template-columns: 1.2fr 1fr .8fr; padding: 13px 8px; border-top: 1px solid var(--line); align-items: center; font-size: 12px; }
.header-row { text-transform: uppercase; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.live-tag, .best-tag, .offline-tag { width: fit-content; font-style: normal; font-weight: 800; font-size: 9px; padding: 6px 8px; border-radius: 999px; }
.live-tag { background: var(--soft-green); color: var(--brand); }
.best-tag { background: #fff2c6; color: #7a5900; }
.offline-tag { background: #f1f1ef; color: #7e837f; }
.best-row { background: #fffaf0; border-radius: 10px; }

.dashboard-section { margin-top: 100px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.metric span, .metric small { color: var(--muted); font-size: 10px; }
.metric strong { display: block; font-size: 28px; margin: 6px 0; }
.dashboard-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 12px; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; background: #fafaf7; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.table-status { padding: 6px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.table-status.live { background: var(--soft-green); color: var(--brand); }
.table-status.expired { background: var(--soft-red); color: #9c3f2d; }
.table-status.missing { background: #f2f2ef; color: #777d78; }

.cta-section {
  width: min(1280px, calc(100% - 48px)); margin: 110px auto 40px;
  background: #e8b84b; border-radius: 28px; padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-section .eyebrow { color: #5d470c; }
.cta-section p { color: #5d512e; }
.cta-btn { background: var(--ink); color: white; white-space: nowrap; }

footer {
  width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 50px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  color: var(--muted);
}
.footer-brand { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.footer-links { display: flex; gap: 18px; font-size: 11px; }
footer > small { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,16,11,.7); backdrop-filter: blur(8px);
  z-index: 50; display: grid; place-items: center; padding: 20px;
}
.hidden { display: none !important; }
.modal {
  width: min(720px, 100%); max-height: 90vh; overflow-y: auto; background: white;
  border-radius: 24px; padding: 30px; position: relative;
}
.modal h2 { margin: 0; font-size: 36px; letter-spacing: -.04em; }
.modal > p { color: var(--muted); }
.modal-close { position: absolute; right: 18px; top: 18px; border: 0; background: #f2f3ef; width: 38px; height: 38px; border-radius: 50%; font-size: 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.form-grid label, .full-label { font-size: 11px; font-weight: 700; color: var(--muted); }
.form-grid input, .form-grid select, .full-label input {
  width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; outline: none;
}
.full-label { display: block; margin-top: 12px; }
.modal-submit { width: 100%; margin-top: 18px; }

.empty-state {
  grid-column: 1 / -1; background: white; border: 1px dashed var(--line); border-radius: 20px;
  padding: 60px 20px; text-align: center; color: var(--muted);
}
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 100; background: var(--ink); color: white;
  padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 12px;
}

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 60px 40px; }
  .hero-panel { min-height: 580px; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-section { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .topbar, .hero, .section, .compare-section, .cta-section, footer, .trust-strip { width: min(100% - 24px, 1280px); }
  .topbar { margin-top: 8px; }
  .header-actions .ghost-btn { display: none; }
  .brand small { display: none; }
  .hero { border-radius: 24px; }
  .hero-copy { padding: 42px 22px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 15px; }
  .search-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-panel { min-height: 510px; }
  .property-preview { width: 82%; }
  .status-card { left: 2%; top: 50px; }
  .price-card { right: 2%; bottom: 45px; }
  .trust-strip { flex-direction: column; gap: 12px; align-items: flex-start; overflow: hidden; }
  .portal-logos { gap: 14px; }
  .section { margin: 70px auto; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .property-grid { grid-template-columns: 1fr; }
  .compare-section { margin: 70px auto; padding: 32px 22px; border-radius: 24px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .cta-section { flex-direction: column; align-items: flex-start; padding: 34px 24px; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
}
