/* Vânzări-Imobiliare.ro — Modern Architectural Real-Estate Design System */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-alt: #f3f1ec;
  --navy: #0f223d;
  --navy-2: #1b365d;
  --navy-soft: #eef2f7;
  --emerald: #0b7a5c;
  --emerald-dark: #085c45;
  --emerald-soft: #e6f5f0;
  --gold: #c8962e;
  --gold-dark: #9c7118;
  --gold-soft: #fdf4df;
  --gold-border: #e7c980;
  --text: #1c2430;
  --muted: #5b6778;
  --border: #e3e0d8;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(15, 34, 61, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 34, 61, 0.11);
  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--emerald); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5rem; color: var(--navy); line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0 0 .9rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-link img { height: 42px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--navy-soft);
  color: var(--navy);
}
.main-nav a.nav-gold {
  color: var(--gold-dark);
  background: var(--gold-soft);
}
.main-nav a.nav-gold:hover {
  background: #f8e7be;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: var(--navy-soft);
  border: 1px solid var(--border);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: #ffffff;
}
.btn-primary:hover { background: var(--emerald-dark); color: #ffffff; }
.btn-navy {
  background: var(--navy);
  color: #ffffff;
}
.btn-navy:hover { background: var(--navy-2); color: #ffffff; }
.btn-gold {
  background: linear-gradient(135deg, #d4a134, #b6831c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(200, 150, 46, 0.28);
}
.btn-gold:hover { filter: brightness(1.05); color: #ffffff; }
.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); }
.btn-danger {
  background: var(--danger);
  color: #ffffff;
}
.btn-danger:hover { background: #991b1b; color: #ffffff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* Flash & Alerts */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-weight: 500;
  border: 1px solid transparent;
}
.alert-success { background: var(--emerald-soft); border-color: #9ed7c5; color: #064e3b; }
.alert-error { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--navy-soft); border-color: #cbd5e1; color: var(--navy); }
.alert-gold { background: var(--gold-soft); border-color: var(--gold-border); color: #78530b; }

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0c1d36 0%, #173257 62%, #1d426c 100%);
  color: #ffffff;
  padding: 46px 0 54px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(200, 150, 46, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f6e2b3;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  color: #ffffff;
  font-size: clamp(27px, 4vw, 42px);
  max-width: 780px;
  margin-bottom: 12px;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  max-width: 680px;
  margin-bottom: 24px;
}

/* Search Bar Card */
.search-box {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 34, 61, 0.08);
}
.search-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.3fr .85fr .85fr .75fr auto;
  gap: 10px;
  align-items: end;
}
.search-grid-compact {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.3fr .8fr .8fr auto;
  gap: 10px;
  align-items: end;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.input, .select, .textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d1c7;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #ffffff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(27, 54, 93, 0.12);
}
.textarea { min-height: 130px; resize: vertical; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}
.hero-stats strong { color: #f6e2b3; font-size: 17px; margin-right: 4px; }

/* Sections */
.section { padding: 38px 0; }
.section-tight { padding: 24px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-header h2 { font-size: 24px; margin-bottom: 4px; }
.section-header p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Gold Spotlight Section */
.spotlight-wrap {
  background: linear-gradient(180deg, #fdf8eb 0%, #faf9f6 100%);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.badge-gold {
  background: linear-gradient(135deg, #d7a539, #b58119);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(181, 129, 25, 0.35);
}
.badge-emerald { background: var(--emerald); color: #ffffff; }
.badge-navy { background: var(--navy); color: #ffffff; }
.badge-soft { background: var(--navy-soft); color: var(--navy); }
.badge-sold { background: #374151; color: #ffffff; }
.badge-verified {
  background: #e6f5f0;
  color: #085c45;
  border: 1px solid #9fd8c6;
}

/* Listing Grid & Cards */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.listings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.listings-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #c9c3b6;
}
.listing-card.is-special {
  border: 2px solid var(--gold);
  box-shadow: 0 8px 26px rgba(200, 150, 46, 0.15);
}
.listing-card.is-promoted {
  border-color: #93ccb9;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #173052;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.listing-card:hover .card-media img { transform: scale(1.03); }

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-photo-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 34, 61, 0.78);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.card-ppm {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--emerald); }

.card-location {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 11px;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #efece5;
  font-size: 12.5px;
  color: var(--navy-2);
  font-weight: 600;
}
.card-spec-pill {
  background: var(--surface-alt);
  padding: 4px 8px;
  border-radius: 6px;
}
.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Category Quick Cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .16s ease;
  box-shadow: var(--shadow);
}
.cat-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}
.cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}
.cat-card strong { font-size: 15px; color: var(--navy); }
.cat-card span { font-size: 12.5px; color: var(--muted); }

/* City Chips */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}
.city-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--navy);
}
.city-card:hover { border-color: var(--emerald); background: var(--emerald-soft); }
.city-card span {
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Catalog Layout with Sidebar */
.catalog-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.sidebar-card h3 { font-size: 16px; margin-bottom: 14px; }
.filter-stack { display: flex; flex-direction: column; gap: 12px; }
.filter-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 18px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }

/* Detail Page */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #10243f;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  width: 96px;
  height: 66px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: none;
}
.gallery-thumb.active { border-color: var(--emerald); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.spec-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.spec-item small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}
.spec-item strong { font-size: 15px; color: var(--navy); }

