/**
 * ==============================================================================
 * BrandNewHomes.in - Homepage V2 Design System & Component Stylesheet
 * File: styles/homepage-v2.css
 * ==============================================================================
 * Implements Phase 1 design system components:
 * 1. Global Reset & Layout
 * 2. Desktop Header & Navigation
 * 3. Mobile Header & Drawer Navigation
 * 4. Mobile App-Style Bottom Navigation Dock & Action Sheet
 * 5. Hero Search Module (Tabs, Location, Filters, Quick Chips)
 * 6. Canonical Property Cards & Grid
 * 7. New Projects Showcase Strip
 * 8. Property Type Discovery
 * 9. Popular Locations Hub
 * 10. Seller & Builder CTA
 * 11. Contextual Home Loans Banner
 * 12. Trust & Moderation Statement
 * 13. Marketplace Footer
 * 14. Floating Support Button
 */

:root {
  --bnh-navy: #061224;
  --bnh-navy-deep: #0A2540;
  --bnh-blue: #0052D4;
  --bnh-gradient: linear-gradient(135deg, #0052D4 0%, #1463FF 50%, #42C6FF 100%);
  --bnh-gradient-hero: linear-gradient(135deg, #1E40AF 0%, #2563EB 55%, #0EA5E9 100%);
  --bnh-ice: #EFF6FF;
  --bnh-gold: #F5A623;

  /* Page Canvas & Surfaces (Phase 21.1 Sunlit Kerala Modern) */
  --bg-canvas: #F8FAFC;
  --bg-canvas-gradient: radial-gradient(120% 60% at 50% 0%, #EFF6FF 0%, #F8FAFC 100%);
  --bg-surface: #FFFFFF;
  --border-surface: 1px solid #E2E8F0;
  --radius-surface: 16px;
  --shadow-surface-hover: 0 20px 25px -5px rgba(37, 99, 235, 0.10), 0 8px 10px -6px rgba(37, 99, 235, 0.05);

  /* Vibrant Brand & CTA Gradients */
  --gradient-brand-hero: linear-gradient(135deg, #1E40AF 0%, #2563EB 55%, #0EA5E9 100%);
  --gradient-cta-primary: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
  --shadow-cta-primary: 0 8px 20px -4px rgba(245, 158, 11, 0.45);
  --color-cta-primary: #FFFFFF;

  /* Trust & Badges */
  --gradient-trust-emerald: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --bg-trust-emerald: #ECFDF5;
  --color-trust-emerald: #047857;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

svg:not([width]):not([class*="hero"]):not([class*="map"]) {
  width: 1.25rem;
  height: 1.25rem;
  max-width: 100%;
  flex-shrink: 0;
}

body.bnh-v2-body {
  margin: 0;
  padding: 0;
  font-family: var(--bnh-font-primary);
  color: var(--bnh-text-primary);
  background-color: var(--bg-canvas, #F8FAFC);
  background-image: var(--bg-canvas-gradient, radial-gradient(120% 60% at 50% 0%, #EFF6FF 0%, #F8FAFC 100%));
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: var(--bnh-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bnh-container {
  width: 100%;
  max-width: var(--bnh-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bnh-gutter);
  padding-right: var(--bnh-gutter);
}

.bnh-section {
  padding-top: var(--bnh-space-12);
  padding-bottom: var(--bnh-space-12);
}

.bnh-section-header {
  margin-bottom: var(--bnh-space-6);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--bnh-space-3);
}

.bnh-section-title-wrap {
  max-width: 680px;
}

.bnh-section-eyebrow {
  display: inline-block;
  font-size: var(--bnh-text-caption);
  font-weight: var(--bnh-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bnh-secondary);
  margin-bottom: var(--bnh-space-1);
}

.bnh-section-title {
  margin: 0;
  font-size: var(--bnh-text-h1);
  font-weight: var(--bnh-weight-extrabold);
  color: var(--bnh-primary);
  letter-spacing: -0.02em;
  line-height: var(--bnh-leading-snug);
}

.bnh-section-subtitle {
  margin: var(--bnh-space-2) 0 0;
  font-size: var(--bnh-text-body);
  color: var(--bnh-text-secondary);
}

.bnh-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--bnh-space-2);
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-semibold);
  color: var(--bnh-secondary);
  text-decoration: none;
  transition: color var(--bnh-duration-fast), transform var(--bnh-duration-fast);
}

.bnh-link-arrow:hover {
  color: var(--bnh-primary);
  transform: translateX(3px);
}

/* ============================================================================
   2. DESKTOP HEADER & NAVIGATION
   ============================================================================ */
.bnh-header-v2,
.site-header.bnh-header-v2,
.studio .site-header.bnh-header-v2 {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto !important;
  padding: 0 !important;
  display: block !important;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bnh-border-subtle);
  transition: box-shadow var(--bnh-duration-normal);
}

.bnh-header-v2.scrolled {
  box-shadow: var(--bnh-shadow-subtle);
}

.bnh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--bnh-space-4);
}

/* Brand Logo */
.bnh-brand {
  display: flex;
  align-items: center;
  gap: var(--bnh-space-3);
  text-decoration: none;
  min-height: var(--bnh-touch-min);
}

.bnh-brand-logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.bnh-brand-text {
  display: flex;
  flex-direction: column;
}

.bnh-brand-name {
  font-size: 1.25rem;
  font-weight: var(--bnh-weight-extrabold);
  color: var(--bnh-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bnh-brand-name span {
  color: var(--bnh-secondary);
}

.bnh-brand-tagline {
  font-size: var(--bnh-text-micro);
  font-weight: var(--bnh-weight-medium);
  color: var(--bnh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Center Desktop Nav */
.bnh-nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--bnh-space-1);
}

.bnh-nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--bnh-space-2) var(--bnh-space-3);
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-semibold);
  color: var(--bnh-text-secondary);
  text-decoration: none;
  border-radius: var(--bnh-radius-sm);
  transition: color var(--bnh-duration-fast), background-color var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
}

.bnh-nav-link:hover {
  color: var(--bnh-primary);
  background-color: var(--bnh-surface-secondary);
}

.bnh-nav-link.active {
  color: var(--bnh-secondary);
  background-color: var(--bnh-secondary-subtle);
}

/* Right Header Actions */
.bnh-header-actions {
  display: flex;
  align-items: center;
  gap: var(--bnh-space-3);
}

.bnh-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--bnh-space-1);
  padding: var(--bnh-space-2) var(--bnh-space-3);
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-semibold);
  color: var(--bnh-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--bnh-radius-sm);
  cursor: pointer;
  text-decoration: none;
  min-height: var(--bnh-touch-min);
  transition: color var(--bnh-duration-fast), background-color var(--bnh-duration-fast);
}

