/* ============================================================
   TELOVIHI.COM — Violet Realtors | Telovi Horizon Investments
   Brand Stylesheet — Navy · Gold · Forest Green
   ============================================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --navy: #0B1F3A;
  --navy-light: #142848;
  --navy-mid: #1a3255;
  --gold: #C9A84C;
  --gold-light: #E8C97B;
  --gold-pale: #F5EDD3;
  --white: #FFFFFF;
  --off-white: #F8F6F1;
  --gray-100: #F4F4F4;
  --gray-200: #E8E8E8;
  --gray-400: #ABABAB;
  --gray-600: #666666;
  --gray-800: #333333;
  --text-dark: #1A1A2E;
  --success: #28A745;

  /* ── Brand Greens (from Violet Realtors / company profile) ── */
  --green:        #2D6A4F;   /* emerald medium */
  --green-dark:   #1A4731;   /* deep forest    */
  --green-light:  #40916C;   /* lighter emerald */
  --green-pale:   #D8F3DC;   /* soft mint tint  */
  --green-shadow: 0 4px 20px rgba(45,106,79,0.25);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.25);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

.display-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}

.gold-text { color: var(--gold); }
.white-text { color: var(--white); }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-dark { background: var(--navy); }
.section-light { background: var(--off-white); }
.section-gray { background: var(--gray-100); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
}

.navbar.scrolled {
  background: var(--navy);
  padding: 0.875rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Violet Realtors SVG logo ─────────────────────────────── */
.navbar-logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.navbar-logo-img:hover { opacity: 0.88; }

/* ── Green accent utilities ───────────────────────────────── */
.bg-green-dark  { background: var(--green-dark); }
.bg-green       { background: var(--green); }
.text-green     { color: var(--green); }
.text-green-dark { color: var(--green-dark); }
.border-green   { border-color: var(--green); }

.badge-green {
  background: var(--green);
  color: var(--white);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.25rem 0.65rem; border-radius: 50px;
}

/* Green section highlight strip */
.green-accent-bar {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  border-radius: 2px; margin-bottom: 1rem;
}

/* Green card variant */
.card-green {
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: var(--white); border-radius: var(--radius-lg);
}

/* Green CTA button */
.btn-green {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--green-shadow);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.navbar-menu a:hover { color: var(--gold); }
.navbar-menu a:hover::after { width: 100%; }
.navbar-menu a.active { color: var(--gold); }
.navbar-menu a.active::after { width: 100%; }

.navbar-cta { margin-left: 1rem; }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 8px);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  color: var(--gray-800) !important;
  font-size: 0.875rem;
}

.dropdown-menu a:hover { background: var(--off-white); color: var(--gold) !important; }
.dropdown-menu a::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(11,31,58,0.92) 0%, rgba(11,31,58,0.7) 60%, rgba(11,31,58,0.85) 100%),
    url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 span { color: var(--gold); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Search Bar */
.property-search {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 2rem auto 0;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-field select,
.search-field input {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  background: var(--white);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

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

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--gold);
  padding: 2rem 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 500;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-pale);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gold-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-card .link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.service-card .link:hover { gap: 0.625rem; }

/* Green accent variant for nature/agri/solar service cards */
.service-card.service-green .service-icon {
  background: var(--green-pale);
  color: var(--green-dark);
}
.service-card.service-green::before {
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
}
.service-card.service-green:hover {
  border-color: var(--green-light);
}
.service-card.service-green .link {
  color: var(--green-dark);
}

/* ---------- Property Cards ---------- */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}

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

.property-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-card-img img { transform: scale(1.05); }

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.property-badge.kenya { background: var(--green); color: var(--white); }
.property-badge.uae { background: var(--navy); color: var(--gold); }
.property-badge.featured { background: #28A745; color: white; }

.property-location-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(11,31,58,0.8);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.property-card-body { padding: 1.25rem; }

.property-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.property-location {
  font-size: 0.8rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.property-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.property-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.property-price small {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-400);
}

.property-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Market Tabs ---------- */
.market-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--gray-100);
  padding: 0.375rem;
  border-radius: 50px;
  margin-bottom: 2.5rem;
  width: fit-content;
}

.market-tab {
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  color: var(--gray-600);
}

.market-tab.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ---------- Why Partner Cards ---------- */
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}

.why-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ---------- Team Card ---------- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 0;
}