.detail-price-box {
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.detail-price-main { font-size: 30px; font-weight: 800; line-height: 1.15; }
.detail-price-sub { font-size: 13.5px; color: rgba(255, 255, 255, 0.8); margin-top: 4px; }

.description-text {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.72;
  color: #273242;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(9, 18, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

/* Forms & Upload */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.upload-dropzone {
  border: 2px dashed #c8c2b4;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.upload-dropzone:hover { border-color: var(--emerald); background: var(--emerald-soft); }
.upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.upload-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.upload-preview-item img { width: 100%; height: 82px; object-fit: cover; }
.upload-preview-meta {
  font-size: 11px;
  padding: 4px 6px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-alt);
}
.upload-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 34, 61, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

/* Pricing / Monetization Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0 36px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 42%);
  box-shadow: 0 12px 32px rgba(200, 150, 46, 0.16);
}
.pricing-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin: 14px 0 6px;
}
.pricing-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.pricing-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}
.pricing-tier-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--navy);
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}
.pricing-list li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 800;
}

/* Google AdSense Slots */
.ad-slot {
  margin: 20px 0;
  text-align: center;
}
.ad-micro-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ad-slot-preview .ad-preview-inner {
  border: 1px dashed #d6d1c6;
  background: #f6f4ee;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.ad-slot-sidebar.ad-slot-preview .ad-preview-inner {
  min-height: 220px;
  flex-direction: column;
}
.ad-preview-tag {
  background: #e5e1d7;
  color: #546072;
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.page-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
.page-link.active, .page-link:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* Tables (Account & Admin) */
.table-wrap { overflow-x: auto; }
table.vi-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 13.5px;
}
table.vi-table th, table.vi-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
table.vi-table th {
  background: var(--surface-alt);
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Admin Specific */
.admin-bar {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.admin-nav a {
  color: rgba(255, 255, 255, 0.85);
  padding: 7px 13px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13.5px;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.kpi-card small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.kpi-card strong { display: block; font-size: 28px; color: var(--navy); margin-top: 4px; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0f223d 0%, #173a5e 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #ffffff; margin-bottom: 6px; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); margin: 0; max-width: 620px; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 52px;
  padding: 46px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}
.site-footer h4 { color: #ffffff; font-size: 14.5px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; }
.site-footer a:hover { color: #f6e2b3; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .search-grid { grid-template-columns: repeat(3, 1fr); }
  .search-grid-compact { grid-template-columns: repeat(3, 1fr); }
  .listings-grid, .listings-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: inline-flex; }
  .header-actions .hide-mobile { display: none; }
}

@media (max-width: 640px) {
  .search-grid, .search-grid-compact, .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .listings-grid, .listings-grid-2, .listings-grid-4 { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 30px 0 38px; }
  .cta-banner { padding: 24px 20px; }
}