.bnh-btn-ghost:hover {
  color: var(--bnh-primary);
  background-color: var(--bnh-surface-secondary);
}

.bnh-btn-post {
  display: inline-flex;
  align-items: center;
  gap: var(--bnh-space-2);
  padding: 0 22px;
  height: 44px;
  background: var(--gradient-cta-primary, linear-gradient(135deg, #FF512F 0%, #F09819 100%)) !important;
  color: var(--color-cta-primary, #FFFFFF) !important;
  font-size: var(--bnh-text-body-sm);
  font-weight: 750;
  text-decoration: none;
  border: none;
  border-radius: 9999px !important;
  box-shadow: var(--shadow-cta-primary, 0 8px 20px -4px rgba(245, 158, 11, 0.45)) !important;
  cursor: pointer;
  transition: transform var(--bnh-duration-fast), box-shadow var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
  white-space: nowrap;
}

.bnh-btn-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -2px rgba(245, 158, 11, 0.55) !important;
}

.bnh-btn-post:active {
  transform: translateY(0);
}

.bnh-btn-post span.plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  line-height: 1;
}

/* OLX Signature Royal Blue Gradient Button */
.bnh-btn-post.bnh-btn-post-olx {
  background: var(--bnh-gradient);
  color: #FFFFFF;
  border-radius: 9999px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(20, 99, 255, 0.3);
  border: none;
  padding: 0 20px;
}

.bnh-btn-post.bnh-btn-post-olx:hover {
  background: linear-gradient(135deg, #093288 0%, #1052D4 55%, #30B4FF 100%);
  box-shadow: 0 6px 18px rgba(20, 99, 255, 0.45);
  transform: translateY(-1px);
}

/* OLX Kerala Location Selector Pill */
.bnh-location-selector-wrap {
  position: relative;
  display: inline-block;
  margin-left: var(--bnh-space-2);
}

.bnh-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 40px;
  background: #F0F5FA;
  border: 1.5px solid #D8E4F2;
  border-radius: var(--bnh-radius-pill);
  color: var(--bnh-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
}

.bnh-location-pill:hover,
.bnh-location-pill.is-open {
  background: #FFFFFF;
  border-color: var(--bnh-blue);
  box-shadow: 0 4px 12px rgba(20, 99, 255, 0.12);
}

.bnh-loc-chevron {
  font-size: 11px;
  color: var(--bnh-blue);
  transition: transform 0.2s ease;
}

.bnh-location-pill.is-open .bnh-loc-chevron {
  transform: rotate(180deg);
}

.bnh-location-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 230px;
  background: #FFFFFF;
  border: 1px solid #D8E4F2;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.14);
  padding: 8px;
  z-index: 1050;
  display: none;
  flex-direction: column;
  gap: 3px;
}

.bnh-location-dropdown.is-open {
  display: flex;
}

.bnh-location-dropdown[hidden] {
  display: none !important;
}

.bnh-loc-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bnh-navy);
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.bnh-loc-option:hover,
.bnh-loc-option.active {
  background: #EEF6FF;
  color: var(--bnh-blue);
}

/* OLX Center Instant Search Input */
.bnh-top-search-form {
  flex: 1 1 320px;
  max-width: 420px;
  margin: 0 var(--bnh-space-3);
}

.bnh-top-search-box {
  display: flex;
  align-items: center;
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #D8E4F2;
  border-radius: var(--bnh-radius-pill);
  height: 42px;
  padding: 0 10px 0 14px;
  transition: all var(--bnh-duration-fast);
}

.bnh-top-search-box:focus-within {
  border-color: var(--bnh-blue);
  box-shadow: 0 0 0 3px rgba(20, 99, 255, 0.15);
}

.bnh-top-search-icon {
  stroke: var(--bnh-blue);
  flex-shrink: 0;
  margin-right: 8px;
}

.bnh-top-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--bnh-navy);
  padding: 0;
}

.bnh-top-search-input::placeholder {
  color: #64748B;
}

.bnh-top-search-clear {
  border: none;
  background: transparent;
  color: #94A3B8;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  margin-right: 4px;
}

.bnh-top-search-submit {
  border: none;
  background: var(--bnh-blue);
  color: #FFFFFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.bnh-top-search-submit:hover {
  background: #0B3EA8;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .bnh-top-search-form {
    display: none;
  }
}

/* Horizontal Scrollable Category & Quick-Filter Strip */
.bnh-category-strip-ribbon {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 72px;
  z-index: 990;
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.02);
}

.bnh-category-strip-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bnh-category-strip-inner::-webkit-scrollbar {
  display: none;
}

.bnh-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  min-height: var(--bnh-touch-min, 44px);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--bnh-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #0F2942;
  text-decoration: none;
  transition: all var(--bnh-duration-fast);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 41, 66, 0.04);
}

