/* ============================================================
   LeasingKart.in — Main Stylesheet
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --navy:        #0a2463;
  --navy-dk:     #071a4a;
  --navy-lt:     #e8f0fe;
  --green:       #1a8a5a;
  --green-lt:    #e6f7ef;
  --amber:       #e8a020;
  --amber-lt:    #fef6e6;
  --purple:      #6b3fa0;
  --purple-lt:   #f3eeff;
  --red:         #e8533a;
  --text:        #0f172a;
  --text-muted:  #5a6480;
  --text-hint:   #9aa5be;
  --border:      rgba(10,36,99,0.10);
  --gray-50:     #f8f9fb;
  --gray-100:    #f1f3f7;
  --gray-200:    #e4e8f0;
  --gray-400:    #9aa5be;
  --gray-600:    #5a6480;
  --shadow-sm:   0 1px 4px rgba(10,36,99,0.07);
  --shadow-md:   0 4px 16px rgba(10,36,99,0.10);
  --shadow-lg:   0 8px 32px rgba(10,36,99,0.14);
  --radius:      12px;
  --radius-sm:   8px;
  --topbar-h:    36px;
  --navbar-h:    88px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ---------- TOP BAR ---------- */
.topbar {
  height: var(--topbar-h);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  width: 100%;
}

.topbar-links {
  display: flex;
  gap: 20px;
}

.topbar-links a {
  color: rgba(255,255,255,0.85);
  transition: color 0.15s;
}

.topbar-links a:hover { color: #fff; }

/* ---------- NAVBAR (FIXED) ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--navbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 20px;       /* reduced from 24px */
  gap: 8px;              /* reduced from 16px */
  width: 100%;
  overflow: visible;
  flex-wrap: nowrap;     /* ensure single row */
  min-width: 0;
}

.logo img {
  height: 60px !important;
  width: 220px !important; /* reduced from 250px to save space */
  object-fit: contain !important;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;              /* reduced from 4px */
  margin-left: 8px;      /* reduced from 12px */
  flex: 1;
  min-width: 0;
  overflow: visible;
}

/* FIXED: reduced padding & font-size so all items fit */
.nav-btn {
  padding: 7px 10px;     /* reduced from 8px 14px */
  border-radius: var(--radius-sm);
  font-size: 13px;       /* reduced from 14px */
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-btn:hover, .nav-active {
  background: var(--navy-lt);
  color: var(--navy);
}

/* FIXED: reduced padding & font-size so all items fit */
.nav-drop {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;     /* reduced from 8px 14px */
  border-radius: var(--radius-sm);
  font-size: 13px;       /* reduced from 14px */
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  white-space: nowrap;
}

.nav-drop:hover, .nav-drop.open {
  background: var(--navy-lt);
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 9px 16px;     /* slightly reduced from 9px 18px */
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--navy-dk);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  padding: 8px 14px;     /* slightly reduced from 8px 16px */
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--navy-lt);
  border-color: var(--navy);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- NAV DROPDOWN WRAPPER ---------- */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-caret {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown-trigger[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

/* ---------- SHARED DROPDOWN PANEL ---------- */
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  min-width: 320px;
  animation: dropFadeIn 0.18s ease;
}

.nav-dropdown-panel.open {
  display: block;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- FOR TENANTS DROPDOWN GRID ---------- */
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 12px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}

.nav-dropdown-item:hover {
  background: var(--navy-lt);
}

.ndi-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.ndi-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ndi-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ndi-text small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- LOGIN DROPDOWN PANEL ---------- */
.nav-login-wrap {
  position: relative;
}

.nav-login-panel {
  right: 0;
  left: auto;
  min-width: 340px;
  padding: 0;
  overflow: hidden;
}

.login-drop-section {
  padding: 16px;
}

.login-drop-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.login-drop-articles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lda-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}

.lda-card:hover {
  background: var(--navy-lt);
}

.lda-icon {
  font-size: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.lda-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lda-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.lda-text small {
  font-size: 11px;
  color: var(--text-muted);
}

.login-drop-viewall {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: opacity 0.15s;
}

.login-drop-viewall:hover { opacity: 0.7; }

.login-drop-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 0 16px;
}

.login-drop-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 8px;
}

.login-drop-btn:last-child { margin-bottom: 0; }

.login-drop-primary {
  background: var(--navy);
  color: #fff;
}

.login-drop-primary:hover {
  background: var(--navy-dk);
  transform: translateY(-1px);
}

.login-drop-secondary {
  background: var(--gray-100);
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}

.login-drop-secondary:hover {
  background: var(--navy-lt);
  border-color: var(--navy);
}

/* ---------- MOBILE DRAWER ---------- */
.mobile-drawer {
  display: none;
  position: fixed;
  top: calc(var(--topbar-h) + var(--navbar-h));
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 99;
  flex-direction: column;
  padding: 8px 0 16px;
  max-height: calc(100vh - var(--topbar-h) - var(--navbar-h));
  overflow-y: auto;
}

.mobile-drawer.open { display: flex; }

.mobile-drawer a {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}

