/* ============================================================
   DealBriz — Home page
   Scoped to #homePage / .site-footer / .nav-desktop so the rest
   of the app keeps using style.css untouched.
   ============================================================ */

:root {
  --hb-blue:      #2563EB;
  --hb-blue-dk:   #1D4ED8;
  --hb-blue-tint: #EFF6FF;
  --hb-amber:     #F5B942;
  --hb-amber-dk:  #E0A82E;
  --hb-navy:      #0B1A33;
  --hb-navy-2:    #12253F;
  --hb-ink:       #05080F;
  --hb-text:      #0F172A;
  --hb-muted:     #64748B;
  --hb-line:      #E2E8F0;
  --hb-panel:     #F8FAFC;
  --hb-green:     #10B981;
  --hb-font:      'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

#homePage { background: #fff; font-family: var(--hb-font); color: var(--hb-text); }
#homePage section { width: 100%; }
#homePage .hb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------- DESKTOP NAV ADDITIONS */
/* Added around the existing brand/actions markup, shown only on wide
   screens so the mobile navbar is untouched. */
.nav-desktop { display: none; }
.nav-desktop-links { display: none; }
.nav-desktop-only { display: none; }

@media (min-width: 1080px) {
  .nav-desktop { display: flex; align-items: center; gap: 0; flex: 1; max-width: 620px; margin: 0 22px; }
  .nav-desktop-links { display: flex; align-items: center; gap: 26px; margin-right: 18px; }
  .nav-desktop-links a {
    color: #CBD5E1; text-decoration: none; font-size: 14.5px; font-weight: 500;
    font-family: var(--hb-font); white-space: nowrap;
  }
  .nav-desktop-links a:hover { color: #fff; }

  /* Active-page underline. Drawn with ::after rather than text-decoration so
     it can animate its width and sit clear of the descenders in "Buy".
     The link keeps position:relative for the pseudo-element to anchor to. */
  .nav-desktop-links a { position: relative; padding-bottom: 4px; transition: color .16s ease; }
  .nav-desktop-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: currentColor; border-radius: 2px;
    transform: scaleX(0); transform-origin: center;
    transition: transform .18s ease;
  }
  .nav-desktop-links a:hover::after { transform: scaleX(0.6); opacity: 0.5; }
  .nav-desktop-links a.is-active { color: #fff; font-weight: 700; }
  .nav-desktop-links a.is-active::after { transform: scaleX(1); opacity: 1; }

  .nav-loc {
    display: flex; align-items: center; gap: 7px; padding: 0 14px 0 16px;
    height: 42px; border-radius: 999px 0 0 999px;
    background: rgba(255,255,255,0.07); color: #fff;
    font-size: 14px; font-weight: 600; font-family: var(--hb-font);
    border: none; cursor: pointer; white-space: nowrap;
  }
  .nav-loc i.fa-location-dot { color: var(--hb-amber); font-size: 13px; }
  .nav-loc i.fa-chevron-down { font-size: 10px; opacity: 0.7; }
  .nav-search-wrap { display: flex; align-items: center; flex: 1; }
  .nav-search-wrap input {
    flex: 1; height: 42px; border: none; outline: none;
    background: rgba(255,255,255,0.07); color: #fff;
    font-size: 14px; font-family: var(--hb-font); padding: 0 14px;
    border-left: 1px solid rgba(255,255,255,0.12);
  }
  .nav-search-wrap input::placeholder { color: #94A3B8; }
  .nav-search-btn {
    width: 50px; height: 42px; border: none; cursor: pointer;
    background: var(--hb-blue); color: #fff; font-size: 15px;
    border-radius: 0 999px 999px 0;
  }
  .nav-search-btn:hover { background: var(--hb-blue-dk); }

  .nav-desktop-only { display: inline-flex; }
  .nav-sell-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #0B1220; color: #fff; border: 1px solid rgba(255,255,255,0.14);
    padding: 10px 18px; border-radius: 10px; cursor: pointer;
    font-family: var(--hb-font); font-size: 14.5px; font-weight: 700;
    margin-right: 6px; white-space: nowrap;
  }
  .nav-sell-btn:hover { background: #16213A; }
}

/* ------------------------------------------------------------- HERO */
#homePage .hb-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FE 45%, #EEF3FD 100%);
  padding: 56px 0 68px;
  overflow: hidden;
}
#homePage .hb-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }

#homePage .hb-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #FEF6E3; border: 1px solid #F6E2B4; color: #8A6212;
  padding: 9px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
#homePage .hb-badge i { color: var(--hb-amber); }

#homePage .hb-hero h1 {
  font-size: clamp(42px, 7.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 800;
  margin: 26px 0 0; color: var(--hb-text);
}
#homePage .hb-hero h1 .hb-accent {
  display: inline-block; color: var(--hb-blue); position: relative;
}
/* Amber rule under "Near You." — drawn as a block so it never wraps oddly */
#homePage .hb-hero h1 .hb-accent::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.02em;
  height: 5px; background: var(--hb-amber); border-radius: 3px;
}
#homePage .hb-lede {
  font-size: 18px; line-height: 1.62; color: var(--hb-muted);
  max-width: 34ch; margin: 26px 0 0;
}