.bnh-strip-pill:hover,
.bnh-strip-pill.active {
  background: #EFF6FF;
  border-color: #1E40AF;
  color: #1E40AF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.12);
}

.bnh-strip-pill .bnh-squircle-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
  font-size: 13px;
  margin-right: 2px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1E40AF;
}

.bnh-strip-pill .bnh-squircle-icon svg {
  width: 16px;
  height: 16px;
}

/* Hamburger Toggle Button (Mobile) */
.bnh-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--bnh-border-subtle);
  border-radius: var(--bnh-radius-sm);
  color: var(--bnh-primary);
  font-size: 1.25rem;
  cursor: pointer;
  min-height: var(--bnh-touch-min);
  min-width: var(--bnh-touch-min);
}

/* ============================================================================
   3. MOBILE DRAWER NAVIGATION
   ============================================================================ */
.bnh-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 37, 64, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--bnh-duration-normal), visibility var(--bnh-duration-normal);
}

.bnh-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.bnh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background-color: var(--bnh-white);
  z-index: 1210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--bnh-duration-normal) var(--bnh-ease-standard), visibility var(--bnh-duration-normal);
  box-shadow: -8px 0 24px rgba(10, 37, 64, 0.15);
  overflow-y: auto;
}

.bnh-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.bnh-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--bnh-space-4) var(--bnh-space-5);
  border-bottom: 1px solid var(--bnh-border-subtle);
}

.bnh-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--bnh-text-secondary);
  cursor: pointer;
  border-radius: var(--bnh-radius-sm);
}

.bnh-drawer-close:hover {
  background-color: var(--bnh-surface-secondary);
  color: var(--bnh-primary);
}

.bnh-drawer-content {
  padding: var(--bnh-space-4) var(--bnh-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--bnh-space-1);
}

.bnh-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--bnh-space-3);
  padding: var(--bnh-space-3) var(--bnh-space-3);
  font-size: var(--bnh-text-body);
  font-weight: var(--bnh-weight-semibold);
  color: var(--bnh-text-primary);
  text-decoration: none;
  border-radius: var(--bnh-radius-md);
  min-height: var(--bnh-touch-min);
  transition: background-color var(--bnh-duration-fast);
}

.bnh-drawer-link:hover, .bnh-drawer-link:active {
  background-color: var(--bnh-surface-secondary);
  color: var(--bnh-secondary);
}

.bnh-drawer-divider {
  height: 1px;
  background-color: var(--bnh-border-subtle);
  margin: var(--bnh-space-3) 0;
}

.bnh-drawer-cta {
  margin-top: var(--bnh-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--bnh-space-2);
}

/* ============================================================================
   4. MOBILE BOTTOM NAVIGATION DOCK & ACTION SHEET
   ============================================================================ */
.bnh-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--bnh-border-subtle);
  box-shadow: var(--bnh-shadow-dock);
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  padding-top: 6px;
}

.bnh-dock-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 var(--bnh-space-2);
}

.bnh-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--bnh-text-muted);
  font-size: var(--bnh-text-micro);
  font-weight: var(--bnh-weight-medium);
  padding: 4px 8px;
  min-height: var(--bnh-touch-min);
  min-width: 54px;
  border-radius: var(--bnh-radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--bnh-duration-fast);
}

.bnh-dock-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bnh-dock-item:hover, .bnh-dock-item.active {
  color: var(--bnh-secondary);
}

/* Highlighted Central Post Button */
.bnh-dock-item.bnh-dock-post {
  position: relative;
  top: -8px;
  color: var(--bnh-white);
}

.bnh-dock-post-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bnh-primary) 0%, var(--bnh-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 82, 212, 0.35);
  margin-bottom: 2px;
  transition: transform var(--bnh-duration-fast);
}

.bnh-dock-item.bnh-dock-post:active .bnh-dock-post-circle {
  transform: scale(0.92);
}

.bnh-dock-post-circle svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  margin-bottom: 0;
}

.bnh-dock-item.bnh-dock-post span {
  color: var(--bnh-primary);
  font-weight: var(--bnh-weight-bold);
}

/* Post Action Sheet Modal */
.bnh-sheet-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 37, 64, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--bnh-duration-normal), visibility var(--bnh-duration-normal);
}

.bnh-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.bnh-post-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1310;
  background-color: var(--bnh-white);
  border-top-left-radius: var(--bnh-radius-xl);
  border-top-right-radius: var(--bnh-radius-xl);
  box-shadow: var(--bnh-shadow-floating);
  padding: var(--bnh-space-6) var(--bnh-space-5) calc(var(--bnh-space-6) + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--bnh-duration-normal) var(--bnh-ease-standard), visibility var(--bnh-duration-normal);
  max-width: 540px;
  margin: 0 auto;
}

.bnh-post-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.bnh-sheet-handle {
  width: 40px;
  height: 4px;
  background-color: var(--bnh-border-default);
  border-radius: 2px;
  margin: 0 auto var(--bnh-space-4);
}

.bnh-sheet-title {
  margin: 0 0 var(--bnh-space-1);
  font-size: var(--bnh-text-h2);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-primary);
  text-align: center;
}

.bnh-sheet-sub {
  margin: 0 0 var(--bnh-space-5);
  font-size: var(--bnh-text-body-sm);
  color: var(--bnh-text-muted);
  text-align: center;
}

.bnh-sheet-options {
  display: flex;
  flex-direction: column;
  gap: var(--bnh-space-3);
}

.bnh-sheet-option {
  display: flex;
  align-items: center;
  gap: var(--bnh-space-4);
  padding: var(--bnh-space-4);
  border: 1px solid var(--bnh-border-subtle);
  border-radius: var(--bnh-radius-lg);
  background-color: var(--bnh-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--bnh-duration-fast), transform var(--bnh-duration-fast), box-shadow var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
}

