/* =========================================
   Steward Properties — Main Stylesheet
   ========================================= */

:root {
  --navy: #1a1f36;
  --navy-light: #252b4a;
  --navy-dark: #0f1225;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --gold-dark: #a8893a;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --gray-100: #f1f3f7;
  --gray-200: #e4e7ef;
  --gray-400: #9aa0b8;
  --gray-600: #5a6070;
  --gray-800: #2d3346;
  --text: #1a1f36;
  --text-muted: #6b7280;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
  --radius-lg: 8px;
  --shadow: 0 4px 20px rgba(26,31,54,.08);
  --shadow-lg: 0 12px 40px rgba(26,31,54,.15);
  --transition: all .25s ease;
  --font: 'Sora', system-ui, -apple-system, sans-serif;
  --font-heading: var(--font);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

p {
  font-family: var(--font);
}

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

/* ---- UTILITIES ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .tag {
  display: inline-block;
  background: var(--navy);           /* solid navy pill */
  color: var(--gold);                 /* gold on navy = 6.8 : 1 (AA Large + AAA normal text against #1a1f36) */
  border: 1.5px solid var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.tag {
  border: 1.5px solid var(--gold);
  box-shadow: 0 6px 18px rgba(26,31,54,.18);
}
.section-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
/* Contrast-fixed buttons (WCAG AA+) */
.btn-primary {
  background: var(--gold);
  color: var(--navy);              /* navy on gold = 7.1 : 1 (AAA) */
  border-color: var(--gold);
  font-weight: 800;
}
.btn-primary:hover {
  background: var(--gold-dark);    /* darker gold */
  color: var(--white);              /* white on gold-dark = 4.6 : 1 (AA) */
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,.3);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 700;
}
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);              /* navy on white = 13.5 : 1 (AAA) — was gold, too low */
  border-color: var(--gold);
  font-weight: 700;
}
.btn-outline:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);  /* brighter border for visibility on dark */
  font-weight: 700;
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-sm { padding: 7px 15px; font-size: 12px; border-radius: 4px; }
.btn-lg { padding: 14px 29px; font-size: 15px; border-radius: 5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-sale { background: #ffffff; color: #111827; }
.badge-rent { background: #ffffff; color: #111827; }
.badge-lease { background: #ffffff; color: #111827; }
.badge-featured { background: var(--gold); color: var(--navy); }
.badge-sold { background: #ffffff; color: #991b1b; }

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.site-header.solid { background: var(--navy); }

.topbar {
  background: var(--navy-dark);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a { color: rgba(255,255,255,.6); transition: var(--transition); }
.topbar-links a:hover { color: var(--gold); }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-social { display: flex; gap: 12px; align-items: center; }
.topbar-social a { color: rgba(255,255,255,.5); font-size: 13px; transition: var(--transition); line-height: 1; }
.topbar-social a:hover { color: var(--gold); }

.navbar { padding: 16px 0; }
.navbar .container { display: flex; align-items: center; gap: 32px; }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
/* When no image logo — show the emoji/icon placeholder */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Emoji placeholder only gets the box styling */
.brand-logo:not(:has(img)) {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 10px;
  font-size: 22px;
}
/* Image logo — no box, just the image */
.brand-logo img {
  display: block;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.brand-text { color: var(--white); }
.brand-name { font-size: 18px; font-weight: 800; line-height: 1; }
.brand-tagline { font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: 1px; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--gold); background: rgba(201,168,76,.1); }
.nav-link.active {
  color: var(--navy);
  background: var(--gold);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,168,76,.35);
}
.nav-link.active i { color: var(--navy); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-dropdown a:hover { background: var(--off-white); color: var(--gold); }

/* Wide 3-column mega dropdown */
.nav-dropdown-wide {
  display: flex;
  gap: 0;
  min-width: 750px;
  padding: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}
.nav-item:hover .nav-dropdown-wide {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-col {
  flex: 1;
  border-right: 1px solid var(--gray-200);
  padding: 0 14px;
}
.nav-dropdown-col:first-child { padding-left: 0; }
.nav-dropdown-col:last-child  { border-right: none; padding-right: 0; }
.nav-dropdown-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 0 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--gray-200);
}

/* Search-result sidebar filter (Broll-style) */
.prop-filter-sidebar {
  width: 240px;
  flex-shrink: 0;
}
.prop-filter-group { margin-bottom: 24px; }
.prop-filter-group h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.prop-filter-check {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; cursor: pointer; font-size: 14px;
}
.prop-filter-check input { accent-color: var(--gold); width: 16px; height: 16px; margin-right: 8px; cursor: pointer; }
.prop-filter-check .pfc-label { display: flex; align-items: center; gap: 8px; flex: 1; }
.prop-filter-check .pfc-count { font-size: 11px; color: var(--text-muted); font-weight: 600; background: var(--gray-100); padding: 1px 6px; border-radius: 20px; }
.prop-filter-check:hover .pfc-label { color: var(--gold); }

.prop-results-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.prop-results-main { flex: 1; min-width: 0; }

/* Top search bar on properties page */
.prop-search-bar {
  display: flex; gap: 10px; align-items: center;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 16px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.prop-search-bar input[type="text"] {
  flex: 2; min-width: 160px; border: none; outline: none;
  font-size: 14px; font-family: var(--font); background: transparent;
}
.prop-search-bar select {
  border: none; outline: none; font-size: 14px;
  font-family: var(--font); background: transparent;
  color: var(--text); padding: 0 4px; cursor: pointer;
}
.prop-search-bar .psb-divider { width: 1px; height: 24px; background: var(--gray-200); flex-shrink: 0; }

.navbar-cta { display: flex; align-items: center; gap: 10px; margin-left: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 80px 24px 40px;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { display: block; padding: 14px 0; color: rgba(255,255,255,.85); font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, #2a1a4a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,.06) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .5px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.7);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}
.hero-stat { text-align: left; }
.hero-stat-num { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ---- SEARCH BAR ---- */
.hero-search {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  margin-top: 44px;
  position: relative;
  z-index: 2;
}
/* ── Search tabs: Buy | Sell | Rent ── */
.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-200);
}
.search-tab {
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.search-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.search-tab:hover { color: var(--navy); }

/* ── Category pills: Residential | Commercial | Land ── */
.search-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-cat-pill {
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--text-muted);
  transition: var(--transition);
}
.search-cat-pill.active,
.search-cat-pill:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Search fields row ── */
.search-row {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.search-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}
.search-field select,
.search-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  appearance: none;
  transition: var(--transition);
}
.search-field select:focus,
.search-field input:focus { outline: none; border-color: var(--gold); }

/* Sell tab panel — CTA to list property */
.search-sell-panel {
  text-align: center;
  padding: 28px 16px 8px;
}
.search-sell-panel h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.search-sell-panel p  { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.search-sell-cats {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px;
}
.search-sell-cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 20px; border: 1.5px solid var(--gray-200); border-radius: 12px;
  text-decoration: none; color: var(--navy); font-size: 13px; font-weight: 700;
  transition: var(--transition); min-width: 100px;
}
.search-sell-cat:hover { border-color: var(--gold); background: rgba(201,168,76,.05); color: var(--navy); }
.search-sell-cat .ssc-icon { font-size: 28px; }

/* =========================================
   PROPERTY CARDS
   ========================================= */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.properties-grid-3 { grid-template-columns: repeat(3, 1fr); }
.properties-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .properties-grid-3, .properties-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .properties-grid-3, .properties-grid-4 { grid-template-columns: 1fr; } }

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-image {
  position: relative;
  height: 259px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.property-card:hover .card-image img { transform: scale(1.05); }

/* Card image carousel */
.card-image-inner { display: block; position: relative; width: 100%; height: 100%; }
.card-image-inner .card-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.card-image-inner .card-slide.active { opacity: 1; }
.card-image-inner .card-slide img { width: 100%; height: 100%; object-fit: cover; }
.card-image-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 10; }
.card-image-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; border: 1px solid rgba(255,255,255,.4); transition: background .2s; flex-shrink: 0; }
.card-image-dot.active { background: #fff; }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
}
.card-image-placeholder .prop-icon { font-size: 52px; margin-bottom: 8px; opacity: .5; }
.card-image-placeholder span { font-size: 12px; }

.card-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-actions { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.card-action-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}
.card-action-btn:hover { background: var(--gold); }
.card-price-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 17px;
}
.card-price-tag .per { font-size: 12px; font-weight: 400; opacity: .7; }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.card-location svg { width: 14px; height: 14px; flex-shrink: 0; }

.card-specs {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 0;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.spec-item span:first-child { font-size: 16px; }
.spec-item strong { color: var(--text); font-weight: 600; }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.card-time { font-size: 12px; color: var(--text-muted); }
.card-agent { display: flex; align-items: center; gap: 8px; }
.agent-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  overflow: hidden;
}
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-name { font-size: 12px; color: var(--text-muted); }

/* =========================================
   CATEGORIES SECTION
   ========================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,.04);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.category-icon { font-size: 54px; margin-bottom: 12px; line-height: 1; }
.category-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.category-count { font-size: 12px; color: var(--text-muted); }

/* =========================================
   WHY US / FEATURES
   ========================================= */
.features-bg { background: var(--off-white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 28px rgba(26,31,54,.08);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(201,168,76,.65);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(201,168,76,.20), rgba(201,168,76,.07));
  border: 1.5px solid rgba(201,168,76,.45);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 30px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(201,168,76,.14);
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.about-page .features-bg .section-header .tag,
.services-page .section-header .tag,
.service-enquiry-page .section-header .tag {
  background: rgba(201,168,76,.18) !important;
  color: #8a6924 !important;
  border: 1.5px solid #c9a84c !important;
  box-shadow: 0 6px 18px rgba(201,168,76,.12) !important;
}
.about-page .features-bg .feature-card {
  border: 1.5px solid #d7dbe7 !important;
  box-shadow: 0 10px 28px rgba(26,31,54,.08) !important;
}
.about-page .features-bg .feature-card:hover {
  border-color: #c9a84c !important;
}
.about-page .features-bg .feature-icon {
  background: linear-gradient(135deg, rgba(201,168,76,.20), rgba(201,168,76,.07)) !important;
  border: 1.5px solid #c9a84c !important;
  color: #8a6924 !important;
  box-shadow: 0 10px 24px rgba(201,168,76,.14) !important;
}

/* =========================================
   PROCESS STEPS
   ========================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--gold), rgba(201,168,76,.2));
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 72px;
  height: 72px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   AGENTS
   ========================================= */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.agents-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.agent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.agent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.agent-photo {
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a1a4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
}
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-info { padding: 22px; }
.agent-name { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.agent-title { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.agent-bio { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.agent-contacts { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.agent-contact { font-size: 12px; color: var(--text-muted); }
.agent-social { display: flex; justify-content: center; gap: 8px; }
.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--gold); }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-bg { background: var(--navy); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,.08); border-color: rgba(201,168,76,.3); }
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: rgba(255,255,255,.8); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy);
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-name { font-weight: 700; color: var(--white); font-size: 15px; }
.t-title { font-size: 12px; color: rgba(255,255,255,.5); }

/* =========================================
   BLOG
   ========================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-image {
  display: block;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a1a4a 100%);
  overflow: hidden;
  position: relative;
}
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-cat {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.blog-body { padding: 22px; }
.blog-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.blog-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.blog-title a:hover { color: var(--gold); }
.blog-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.read-more { font-size: 13px; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.read-more:hover { gap: 10px; }

/* ---- BLOG POST PAGE ---- */
.blog-post-hero {
  min-height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
/* Container inside blog hero must span full width as a flex item */
.blog-post-hero > .container {
  width: 100%;
  min-width: 0;
}
.blog-post-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,14,30,.62);
}
.blog-post-hero-content {
  position: relative;
  z-index: 2;
  padding: 52px 0;
  color: #fff;
  text-align: left;
  width: 100%; /* ensure full container width as flex child */
}
.blog-post-hero-content .breadcrumb { color: rgba(255,255,255,.6); }
.blog-post-hero-content .breadcrumb a { color: rgba(255,255,255,.7); }
.blog-post-hero-title {
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin: 14px 0 16px;
  max-width: 780px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.blog-post-hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.blog-post-hero-meta i { color: var(--gold); margin-right: 5px; }
.blog-cat-hero {
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}
/* Plain hero variant (no cover image) */
.blog-post-hero-plain {
  background: var(--navy);
  min-height: 280px;
  display: flex;
  align-items: center;
  padding-bottom: 0;
}
.blog-post-hero-plain .container { padding: 48px 0; }

/* Article title block — sits inside the article column, aligns with body text */
.blog-post-title-block {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--gray-200);
}
.blog-post-title-block h1 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 14px;
}
.blog-post-meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.blog-post-meta-row i { color: var(--gold); margin-right: 5px; }
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.blog-post-article {
  min-width: 0;
}
.blog-post-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-600);
}
.blog-post-body h2,.blog-post-body h3 { color: var(--navy); font-weight: 700; margin: 28px 0 12px; }
.blog-post-body p { margin-bottom: 18px; }
.blog-post-body ul,.blog-post-body ol { margin: 0 0 18px 24px; }
.blog-post-body img { border-radius: 8px; margin: 20px 0; }
.blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}
.blog-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 84px;
}
.blog-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  padding: 20px;
}
.blog-sidebar-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* ── Sidebar property: first item hero, rest compact ── */
.sidebar-prop-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  color: inherit;
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-prop-link:last-of-type { border-bottom: none; }
.sidebar-prop-link:hover .sidebar-prop-title { color: var(--gold); }