#homePage .hb-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
#homePage .hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; padding: 17px 30px; cursor: pointer;
  font-family: var(--hb-font); font-size: 16px; font-weight: 700;
  border: 1.5px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
#homePage .hb-btn-primary { background: var(--hb-blue); color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,0.28); }
#homePage .hb-btn-primary:hover { background: var(--hb-blue-dk); transform: translateY(-2px); }
#homePage .hb-btn-ghost { background: #fff; color: var(--hb-text); border-color: var(--hb-line); }
#homePage .hb-btn-ghost:hover { border-color: var(--hb-blue); color: var(--hb-blue); transform: translateY(-2px); }
#homePage .hb-btn-amber { background: var(--hb-amber); color: #3A2A05; box-shadow: 0 10px 26px rgba(245,185,66,0.3); }
#homePage .hb-btn-amber:hover { background: var(--hb-amber-dk); transform: translateY(-2px); }
#homePage .hb-btn:focus-visible { outline: 3px solid rgba(37,99,235,0.4); outline-offset: 2px; }

/* Hero search pill */
#homePage .hb-hero-search {
  display: flex; align-items: center; margin-top: 30px;
  background: #fff; border: 1px solid var(--hb-line); border-radius: 999px;
  box-shadow: 0 6px 22px rgba(15,23,42,0.06); max-width: 640px;
  /* No overflow:hidden — it was clipping the search suggestions dropdown,
     which is absolutely positioned below this box. The pill shape is kept
     by rounding the children instead. A raised z-index stops the stats row
     below from painting over the dropdown. */
  position: relative; z-index: 20;
}
#homePage .hb-hero-search > :first-child { border-radius: 999px 0 0 999px; }
#homePage .hb-hero-search > .hb-go { border-radius: 0 999px 999px 0; }
#homePage .hb-hero-loc {
  display: flex; align-items: center; gap: 8px; padding: 0 18px;
  height: 60px; background: none; border: none; cursor: pointer;
  font-family: var(--hb-font); font-size: 15px; font-weight: 600; color: var(--hb-text);
  white-space: nowrap; border-right: 1px solid var(--hb-line);
}
#homePage .hb-hero-loc i.fa-location-dot { color: var(--hb-blue); }
#homePage .hb-hero-loc i.fa-chevron-down { font-size: 10px; color: var(--hb-muted); }
#homePage .hb-hero-search input {
  flex: 1; height: 60px; border: none; outline: none; padding: 0 18px;
  font-size: 15px; font-family: var(--hb-font); color: var(--hb-text); min-width: 0;
}
#homePage .hb-hero-search input::placeholder { color: #94A3B8; }
#homePage .hb-hero-search button.hb-go {
  width: 54px; height: 46px; margin-right: 7px; flex-shrink: 0;
  border: none; border-radius: 999px; background: var(--hb-blue); color: #fff;
  cursor: pointer; font-size: 16px;
}
#homePage .hb-hero-search button.hb-go:hover { background: var(--hb-blue-dk); }

/* Hero stats */
#homePage .hb-stats { display: flex; align-items: center; gap: 30px; margin-top: 36px; flex-wrap: wrap; }
#homePage .hb-stat strong { display: block; font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
#homePage .hb-stat span { font-size: 13.5px; color: var(--hb-muted); }
#homePage .hb-stat.amber strong { color: var(--hb-amber-dk); }
#homePage .hb-stat-div { width: 1px; height: 40px; background: var(--hb-line); }