.team-photo {
  width: 280px;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo .initials {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
}

.team-info {
  padding: 2.5rem;
  flex: 1;
}

.team-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--navy); margin-bottom: 1rem; }
.cta-banner p { color: var(--navy); opacity: 0.75; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover { background: var(--gold); color: var(--navy); }

.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: 0.625rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 0.125rem;
  flex-shrink: 0;
  width: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.1;
}

.page-hero .container { position: relative; z-index: 2; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb i { font-size: 0.65rem; }

.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 540px; }

/* ---------- Filter Bar ---------- */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 160px;
}

.filter-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filter-field select,
.filter-field input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.filter-field select:focus,
.filter-field input:focus {
  border-color: var(--gold);
}

/* ---------- Contact Form ---------- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1.125rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  background: var(--white);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ---------- Office Cards ---------- */
.office-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
}

.office-card .flag {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.office-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.office-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.office-detail i {
  color: var(--gold);
  margin-top: 0.125rem;
  width: 14px;
  flex-shrink: 0;
}

/* ---------- About Sections ---------- */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vision-box, .mission-box {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.vision-box {
  background: var(--navy);
  color: var(--white);
}

.mission-box {
  background: var(--gold-pale);
  border: 2px solid var(--gold);
}

.vision-box h3 { color: var(--gold); margin-bottom: 1rem; }
.vision-box p { color: rgba(255,255,255,0.75); line-height: 1.8; font-style: italic; }
.mission-box h3 { color: var(--navy); margin-bottom: 1rem; }
.mission-box p { color: var(--gray-600); line-height: 1.8; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.75rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-title { font-size: 1rem; margin-bottom: 0.25rem; }
.timeline-desc { font-size: 0.875rem; color: var(--gray-600); }

/* ---------- Service Detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 380px;
}

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

.service-feature-list {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.service-feature-item i { color: var(--gold); flex-shrink: 0; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  color: white;
  font-size: 1.5rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

/* ---------- Tag / Chip ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.875rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-gold { background: var(--gold-pale); color: var(--navy); }
.tag-navy { background: var(--navy); color: var(--white); }

/* ---------- Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.accordion-header:hover { color: var(--gold); }
.accordion-header i { transition: transform 0.3s ease; color: var(--gold); }
.accordion-item.open .accordion-header i { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.accordion-body.open { max-height: 400px; padding-bottom: 1.25rem; }

/* ---------- Scroll-in Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Utilities ---------- */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-600); }
.font-serif { font-family: 'Playfair Display', serif; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .vision-mission { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .team-photo { width: 100%; height: 200px; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .navbar-menu { display: none; }
  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
  }
  .navbar-toggle { display: flex; }
  .navbar-cta { display: none; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .property-search { flex-direction: column; }
  .filter-bar { flex-direction: column; }
  .market-tabs { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hero-actions { flex-direction: column; }
  .service-feature-list { grid-template-columns: 1fr; }
}

/* ============================================================
   PROPERTIES PORTAL — SaaS Dashboard Extensions
   Aligned to UI8 Real Estate SaaS Kit design language
   ============================================================ */

/* ---------- Portal Layout (sidebar + main) ---------- */
.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 100vh;
  background: var(--gray-100);
}

.portal-sidebar {
  background: var(--navy);
  min-height: calc(100vh - 70px);
  padding: 1.75rem 1.5rem;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.portal-sidebar::-webkit-scrollbar { width: 4px; }
.portal-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.portal-main {
  padding: 2rem;
  overflow-x: hidden;
}

/* ---------- Sidebar Filter Groups ---------- */
.filter-group {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.875rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.25rem;
}
.filter-option:hover { background: rgba(255,255,255,0.06); }
.filter-option.active { background: rgba(201,168,76,0.15); }

.filter-option input[type=checkbox],
.filter-option input[type=radio] {
  width: 15px; height: 15px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-option label,
.filter-option .opt-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-count {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

.filter-option.active label,
.filter-option.active .opt-text { color: var(--gold); }
.filter-option.active .filter-count { background: rgba(201,168,76,0.2); color: var(--gold); }

/* Price Range Slider */
.price-range-wrap { padding: 0 0.25rem; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) 60%, rgba(255,255,255,0.2) 60%);
  outline: none;
  margin-bottom: 0.5rem;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
.range-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

/* Beds selector */
.beds-selector { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.bed-btn {
  padding: 0.375rem 0.75rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.bed-btn:hover { border-color: var(--gold); color: var(--gold); }
.bed-btn.active { border-color: var(--gold); background: rgba(201,168,76,0.15); color: var(--gold); }

/* Sidebar search */
.sidebar-search {
  position: relative;
  margin-bottom: 1.5rem;
}
.sidebar-search input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  color: var(--white);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
}
.sidebar-search input::placeholder { color: rgba(255,255,255,0.35); }
.sidebar-search input:focus { border-color: var(--gold); background: rgba(255,255,255,0.1); }
.sidebar-search i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ---------- Portal Top Bar ---------- */
.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buy/Rent Toggle (Pill) */
.buy-rent-toggle {
  display: flex;
  background: var(--white);
  border-radius: 50px;
  padding: 5px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
}
.toggle-btn {
  padding: 0.625rem 1.75rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.toggle-btn.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.toggle-btn.active.rent { background: var(--gold); color: var(--navy); }

/* View toggle (grid/list) */
.view-toggle { display: flex; gap: 0.25rem; }
.view-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-400);
  transition: var(--transition);
  font-size: 0.875rem;
}
.view-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.view-btn:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

/* Results / Sort bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.results-text { font-size: 0.875rem; color: var(--gray-600); }
.results-text strong { color: var(--navy); font-weight: 700; }

.sort-bar { display: flex; align-items: center; gap: 0.75rem; }
.sort-label { font-size: 0.8rem; color: var(--gray-600); white-space: nowrap; }
.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 11L3 6h10z'/%3E%3C/svg%3E") no-repeat right 0.5rem center / 12px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--gold); }

/* Active Filter Chips */
.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.875rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--gold-pale);
  color: var(--navy);
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
}
.chip:hover { background: var(--gold); }
.chip .chip-remove { font-size: 0.7rem; color: var(--gray-600); }
.chip:hover .chip-remove { color: var(--navy); }
.chip-clear { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-600); }
.chip-clear:hover { background: var(--gray-200); }

/* ---------- Market Section Headers ---------- */
.market-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}
.market-section-header.uae { border-left-color: #009000; }
.market-section-header.diaspora { border-left-color: #6C5CE7; }

.market-header-left { display: flex; align-items: center; gap: 0.875rem; }
.market-flag-lg { font-size: 1.75rem; }
.market-header-left h3 { font-size: 1.1rem; margin: 0; color: var(--navy); }
.market-header-left span { font-size: 0.78rem; color: var(--gray-600); }

/* ---------- Enhanced Property Cards (SaaS style) ---------- */
.prop-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border: 1.5px solid transparent;
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-pale);
}

/* Image area */
.prop-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.prop-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prop-card:hover .prop-img img { transform: scale(1.05); }

/* Image overlay gradient */
.prop-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,0.55) 0%, transparent 50%);
}