.bnh-sheet-option:hover, .bnh-sheet-option:active {
  border-color: var(--bnh-secondary);
  background-color: var(--bnh-white);
  transform: translateY(-2px);
  box-shadow: var(--bnh-shadow-card);
}

.bnh-sheet-option-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--bnh-radius-md);
  background-color: var(--bnh-secondary-subtle);
  color: var(--bnh-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bnh-sheet-option-text strong {
  display: block;
  font-size: var(--bnh-text-body);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-primary);
}

.bnh-sheet-option-text span {
  display: block;
  font-size: var(--bnh-text-caption);
  color: var(--bnh-text-secondary);
  margin-top: 2px;
}

/* ============================================================================
   5. HERO SEARCH SECTION
   ============================================================================ */
.bnh-hero-section {
  position: relative;
  background: linear-gradient(135deg, #0045B5 0%, #0052D4 45%, #1E70F5 80%, #38BDF8 100%);
  color: #FFFFFF;
  padding-top: var(--bnh-space-12);
  padding-bottom: var(--bnh-space-12);
  overflow: hidden;
}

.bnh-hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto var(--bnh-space-8);
}

.bnh-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--bnh-space-2);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--bnh-radius-pill);
  font-size: var(--bnh-text-caption);
  font-weight: var(--bnh-weight-semibold);
  color: #60EFFF;
  box-shadow: var(--bnh-shadow-subtle);
  margin-bottom: var(--bnh-space-3);
}

.bnh-hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #60EFFF;
  box-shadow: 0 0 8px #60EFFF;
}

.bnh-hero-title {
  margin: 0 0 var(--bnh-space-3);
  font-size: var(--bnh-text-display-xl);
  font-weight: var(--bnh-weight-extrabold);
  color: #FFFFFF;
  line-height: var(--bnh-leading-tight);
  letter-spacing: -0.03em;
}

.bnh-hero-subtitle {
  margin: 0;
  font-size: var(--bnh-text-body-lg);
  color: rgba(255, 255, 255, 0.92);
  line-height: var(--bnh-leading-relaxed);
}

/* Unified Search Container Card */
.bnh-search-card {
  max-width: 960px;
  margin: 0 auto;
  background-color: var(--bnh-white);
  border-radius: var(--bnh-radius-xl);
  box-shadow: var(--bnh-shadow-floating);
  border: 1px solid var(--bnh-border-subtle);
  padding: var(--bnh-space-5);
}

/* Mode Tabs */
.bnh-search-tabs {
  display: inline-flex;
  align-items: center;
  background-color: var(--bnh-surface-secondary);
  padding: 4px;
  border-radius: var(--bnh-radius-pill);
  margin-bottom: var(--bnh-space-4);
  gap: 2px;
}

.bnh-tab-btn {
  padding: 8px 20px;
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--bnh-radius-pill);
  cursor: pointer;
  transition: all var(--bnh-duration-fast);
  min-height: 38px;
}

.bnh-tab-btn:hover {
  color: var(--bnh-primary);
}

.bnh-tab-btn.active {
  background-color: var(--bnh-white);
  color: var(--bnh-primary);
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.08);
}

/* Desktop Search Form Row */
.bnh-search-form-row {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 1.3fr auto;
  gap: var(--bnh-space-3);
  align-items: center;
}

.bnh-search-field {
  display: flex;
  align-items: center;
  gap: var(--bnh-space-2);
  padding: 0 var(--bnh-space-3);
  height: 52px;
  background-color: var(--bnh-surface);
  border: 1px solid var(--bnh-border-default);
  border-radius: var(--bnh-radius-md);
  transition: border-color var(--bnh-duration-fast), box-shadow var(--bnh-duration-fast);
}

.bnh-search-field:focus-within {
  border-color: var(--bnh-secondary);
  box-shadow: var(--bnh-shadow-glow);
  background-color: var(--bnh-white);
}

.bnh-search-field-icon {
  color: var(--bnh-text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.bnh-search-field input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--bnh-text-body-sm);
  color: var(--bnh-text-primary);
  outline: none;
}

.bnh-search-field input::placeholder {
  color: var(--bnh-text-subtle);
}

.bnh-search-field select {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--bnh-text-body-sm);
  color: var(--bnh-text-primary);
  outline: none;
  cursor: pointer;
}

.bnh-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bnh-space-2);
  height: 52px;
  padding: 0 32px;
  background: linear-gradient(135deg, #0052D4 0%, #1463FF 50%, #42C6FF 100%) !important;
  color: #FFFFFF !important;
  border: none;
  border-radius: 9999px !important;
  font-size: var(--bnh-text-body);
  font-weight: 800;
  cursor: pointer;
  transition: all var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
  box-shadow: 0 6px 20px rgba(0, 82, 212, 0.35) !important;
  white-space: nowrap;
}

.bnh-search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 82, 212, 0.5) !important;
}

.bnh-search-submit:active {
  transform: translateY(0);
}