/* ------------------------------------------------------- HERO MAP */
#homePage .hb-hero-grid > *, #homePage .hb-emi-grid > *, #homePage .hb-sell-grid > * { min-width: 0; }

#homePage .hb-map-card {
  background: #fff; border: 1px solid var(--hb-line); border-radius: 22px;
  box-shadow: 0 26px 60px rgba(15,23,42,0.12); overflow: hidden;
}
#homePage .hb-map-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--hb-line);
}
#homePage .hb-map-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
#homePage .hb-map-title i { color: var(--hb-blue); }
#homePage .hb-live {
  display: inline-flex; align-items: center; gap: 7px;
  background: #ECFDF5; color: #047857; border-radius: 999px;
  padding: 5px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em;
}
#homePage .hb-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--hb-green); animation: hb-pulse 1.8s ease-in-out infinite;
}
@keyframes hb-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

#homePage .hb-map-frame { position: relative; height: 340px; background: var(--hb-panel); }
#homePage .hb-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Shown underneath the iframe; visible if the embed can't load. */
#homePage .hb-map-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 8px;
  text-align: center; color: var(--hb-muted); font-size: 13.5px; padding: 20px; z-index: 0;
}
#homePage .hb-map-fallback i { font-size: 26px; color: #CBD5E1; }
#homePage .hb-map-frame iframe { position: relative; z-index: 1; }
#homePage .hb-map-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-top: 1px solid var(--hb-line); flex-wrap: wrap;
}
#homePage .hb-map-foot small { color: var(--hb-muted); font-size: 12.5px; }
#homePage .hb-map-foot button {
  background: none; border: none; cursor: pointer; color: var(--hb-blue);
  font-weight: 700; font-size: 13.5px; font-family: var(--hb-font);
  display: inline-flex; align-items: center; gap: 7px;
}

/* --------------------------------------------------------- SECTIONS */
#homePage .hb-section { padding: 76px 0; }
#homePage .hb-section.tint { background: var(--hb-panel); }
#homePage .hb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
#homePage .hb-head h2 {
  font-size: clamp(28px, 4.6vw, 40px); font-weight: 800;
  letter-spacing: -0.03em; margin: 0; line-height: 1.12;
}
#homePage .hb-head p { color: var(--hb-muted); font-size: 16px; margin: 10px 0 0; }
#homePage .hb-viewall {
  background: none; border: none; cursor: pointer; color: var(--hb-blue);
  font-family: var(--hb-font); font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
#homePage .hb-head-center { text-align: center; max-width: 640px; margin: 0 auto 46px; }
#homePage .hb-head-center h2 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
#homePage .hb-head-center p { color: var(--hb-muted); font-size: 16.5px; margin: 14px 0 0; line-height: 1.6; }

/* ------------------------------------------------------- CATEGORIES */
#homePage .hb-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
#homePage .hb-cat {
  background: var(--hb-panel); border: 1.5px solid transparent; border-radius: 16px;
  padding: 26px 14px; cursor: pointer; text-align: center;
  font-family: var(--hb-font); transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
#homePage .hb-cat:hover { background: var(--hb-blue-tint); border-color: #BFDBFE; transform: translateY(-3px); }
#homePage .hb-cat-emoji { font-size: 30px; line-height: 1; }
#homePage .hb-cat-name { font-size: 15.5px; font-weight: 700; margin-top: 14px; color: var(--hb-text); }
#homePage .hb-cat-count { font-size: 13px; color: var(--hb-muted); margin-top: 5px; }

/* --------------------------------------------------------- EMI BAND */
#homePage .hb-emi {
  background:
    radial-gradient(900px 420px at 12% 0%, #16305A 0%, transparent 58%),
    var(--hb-navy);
  color: #fff; padding: 84px 0;
}
#homePage .hb-emi-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; }
#homePage .hb-emi-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(245,185,66,0.13); border: 1px solid rgba(245,185,66,0.34);
  color: var(--hb-amber); padding: 9px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
}
#homePage .hb-emi h2 {
  font-size: clamp(34px, 5.6vw, 54px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.05; margin: 26px 0 0;
}
#homePage .hb-emi h2 span { color: var(--hb-amber); display: block; }
#homePage .hb-emi-lede { color: #A9B6CC; font-size: 17px; line-height: 1.6; margin: 20px 0 0; max-width: 40ch; }
#homePage .hb-emi-list { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 15px; }
#homePage .hb-emi-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: #E2E8F0; }
#homePage .hb-emi-list i { color: var(--hb-green); font-size: 16px; }