/* Price on image */
.prop-price-overlay {
  position: absolute;
  bottom: 0.875rem;
  left: 0.875rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.4rem 0.875rem;
  border-radius: 6px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}
.prop-price-overlay small {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  display: block;
  line-height: 1;
  margin-top: 1px;
}

/* Status badge */
.prop-status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.prop-status.for-sale { background: rgba(11,31,58,0.85); color: var(--gold); }
.prop-status.for-rent { background: rgba(201,168,76,0.9); color: var(--navy); }
.prop-status.off-plan { background: rgba(108,92,231,0.9); color: #fff; }
.prop-status.new { background: rgba(40,167,69,0.9); color: #fff; }
.prop-status.featured { background: rgba(201,168,76,0.95); color: var(--navy); }

/* Favourite button */
.prop-fav {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  color: var(--gray-400);
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}
.prop-fav:hover { background: var(--white); color: #E74C3C; transform: scale(1.1); }
.prop-fav.active { color: #E74C3C; }

/* Card body */
.prop-body { padding: 1rem 1.125rem 1.125rem; }

.prop-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.375rem;
}

.prop-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prop-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-bottom: 0.875rem;
}
.prop-location i { color: var(--gold); font-size: 0.7rem; }

.prop-divider { height: 1px; background: var(--gray-200); margin: 0.625rem 0; }

.prop-stats {
  display: flex;
  gap: 0;
  align-items: center;
}
.prop-stat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--gray-600);
  padding-right: 0.875rem;
  border-right: 1px solid var(--gray-200);
  margin-right: 0.875rem;
}
.prop-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.prop-stat i { color: var(--navy); font-size: 0.7rem; }