/* Quick Filter Chips */
.bnh-quick-chips {
  margin-top: var(--bnh-space-4);
  padding-top: var(--bnh-space-3);
  border-top: 1px solid var(--bnh-border-subtle);
  display: flex;
  align-items: center;
  gap: var(--bnh-space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bnh-quick-chips::-webkit-scrollbar {
  display: none;
}

.bnh-chips-label {
  font-size: var(--bnh-text-caption);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.bnh-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background-color: var(--bnh-surface-secondary);
  border: 1px solid transparent;
  border-radius: var(--bnh-radius-pill);
  font-size: var(--bnh-text-caption);
  font-weight: var(--bnh-weight-medium);
  color: var(--bnh-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--bnh-duration-fast);
  min-height: 32px;
}

.bnh-chip:hover {
  border-color: var(--bnh-border-default);
  color: var(--bnh-primary);
  background-color: var(--bnh-surface);
}

/* Locality Chips with Inventory Counts */
.bnh-locality-chips {
  margin-top: var(--bnh-space-3);
  padding-top: var(--bnh-space-3);
  border-top: 1px solid var(--bnh-border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bnh-locality-chips::-webkit-scrollbar {
  display: none;
}

.bnh-locality-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--bnh-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #0A2540;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--bnh-duration-fast);
  cursor: pointer;
}

.bnh-locality-chip:hover {
  background-color: #0052D4;
  color: #FFFFFF;
  border-color: #0052D4;
  transform: translateY(-1px);
}

.bnh-locality-chip:hover .bnh-chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.bnh-chip-count {
  font-size: 11px;
  font-weight: 700;
  background: #E2E8F0;
  color: #475569;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1;
}

/* Recently Viewed Section */
.bnh-recent-section {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 40px 0;
}


/* ============================================================================
   6. CANONICAL PROPERTY CARDS & GRID
   ============================================================================ */
.bnh-property-grid,
#listingGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .bnh-property-grid,
  #listingGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .bnh-property-grid,
  #listingGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.bnh-property-card,
.home-card {
  background-color: var(--bg-surface, var(--bnh-white));
  border: var(--border-surface, 1px solid #E2E8F0);
  border-radius: var(--radius-surface, 16px);
  overflow: hidden;
  box-shadow: var(--bnh-shadow-subtle);
  transition: transform var(--bnh-duration-fast), box-shadow var(--bnh-duration-fast), border-color var(--bnh-duration-fast);
  display: flex;
  flex-direction: column;
}

.bnh-property-card:hover,
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-surface-hover, 0 20px 25px -5px rgba(37, 99, 235, 0.10), 0 8px 10px -6px rgba(37, 99, 235, 0.05));
  border-color: #93C5FD;
}

/* Image Container (4:3 Aspect-Ratio) */
.bnh-card-media,
.home-card .card-carousel-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--bnh-surface-secondary);
  overflow: hidden;
}

.bnh-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bnh-duration-normal) var(--bnh-ease-standard);
}

.bnh-property-card:hover .bnh-card-image {
  transform: scale(1.04);
}

.bnh-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--bnh-radius-pill);
  font-size: var(--bnh-text-caption);
  font-weight: var(--bnh-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(10, 37, 64, 0.85);
  color: var(--bnh-white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bnh-card-badge.badge-sale {
  background: rgba(0, 82, 212, 0.9);
}

.bnh-card-badge.badge-rent {
  background: rgba(16, 185, 129, 0.9);
}

.bnh-card-badge.badge-new {
  background: rgba(229, 169, 60, 0.95);
  color: #0A2540;
}

.bnh-card-save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--bnh-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all var(--bnh-duration-fast);
}

.bnh-card-save-btn:hover {
  background: var(--bnh-white);
  color: var(--bnh-danger);
  transform: scale(1.1);
}

.bnh-card-save-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.bnh-card-save-btn.is-saved svg {
  fill: var(--bnh-danger);
  stroke: var(--bnh-danger);
}

/* Card Body */
.bnh-card-body {
  padding: var(--bnh-space-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bnh-card-price {
  font-size: 1.375rem;
  font-weight: var(--bnh-weight-extrabold);
  color: var(--bnh-primary);
  margin-bottom: var(--bnh-space-1);
  letter-spacing: -0.02em;
}

.bnh-card-title {
  font-size: var(--bnh-text-body);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-primary);
  margin: 0 0 var(--bnh-space-1);
  line-height: var(--bnh-leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bnh-card-locality {
  font-size: var(--bnh-text-body-sm);
  color: var(--bnh-text-secondary);
  margin-bottom: var(--bnh-space-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.bnh-card-locality svg {
  width: 14px;
  height: 14px;
  stroke: var(--bnh-text-muted);
  flex-shrink: 0;
}

/* 3-Column Key Specs Micro-Grid */
.bnh-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bnh-space-2);
  padding: var(--bnh-space-2) 0;
  border-top: 1px solid var(--bnh-border-subtle);
  border-bottom: 1px solid var(--bnh-border-subtle);
  margin-bottom: var(--bnh-space-4);
}

.bnh-spec-item {
  display: flex;
  flex-direction: column;
}

.bnh-spec-label {
  font-size: var(--bnh-text-micro);
  font-weight: var(--bnh-weight-medium);
  color: var(--bnh-text-muted);
  text-transform: uppercase;
}

.bnh-spec-val {
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-text-primary);
}

/* Card CTA Action */
.bnh-card-action {
  margin-top: auto;
  display: flex;
  gap: var(--bnh-space-2);
}

.bnh-card-btn-view {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--bnh-space-2) var(--bnh-space-3);
  background-color: var(--bnh-surface-secondary);
  color: var(--bnh-primary);
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-bold);
  text-decoration: none;
  border-radius: var(--bnh-radius-md);
  min-height: var(--bnh-touch-min);
  transition: all var(--bnh-duration-fast);
}

.bnh-card-btn-view:hover {
  background-color: var(--bnh-secondary);
  color: var(--bnh-white);
}

/* ============================================================================
   7. NEW PROJECTS SHOWCASE STRIP
   ============================================================================ */
.bnh-projects-section {
  background-color: #0A2540;
  color: var(--bnh-white);
  padding: var(--bnh-space-12) 0;
}

.bnh-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--bnh-space-6);
  flex-wrap: wrap;
  gap: var(--bnh-space-3);
}

.bnh-developer-spotlight-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: #F8C360;
  font-size: var(--bnh-text-micro);
  font-weight: var(--bnh-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--bnh-radius-pill);
  margin-bottom: var(--bnh-space-2);
}

