/* ═══════════════════════════════════════════════════
   ALDES ECLAT — Matching aldes.co.za aesthetic
   ═══════════════════════════════════════════════════ */

@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:      #0E1F3D;
  --navy-dark: #081429;
  --gold:      #FFC130;
  --gold-dark: #e6a800;
  --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: 38px;
}

.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-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;
  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: 1;
  max-width: 480px;
  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;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy-dark);
  padding: 3.5rem 1.5rem 2.5rem;
}

.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: 640px;
  width: 100%;
}

.hero-logo {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.hero-logo svg { width: 36px; height: 36px; }

.hero-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

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

.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: inline-block;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transition: all 0.15s;
}

.hero-show-all:hover { background: rgba(255,255,255,0.1); border-color: white; }

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  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: 58px;
}

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

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  text-decoration: none;
  min-width: 52px;
  transition: opacity 0.15s;
  color: white;
  flex-shrink: 0;
}

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

.cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  font-size: 0.68rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  border: none;
  background: transparent;
  transition: color 0.15s, background 0.15s;
}

.cat-tab:hover { color: var(--navy); background: var(--light); }
.cat-tab.active { color: var(--navy); font-weight: 700; }
.cat-tab svg { opacity: 0.6; }
.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.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background: none;
  border: none;
}

/* ── 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, #1a2f52 0%, #0E1F3D 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: 14px;
  right: -22px;
  background: var(--green);
  color: white;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 1.8rem;
  transform: rotate(45deg);
  transform-origin: center;
  white-space: nowrap;
}

/* 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;
}

/* ── 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); }

/* ── 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; }
}