.prop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--gray-200);
}
.prop-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.prop-market-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.prop-market-tag.kenya { background: var(--green-pale); color: var(--green-dark); }
.prop-market-tag.uae { background: #E3F2FD; color: #0D47A1; }
.prop-market-tag.diaspora { background: #EDE7F6; color: #4527A0; }

/* List view card */
.prop-card.list-view {
  display: flex;
  flex-direction: row;
  height: 160px;
  border-radius: var(--radius);
}
.prop-card.list-view .prop-img {
  width: 240px;
  height: 100%;
  flex-shrink: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.prop-card.list-view .prop-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.prop-card.list-view .prop-price-overlay {
  display: none;
}
.prop-card.list-view .prop-list-price {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.prop-list-price { display: none; }

/* Properties grid */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.props-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.props-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

/* ---------- Map toggle bar ---------- */
.map-toggle-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
}
.map-toggle-bar span { font-size: 0.875rem; color: var(--gray-600); }
.map-toggle-bar strong { color: var(--navy); }

/* ---------- Property Detail Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 448px;
}
.gallery-main {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
}
.gallery-main img, .gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-main:hover img, .gallery-thumb:hover img { transform: scale(1.04); }
.gallery-thumb { position: relative; overflow: hidden; }
.gallery-more {
  position: absolute;
  inset: 0;
  background: rgba(11,31,58,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-more:hover { background: rgba(11,31,58,0.8); }
.gallery-more-btn {
  position: absolute;
  bottom: 0.875rem;
  right: 0.875rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 0.4rem 0.875rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  border: none;
}

/* Amenities grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border-radius: var(--radius);
  font-size: 0.825rem;
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
}
.amenity-item i { color: var(--gold); font-size: 0.875rem; flex-shrink: 0; }

/* Agent card */
.agent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--gray-200);
  text-align: center;
}
.agent-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.agent-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.agent-role { font-size: 0.78rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.agent-stat { font-size: 0.78rem; color: var(--gray-600); }

/* Mortgage calculator */
.mortgage-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--white);
}
.mortgage-card h4 { color: var(--gold); margin-bottom: 1.25rem; font-size: 1rem; }
.mortgage-field { margin-bottom: 1rem; }
.mortgage-field label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; margin-bottom: 0.375rem; }
.mortgage-field input, .mortgage-field select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  color: var(--white);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
}
.mortgage-field input:focus, .mortgage-field select:focus { border-color: var(--gold); }
.mortgage-field select option { background: var(--navy); }
.mortgage-result {
  background: rgba(201,168,76,0.12);
  border: 1.5px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
}
.mortgage-result .monthly { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.mortgage-result .monthly-label { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
}
.page-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn.arrow { color: var(--gray-400); }
.page-btn.arrow:hover { color: var(--navy); border-color: var(--navy); }

/* No results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  display: none;
}
.no-results i { font-size: 3rem; color: var(--gray-200); margin-bottom: 1rem; }
.no-results h3 { color: var(--navy); margin-bottom: 0.5rem; }
.no-results p { color: var(--gray-600); font-size: 0.875rem; }

/* ---------- Responsive Portal ---------- */
@media (max-width: 1024px) {
  .portal-layout { grid-template-columns: 240px 1fr; }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar {
    position: fixed; top: 0; left: -300px; z-index: 2000;
    width: 280px; height: 100vh; padding-top: 4rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .portal-sidebar.open { left: 0; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1999;
  }
  .sidebar-overlay.open { display: block; }
  .portal-main { padding: 1rem; }
  .props-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 220px 110px 110px; height: auto; }
  .gallery-main { grid-row: span 1; }
  .amenities-grid { grid-template-columns: repeat(2,1fr); }
  .prop-card.list-view { flex-direction: column; height: auto; }
  .prop-card.list-view .prop-img { width: 100%; height: 180px; }
}

/* ============================================================
   QUALITY POLISH — plan-design-review pass
   Focus visibility, a11y, motion, touch targets, slop removal
   ============================================================ */

/* ---------- Skip to content (keyboard a11y) ---------- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--gold);
  color: var(--navy);
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  box-shadow: var(--shadow-md);
}
.skip-to-content:focus {
  left: 0;
  top: 0;
  outline: 3px solid var(--navy);
  outline-offset: -3px;
}

/* ---------- Global focus-visible treatment ---------- */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Dark-bg focus variant so gold stays visible on dark */
.section-dark a:focus-visible,
.section-dark button:focus-visible,
.navbar a:focus-visible,
.footer a:focus-visible,
.hero a:focus-visible,
.page-hero a:focus-visible {
  outline-color: var(--gold-light);
}
.btn:focus-visible {
  outline-offset: 3px;
}

/* ---------- Touch target minimums (WCAG 2.5.5 AAA = 44px) ---------- */
.btn { min-height: 44px; }
.btn-sm { min-height: 40px; padding: 0.6rem 1.25rem; }
.view-btn,
.bed-btn,
.page-btn {
  min-height: 40px;
  min-width: 40px;
}
.market-tab,
.toggle-btn {
  min-height: 42px;
}
.navbar-toggle {
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}
.prop-fav {
  min-width: 36px;
  min-height: 36px;
}
.footer-social a {
  min-width: 40px;
  min-height: 40px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-bg {
    background-attachment: scroll !important;
  }
}

/* ---------- Fix mobile fixed-bg bug (iOS parallax) ---------- */
@media (max-width: 768px) {
  .hero-bg { background-attachment: scroll; }
}

/* ---------- Dropdown keyboard support ---------- */
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 8px);
}