/* Calculator */
#homePage .hb-calc {
  background: var(--hb-navy-2); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px; padding: 28px 24px;
}
#homePage .hb-calc h3 { font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
#homePage .hb-calc > p { color: #94A3B8; font-size: 14.5px; margin: 7px 0 24px; }
#homePage .hb-field { margin-bottom: 18px; }
#homePage .hb-field label {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: #94A3B8; margin-bottom: 9px;
}
#homePage .hb-input {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.11);
  border-radius: 11px; padding: 0 16px; height: 52px;
}
#homePage .hb-input span { color: #94A3B8; font-size: 16px; }
#homePage .hb-input input, #homePage .hb-input select {
  flex: 1; background: none; border: none; outline: none; color: #fff;
  font-size: 16.5px; font-family: var(--hb-font); font-weight: 600; min-width: 0;
}
#homePage .hb-input select option { background: var(--hb-navy-2); color: #fff; }
#homePage .hb-result {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 15px; padding: 22px 20px; margin-top: 24px;
}
#homePage .hb-result-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: #94A3B8;
}
#homePage .hb-result-value {
  font-size: 42px; font-weight: 800; color: var(--hb-amber);
  letter-spacing: -0.03em; margin: 8px 0 2px; line-height: 1;
}
#homePage .hb-result-sub { color: #94A3B8; font-size: 14px; }
#homePage .hb-breakdown { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.09); padding-top: 16px; }
#homePage .hb-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; padding: 7px 0; color: #CBD5E1; }
#homePage .hb-row.total {
  border-top: 1px solid rgba(255,255,255,0.09); margin-top: 9px; padding-top: 14px;
  font-weight: 800; color: #fff; font-size: 15.5px;
}
#homePage .hb-disclaimer { color: #7C8BA4; font-size: 12px; line-height: 1.55; margin: 16px 0 0; }
#homePage .hb-calc .hb-btn { width: 100%; margin-top: 18px; }

/* ----------------------------------------------------------- TRUST */
#homePage .hb-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
#homePage .hb-trust-card {
  background: var(--hb-panel); border-radius: 18px; padding: 32px 24px; text-align: center;
}
#homePage .hb-trust-ico {
  width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 15px;
  display: grid; place-items: center; font-size: 22px;
}
/* Cards lift like the buttons do. They are not clickable, so the movement is
   smaller and the shadow softer — enough to feel responsive without implying
   an action that isn't there. */
#homePage .hb-trust-card, #homePage .hb-step {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
#homePage .hb-trust-card:hover, #homePage .hb-step:hover {
  transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,0.10); border-color: #BFDBFE;
}
#homePage .hb-trust-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }

/* ===== How Selling Works: the notes row under the four steps =====
   Two columns on desktop, one on mobile. Deliberately a different shape from
   .hb-step above it so the section reads as "steps, then the fine print"
   rather than eight equal cards. */
#homePage .hb-sell-notes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-top: 28px;
}
#homePage .hb-note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; background: #F8FAFC;
  border: 1px solid #E2E8F0; border-radius: 14px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
#homePage .hb-note:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,0.10); border-color: #BFDBFE; }
#homePage .hb-note > i {
  flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: #EFF6FF; color: var(--hb-blue); border-radius: 10px; font-size: 15px;
}
#homePage .hb-note strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
#homePage .hb-note span { display: block; font-size: 14px; line-height: 1.55; color: #64748B; }

