/* ==========================================================================
   HomeNex — Property Search Tool for Indian Buyers
   Green/cream theme anchored on #166534
   ========================================================================== */

:root {
  --ink: #16241c;
  --ink-soft: #4c5d53;
  --ink-faint: #8b988f;
  --cream: #faf7f1;
  --card: #ffffff;
  --line: #e9e4d9;
  --brand: #166534;
  --brand-deep: #0e4429;
  --brand-wash: #e8f4ec;
  --gold: #b45309;
  --amber: #d97706;
  --amber-wash: #fdf3e3;
  --hot: #c2410c;
  --wa-green: #25D366;
  --wa-dark: #128C7E;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-card: 0 1px 2px rgba(22,36,28,.05), 0 4px 16px rgba(22,36,28,.06);
  --shadow-float: 0 8px 30px rgba(22,36,28,.16);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,241,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
}
.nav-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(140deg, #22a35c, #0e4429);
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.nav-name {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
}
.nav-links a {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 12px; border-radius: 999px; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--brand-wash); color: var(--brand-deep);
}
.nav-fav { position: relative; }
.nav-fav span:not(:empty) {
  position: absolute; top: 2px; right: 2px;
  background: var(--hot); color: #fff; font-size: 9px; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 999px; display: grid; place-items: center;
}

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.hamburger span {
  display: block; width: 100%; height: 2.5px; background: var(--ink);
  border-radius: 2px; position: absolute; left: 0;
  transition: .25s;
}
.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 2px; }
.hamburger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 20px; gap: 4px;
    box-shadow: 0 12px 24px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px; border-radius: var(--radius-sm); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background:
    radial-gradient(900px 500px at 30% 20%, #1c8348 0%, transparent 60%),
    radial-gradient(700px 400px at 80% 10%, #143626 0%, transparent 50%),
    #0e3320;
  color: #eaf3ec;
  padding: 80px 20px 60px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-block; font-size: 13px; font-weight: 800;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px);
  font-weight: 600; line-height: 1.1; color: #fff;
}
.hero p {
  font-size: 16px; color: #bfe0cc; margin-top: 14px; line-height: 1.5;
}
.hero-search {
  margin-top: 28px;
}
.search-row {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
}
.search-select {
  flex: 1; padding: 14px 16px; border-radius: 999px; border: none;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  background: #fff; color: var(--ink);
  cursor: pointer; appearance: auto;
}
.btn-search {
  padding: 14px 24px; border-radius: 999px; border: none;
  background: var(--wa-green); color: #fff; font-weight: 800; font-size: 15px;
  cursor: pointer; white-space: nowrap;
  font-family: var(--font-sans);
  transition: background .15s, transform .1s;
}
.btn-search:hover { background: var(--wa-dark); }
.btn-search:active { transform: scale(.97); }

.hero-stats {
  display: flex; justify-content: center; gap: 32px; margin-top: 32px;
}
.hero-stats .n {
  display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff;
}
.hero-stats .l { font-size: 12px; color: #9fc4ac; }

@media (max-width: 520px) {
  .search-row { flex-direction: column; }
  .hero { padding: 60px 16px 40px; }
}

/* ==========================================================================
   SECTIONS & LAYOUT
   ========================================================================== */
.section {
  max-width: 1200px; margin: 0 auto; padding: 40px 20px;
}
.section-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--ink); margin-bottom: 20px;
}
.screen-content { min-height: 60vh; }

/* ==========================================================================
   TOOLS GRID (homepage)
   ========================================================================== */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-card);
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.tool-icon { font-size: 32px; display: block; margin-bottom: 12px; }
.tool-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.tool-card p { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }

/* ==========================================================================
   PROPERTY CARDS
   ========================================================================== */
.property-scroll {
  display: flex; gap: 16px; overflow-x: auto; padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
}
.property-scroll::-webkit-scrollbar { height: 0; }
.property-scroll .prop-card { min-width: 280px; max-width: 320px; scroll-snap-align: start; }

.property-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}