/* ---------- Mobile menu: proper hide from AT ---------- */
@media (max-width: 768px) {
  .navbar-menu { display: none !important; }
  .navbar-menu.open { display: flex !important; }
}

/* ---------- Why-card redesign (kill emoji slop) ---------- */
.why-card {
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.why-card:hover::after { transform: scaleY(1); }

.why-card .why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(201,168,76,0.12);
  border: 1.5px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.why-card:hover .why-icon {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: scale(1.05);
}

/* ---------- Emoji-icon fallback (for any legacy .icon usage left) ---------- */
.why-card .icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  filter: grayscale(0.2);
  opacity: 0.85;
}

/* ---------- Placeholder links (Privacy/Terms/socials not yet wired) ---------- */
.link-soon {
  cursor: help;
  opacity: 0.6;
  position: relative;
}
.link-soon::after {
  content: 'Coming soon';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.link-soon:hover::after,
.link-soon:focus-visible::after {
  opacity: 1;
}

/* ---------- Form success region (replaces fake button-swap) ---------- */
.form-alert {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid transparent;
  gap: 0.75rem;
  align-items: flex-start;
}
.form-alert.show { display: flex; }
.form-alert.success {
  background: rgba(40,167,69,0.08);
  border-color: rgba(40,167,69,0.3);
  color: #1a6b30;
}
.form-alert.error {
  background: rgba(220,53,69,0.08);
  border-color: rgba(220,53,69,0.3);
  color: #8a1f2a;
}
.form-alert i { margin-top: 0.15rem; flex-shrink: 0; font-size: 1rem; }

/* Counter pre-populates target value on DOMReady then animates — no flash */

/* ---------- Accordion a11y: treat div as button when JS promotes it ---------- */
.accordion-header[role="button"] {
  user-select: none;
}
.accordion-header[role="button"]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Testimonial stars a11y ---------- */
.stars[aria-label] { cursor: default; }

/* ---------- Typography rhythm: break the repeating section pattern ---------- */
.section-title + .section-subtitle,
.section-title + .divider + .section-subtitle {
  margin-top: 1rem;
}
.label + .section-title { margin-top: 0.25rem; }

/* ---------- Partners strip: kill pipe separators, use real spacing ---------- */
.partners-strip .container > span:not(.partner-item) {
  display: none !important;
}

/* ---------- WhatsApp float: don't cover content on small screens ---------- */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    bottom: 1rem;
    right: 1rem;
  }
}

/* ---------- Hero min-height fix for short viewports ---------- */
@media (max-height: 700px) and (min-width: 769px) {
  .hero { min-height: 640px; }
}

/* ---------- Sticky focus within main content ---------- */
main:focus { outline: none; }

/* ---------- Print basics (investors printing brochures) ---------- */
@media print {
  .navbar,
  .whatsapp-float,
  .navbar-toggle,
  .footer-social,
  .hero-bg,
  .partners-strip,
  .cta-banner,
  .skip-to-content { display: none !important; }
  .hero,
  .page-hero {
    background: white !important;
    color: black !important;
    padding: 1rem 0 !important;
    min-height: auto !important;
  }
  .hero h1,
  .hero p,
  .page-hero h1,
  .page-hero p { color: black !important; }
  .section { padding: 1.5rem 0 !important; page-break-inside: avoid; }
  a { color: black !important; text-decoration: underline; }
  .btn { display: none !important; }
}