@media (max-width: 760px) {
  #homePage .hb-sell-notes { grid-template-columns: 1fr; }
}
#homePage .hb-trust-card p { color: var(--hb-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ------------------------------------------------------ HOW IT WORKS */
#homePage .hb-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
#homePage .hb-step {
  background: #fff; border: 1px solid var(--hb-line); border-radius: 18px; padding: 30px 24px;
}
#homePage .hb-step-n { font-size: 44px; font-weight: 800; color: #BFD5FB; letter-spacing: -0.04em; line-height: 1; }
#homePage .hb-step h3 { font-size: 19px; font-weight: 800; margin: 18px 0 10px; letter-spacing: -0.01em; }
#homePage .hb-step p { color: var(--hb-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* --------------------------------------------------------- SELL BAND */
#homePage .hb-sell {
  background: linear-gradient(140deg, #0B1A33 0%, #10233F 55%, #143059 100%);
  color: #fff; padding: 84px 0;
}
#homePage .hb-sell-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
#homePage .hb-sell h2 {
  font-size: clamp(34px, 5.6vw, 54px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05; margin: 0;
}
#homePage .hb-sell h2 span { color: var(--hb-amber); display: block; }
#homePage .hb-sell p { color: #A9B6CC; font-size: 17px; line-height: 1.6; margin: 22px 0 0; max-width: 40ch; }
#homePage .hb-sell-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
#homePage .hb-link-btn {
  background: none; border: none; cursor: pointer; color: #fff;
  font-family: var(--hb-font); font-size: 15.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 9px;
}
#homePage .hb-link-btn:hover { color: var(--hb-amber); }

/* Non-product side card: what happens after you list */
#homePage .hb-sell-card {
  background: #fff; color: var(--hb-text); border-radius: 20px; overflow: hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,0.34); max-width: 400px; width: 100%;
}
#homePage .hb-sell-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--hb-line);
}
#homePage .hb-sell-card-head strong { display: flex; align-items: center; gap: 10px; font-size: 15px; }
#homePage .hb-sell-card-head i { color: var(--hb-blue); }
#homePage .hb-mini { padding: 22px 20px; display: grid; gap: 18px; }
#homePage .hb-mini-row { display: flex; gap: 14px; align-items: flex-start; }
#homePage .hb-mini-n {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  background: var(--hb-blue-tint); color: var(--hb-blue);
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
#homePage .hb-mini-row strong { display: block; font-size: 14.5px; font-weight: 700; }
#homePage .hb-mini-row span { font-size: 13px; color: var(--hb-muted); }
#homePage .hb-sell-card-foot {
  background: var(--hb-panel); padding: 14px 20px; font-size: 13px;
  color: var(--hb-muted); display: flex; align-items: center; gap: 9px;
}
#homePage .hb-sell-card-foot i { color: var(--hb-green); }

/* ------------------------------------------------------- FINAL CTA */
#homePage .hb-cta { background: var(--hb-blue); color: #fff; padding: 76px 0; text-align: center; }
#homePage .hb-cta h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
#homePage .hb-cta p { font-size: 17.5px; margin: 16px auto 32px; max-width: 30ch; color: #DBEAFE; line-height: 1.55; }
#homePage .hb-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* Same lift as the hero buttons (.hb-btn): transform + shadow on a .16s ease.
   These sit on a blue panel, so the shadow is darker than the hero's blue one
   to stay visible. */
#homePage .hb-cta-white { background: #fff; color: var(--hb-blue); border-radius: 999px; padding: 16px 38px; border: none; cursor: pointer; font-family: var(--hb-font); font-size: 16px; font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
#homePage .hb-cta-white:hover { background: #F1F5F9; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
#homePage .hb-cta-outline { background: none; color: #fff; border: 2px solid rgba(255,255,255,0.6); border-radius: 999px; padding: 15px 38px; cursor: pointer; font-family: var(--hb-font); font-size: 16px; font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
#homePage .hb-cta-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }

/* ----------------------------------------------------------- FOOTER */
/* The footer lives outside #homePage (so the home layout can go full-width),
   which means it would otherwise render on every page. Show it only on the
   home page, driven by the same body.on-home class as the light navbar. */
.site-footer { display: none; }
body.on-home .site-footer,
body.show-footer .site-footer { display: block; }