.prop-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.prop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }

.prop-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 16px 0;
}
.prop-thumb {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(140deg, var(--brand-wash), #cfe6d7);
  display: grid; place-items: center; font-size: 24px; flex-shrink: 0;
}
.prop-card-actions { display: flex; gap: 6px; }
.icon-btn {
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  font-size: 14px; transition: .15s;
}
.icon-btn:hover { background: var(--brand-wash); }
.icon-btn.active { background: var(--brand-wash); border-color: var(--brand); }

.prop-card-body { padding: 12px 16px; cursor: pointer; }
.prop-card-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.prop-card-loc { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.prop-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; gap: 8px; }
.prop-card-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--brand-deep); }
.prop-card-emi { display: block; font-size: 11px; color: var(--ink-faint); }
.prop-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: 10px; font-weight: 800; border-radius: 999px; padding: 3px 8px;
  letter-spacing: .02em;
}
.tag.ready { background: var(--brand-wash); color: var(--brand-deep); }
.tag.uc { background: var(--amber-wash); color: var(--gold); }
.tag.rera { background: #eef2ff; color: #4338ca; }

.prop-card-share {
  padding: 0 16px 14px;
}

/* ==========================================================================
   WHATSAPP BUTTONS (viral sharing)
   ========================================================================== */
.wa-icon-sm { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }
.wa-icon-md { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.wa-icon-big { width: 24px; height: 24px; fill: var(--wa-green); }

.wa-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--wa-green); color: #fff; font-weight: 700; font-size: 12px;
  padding: 7px 14px; border-radius: 999px; text-decoration: none;
  transition: background .15s, transform .1s;
}
.wa-share-btn:hover { background: var(--wa-dark); text-decoration: none; color: #fff; }
.wa-share-btn:active { transform: scale(.97); }

.wa-share-btn-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa-green); color: #fff; font-weight: 700; font-size: 13px;
  padding: 10px 20px; border-radius: 999px; text-decoration: none;
  transition: .15s;
}
.wa-share-btn-lg:hover { background: var(--wa-dark); text-decoration: none; color: #fff; }

.wa-share-btn-full {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa-green); color: #fff; font-weight: 800; font-size: 14px;
  padding: 14px 24px; border-radius: var(--radius); text-decoration: none;
  margin-top: 16px; transition: .15s;
}
.wa-share-btn-full:hover { background: var(--wa-dark); text-decoration: none; color: #fff; }

.wa-contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--wa-green); color: #fff; font-weight: 800; font-size: 15px;
  padding: 16px 28px; border-radius: var(--radius); text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,.3); transition: .15s;
}
.wa-contact-btn:hover { background: var(--wa-dark); text-decoration: none; color: #fff; }

.wa-family-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); color: var(--wa-dark); font-weight: 700; font-size: 14px;
  padding: 14px 24px; border-radius: var(--radius); text-decoration: none;
  border: 2px solid var(--wa-green); margin-top: 12px; transition: .15s;
}
.wa-family-btn:hover { background: var(--brand-wash); text-decoration: none; }

.wa-badge-big {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink);
  background: var(--brand-wash); border: 1px solid rgba(22,101,52,.2);
  border-radius: 999px; padding: 10px 20px; margin-top: 16px;
}

.cta-section {
  text-align: center; background: var(--brand-wash);
  padding: 48px 20px; margin: 0 auto;
  max-width: none !important;
}
.cta-section h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.cta-section p { color: var(--ink-soft); margin-top: 8px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   SEARCH SCREEN
   ========================================================================== */
.search-header {
  max-width: 1200px; margin: 0 auto; padding: 32px 20px 0;
}
.search-header h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.search-header p { color: var(--ink-soft); margin-top: 4px; }

.filter-bar {
  max-width: 1200px; margin: 0 auto; padding: 16px 20px;
  display: flex; gap: 10px; overflow-x: auto; flex-wrap: wrap;
}
.filter-bar::-webkit-scrollbar { height: 0; }
.filter-select {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-family: var(--font-sans); font-size: 13px;
  font-weight: 600; color: var(--ink); cursor: pointer; appearance: auto;
}
.filter-select:focus { border-color: var(--brand); outline: none; }

.compare-fab {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px;
  padding: 14px 28px; border-radius: 999px; cursor: pointer; z-index: 80;
  box-shadow: var(--shadow-float);
  transition: .15s;
}
.compare-fab:hover { background: var(--brand-deep); }

.empty-state {
  text-align: center; padding: 48px 20px;
}
.empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.empty-state p { color: var(--ink-soft); }

/* ==========================================================================
   PROPERTY DETAIL
   ========================================================================== */
.back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  color: var(--brand); padding: 20px 20px 0;
}
.back-btn:hover { text-decoration: underline; }