.mobile-drawer a:hover { background: var(--gray-50); }

.mobile-drawer .drawer-login {
  color: var(--navy);
  font-weight: 600;
}

.mobile-drawer .drawer-post {
  margin: 12px 24px 0;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  border-bottom: none;
  padding: 12px 24px;
}

.mobile-drawer-group {
  border-bottom: 2px solid var(--gray-200);
  padding: 6px 0;
}

.mobile-drawer-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 8px 24px 4px;
}

/* ---------- OVERLAY DROPDOWN PANEL ---------- */
.lk-overlay-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 98;
}

.lk-overlay-backdrop.visible { display: block; }

.lk-overlay-panel {
  position: fixed;
  top: calc(var(--topbar-h) + var(--navbar-h));
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  padding: 0;
  max-height: 480px;
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s, opacity 0.2s;
}

.lk-overlay-panel.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.lk-drop-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.lk-drop-back {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.lk-drop-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.lk-drop-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  padding: 12px 16px;
  gap: 2px;
}

.lk-drop-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.lk-drop-links li a:hover {
  background: var(--navy-lt);
  color: var(--navy);
}

.chev { color: var(--text-hint); font-size: 16px; }

/* ---------- FLASH MESSAGE ---------- */
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
}

.flash-success { background: var(--green-lt); color: var(--green); border-left: 4px solid var(--green); }
.flash-error   { background: #fdecea; color: var(--red); border-left: 4px solid var(--red); }
.flash-info    { background: var(--navy-lt); color: var(--navy); border-left: 4px solid var(--navy); }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 60%, #1a3a8f 100%);
  color: #fff;
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.90);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: #fbbf24; }

.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 32px;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.search-bar input::placeholder { color: var(--text-hint); }

.search-bar select {
  border: none;
  border-left: 1px solid var(--gray-200);
  outline: none;
  padding: 16px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.search-bar button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.search-bar button:hover { background: var(--navy-dk); }

/* Hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: opacity 0.15s;
}

.view-all:hover { opacity: 0.7; }

/* ---------- PROPERTY TYPES GRID ---------- */
.prop-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.prop-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

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

.prop-type-icon { font-size: 36px; margin-bottom: 10px; }

.prop-type-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.prop-type-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- POPULAR SEARCHES ---------- */
.pop-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pop-pill {
  display: inline-block;
  padding: 8px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pop-pill:hover {
  background: var(--navy-lt);
  border-color: var(--navy);
  color: var(--navy);
}

/* ---------- LISTINGS GRID ---------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.listing-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.listing-img {
  position: relative;
  height: 200px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.listing-card:hover .listing-img img { transform: scale(1.04); }

.badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--amber);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
}

.badge-verified {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
}

.badge-new {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
}

.listing-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.listing-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

.listing-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.listing-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.listing-loc {
  font-size: 13px;
  color: var(--text-muted);
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.listing-tag {
  background: var(--gray-100);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 5px;
}

.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.listing-owner {
  font-size: 12px;
  color: var(--text-muted);
}

.listing-contact {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}

.listing-contact:hover { background: var(--navy-dk); }

/* ---------- AREAS GRID ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.area-card {
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.area-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.area-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.area-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.area-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- INSIGHTS GRID ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.insight-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.insight-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.insight-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- ARTICLES GRID ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.article-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.article-img {
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body { padding: 16px; }

.article-tag {
  display: inline-block;
  background: var(--navy-lt);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
}

.article-date {
  font-size: 12px;
  color: var(--text-hint);
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a8f 100%);
  color: #fff;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 56px 0 0;
}

.cta-text h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cta-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.cta-strip a {
  background: #fff;
  color: var(--navy);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

.cta-strip a:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ---------- CONTACT BAR ---------- */
.contact-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.cb-divider {
  width: 1px;
  height: 16px;
  background: var(--gray-200);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- SEARCH PAGE ---------- */
.search-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

.filters-panel {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: calc(var(--topbar-h) + var(--navbar-h) + 16px);
}

.filter-group { margin-bottom: 20px; }

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }

.filter-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--navy);
  background: var(--navy-lt);
  color: var(--navy);
}

/* ---------- PROPERTY DETAIL PAGE ---------- */
.property-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

.gallery-main-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.gallery-thumb:hover { border-color: var(--navy); }

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .search-page { grid-template-columns: 1fr; }
  .filters-panel { position: static; }

  .property-detail { grid-template-columns: 1fr; }

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

  .cta-strip { padding: 32px 24px; }
  .contact-bar { padding: 16px 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 16px 40px; }
  .hero-stats { gap: 24px; }
  .stat-val { font-size: 20px; }

  .search-bar { flex-direction: column; border-radius: var(--radius-sm); }
  .search-bar input, .search-bar select, .search-bar button {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-top: 1px solid var(--gray-200);
  }
  .search-bar input { border-top: none; }

  .section { padding: 40px 16px 0; }
  .section-title { font-size: 18px; }

  .prop-types-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-grid, .articles-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .cta-strip { text-align: center; justify-content: center; }
}