.site-footer { background: var(--hb-ink); color: #fff; font-family: var(--hb-font); padding: 66px 0 0; }
.site-footer .hb-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.site-footer .sf-grid { display: grid; gap: 40px; padding-bottom: 46px; }
.site-footer .sf-brand { display: flex; align-items: center; gap: 12px; }
.site-footer .sf-brand .brand-icon {
  width: 40px; height: 40px; border-radius: 11px; background: var(--hb-blue);
  display: grid; place-items: center; color: var(--hb-amber); font-size: 17px;
}
.site-footer .sf-brand-text { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.site-footer .sf-brand-text span { color: var(--hb-blue); }
.site-footer .sf-about { color: #94A3B8; font-size: 14.5px; line-height: 1.65; margin: 20px 0 0; max-width: 34ch; }
.site-footer .sf-loc { display: flex; align-items: flex-start; gap: 9px; color: #94A3B8; font-size: 13.5px; margin: 18px 0 0; }
.site-footer .sf-loc i { color: var(--hb-amber); margin-top: 3px; }
.site-footer .sf-social { display: flex; gap: 11px; margin-top: 24px; }
.site-footer .sf-social a {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.07);
  color: #CBD5E1; display: grid; place-items: center; text-decoration: none; font-size: 15px;
}
.site-footer .sf-social a:hover { background: var(--hb-blue); color: #fff; }
.site-footer h4 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase;
  color: #fff; margin: 0 0 20px;
}
.site-footer .sf-col a { display: block; color: #94A3B8; text-decoration: none; font-size: 14.5px; padding: 7px 0; }
.site-footer .sf-col a:hover { color: #fff; }
/* Current page. width:fit-content keeps the underline to the text rather than
   stretching across the whole column, since the links are display:block. */
.site-footer .sf-col a.is-active {
  color: #fff; font-weight: 700;
  border-bottom: 2px solid var(--hb-blue); width: fit-content; padding-bottom: 5px;
}
.site-footer .sf-legal a.is-active { color: #fff; border-bottom: 2px solid var(--hb-blue); padding-bottom: 3px; }
.site-footer .sf-bottom {
  border-top: 1px solid rgba(255,255,255,0.09); padding: 22px 0 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.site-footer .sf-bottom p { color: #64748B; font-size: 13.5px; margin: 0; }
.site-footer .sf-legal { display: flex; gap: 26px; }
.site-footer .sf-legal a { color: #64748B; text-decoration: none; font-size: 13.5px; }
.site-footer .sf-legal a:hover { color: #fff; }

/* ----------------------------------------------------------- REVEAL */
#homePage .hb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
#homePage .hb-reveal.hb-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  #homePage .hb-reveal { opacity: 1; transform: none; transition: none; }
  #homePage .hb-live::before { animation: none; }
  #homePage .hb-btn:hover, #homePage .hb-cat:hover,
  #homePage .hb-cta-white:hover, #homePage .hb-cta-outline:hover,
  #homePage .hb-trust-card:hover, #homePage .hb-step:hover,
  #homePage .hb-note:hover { transform: none; }
}

/* ------------------------------------------------------ BREAKPOINTS */
@media (min-width: 700px) {
  #homePage .hb-cats { grid-template-columns: repeat(4, 1fr); }
  #homePage .hb-trust-grid, #homePage .hb-steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer .sf-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1080px) {
  #homePage .hb-hero { padding: 76px 0 92px; }
  #homePage .hb-hero-grid { grid-template-columns: minmax(0,1.02fr) minmax(0,0.98fr); gap: 56px; }
  #homePage .hb-cats { grid-template-columns: repeat(8, 1fr); }
  #homePage .hb-trust-grid, #homePage .hb-steps { grid-template-columns: repeat(4, 1fr); }
  #homePage .hb-emi-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; }
  #homePage .hb-emi-list { grid-template-columns: 1fr; }
  #homePage .hb-sell-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); }
  #homePage .hb-sell-card { margin-left: auto; }
  #homePage .hb-calc { padding: 32px 30px; }
  #homePage .hb-map-frame { height: 400px; }
}


/* ------------------------------------------- LIGHT NAVBAR (home only) */
/* The home page uses a white navbar like the rest of its light hero.
   Scoped to body.on-home so every other page keeps the dark navbar. */
body.on-home .navbar { background: #fff; border-bottom: 1px solid var(--hb-line); box-shadow: 0 1px 3px rgba(15,23,42,0.05); }
body.on-home .brand-text { color: var(--hb-text); }
body.on-home .brand-accent { color: var(--hb-blue); }
body.on-home .nav-icon-btn { background: var(--hb-panel); color: var(--hb-text); }
body.on-home .nav-icon-btn:hover { background: #E2E8F0; }

body.on-home .nav-desktop-links a { color: #475569; }
body.on-home .nav-desktop-links a:hover { color: var(--hb-blue); }
/* On the light home navbar the active colour has to be the blue, not white. */
body.on-home .nav-desktop-links a.is-active { color: var(--hb-blue); }
body.on-home .nav-loc { background: var(--hb-panel); color: var(--hb-text); }
body.on-home .nav-loc i.fa-chevron-down { color: var(--hb-muted); }
body.on-home .nav-search-wrap input {
  background: var(--hb-panel); color: var(--hb-text);
  border-left: 1px solid var(--hb-line);
}
body.on-home .nav-search-wrap input::placeholder { color: #94A3B8; }
body.on-home .nav-sell-btn { background: #0B1220; color: #fff; border-color: #0B1220; }
body.on-home .nav-sell-btn:hover { background: #1E293B; }

/* ------------------------------------------------- MAP: pins & popups */
#homePage .hb-map-canvas { position: absolute; inset: 0; z-index: 1; }
#homePage .hb-map-frame { position: relative; }

/* "N listings around X" chip, like the sample's live indicator */
#homePage .hb-map-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 500;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.96); border: 1px solid var(--hb-line);
  border-radius: 999px; padding: 8px 15px;
  font-size: 12.5px; font-weight: 700; color: var(--hb-text);
  box-shadow: 0 4px 16px rgba(15,23,42,0.14);
}
#homePage .hb-map-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--hb-green);
  animation: hb-pulse 1.8s ease-in-out infinite;
}

/* Category-emoji pin */
.db-pin-wrap { background: none; border: none; }
.db-pin {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,0.28);
  display: grid; place-items: center; font-size: 19px;
  transition: transform .15s ease;
}
.db-pin::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(37,99,235,0.28);
}
.db-pin-wrap:hover .db-pin { transform: scale(1.1); }

/* Listing popup */
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: auto !important; }
.db-pop { padding: 14px 15px; font-family: var(--hb-font); min-width: 190px; }
.db-pop-title { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--hb-text); }
.db-pop-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.db-pop-price { font-size: 17px; font-weight: 800; color: var(--hb-text); }
.db-pop-dist { font-size: 11.5px; color: var(--hb-muted); white-space: nowrap; }
.db-pop-emi {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 9px;
  background: #FEF6E3; color: #92400E; border-radius: 7px;
  padding: 5px 9px; font-size: 11.5px; font-weight: 700;
}
.db-pop-btn {
  width: 100%; margin-top: 12px; border: none; cursor: pointer;
  background: var(--hb-blue); color: #fff; border-radius: 9px;
  padding: 9px 12px; font-family: var(--hb-font); font-size: 13px; font-weight: 700;
}
.db-pop-btn:hover { background: var(--hb-blue-dk); }

/* --------------------------------------------------- LOCATION PICKER */
.loc-box { max-width: 440px; }
.loc-detect {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-bottom: 14px; padding: 12px;
  background: var(--hb-blue-tint); border: 1px solid #BFDBFE; border-radius: 11px;
  color: var(--hb-blue); font-family: var(--hb-font); font-size: 14px; font-weight: 700; cursor: pointer;
}
.loc-detect:hover { background: #E0EBFD; }
.loc-list { max-height: 330px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.loc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 14px; cursor: pointer; text-align: left;
  background: var(--hb-panel); border: 1.5px solid transparent; border-radius: 11px;
  font-family: var(--hb-font);
}
.loc-item:hover { border-color: #BFDBFE; background: var(--hb-blue-tint); }
.loc-item.is-active { border-color: var(--hb-blue); background: var(--hb-blue-tint); }
.loc-item strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--hb-text); }
.loc-item small { display: block; font-size: 12px; color: var(--hb-muted); margin-top: 2px; }
.loc-item i { color: var(--hb-blue); }
.loc-pin { font-size: 11.5px; color: var(--hb-muted); font-family: ui-monospace, monospace; }
.loc-empty { padding: 22px 14px; text-align: center; color: var(--hb-muted); font-size: 13.5px; line-height: 1.5; }

/* Header shown when a typed pincode resolves to a district */
.loc-match-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hb-blue); padding: 4px 2px 10px;
}

/* Sub-heading in the location picker, below an exact pincode match */
.loc-sub-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--hb-muted); padding: 12px 2px 6px;
}

/* Spinner shown while the location search request is in flight */
.loc-loading {
  padding: 22px 14px; text-align: center;
  color: var(--hb-muted); font-size: 13px;
}

/* The 80px bottom padding on .page exists to clear the old fixed bottom
   nav. On pages that now end in the footer it just leaves a gap, so the
   footer supplies its own spacing instead. */
body.show-footer .page:not(.hidden) { padding-bottom: 0; }