.detail-hero {
  max-width: 1200px; margin: 0 auto; padding: 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.detail-thumb {
  width: 80px; height: 80px; border-radius: 20px;
  background: linear-gradient(140deg, var(--brand-wash), #cfe6d7);
  display: grid; place-items: center; font-size: 36px; flex-shrink: 0;
}
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.icon-btn-lg {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; cursor: pointer; font-weight: 700; font-size: 13px;
  font-family: var(--font-sans); transition: .15s;
}
.icon-btn-lg:hover { background: var(--brand-wash); }
.icon-btn-lg.active { background: var(--brand-wash); border-color: var(--brand); }

.detail-body {
  max-width: 1200px; margin: 0 auto; padding: 0 20px 40px;
}
.detail-body h1 { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.detail-sub { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

.detail-price-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: 20px; flex-wrap: wrap;
}
.detail-price { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--brand-deep); }
.detail-emi { font-size: 13px; color: var(--ink-faint); margin-left: 4px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
  margin-top: 24px;
}
.detail-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px; display: flex; flex-direction: column; gap: 4px;
}
.detail-item.full { grid-column: 1 / -1; }
.detail-label { font-size: 11px; font-weight: 700; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.detail-value { font-size: 14px; font-weight: 600; color: var(--ink); }

.detail-section {
  margin-top: 28px;
}
.detail-section h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 14px;
}

.amenity-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.amenity-tag {
  background: var(--brand-wash); color: var(--brand-deep); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}

.calc-preview {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-card);
}
.emi-preview { display: flex; flex-direction: column; gap: 8px; }
.emi-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); }
.emi-row.emi-total { font-weight: 800; font-size: 16px; color: var(--brand-deep); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.emi-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.area-mini {
  background: var(--brand-wash); border-radius: var(--radius-sm); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; margin-bottom: 14px;
}
.area-mini strong { color: var(--ink); }

/* ==========================================================================
   CALCULATORS
   ========================================================================== */
.tool-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
}
.tool-sub { font-size: 14px; color: var(--ink-soft); margin-top: 4px; margin-bottom: 20px; }

.calc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 20px;
}
.calc-field label {
  display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px;
}
.calc-field input[type="number"], .calc-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink);
  background: var(--cream);
}
.calc-field input[type="number"]:focus, .calc-field select:focus {
  border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(22,101,52,.12);
}
.calc-field input[type="range"] {
  width: 100%; margin-top: 8px; accent-color: var(--brand);
}