.bnh-projects-title {
  margin: 0;
  font-size: var(--bnh-text-h1);
  font-weight: var(--bnh-weight-extrabold);
  color: var(--bnh-white);
}

.bnh-partner-link {
  display: inline-flex;
  align-items: center;
  gap: var(--bnh-space-2);
  color: #60EFFF;
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-semibold);
  text-decoration: none;
  transition: color var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
}

.bnh-partner-link:hover {
  color: var(--bnh-white);
}

.bnh-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--bnh-space-6);
}

.bnh-project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--bnh-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--bnh-duration-fast), border-color var(--bnh-duration-fast), box-shadow var(--bnh-duration-fast);
}

.bnh-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 239, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.bnh-project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bnh-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bnh-duration-normal);
}

.bnh-project-card:hover .bnh-project-media img {
  transform: scale(1.05);
}

.bnh-project-sponsored-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: var(--bnh-radius-pill);
  font-size: 10px;
  font-weight: var(--bnh-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E2E8F0;
}

.bnh-project-body {
  padding: var(--bnh-space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bnh-project-builder {
  font-size: var(--bnh-text-caption);
  font-weight: var(--bnh-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F8C360;
  margin-bottom: 2px;
}

.bnh-project-name {
  margin: 0 0 var(--bnh-space-1);
  font-size: var(--bnh-text-h2);
  font-weight: var(--bnh-weight-extrabold);
  color: var(--bnh-white);
}

.bnh-project-location {
  font-size: var(--bnh-text-body-sm);
  color: #94A3B8;
  margin-bottom: var(--bnh-space-4);
}

.bnh-project-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--bnh-space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bnh-project-price {
  font-size: var(--bnh-text-body-lg);
  font-weight: var(--bnh-weight-extrabold);
  color: var(--bnh-white);
}

.bnh-project-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #0052D4;
  color: #ffffff;
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-bold);
  text-decoration: none;
  border-radius: var(--bnh-radius-md);
  transition: background-color var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
}

.bnh-project-cta-btn:hover {
  background-color: #0041A8;
}

/* ============================================================================
   8. PROPERTY TYPE DISCOVERY
   ============================================================================ */
.bnh-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--bnh-space-4);
}

.bnh-type-card {
  display: flex;
  flex-direction: column;
  padding: var(--bnh-space-5);
  background-color: var(--bnh-white);
  border: 1px solid var(--bnh-border-subtle);
  border-radius: var(--bnh-radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--bnh-shadow-subtle);
  transition: transform var(--bnh-duration-fast), box-shadow var(--bnh-duration-fast), border-color var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
}

.bnh-type-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bnh-shadow-card);
  border-color: var(--bnh-secondary);
}

.bnh-type-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--bnh-radius-md);
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #1E40AF;
  border: 1px solid rgba(30, 64, 175, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--bnh-space-3);
  transition: background-color var(--bnh-duration-fast), color var(--bnh-duration-fast), transform var(--bnh-duration-fast);
}

.bnh-type-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
}

.bnh-type-card:hover .bnh-type-icon {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  transform: scale(1.05);
}

.bnh-type-title {
  margin: 0 0 var(--bnh-space-1);
  font-size: var(--bnh-text-body);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-primary);
}

.bnh-type-desc {
  margin: 0;
  font-size: var(--bnh-text-caption);
  color: var(--bnh-text-secondary);
  line-height: var(--bnh-leading-normal);
}

/* ============================================================================
   9. POPULAR LOCATIONS HUB
   ============================================================================ */
.bnh-locations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.bnh-location-card,
.district-hub-pill,
.related-location-pill,
.district-real-estate-hubs a,
.related-kerala-locations a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.5rem 1rem;
  background-color: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--bnh-border-subtle, #E2E8F0);
  border-radius: var(--bnh-radius-pill, 9999px);
  text-decoration: none;
  color: var(--bnh-primary, #0A2540);
  font-weight: var(--bnh-weight-semibold, 600);
  font-size: var(--bnh-text-body-sm, 0.875rem);
  transition: all var(--bnh-duration-fast, 150ms);
  min-height: var(--bnh-touch-min, 44px);
  box-shadow: 0 1px 3px rgba(10, 37, 64, 0.04);
}

