/* ═══════════════════════════════════════════════════
   BUSINESS READY — brand identity
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;700&display=swap');

/* ── Tokens ─────────────────────────────────────── */
:root {
  --navy:      #111827;
  --navy-dark: #0B0F19;
  --gold:      #22C55E;
  --gold-dark: #16A34A;
  --coral:     #EF4A37;
  --orange:    #E05A1B;
  --red:       #D9534F;
  --green:     #1a9e3f;
  --white:     #FFFFFF;
  --body-bg:   #f4f4f4;
  --card-bg:   #FFFFFF;
  --text:      #222222;
  --muted:     #666666;
  --light:     #f8f8f8;
  --border:    #e0e0e0;
  --radius:    4px;
}

/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Utility nav (top bar) ──────────────────────── */
.utility-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  height: 42px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.utility-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.utility-nav a:hover { background: var(--light); }
.utility-nav a.active {
  background: var(--navy);
  color: var(--white);
}
.utility-nav a.nav-highlight {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.utility-contact {
  position: absolute;
  right: 1.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.4;
}

.utility-contact a { color: var(--muted); }

/* ── Main nav (dark bar) ────────────────────────── */
.main-nav {
  background: var(--navy);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-triangle {
  width: 28px;
  height: 28px;
}

.nav-logo span { color: var(--gold); }

.nav-search {
  flex: 0 1 480px;
  width: 480px;
  max-width: 60vw;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  height: 36px;
}

.nav-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 0.75rem;
  font-size: 0.83rem;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  height: 100%;
}

.nav-search button {
  background: var(--green);
  border: none;
  padding: 0 0.9rem;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.nav-search button:hover { background: #157a32; }

.nav-show-all {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-show-all:hover { background: rgba(255,255,255,0.1); }

.nav-contact-info {
  margin-left: auto;
  text-align: right;
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.nav-contact-info a { color: var(--white); font-weight: 500; }
.nav-contact-info .nav-phone { font-size: 0.85rem; font-weight: 700; color: var(--white); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy-dark);
  padding: 2.5rem 1.5rem 2rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(0.45) saturate(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(14,31,61,0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  width: 100%;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.hero-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  width: 110px;
}

.hero-logo-col svg { width: 52px; height: 52px; }
.hero-logo-img { width: 110px; height: auto; display: block; }

.hero-logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.hero-logo-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
}

.hero-right {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero h1 strong { font-weight: 700; }

.hero-search-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-search {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  height: 48px;
  flex: 1;
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  height: 100%;
}

.hero-search button {
  background: var(--green);
  border: none;
  padding: 0 1.1rem;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.hero-search button:hover { background: #157a32; }

.hero-show-all {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: none;
  color: var(--navy);
  padding: 0 1rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.hero-show-all:hover { background: #f0f0f0; }

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-ctas span {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-gold:hover { background: var(--gold-dark); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ── Category tabs bar ──────────────────────────── */
.category-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  height: 72px;
  position: relative;
  z-index: 10;
}

.category-bar::-webkit-scrollbar { display: none; }

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  text-decoration: none;
  min-width: 64px;
  min-height: 52px;
  transition: opacity 0.15s;
  color: white;
  flex-shrink: 0;
}

.cat-btn-label {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.cat-btn-sub {
  font-size: 0.62rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.2;
}

.cat-btn:hover { opacity: 0.85; }
.cat-btn.buy { background: var(--navy); }
.cat-btn.sell { background: var(--navy); }
.cat-btn.help { background: var(--red); }

.cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.67rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  min-width: 72px;
}

.cat-tab:hover { color: var(--navy); background: var(--light); border-color: var(--navy); }
.cat-tab.active { color: var(--navy); font-weight: 700; border-color: var(--navy); }
.cat-tab svg { opacity: 0.7; color: #5a7fa8; width: 26px; height: 26px; }
.cat-tab:hover svg, .cat-tab.active svg { opacity: 1; }

.cat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.cat-filters {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}

.cat-filters:hover { background: var(--light); border-color: var(--navy); }

/* ── Section / Container ────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 2rem 0; }

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

/* ── Listing Grid ───────────────────────────────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── Listing Card ───────────────────────────────── */
.listing-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.listing-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 66%; /* 3:2 ratio */
  background: #c8cdd6;
  overflow: hidden;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f2937 0%, var(--navy) 100%);
  color: rgba(255,255,255,0.2);
}

/* Price badge */
.card-price-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  background: rgba(14,31,61,0.85);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* NEW LISTING ribbon */
.card-ribbon {
  position: absolute;
  top: 18px;
  right: -48px;
  width: 170px;
  background: var(--green);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.3rem 0;
  transform: rotate(45deg);
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* Carousel arrows */
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.listing-card:hover .card-arrow { opacity: 1; }
.card-arrow.prev { left: 0.5rem; }
.card-arrow.next { right: 0.5rem; }

/* Thumbnail dots */
.card-dots {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.card-dot.active { background: white; }

/* Card body */
.card-body {
  padding: 0.75rem 0.9rem 0.6rem;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover { color: var(--navy); }

.card-summary {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.card-profit { font-weight: 500; }
.card-profit strong { color: var(--text); }

.card-province {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.72rem;
}

/* ── Featured Spotlight ─────────────────────────── */
.featured-spotlight {
  padding: 2rem 0;
  margin-bottom: 0.5rem;
}

.featured-kicker {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.featured-title {
  margin-bottom: 1.5rem;
}

.featured-grid .listing-card {
  border-top: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(14,31,61,0.14);
}

.featured-grid .listing-card:hover {
  box-shadow: 0 10px 26px rgba(14,31,61,0.22);
  transform: translateY(-4px);
}

.featured-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.24rem 0.55rem;
  border-radius: 3px;
  z-index: 1;
}

/* ── Search page ────────────────────────────────── */
.search-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: center;
}

.search-bar input,
.search-bar select {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  outline: none;
  background: var(--white);
  transition: border-color 0.15s;
}

.search-bar input:focus,
.search-bar select:focus { border-color: var(--navy); }

.search-bar input.main-q { flex: 1; min-width: 200px; }
.search-bar select { min-width: 140px; }

.search-bar .btn-search {
  background: var(--navy);
  color: white;
  border: none;
  height: 36px;
  padding: 0 1.25rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.search-bar .btn-search:hover { background: var(--navy-dark); }

.search-results-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-results-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.search-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.search-sort select {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  font-family: 'Roboto', sans-serif;
  outline: none;
  color: var(--text);
  cursor: pointer;
}

/* ── Pagination ─────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--white);
  padding: 0 0.5rem;
  transition: all 0.15s;
}

.page-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.page-btn.active { background: var(--navy); color: white; border-color: var(--navy); font-weight: 700; }
.page-btn.disabled { color: var(--border); pointer-events: none; }

/* ── Listing Detail ─────────────────────────────── */
.detail-back {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.back-btn:hover { text-decoration: underline; }

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.detail-main {}

/* Gallery */
.detail-gallery {}

.detail-gallery-main {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--navy);
  display: block;
  margin-bottom: 0.5rem;
}

.detail-gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.detail-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.detail-thumb.active,
.detail-thumb:hover { border-color: var(--navy); }

.detail-no-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a2f52, var(--navy));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1rem;
}

/* Detail content blocks */
.detail-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.detail-meta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.detail-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--light);
  color: var(--navy);
  border: 1px solid var(--border);
}

.detail-badge.province { background: var(--navy); color: white; border-color: var(--navy); }

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

/* Financials grid */
.financials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.financial-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  text-align: center;
}

.financial-box.highlight {
  background: var(--navy);
  border-color: var(--navy);
}

.financial-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.financial-box.highlight .financial-label { color: rgba(255,193,48,0.7); }

.financial-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.financial-box.highlight .financial-val { color: var(--gold); }

/* Summary */
.detail-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--navy);
  display: inline-block;
}

.detail-summary {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
}

.detail-note {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #7a5800;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* Similar listings */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

/* ── Contact Sidebar ────────────────────────────── */
.contact-sidebar {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-broker-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-broker-header {
  background: var(--navy);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-broker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.contact-broker-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.contact-broker-agency {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-broker-body {
  padding: 0.9rem;
}

.btn-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem;
  border-radius: 3px;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  margin-bottom: 0.5rem;
  background: var(--navy);
  color: white;
}

.btn-navy:hover { background: var(--navy-dark); }

.btn-outline-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: all 0.15s;
  margin-bottom: 0.5rem;
}

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

/* Enquiry form card */
.enquiry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.enquiry-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-field {
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--navy); }

.form-field textarea { resize: vertical; min-height: 70px; }

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.65rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.25rem;
}

.btn-submit:hover { background: var(--gold-dark); }

.form-success { color: #1a9e3f; font-size: 0.8rem; margin-top: 0.5rem; }
.form-error { color: var(--red); font-size: 0.8rem; margin-top: 0.5rem; }

.enquiry-privacy {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: center;
  line-height: 1.4;
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  margin-top: 3rem;
}

.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo span { color: var(--gold); }

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-mid {
  display: flex;
  gap: 3rem;
}

.footer-col h6 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.35rem;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--gold); }

.footer-contact h6 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-contact p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.footer-contact a { color: var(--gold); }

.footer-bottom {
  background: var(--navy-dark);
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* ── Empty state ────────────────────────────────── */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state h3 { font-size: 1.1rem; color: var(--navy); margin: 0.75rem 0 0.4rem; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-mid { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 560px) {
  .listings-grid { grid-template-columns: 1fr; }
  .utility-nav { display: none; }
  .nav-contact-info { display: none; }
  .similar-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   LISTING DETAIL PAGE — Full rebuild
   ═══════════════════════════════════════════════════ */

/* Breadcrumb */
.listing-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-size: 0.77rem;
  color: var(--muted);
}

.listing-breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.listing-breadcrumb a { color: var(--navy); }
.listing-breadcrumb a:hover { color: var(--gold-dark); text-decoration: underline; }
.bc-sep { color: var(--border); font-size: 0.75rem; }

/* Main container */
.listing-container { padding-top: 1.25rem; padding-bottom: 3rem; }

/* Two-column layout */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

/* ── Mandate header bar ── */
.mandate-header-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.mandate-ref {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mandate-ref-link { color: var(--navy); margin-left: auto; font-size: 0.75rem; }
.mandate-ref-link:hover { text-decoration: underline; }

/* ── Title ── */
.listing-title-main {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

/* ── Meta row ── */
.listing-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.listing-location-tag {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.listing-badge-cat,
.listing-badge-prov {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.listing-badge-cat { background: #e8f0f8; color: var(--navy); }
.listing-badge-prov { background: var(--navy); color: var(--white); }

/* ── Gallery ── */
.listing-gallery { margin-bottom: 1.25rem; }

.gallery-main-wrap {
  position: relative;
  background: #1a1a1a;
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-count-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  overflow-x: auto;
}

.gallery-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.15s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--navy);
  opacity: 1;
}

.gallery-placeholder {
  height: 200px;
  background: #f0f0f0;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ── Financial strip ── */
.financials-strip {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.fin-box {
  flex: 1;
  padding: 0.9rem 1rem;
  background: var(--white);
  border-right: 1px solid var(--border);
  text-align: center;
  min-width: 100px;
}

.fin-box:last-child { border-right: none; }

.fin-box.fin-price {
  background: var(--navy);
}

.fin-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.fin-price .fin-label { color: rgba(255,193,48,0.7); }

.fin-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.fin-price .fin-value { color: var(--gold); font-size: 1.15rem; }

.fin-currency {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.fin-price .fin-currency { color: rgba(255,255,255,0.4); }

/* ── Section cards ── */
.detail-section-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}

.detail-section-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 1rem;
  display: inline-block;
}

.detail-summary-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text);
}

/* ── Accordion ── */
.detail-accordion-intro {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.mandate-accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  cursor: pointer;
  background: var(--white);
  user-select: none;
  transition: background 0.12s;
}

.acc-header:hover { background: #f7f8fa; }

.acc-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.acc-chevron { color: var(--muted); transition: transform 0.2s; flex-shrink: 0; }

.acc-body { border-top: 1px solid var(--border); }

.acc-locked {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fafafa;
}

.acc-locked-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: #f0f3f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-top: 0.1rem;
}

.acc-locked-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.acc-locked-text strong { color: var(--navy); }

.acc-locked-cta {
  display: block;
  margin-top: 0.3rem;
  color: var(--navy);
  font-weight: 500;
}

.acc-locked-btn {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 3px;
  white-space: nowrap;
  align-self: center;
  cursor: pointer;
  transition: background 0.15s;
}

.acc-locked-btn:hover { background: var(--gold-dark); }

/* ── Unlocked / pending state after Gain Access submit ── */
.acc-pending {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  background: #eaf7ef;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #1a5c35;
  line-height: 1.4;
}
.acc-pending svg { flex-shrink: 0; }

/* ── Enquiry form highlight pulse (triggered by Request Details on desktop) ── */
@keyframes enquiry-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 175, 46, 0.55); }
  50%  { box-shadow: 0 0 0 10px rgba(230, 175, 46, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(230, 175, 46, 0); }
}
.enquiry-highlight {
  animation: enquiry-pulse 1.2s ease-out;
  border-radius: 10px;
}

/* ── Sidebar ── */
.listing-sidebar {
  position: sticky;
  top: 70px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-price-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  color: white;
}

.sidebar-price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,193,48,0.7);
  margin-bottom: 0.2rem;
}

.sidebar-price-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.sidebar-profit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.sidebar-profit-row strong { color: white; }

.sidebar-broker-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-broker-avatar {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.sidebar-broker-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}

.sidebar-broker-agency {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: -0.4rem;
}

.sidebar-btn {
  width: 100%;
  margin-bottom: 0;
}

.sidebar-enquiry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.enquiry-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--navy);
}

.btn-submit-enquiry {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.7rem;
  border-radius: 3px;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.3rem;
}

.btn-submit-enquiry:hover { background: var(--gold-dark); }
.btn-submit-enquiry:disabled { opacity: 0.6; cursor: default; }

/* ── Listing-page responsive ── */
@media (max-width: 960px) {
  .listing-layout { grid-template-columns: 1fr; }
  .listing-sidebar { position: static; }
  .gallery-main-wrap { height: 280px; }
  .financials-strip { flex-wrap: wrap; }
  .fin-box { min-width: 45%; }
}

@media (max-width: 560px) {
  .listing-title-main { font-size: 1.15rem; }
  .gallery-main-wrap { height: 220px; }
  .acc-locked { flex-direction: column; }
  .acc-locked-btn { width: 100%; text-align: center; }
  .fin-box { min-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .fin-box:last-child { border-bottom: none; }
  /* Hide the sidebar price card (duplicate of financials strip) on mobile */
  .sidebar-price-card { display: none !important; }
}

/* ══════════════════════════════════════════════════
   GAIN ACCESS INLINE FORM
   ══════════════════════════════════════════════════ */
.gain-access-card {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gain-access-copy { text-align: center; }
.gain-access-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.gain-access-sub {
  font-size: 0.88rem;
  opacity: 0.8;
  margin: 0;
}
.gain-access-form { display: flex; flex-direction: column; gap: 0.6rem; }
.gain-access-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}
.gain-access-fields input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
}
.gain-access-fields input::placeholder { color: rgba(255,255,255,0.5); }
.gain-access-fields input:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); }
.btn-gain-access {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  align-self: center;
  width: 100%;
}
.btn-gain-access:hover { background: var(--gold-dark); }
.btn-gain-access:disabled { opacity: 0.6; cursor: default; }
/* ── OTP verification screen ── */
.otp-copy { text-align: center; margin-bottom: 1rem; }
.otp-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.otp-sub {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
}
.otp-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.otp-form input[type="text"] {
  width: 100%;
  max-width: 260px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-align: center;
  outline: none;
  box-sizing: border-box;
}
.otp-form input[type="text"]:focus { border-color: var(--gold); background: rgba(255,255,255,0.18); }
.otp-form input[type="text"]::placeholder { color: rgba(255,255,255,0.4); letter-spacing: 0; }
.otp-resend {
  font-size: 0.78rem;
  opacity: 0.75;
  margin: 0;
}
.otp-resend-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.otp-resend-btn:disabled { color: rgba(255,255,255,0.4); text-decoration: none; cursor: default; }
.otp-actions {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  max-width: 320px;
}
.btn-otp-back {
  flex: 1;
  padding: 0.65rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-otp-back:hover { background: rgba(255,255,255,0.1); }
.otp-actions .btn-gain-access { flex: 2; }

.gain-access-success {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #eaf7ef;
  color: #1a5c35;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .gain-access-fields { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   ENQUIRY WIZARD
   ══════════════════════════════════════════════════ */
.wizard-progress-wrap {
  height: 4px;
  background: var(--border, #e5e7eb);
  border-radius: 2px;
  margin-bottom: 0.35rem;
  overflow: hidden;
}
.wizard-progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.wizard-step-label {
  font-size: 0.72rem;
  color: var(--text-muted, #888);
  margin: 0 0 1rem;
  text-align: right;
}
.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.wizard-hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted, #888);
}
.wizard-step .form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0;
}
.wizard-step input[type=text],
.wizard-step input[type=tel],
.wizard-step input[type=email],
.wizard-step select,
.wizard-step textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 7px;
  font-size: 0.9rem;
  color: var(--navy);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.wizard-step input:focus,
.wizard-step select:focus,
.wizard-step textarea:focus { border-color: var(--navy); }

.wizard-error {
  font-size: 0.78rem;
  color: #c0392b;
  margin: 0.4rem 0 0;
  padding: 0.35rem 0.6rem;
  background: #fdf0ef;
  border-radius: 5px;
  border-left: 3px solid #c0392b;
}
.wizard-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.btn-wizard-back {
  flex: 1;
  padding: 0.6rem;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-wizard-back:hover { background: #f5f5f5; }
.btn-wizard-next {
  flex: 2;
  padding: 0.6rem;
  border: none;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-wizard-next:hover { background: #1a2f4e; }

/* ══════════════════════════════════════════════════
   ENHANCED SIDEBAR ENQUIRY FORM
   ══════════════════════════════════════════════════ */
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.form-label-sm {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted, #666);
  margin-bottom: 0.35rem;
}
.contact-pref-toggle {
  display: flex;
  gap: 0.4rem;
}
.pref-btn {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 20px;
  background: #fff;
  color: var(--text, #333);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pref-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.buyer-qual-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.buyer-qual-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text, #333);
  cursor: pointer;
  line-height: 1.3;
}
.buyer-qual-item input[type="checkbox"] {
  margin-top: 0.1rem;
  accent-color: var(--navy);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

@media (max-width: 400px) {
  .form-row-two { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE NAVIGATION  (≤ 560px — desktop untouched above)
   ═══════════════════════════════════════════════════════ */

/* Hidden on desktop */
.mobile-topbar     { display: none; }
.mobile-nav-drawer { display: none; }

@media (max-width: 560px) {

  /* ── Sticky top bar ── */
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    padding: .55rem 1rem;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
  }
  .mobile-topbar-brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
  }
  .mobile-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 2px;
    display: flex;
    align-items: center;
    line-height: 1;
  }

  /* ── Nav drawer (fixed below topbar so it works wherever you scroll) ── */
  .mobile-nav-drawer.open {
    display: flex;
    flex-direction: column;
    background: var(--navy-dark);
    border-bottom: 2px solid var(--gold);
    position: fixed;
    top: 47px;
    left: 0;
    right: 0;
    z-index: 499;
    max-height: calc(100vh - 47px);
    overflow-y: auto;
  }
  .mobile-nav-drawer a {
    display: block;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    padding: .85rem 1.25rem;
    font-size: .92rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .mobile-nav-drawer a:last-child { border-bottom: none; }
  .mobile-nav-drawer a.mob-active { color: var(--gold); }
  .mobile-nav-drawer .mob-cta     { color: var(--gold); font-weight: 700; }

  /* ── Content padding so cards don't touch screen edges ── */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* ── Misc mobile fixes ── */
  .nav-show-all { display: none; }   /* redundant with Browse in drawer */

  .footer-bottom {
    flex-direction: column !important;
    gap: .4rem;
    text-align: center;
    font-size: .7rem;
    padding: .75rem 1rem;
  }

  /* ── Homepage hero: hide "Show All Businesses" button, search bar fills full width ── */
  #heroShowAllBtn { display: none; }

  /* ── Category bar: hide Sell button (phone accessible via topbar), tighten padding ── */
  #catSellBtn { display: none; }
  #catBar     { padding-left: .5rem; padding-right: .5rem; gap: 4px; }
}