.radio-group { display: flex; gap: 16px; }
.radio { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.radio input { accent-color: var(--brand); width: 18px; height: 18px; }

.calc-result {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-top: 20px; box-shadow: var(--shadow-card);
}

.result-big {
  text-align: center; margin-bottom: 20px;
}
.result-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; }
.result-value {
  display: block; font-family: var(--font-display); font-size: 36px; font-weight: 700;
  color: var(--brand-deep); margin-top: 4px;
}
.result-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center;
}
.rg-label { display: block; font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.rg-value { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 2px; }

.emi-bar {
  display: flex; height: 28px; border-radius: 999px; overflow: hidden; margin-top: 16px;
  font-size: 10px; font-weight: 700; color: #fff; text-align: center; line-height: 28px;
}
.emi-bar-principal { background: var(--brand); }
.emi-bar-interest { background: var(--amber); flex: 1; }

.sd-tip {
  margin-top: 14px; font-size: 13px; color: var(--brand-deep);
  background: var(--brand-wash); padding: 10px 14px; border-radius: var(--radius-sm);
}

/* Bank Rates Table */
.rates-table {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.rate-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  padding: 12px 16px; font-size: 13.5px; cursor: pointer;
  transition: background .15s;
}
.rate-row:not(.rate-header):hover { background: var(--brand-wash); }
.rate-row + .rate-row { border-top: 1px solid var(--line); }
.rate-header { font-weight: 800; font-size: 11px; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; background: var(--cream); cursor: default; }
.rate-bank { font-weight: 700; color: var(--ink); }
.rate-val { font-weight: 700; color: var(--brand-deep); }
.rates-note { font-size: 11px; color: var(--ink-faint); margin-top: 10px; }

/* ==========================================================================
   AREA GUIDES
   ========================================================================== */
.area-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px;
}
.area-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-card);
}
.area-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.area-vibe { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.area-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px;
}
.as-label { display: block; font-size: 10px; font-weight: 700; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.as-value { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.as-value.trend-up { color: var(--brand); }
.area-details { margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.area-details p + p { margin-top: 4px; }
.area-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   COMPARE TABLE
   ========================================================================== */
.compare-table-wrap {
  overflow-x: auto; margin-top: 24px;
}
.compare-table {
  width: 100%; border-collapse: collapse; min-width: 500px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 10px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line);
}
.compare-table th { font-size: 12px; font-weight: 700; background: var(--cream); color: var(--ink-soft); }
.compare-table td:first-child { font-weight: 700; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.ct-head { text-align: center; font-size: 13px; }
.ct-price { font-family: var(--font-display); font-weight: 700; color: var(--brand-deep); font-size: 15px; }
.compare-cta { margin-top: 24px; text-align: center; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px;
  padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font-sans); transition: .15s;
}
.btn-primary:hover { background: var(--brand-deep); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--brand); font-weight: 700; font-size: 13px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--font-sans); transition: .15s;
}
.btn-outline:hover { background: var(--brand-wash); border-color: var(--brand); }

.link-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 13px; color: var(--brand);
}
.link-btn:hover { text-decoration: underline; }

/* ==========================================================================
   EMBED WIDGET
   ========================================================================== */
.widget-preview { max-width: 400px; }
.widget-demo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.widget-demo-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
}
.widget-demo-body { padding: 4px 0; }
.wd-row {
  display: flex; justify-content: space-between; padding: 10px 16px;
  font-size: 13px; color: var(--ink);
}
.wd-row + .wd-row { border-top: 1px solid var(--line); }
.wd-row span:last-child { font-weight: 700; color: var(--brand-deep); }
.widget-demo-footer {
  padding: 10px 16px; font-size: 11px; color: var(--ink-faint);
  border-top: 1px solid var(--line);
}
.widget-demo-footer a { color: var(--brand); }

.embed-code {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: monospace; font-size: 12px; color: var(--ink); background: var(--cream);
  resize: vertical; margin-top: 8px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0e3320; color: #9fc4ac; padding: 48px 20px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
}
.footer-brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #eaf3ec;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand p { font-family: var(--font-sans); font-size: 13px; color: #8fb79f; margin-top: 8px; font-weight: 400; }
.footer-links {
  display: flex; gap: 48px; margin-top: 28px; flex-wrap: wrap;
}
.footer-links h4 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #bfe0cc; margin-bottom: 10px; }
.footer-links a { display: block; font-size: 13px; color: #9fc4ac; padding: 3px 0; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
}
.footer-bottom a { color: #bfe0cc; }

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.tabnum { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .result-grid { grid-template-columns: 1fr; gap: 8px; }
  .detail-price { font-size: 26px; }
  .result-value { font-size: 28px; }
  .compare-table { font-size: 11px; }
  .area-cards { grid-template-columns: 1fr; }
}