.bnh-location-card:hover,
.district-hub-pill:hover,
.related-location-pill:hover,
.district-real-estate-hubs a:hover,
.related-kerala-locations a:hover {
  background-color: #EFF6FF;
  border-color: #2563EB;
  color: #1E40AF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.bnh-location-arrow {
  color: var(--bnh-text-muted, #64748B);
  font-size: 1.1rem;
  margin-left: 4px;
}

/* Related Kerala Locations & District Real Estate Hubs Container */
.district-real-estate-hubs,
.related-kerala-locations,
.district-hubs,
.seo-district-hubs,
.seo-related-locations {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem 1rem !important;
  margin-top: 8px;
  margin-bottom: 18px;
}

.district-real-estate-hubs a,
.related-kerala-locations a,
.district-hubs a,
.seo-district-hubs a,
.seo-related-locations a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.45rem 0.85rem !important;
  background: var(--bg-surface, #FFFFFF) !important;
  border: 1px solid var(--border-surface, #E2E8F0) !important;
  border-radius: 9999px !important;
  color: var(--bnh-primary-blue, #0052D4) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(10, 37, 64, 0.04) !important;
}

.district-real-estate-hubs a:hover,
.related-kerala-locations a:hover,
.district-hubs a:hover,
.seo-district-hubs a:hover,
.seo-related-locations a:hover {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  transform: translateY(-1px);
}


/* 36x36px Soft-Tinted Squircle Container & INR Badges (Phase 21.1) */
.bnh-squircle-icon,
.bnh-icon-squircle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  color: #0052D4;
  border: 1px solid rgba(0, 82, 212, 0.12);
  transition: all 0.2s ease;
  flex-shrink: 0;
  vertical-align: middle;
}

.bnh-squircle-icon svg,
.bnh-icon-squircle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.bnh-squircle-icon.squircle-amber {
  background: #FEF3C7;
  color: #D97706;
  border-color: rgba(217, 119, 6, 0.25);
}

.bnh-squircle-icon.squircle-emerald {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.bnh-squircle-icon.squircle-blue {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
}

.bnh-squircle-icon.squircle-indigo {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
}

.bnh-squircle-icon.squircle-purple {
  background: #FAF5FF;
  color: #9333EA;
  border-color: #E9D5FF;
}

.inr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95em;
  line-height: 1;
}

/* ============================================================================
   10. SELLER & BUILDER CTA
   ============================================================================ */
.bnh-seller-card {
  background: linear-gradient(135deg, #0A2540 0%, #163659 100%);
  border-radius: var(--bnh-radius-2xl);
  padding: var(--bnh-space-10) var(--bnh-space-8);
  color: var(--bnh-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bnh-space-6);
  flex-wrap: wrap;
  box-shadow: var(--bnh-shadow-floating);
}

.bnh-seller-content {
  max-width: 600px;
}

.bnh-seller-eyebrow {
  font-size: var(--bnh-text-caption);
  font-weight: var(--bnh-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #60EFFF;
  margin-bottom: var(--bnh-space-1);
}

.bnh-seller-title {
  margin: 0 0 var(--bnh-space-2);
  font-size: var(--bnh-text-display-lg);
  font-weight: var(--bnh-weight-extrabold);
  line-height: var(--bnh-leading-snug);
}

.bnh-seller-desc {
  margin: 0;
  font-size: var(--bnh-text-body);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--bnh-leading-relaxed);
}

.bnh-seller-actions {
  display: flex;
  flex-direction: column;
  gap: var(--bnh-space-3);
  min-width: 240px;
}

.bnh-btn-seller-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--bnh-space-6);
  height: 52px;
  background: var(--bnh-accent);
  color: #0A2540;
  font-size: var(--bnh-text-body);
  font-weight: var(--bnh-weight-extrabold);
  text-decoration: none;
  border-radius: var(--bnh-radius-md);
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.35);
  transition: all var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
}

.bnh-btn-seller-post:hover {
  background: var(--bnh-accent-hover);
  transform: translateY(-2px);
}

.bnh-btn-builder-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--bnh-space-6);
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--bnh-white);
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-bold);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--bnh-radius-md);
  transition: all var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
}

.bnh-btn-builder-post:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   11. CONTEXTUAL HOME LOANS BANNER
   ============================================================================ */
.bnh-loan-banner {
  background: linear-gradient(135deg, #F0F5FA 0%, #E8F1FC 100%);
  border: 1px solid var(--bnh-border-subtle);
  border-radius: var(--bnh-radius-xl);
  padding: var(--bnh-space-6) var(--bnh-space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bnh-space-4);
  flex-wrap: wrap;
}

.bnh-loan-text h3 {
  margin: 0 0 4px;
  font-size: var(--bnh-text-h3);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-primary);
}

.bnh-loan-text p {
  margin: 0;
  font-size: var(--bnh-text-body-sm);
  color: var(--bnh-text-secondary);
}

.bnh-btn-loan {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--bnh-space-5);
  height: 44px;
  background: var(--bnh-white);
  border: 1px solid var(--bnh-border-default);
  color: var(--bnh-primary);
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-bold);
  text-decoration: none;
  border-radius: var(--bnh-radius-md);
  transition: all var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
  box-shadow: var(--bnh-shadow-subtle);
}

.bnh-btn-loan:hover {
  border-color: var(--bnh-secondary);
  color: var(--bnh-secondary);
  transform: translateY(-1px);
}

/* ============================================================================
   12. TRUST & MODERATION STATEMENT
   ============================================================================ */
.bnh-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--bnh-space-6);
  margin-top: var(--bnh-space-6);
}

.bnh-trust-card {
  display: flex;
  gap: var(--bnh-space-4);
}

.bnh-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bnh-secondary-subtle);
  color: var(--bnh-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.bnh-trust-text h4 {
  margin: 0 0 4px;
  font-size: var(--bnh-text-body);
  font-weight: var(--bnh-weight-bold);
  color: var(--bnh-primary);
}

.bnh-trust-text p {
  margin: 0;
  font-size: var(--bnh-text-body-sm);
  color: var(--bnh-text-secondary);
  line-height: var(--bnh-leading-normal);
}

/* ============================================================================
   13. MARKETPLACE FOOTER
   ============================================================================ */
.bnh-footer-v2 {
  background-color: #0A2540;
  color: #94A3B8;
  padding-top: var(--bnh-space-16);
  padding-bottom: calc(var(--bnh-space-10) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bnh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--bnh-space-8);
  margin-bottom: var(--bnh-space-12);
}

.bnh-footer-col h4 {
  color: var(--bnh-white);
  font-size: var(--bnh-text-body-sm);
  font-weight: var(--bnh-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--bnh-space-4);
}

.bnh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bnh-space-2);
}

.bnh-footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: var(--bnh-text-body-sm);
  transition: color var(--bnh-duration-fast);
  display: inline-block;
  min-height: 24px;
}

.bnh-footer-links a:hover {
  color: var(--bnh-white);
}

.bnh-footer-brand-p {
  margin: var(--bnh-space-3) 0;
  font-size: var(--bnh-text-body-sm);
  line-height: var(--bnh-leading-relaxed);
  max-width: 320px;
}

.bnh-footer-bottom {
  padding-top: var(--bnh-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--bnh-space-4);
  font-size: var(--bnh-text-caption);
}

