:root {
  color-scheme: light;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --fog: #f1f2f4;
  --mist: #e4e6ea;
  --charcoal: #111111;
  --slate: #2b2b2b;
  --muted: #6a6a6a;
  --red: #e53935;
  --red-dark: #c62828;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --border: 1px solid rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--slate);
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f4 45%, #ededf0 100%);
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.glass {
  background: var(--glass);
  border: none;
  border-radius: 3px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: sticky;
  top: 16px;
  z-index: 10;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: auto;
  height: 56px;
  max-width: 72px;
  object-fit: contain;
}

.logo-word {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 600;
}

.btn {
  border: none;
  padding: 12px 22px;
  border-radius: 3px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: #ffffff !important;
  box-shadow: var(--shadow);
}

.nav .btn-primary {
  border-radius: 18px;
  padding: 8px 18px;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--slate);
}

.hero {
  margin: 48px 0 24px;
}

.hero-actions {
  margin-top: 18px;
}

.mobile-only {
  display: none;
}

.hero-copy h1 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--charcoal);
  margin-bottom: 14px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--muted);
  margin-bottom: 10px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.quick-search {
  padding: 18px;
  margin-bottom: 30px;
}

.quick-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quick-title {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.quick-search-header p {
  color: var(--muted);
  margin-top: 6px;
}

.quick-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.quick-grid label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.quick-grid input,
.quick-grid select {
  padding: 10px 12px;
  border-radius: 3px;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  font-size: 14px;
  color: var(--slate);
}

.quick-grid select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none' stroke='%236a6a6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 8 10 12 14 8'/></svg>\");\n  background-repeat: no-repeat;\n  background-position: right 12px center;\n  background-size: 14px;\n  padding-right: 36px;\n}

.price-range span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.price-range div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.hero-card {
  padding: 26px;
}

.hero-card-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-card-amount {
  font-family: "DM Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.hero-card-meta {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.label {
  font-size: 12px;
  color: var(--muted);
}

.value {
  font-weight: 600;
}

.panel {
  padding: 26px;
}

.panel-title {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--charcoal);
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  margin-top: -8px;
}

.section-lead {
  color: var(--muted);
  margin: 8px 0 18px;
}

.map-placeholder {
  height: 360px;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--slate);
}

.iframe-wrap {
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.9);
}

.idx-frame {
  max-width: 100%;
  margin: 0 auto;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: grid;
}

.card-image {
  height: 140px;
  background: linear-gradient(135deg, #e6e6e6, #f9f9f9);
}

.card-body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stats div {
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 6px;
}

.stats strong {
  font-size: 20px;
}

.footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.disclaimer {
  max-width: 620px;
  line-height: 1.4;
  text-align: right;
}

@media (max-width: 860px) {
  .idx-frame {
    max-width: 100%;
  }
  .topbar {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .brand {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 6px;
    width: 100%;
  }

  .logo-icon {
    height: 44px;
    max-width: 54px;
  }

  .logo-word {
    height: 34px;
    max-width: 240px;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.filter-panel label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.filter-panel input,
.filter-panel select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-note {
  font-size: 12px;
  color: var(--muted);
}

.featured-iframe iframe {
  height: 520px;
}

@media (max-width: 860px) {
  .featured-iframe iframe {
    height: 520px;
  }
}

.featured-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
}

.featured-main {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-media {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.feature-media-one {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35)),
    url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1200&q=80");
}

.feature-media-two {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35)),
    url("https://images.unsplash.com/photo-1502673530728-f79b4cab31b1?auto=format&fit=crop&w=1200&q=80");
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #28a745;
  color: #ffffff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.ghost {
  left: auto;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
}

.feature-price {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}

.feature-actions {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.feature-actions button {
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: var(--slate);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 14px;
}

.feature-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.feature-body h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  color: var(--charcoal);
}

.feature-location {
  color: var(--muted);
  font-size: 14px;
}

.feature-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-type {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
}

.featured-side {
  display: grid;
  gap: 16px;
}

.featured-side-title {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.featured-side-card {
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
}

.featured-side-media {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-image: url("https://images.unsplash.com/photo-1560184897-502a82fa0b35?auto=format&fit=crop&w=1200&q=80");
}

.featured-side-body {
  padding: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.featured-side-body h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  color: var(--charcoal);
}

.feature-sub {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .featured-main {
    grid-template-columns: 1fr;
  }
}