/* First item — full-width hero card */
.sidebar-prop-link.sidebar-prop-hero {
  display: block;
  padding: 0;
  margin-bottom: 12px;
  border-bottom: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy);
  position: relative;
}
.sidebar-prop-hero .sidebar-prop-img {
  width: 100%;
  height: 200px;
  border-radius: 0;
}
.sidebar-prop-hero .sidebar-prop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,18,37,.92) 0%, rgba(15,18,37,.2) 60%, transparent 100%);
}
.sidebar-prop-hero .sidebar-prop-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
}
.sidebar-prop-hero .sidebar-prop-title { font-size: 14px; color: #fff; }
.sidebar-prop-hero .sidebar-prop-loc   { color: rgba(255,255,255,.65); }
.sidebar-prop-hero .sidebar-prop-price { color: var(--gold); }

/* Compact items — thumbnail = ~half the sidebar width */
.sidebar-prop-img {
  width: calc(50% - 6px);
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.sidebar-prop-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-prop-title { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 2px; }
.sidebar-prop-loc { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.sidebar-prop-price { font-size: 12px; font-weight: 700; color: var(--gold); }
.sidebar-prop-price span { font-size: 11px; font-weight: 400; color: var(--text-muted); }

@media (max-width: 900px) {
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-post-sidebar { position: static; }
  .blog-post-hero { min-height: 320px; }
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: var(--navy); margin-bottom: 14px; }
.cta-section p { font-size: 17px; color: rgba(26,31,54,.7); margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand { margin-bottom: 16px; }
.footer-about { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  color: rgba(255,255,255,.6);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  width: fit-content;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-item { display: flex; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.footer-contact-item span:first-child { color: var(--gold); flex-shrink: 0; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); }
.footer-bottom-links a:hover { color: var(--gold); }

/* =========================================
   SINGLE PROPERTY PAGE
   ========================================= */
.page-hero {
  background: var(--navy);
  padding: 120px 0 48px;
  color: var(--white);
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; align-items: center; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb span { color: var(--gold); }
.page-hero h1 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 800; margin-bottom: 12px; }
.page-hero .meta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; color: rgba(255,255,255,.6); font-size: 14px; }

.property-detail { padding: 60px 0; }
.property-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }

.gallery-main { border-radius: var(--radius-lg); overflow: hidden; height: 440px; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy) 0%, #2a1a4a 100%); display: flex; align-items: center; justify-content: center; font-size: 80px; opacity: .3; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumb { height: 113px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .7; transition: var(--transition); }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; outline: 2px solid var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-section {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 22px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.detail-section h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.detail-specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.detail-spec { background: var(--off-white); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--gray-200); }
.detail-spec-icon { font-size: 20px; margin-bottom: 4px; }
.detail-spec-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.detail-spec-val { font-size: 15px; font-weight: 700; color: var(--navy); }

.amenities-list { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text);
}
.amenity-tag::before { content: '✓'; color: var(--success); font-weight: 700; }

.property-description { font-size: 15px; color: var(--text-muted); line-height: 1.9; }

/* Sidebar */
.property-sidebar { }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.sidebar-price { font-size: 32px; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.sidebar-price .per { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.sidebar-listing-type { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.contact-form .form-group { margin-bottom: 14px; }
.contact-form label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  font-family: var(--font);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 100px; }

/* =========================================
   PROPERTIES LISTING PAGE
   ========================================= */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border: 1px solid var(--gray-200);
}
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.filter-group label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.filter-group select,
.filter-group input {
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.filter-group select:focus,
.filter-group input:focus { outline: none; border-color: var(--gold); }

.properties-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.properties-count { font-size: 14px; color: var(--text-muted); }
.properties-count strong { color: var(--navy); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
}
.page-link:hover, .page-link.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* =========================================
   ALERTS / MESSAGES
   ========================================= */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(16,185,129,.1); color: #065f46; border: 1px solid rgba(16,185,129,.2); }
.alert-error { background: rgba(239,68,68,.1); color: #991b1b; border: 1px solid rgba(239,68,68,.2); }

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h2 { font-size: 32px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 32px; line-height: 1.8; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contact-detail h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 4px; }
.contact-detail p { font-size: 15px; color: var(--text); margin-bottom: 0; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .property-layout { grid-template-columns: 1fr; }
  .property-sidebar { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-cta, .topbar-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 56px 0; }
  .hero { padding: 110px 0 60px; }
  .hero-stats { gap: 24px; }
  .search-row { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-search { padding: 16px; }
  .blog-grid, .properties-grid, .agents-grid, .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 16px; }
}

/* =========================================
   MISC / HELPERS
   ========================================= */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 64px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }

.whatsapp-float {
  position: fixed;
  bottom: 96px; /* sit above the traffi-click widget button */
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.5); }

.back-to-top {
  position: fixed;
  bottom: 162px; /* above whatsapp-float which is now at 96px */
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* Loading overlay */
.loading { display: none; position: fixed; inset: 0; background: rgba(255,255,255,.8); z-index: 9999; align-items: center; justify-content: center; }
.loading.active { display: flex; }
.spinner { width: 44px; height: 44px; border: 3px solid var(--gray-200); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Transitions for page elements */
.fade-in { animation: fadeIn .6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   RESPONSIVE — comprehensive mobile patches
   (added 2026-06-06 for go-live)
   ========================================= */

/* ── Global: prevent any horizontal scroll on phones ───────────── */
html, body { overflow-x: hidden; }

@media (max-width: 1024px) {
  .container { padding: 0 18px; }
  .nav-dropdown-wide { width: min(640px, 92vw); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .section-header { margin-bottom: 36px; }

  /* Page hero — smaller on phones */
  .page-hero { padding: 84px 0 30px !important; }
  .page-hero h1 { font-size: clamp(22px, 5vw, 30px) !important; }

  /* Hero search — stack tabs and pills cleanly */
  .search-tabs { width: 100%; justify-content: flex-start; overflow-x: auto; }
  .search-tab { padding: 8px 14px; font-size: 13px; flex-shrink: 0; }
  .search-categories { gap: 6px; }
  .search-cat-pill { padding: 5px 12px; font-size: 12px; }
  .search-row { grid-template-columns: 1fr !important; gap: 10px; }
  .search-field select, .search-field input { font-size: 16px; /* prevent iOS zoom */ }

  /* Properties listing top bar */
  .prop-search-bar { flex-wrap: wrap; gap: 10px; }
  .prop-search-bar > * { flex: 1 1 100%; }
  .prop-search-bar .psb-divider { display: none; }
  .prop-search-bar button { min-height: 44px; }

  /* Property card overflow fix */
  .card-specs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
    overflow: visible !important;
  }
  .card-specs > * { flex-shrink: 0; }

  /* Property detail page */
  .property-layout { gap: 28px; }
  .detail-section { padding: 18px; }

  /* Contact page detail rows */
  .contact-detail { gap: 12px; }
  .contact-detail-icon { width: 40px; height: 40px; font-size: 18px; }

  /* Sell / sell-pay forms */
  .form-ctl { font-size: 16px; }

  /* Buttons grow to fit better */
  .btn { padding: 10px 16px; font-size: 14px; }
  .btn-lg { padding: 13px 22px; font-size: 15px; }

  /* Navigation dropdowns: full-width if shown */
  .nav-dropdown { width: 92vw; max-width: 92vw; }
  .nav-dropdown-wide { width: 92vw; max-width: 92vw; grid-template-columns: 1fr; }

  /* Tables become scrollable instead of breaking */
  table { display: block; overflow-x: auto; max-width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: clamp(22px, 6vw, 28px); }
  .section-header p  { font-size: 14px; }

  /* Property card adjustments */
  .property-card { border-radius: 12px; }
  .card-image { aspect-ratio: 4 / 3; }
  .card-body { padding: 16px; }
  .card-title { font-size: 15px; }
  .card-price-tag { font-size: 14px; padding: 4px 10px; }

  /* Forms: full-width and bigger tap targets */
  input, select, textarea { font-size: 16px; min-height: 44px; }
  textarea { min-height: 100px; }

  /* CTA section */
  .cta-section { padding: 56px 0; }
  .cta-section h2 { font-size: clamp(22px, 6vw, 28px); }
  .cta-section p  { font-size: 14px; }

  /* Pagination */
  .pagination { gap: 4px; }
  .page-link { width: 38px; height: 38px; font-size: 13px; }

  /* Floating actions: keep above safe area */
  .whatsapp-float { right: 16px; bottom: 88px; width: 50px; height: 50px; font-size: 24px; }
  .back-to-top    { right: 16px; bottom: 148px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .section { padding: 36px 0; }

  /* Hero — phones */
  .hero { padding: 90px 0 40px; }
  .hero h1 { font-size: clamp(24px, 7vw, 32px); }
  .hero p  { font-size: 14px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Buttons go full-width by default in stacked groups */
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  /* Categories grid: smaller cards on phones */
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-card { padding: 14px 10px; }
  .category-name { font-size: 13px; }

  /* Footer: 1 column with consistent spacing */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col h4 { margin-bottom: 14px; }
  .site-footer { padding-top: 44px; }
  .footer-bottom { padding: 18px 0; font-size: 12px; }

  /* Cards general */
  .card { border-radius: 10px; }
  .card-body { padding: 14px; }

  /* Property detail — gallery + side stack */
  .property-gallery { aspect-ratio: 3 / 2; }
  .property-title-section h1 { font-size: clamp(20px, 6vw, 26px); }
  .property-price-tag { font-size: 18px; padding: 6px 12px; }

  /* Map + sidebar widgets */
  .property-sidebar { gap: 16px; }
  .sidebar-card { padding: 16px; }

  /* Sell page step indicator wraps */
  .sell-steps { gap: 6px; }
  .sell-steps > div { padding: 6px 12px; font-size: 12px; }

  /* Modal / large drop-downs */
  .modal-card, .modal-body { padding: 18px; }
}

/* ── Ultra-small phones (<= 360px, e.g. older Android) ─────────── */
@media (max-width: 360px) {
  .container { padding: 0 10px; }
  body { font-size: 14px; }
  .section { padding: 32px 0; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .nav-link { font-size: 13px; }
  .hero h1 { font-size: 22px; }
  .hero p  { font-size: 13px; }
  .categories-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* Services page — top-of-grid CTA spacing */
.svc-header-actions { margin-top: 18px; }
.svc-header-actions .btn { min-width: 240px; justify-content: center; }
@media (max-width: 480px) {
  .svc-header-actions .btn { width: 100%; min-width: 0; }
}

/* ── Touch targets — ensure all clickable elements meet WCAG 2.5.5 (44x44) ── */
@media (max-width: 768px) {
  a.nav-link, button.btn, .mobile-nav a, .page-link, .pagination a,
  .footer-social a, .search-tab, .filter-toggle, .property-card a {
    min-height: 44px;
  }
  .footer-social a { min-width: 44px; }
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .9s ease;
  display: flex;
  flex-direction: column;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--navy);
  z-index: 1;
}
.slide-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 120px;
}
.slide-content h1 {
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  max-width: 800px;
}
.slide-content .hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 9px;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.dot.active { background: var(--gold); width: 28px; border-radius: 4px; }

/* Stats bar below slider */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(26,31,54,.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 0;
}
.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.hstat-num  { font-size: 22px; font-weight: 900; color: var(--gold); line-height: 1; }
.hstat-label{ font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; text-transform: uppercase; letter-spacing: 1px; }
.hstat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.1); flex-shrink: 0; }

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 36px;
  cursor: pointer;
  transition: color .2s;
  line-height: 1;
}
.lb-close:hover { color: var(--white); }
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 9px;
  color: var(--white);
  width: 52px; height: 52px;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 13px;
}

/* Gallery zoom hint */
.gallery-main { cursor: zoom-in; position: relative; }
.gallery-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 9px;
  backdrop-filter: blur(4px);
}

/* =========================================
   MORTGAGE CALCULATOR
   ========================================= */
.mortgage-calc {
  background: var(--off-white);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--gray-200);
}
.mortgage-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.mortgage-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.mortgage-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s;
}
.mortgage-field input:focus { outline: none; border-color: var(--gold); }
.mortgage-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mc-result {
  background: var(--white);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.mc-result-num { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.mc-result-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

@media (max-width: 768px) {
  .mortgage-results { grid-template-columns: 1fr 1fr; }
  .hstat { padding: 0 16px; }
  .hstat-num { font-size: 18px; }
  .slider-arrow { display: none; }
  .hero-stats-inner { gap: 0; }
}
@media (max-width: 480px) {
  .mortgage-results { grid-template-columns: 1fr; }
  .hstat-divider { display: none; }
  .hero-stats-inner { flex-wrap: wrap; }
}