/* ============================================================================
   14. FLOATING SUPPORT BUTTON
   ============================================================================ */
.bnh-floating-wa {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 950;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform var(--bnh-duration-fast), box-shadow var(--bnh-duration-fast);
  min-height: var(--bnh-touch-min);
  min-width: var(--bnh-touch-min);
}

.bnh-floating-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.bnh-floating-wa svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width: 1024px) {
  .bnh-nav-desktop {
    display: none;
  }

  .bnh-hamburger-btn {
    display: flex;
  }

  .bnh-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--bnh-space-6);
  }

  .bnh-search-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .bnh-search-submit {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  /* Phase 1.2: 2-Row Mobile Header & Unified Search Bar */
  .bnh-header-v2 .bnh-header-inner,
  .bnh-header-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: auto !important;
    min-height: 96px !important;
    padding: 8px 12px 10px !important;
    gap: 8px !important;
    max-width: 100vw !important;
  }

  /* Row 1 Left: Brand Logo + BrandNewHomes Title */
  .bnh-header-v2 .bnh-brand,
  .bnh-brand {
    order: 1 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    gap: 8px !important;
  }

  .bnh-brand-logo-mark {
    width: 32px !important;
    height: 32px !important;
  }

  .bnh-brand-name {
    font-size: 1.05rem !important;
  }

  .bnh-brand-tagline {
    font-size: 9px !important;
  }

  /* Row 1 Right: Compact Menu / CTA Pill */
  .bnh-header-actions {
    order: 2 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .bnh-header-actions .bnh-btn-ghost {
    display: none !important;
  }

  .bnh-header-actions .bnh-btn-post {
    display: inline-flex !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    gap: 4px !important;
  }

  .bnh-header-actions .bnh-btn-post svg {
    width: 14px !important;
    height: 14px !important;
  }

  .bnh-hamburger-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
  }

  /* Row 2: Integrated Location Selector + Rounded Search Bar */
  .bnh-location-selector-wrap,
  #bnhLocationSelectorWrap {
    order: 3 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .bnh-location-pill,
  #bnhLocationPill {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 9999px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #0F2942 !important;
    max-width: 132px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .bnh-location-pill .bnh-loc-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .bnh-top-search-form,
  #bnhTopSearchForm {
    order: 4 !important;
    display: flex !important;
    flex: 1 1 180px !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .bnh-top-search-box {
    width: 100% !important;
    height: 40px !important;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 9999px !important;
    padding: 0 5px 0 11px !important;
    display: flex !important;
    align-items: center !important;
  }

  .bnh-top-search-input,
  #topDiscoverySearchInput {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 12.5px !important;
    color: #0F2942 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .bnh-top-search-submit {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: none !important;
    background: linear-gradient(135deg, #0F2942 0%, #1E40AF 100%) !important;
    color: #FFFFFF !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 9999px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .bnh-category-strip-ribbon {
    position: relative !important;
    top: 0 !important;
  }

  .bnh-bottom-dock {
    display: block;
  }

  /* Safe positioning for floating WhatsApp above bottom dock */
  .bnh-floating-wa {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .bnh-section {
    padding-top: var(--bnh-space-8);
    padding-bottom: var(--bnh-space-8);
  }

  .bnh-hero-section {
    padding-top: var(--bnh-space-8);
    padding-bottom: var(--bnh-space-8);
  }

  .bnh-hero-title {
    font-size: var(--bnh-text-h1);
  }

  .bnh-search-card {
    padding: var(--bnh-space-4);
    border-radius: var(--bnh-radius-lg);
  }

  /* Search tabs fit completely on mobile without clipping */
  .bnh-search-tabs {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 3px !important;
    gap: 2px !important;
  }

  .bnh-tab-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 8px 4px !important;
    font-size: 11.5px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .bnh-search-form-row {
    grid-template-columns: 1fr;
    gap: var(--bnh-space-2);
  }

  .bnh-search-submit {
    grid-column: 1;
    width: 100%;
  }

  .bnh-category-strip-ribbon {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .bnh-category-strip-inner {
    max-width: 100vw;
    padding: 8px var(--bnh-space-3);
  }

  .bnh-seller-card {
    padding: var(--bnh-space-6);
  }

  .bnh-seller-actions {
    width: 100%;
  }

  .bnh-footer-grid {
    grid-template-columns: 1fr;
  }

  /* Reserve space above bottom dock for content */
  .bnh-v2-body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  /* Phase 21.5: Auto-hide top announcement bar on scroll (< 768px) */
  body.scrolled-past-top .announcement,
  body.scrolled-past-top .bnh-announcement-bar,
  .announcement.is-hidden-on-scroll,
  .bnh-announcement-bar.is-hidden-on-scroll {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    pointer-events: none !important;
  }

  /* Phase 21.5: Virtual Keyboard Detection: hide sticky bottom dock when typing */
  .bnh-bottom-dock.bnh-nav-keyboard-hidden,
  .bnh-mobile-bottom-dock.bnh-nav-keyboard-hidden,
  .mobile-bottom-nav.bnh-nav-keyboard-hidden {
    transform: translateY(100%) !important;
    transition: transform 0.2s ease-out;
    pointer-events: none !important;
  }
}

/* Phase 21.5: Top Announcement Bar Base Transitions */
.announcement,
.bnh-announcement-bar {
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              padding 0.3s ease,
              margin 0.3s ease;
  overflow: hidden;
}

/* Phase 21.5: Property Card Photo Carousel Touch Isolation */
.card-carousel-wrap,
.card-carousel,
.bnh-card-carousel {
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

/* Phase 21.5: Persistent Search Expand Overlay Bleed Prevention */
.search-expand-overlay[hidden],
.search-expand-overlay[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
