/* ============================================================
   SEBEI PROPERTY PARTNERS — Global Styles
   Colors: Deep Green #1f5d4c | Brass Gold #c9a24b | Cream #faf8f3
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  --green:        #1f5d4c;
  --green-hover:  #174a3c;
  --green-mid:    #2d7a63;
  --green-pale:   #e8f0ed;
  --gold:         #c9a24b;
  --gold-hover:   #b8913c;
  --gold-pale:    #f5e9cb;
  --cream:        #faf8f3;
  --white:        #ffffff;
  --dark:         #1a1a1a;
  --mid:          #4a4a4a;
  --muted:        #7a7a7a;
  --border:       #e2ddd6;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.15);
  --radius:       8px;
  --radius-lg:    16px;
  --nav-h:        68px;
  --t:            0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
select { appearance: none; -webkit-appearance: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.18;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--mid); line-height: 1.7; }

/* ===== UTILITIES ===== */
.container   { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section     { padding: 4rem 0; }
.section-lg  { padding: 5.5rem 0; }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.hidden      { display: none !important; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.overline {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-header { margin-bottom: 2.5rem; }
.section-header p { margin-top: 0.6rem; max-width: 560px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0.6rem auto 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn-green  { background: var(--green); color: var(--white); }
.btn-green:hover  { background: var(--green-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold   { background: var(--gold);  color: var(--white); }
.btn-gold:hover   { background: var(--gold-hover);  transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: white; }
.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,.35); }
.btn-lg  { padding: 0.95rem 2rem; font-size: 0.95rem; }
.btn-sm  { padding: 0.45rem 0.875rem; font-size: 0.78rem; }
.btn-block { width: 100%; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  transition: background var(--t), box-shadow var(--t);
}
.nav.transparent { background: transparent; }
.nav.scrolled { background: var(--white); box-shadow: var(--shadow-sm); }
.nav.solid { background: var(--green); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  color: white;
  font-weight: 800;
  font-size: 0.72rem;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.04em;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.logo-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}
.logo-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.nav.transparent .logo-name,
.nav.solid .logo-name { color: white; }
.nav.scrolled .logo-name { color: var(--dark); }

.nav-links {
  display: none;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all var(--t);
}
.nav.transparent .nav-links a,
.nav.solid .nav-links a { color: rgba(255,255,255,.85); }
.nav.transparent .nav-links a:hover,
.nav.solid .nav-links a:hover { color: white; background: rgba(255,255,255,.12); }
.nav.scrolled .nav-links a { color: var(--mid); }
.nav.scrolled .nav-links a:hover { color: var(--green); background: var(--green-pale); }
.nav-links a.active { font-weight: 700; }
.nav.scrolled .nav-links a.active { color: var(--green); }
.nav.transparent .nav-links a.active,
.nav.solid .nav-links a.active { color: white; }

.nav-cta { margin-left: 0.5rem; display: none; }

.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  padding: 5px;
  border-radius: 4px;
  transition: all var(--t);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--t);
}
.nav.transparent .nav-toggle,
.nav.solid .nav-toggle { color: white; }
.nav.scrolled .nav-toggle { color: var(--dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 899;
  overflow-y: auto;
  padding: 1rem 1.25rem 2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile ul li a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile ul li a:hover { background: var(--green-pale); color: var(--green); }
.nav-mobile .btn { margin-top: 1rem; display: flex; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta   { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?w=1800&q=85');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,70,55,.92) 0%, rgba(31,93,76,.72) 45%, rgba(0,0,0,.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: calc(var(--nav-h) + 4rem) 1.25rem 5rem;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-content h1 { color: white; margin-bottom: 1rem; max-width: 680px; }
.hero-content > p { color: rgba(255,255,255,.78); max-width: 520px; font-size: 1.05rem; margin-bottom: 2rem; }

.hero-trust {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.hero-trust span {
  color: rgba(255,255,255,.7);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-trust span::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

/* ===== SEARCH BOX ===== */
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 700px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.search-box .field-wrap {
  position: relative;
  flex: 1;
}
.search-box .field-wrap .field-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.search-box select,
.search-box input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.3rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color var(--t);
}
.search-box select:focus,
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box .btn { padding: 0.85rem 1.5rem; border-radius: var(--radius); }

@media (min-width: 640px) {
  .search-box { flex-direction: row; flex-wrap: nowrap; align-items: center; }
  .search-box .field-wrap { min-width: 0; }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--green);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-item span {
  font-size: 0.75rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 0.3rem;
  display: block;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== PROPERTIES GRID ===== */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 580px) { .properties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .properties-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== PROPERTY CARD ===== */
.property-card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,26,26,.05), 0 12px 28px -12px rgba(31,93,76,.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid #ece5d9;
  position: relative;
}
.property-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.property-card:hover::after { opacity: 1; }
.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1px 3px rgba(26,26,26,.05), 0 22px 44px -16px rgba(31,93,76,.28);
  border-color: var(--gold-pale);
}
.card-image {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
  background: var(--green-pale);
}
.card-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.property-card:hover .card-image img { transform: scale(1.07); }

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-sale { background: var(--gold);     color: white; }
.badge-rent { background: var(--green);    color: white; }
.badge-land { background: #7a5c1e;         color: white; }
.badge-sold { background: #8a8a8a;         color: white; }

.card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.1;
}
.card-price-note { font-size: 0.72rem; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 400; margin-left: 0.25rem; }
.card-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0.35rem 0 0.4rem;
  line-height: 1.35;
}
.card-location {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: auto;
  padding-bottom: 0.875rem;
}
.card-features {
  display: flex;
  gap: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--mid);
}
.card-features span { display: flex; align-items: center; gap: 0.3rem; }

/* ===== FILTERS ===== */
.filters-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.filters-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.filter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mid);
  transition: all var(--t);
  background: transparent;
  cursor: pointer;
}
.filter-tab:hover  { border-color: var(--green); color: var(--green); }
.filter-tab.active { background: var(--green); color: white; border-color: var(--green); }

.filter-selects { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-select-wrap { position: relative; flex: 1; min-width: 130px; }
.filter-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.75rem;
  color: var(--muted);
}
.filter-select {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--mid);
  background: var(--cream);
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--gold); }
@media (min-width: 768px) {
  .filters-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .filter-select-wrap { min-width: 150px; flex: 0 0 auto; }
}

/* ===== LISTINGS COUNT ===== */
.listings-count {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.listings-count strong { color: var(--dark); }

/* ===== PROPERTY DETAIL ===== */
.property-page { padding-top: var(--nav-h); }

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-top: 58%;
  background: var(--green-pale);
  cursor: zoom-in;
}
.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.75rem;
  pointer-events: none;
}
.gallery-nav button {
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: background var(--t);
  backdrop-filter: blur(4px);
}
.gallery-nav button:hover { background: white; }
.gallery-count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,.55);
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 76px; height: 58px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color var(--t);
  opacity: 0.7;
}
.gallery-thumb.active { border-color: var(--gold); opacity: 1; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
  .property-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
  }
}

.feature-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.75rem 0;
}
@media (min-width: 480px) { .feature-chips { grid-template-columns: repeat(4, 1fr); } }
.feature-chip {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 0.875rem 0.75rem;
  text-align: center;
}
.feature-chip strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--green);
  line-height: 1;
}
.feature-chip span {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
  display: block;
}

.enquire-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.enquire-card .eq-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.enquire-card .eq-note { font-size: 0.78rem; color: var(--muted); margin: 0.25rem 0 1.5rem; }
.enquire-card .btn { margin-bottom: 0.75rem; }
.enquire-divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}
.enquire-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.enquire-detail-row span:first-child { color: var(--muted); }
.enquire-detail-row span:last-child { font-weight: 600; color: var(--dark); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
  color: white;
}
.page-hero h1 { color: white; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,.75); max-width: 540px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--t); }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { color: rgba(255,255,255,.35); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 0.875rem; }
.cta-section > .container > p { color: rgba(255,255,255,.78); max-width: 520px; margin: 0 auto 2.25rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
}
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.testimonial-text {
  font-style: italic;
  color: var(--mid);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-pale);
  flex-shrink: 0;
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.88rem; color: var(--dark); }
.testimonial-author span  { font-size: 0.72rem; color: var(--muted); }

/* ===== PILLARS ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.pillar-card:hover { box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 56px; height: 56px;
  background: linear-gradient(145deg, var(--green-pale), #dce9e4);
  border: 1px solid rgba(31,93,76,.12);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  margin-bottom: 1.25rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-icon svg { width: 26px; height: 26px; stroke-width: 1.75; }
.pillar-card:hover .pillar-icon {
  background: linear-gradient(145deg, var(--green), var(--green-mid));
  color: var(--gold-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(31,93,76,.4);
}
.pillar-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pillar-card p   { font-size: 0.875rem; }

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

.team-card { text-align: center; }
.team-avatar {
  width: 100%; padding-top: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  background: var(--green-pale);
}
.team-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin-bottom: 0.2rem; }
.team-card .role { font-size: 0.78rem; color: var(--gold); font-weight: 600; }
.team-card .bio  { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }

/* ===== ABOUT HERO ===== */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .about-story { grid-template-columns: 1fr 1fr; } }
.about-story-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-top: 65%;
  position: relative;
  background: var(--green-pale);
}
.about-story-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== CONTACT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1.6fr; } }

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  height: fit-content;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-item p, .contact-item a { color: var(--dark); font-size: 0.9rem; font-weight: 500; }
.contact-item a:hover { color: var(--green); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
  background: var(--green-pale);
}
.map-wrap iframe { width: 100%; min-height: 380px; border: none; display: block; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.375rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--dark);
  background: white;
  transition: border-color var(--t);
}
.form-control:focus { outline: none; border-color: var(--green); }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint  { font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; }

/* ===== FOOTER ===== */
.footer {
  background: #111;
  color: rgba(255,255,255,.6);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2.5fr 1fr 1fr 1.5fr; } }

.footer-brand p { font-size: 0.82rem; line-height: 1.75; margin-top: 1rem; }
.footer h5 {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a  { font-size: 0.82rem; transition: color var(--t); }
.footer ul a:hover { color: var(--gold); }
.footer address {
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.9;
}
.footer address a { transition: color var(--t); }
.footer address a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 800;
  background: #25D366;
  color: white;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  transition: all var(--t);
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 6px 24px rgba(37,211,102,.5); }

/* ===== SKELETON LOADERS ===== */
.skeleton {
  background: linear-gradient(90deg, #f0efed 25%, #e5e4e0 50%, #f0efed 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.sk-card { border-radius: var(--radius-lg); overflow: hidden; background: white; border: 1px solid var(--border); }
.sk-img  { height: 200px; }
.sk-body { padding: 1.2rem; }
.sk-line { height: 13px; margin-bottom: 0.75rem; border-radius: 4px; }
.sk-line.short   { width: 55%; }
.sk-line.shorter { width: 38%; }

/* ===== TOAST ===== */
.toast-wrap {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--dark);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.22s ease forwards;
}
.toast.success { border-left: 4px solid #27ae60; }
.toast.error   { border-left: 4px solid #e74c3c; }
@keyframes toastIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
}
.empty-state .icon { font-size: 2.75rem; margin-bottom: 1rem; }
.empty-state h3    { margin-bottom: 0.5rem; }
.empty-state p     { font-size: 0.9rem; }

/* ===== LOAD MORE ===== */
.load-more-wrap { text-align: center; margin-top: 2.5rem; }

/* ===== SECTION DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ===== BADGE PILLS ===== */
.pill {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill-sale { background: #fef3d0; color: #a07818; }
.pill-rent { background: var(--green-pale); color: var(--green); }
.pill-land { background: #f0e8d0; color: #7a5c1e; }
.pill-available { background: #d1f5e3; color: #156a3d; }
.pill-sold      { background: #ffe0de; color: #b02a1e; }

/* ===== ADMIN ===== */
.admin-page { background: #f2f3f5; min-height: 100vh; }

/* Login */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
}
.admin-login-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.admin-login-card h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.admin-login-card > p { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; }

/* Sidebar */
.admin-sidebar {
  width: 250px;
  background: #1a1d21;
  min-height: 100vh;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform var(--t);
  transform: translateX(-100%);
}
.admin-sidebar.open { transform: translateX(0); }
@media (min-width: 1024px) {
  .admin-sidebar { transform: translateX(0); }
  .admin-main { margin-left: 250px; }
}

.admin-sidebar-logo {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-nav { padding: 1rem; flex: 1; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  color: rgba(255,255,255,.6);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--t);
  margin-bottom: 0.2rem;
  cursor: pointer;
  text-decoration: none;
}
.admin-nav-link:hover  { color: white; background: rgba(255,255,255,.08); }
.admin-nav-link.active { color: white; background: var(--green); }
.admin-nav-link .n-icon { font-size: 1rem; width: 20px; text-align: center; }

.admin-sidebar-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-foot p { font-size: 0.75rem; color: rgba(255,255,255,.4); }
.admin-sidebar-foot a { font-size: 0.78rem; color: rgba(255,255,255,.55); transition: color var(--t); }
.admin-sidebar-foot a:hover { color: var(--gold); }

/* Top bar */
.admin-topbar {
  background: white;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 { font-size: 1.15rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--dark); }
.admin-sidebar-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  cursor: pointer;
}
.admin-sidebar-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
}
@media (min-width: 1024px) { .admin-sidebar-toggle { display: none; } }

.admin-content { padding: 1.5rem; }

/* Admin stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-stat {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.admin-stat .astat-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.admin-stat .astat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.3rem; }

/* Table */
.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 2rem;
}
.admin-card-header {
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.admin-card-header h3 { font-size: 0.95rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-table th {
  background: #f8f9fa;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.t-thumb {
  width: 52px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.t-title-cell strong { display: block; font-weight: 600; font-size: 0.85rem; }
.t-title-cell span   { font-size: 0.75rem; color: var(--muted); }
.t-price { font-weight: 700; color: var(--green); white-space: nowrap; }
.t-actions { display: flex; gap: 0.4rem; }
.t-btn {
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--t);
}
.t-btn-edit   { background: var(--green-pale); color: var(--green); }
.t-btn-edit:hover { background: var(--green); color: white; }
.t-btn-del    { background: #ffe0de; color: #b02a1e; }
.t-btn-del:hover { background: #b02a1e; color: white; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  margin: auto;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { font-size: 1.05rem; }
.modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--t);
}
.modal-close:hover { background: var(--border); color: var(--dark); }
.modal-body { padding: 1.5rem; }
.modal-foot {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.75rem;
  color: var(--muted);
}
.select-wrap select { padding-right: 2rem; }

/* Image upload */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  background: var(--cream);
}
.img-upload-area:hover { border-color: var(--green); background: var(--green-pale); }
.img-upload-area.drag-over { border-color: var(--gold); background: var(--gold-pale); }
.img-upload-area p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.img-upload-area .upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.img-previews {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.img-preview {
  position: relative;
  width: 78px; height: 62px;
  border-radius: var(--radius);
  overflow: hidden;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .rm-img {
  position: absolute;
  top: 2px; right: 2px;
  background: rgba(0,0,0,.65);
  color: white;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
}

.uploading-bar {
  height: 3px;
  background: var(--green-pale);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
  display: none;
}
.uploading-bar .bar-fill {
  height: 100%;
  background: var(--green);
  animation: barPulse 1.2s ease infinite;
  width: 60%;
}
.uploading-bar.active { display: block; }
@keyframes barPulse {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Demo mode banner */
.demo-banner {
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.82rem;
  color: #7a5c1e;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
}
.sidebar-overlay.open { display: block; }
@media (min-width: 1024px) { .sidebar-overlay { display: none !important; } }

/* Confirm dialog */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.confirm-overlay.open { display: flex; }
.confirm-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.confirm-card .icon { font-size: 2.5rem; margin-bottom: 0.875rem; }
.confirm-card h3 { margin-bottom: 0.5rem; }
.confirm-card p { font-size: 0.88rem; margin-bottom: 1.5rem; }
.confirm-actions { display: flex; gap: 0.75rem; justify-content: center; }

/* Responsive helpers */
@media (min-width: 640px)  { .hide-mobile { display: block !important; } }
@media (max-width: 639px)  { .hide-mobile { display: none !important;  } }

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-animate { will-change: opacity, transform; }

  .property-card {
    transition: transform 0.28s cubic-bezier(.22,.61,.36,1), box-shadow 0.28s ease, border-color 0.2s ease;
  }
  .property-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 1px 3px rgba(26,26,26,.05), 0 24px 48px -16px rgba(31,93,76,.30);
    border-color: var(--gold-pale);
  }

  .pillar-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

  .testimonial-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

  .btn { transition: all 0.2s cubic-bezier(.22,.61,.36,1); }
}

/* ===== PRINT ===== */
@media print {
  .nav, .wa-float, .filters-section { display: none; }
}

/* ================================================================
   MOBILE DESIGN POLISH — ≤767px
   Most visitors are on phones — this block makes the experience
   feel premium: larger touch targets, brand-coloured dropdowns,
   tighter spacing, no iOS auto-zoom, safe WhatsApp placement.
   ================================================================ */

/* --- Spacing tighten-up ---------------------------------------- */
@media (max-width: 767px) {
  .container { padding: 0 1rem; }
  .section   { padding: 2.75rem 0; }
}

/* --- Hero on small screens ------------------------------------ */
@media (max-width: 767px) {
  .hero-content {
    padding: calc(var(--nav-h) + 2rem) 1rem 3rem;
  }
  .hero-content > p { font-size: 0.95rem; }
  .hero-trust { gap: 1rem; margin-top: 1.25rem; }
  .hero-trust span { font-size: 0.8rem; }
}

/* --- Page-hero on interior pages ------------------------------ */
@media (max-width: 767px) {
  .page-hero { padding: calc(var(--nav-h) + 1.5rem) 0 2rem; }
}

/* --- Search box: 16 px font prevents iOS auto-zoom ------------ */
@media (max-width: 639px) {
  .search-box {
    padding: 0.75rem;
    border-radius: var(--radius);
    gap: 0.5rem;
  }
  .search-box select,
  .search-box input {
    font-size: 1rem;       /* ≥16 px = no iOS zoom */
    min-height: 50px;
    padding: 0.75rem 1rem 0.75rem 2.4rem;
  }
  .search-box .btn {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    border-radius: var(--radius);
    justify-content: center;
  }
}

/* ===============================================================
   FILTER BAR — the main mobile improvement
   Rebrand selects to green/gold, 48 px touch targets, 2-col grid
   =============================================================== */
@media (max-width: 767px) {
  .filters-section { padding: 1rem 0; }
  .filters-inner   { gap: 0.875rem; }

  /* Type pills — comfortably tappable, wrap cleanly */
  .filter-tabs { gap: 0.4rem; }
  .filter-tab {
    padding: 0.6rem 1.05rem;
    font-size: 0.875rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  /* Dropdown grid: 2 columns so they fill the screen cleanly */
  .filter-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .filter-select-wrap { flex: none; min-width: 0; }

  /* Styled to match the green/gold brand */
  .filter-select {
    width: 100%;
    min-height: 48px;
    padding: 0.625rem 2rem 0.625rem 0.875rem;
    font-size: 1rem;                            /* 16 px — no iOS zoom */
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    border: 1.5px solid rgba(31, 93, 76, 0.38); /* subtle green */
    border-radius: var(--radius);
    transition: border-color var(--t), box-shadow var(--t);
  }
  .filter-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
    outline: none;
  }
  /* Green chevron to complete the brand look */
  .filter-select-wrap::after {
    color: var(--green);
    font-size: 0.78rem;
    right: 0.7rem;
  }
  /* Clear button spans full width on its own row */
  .filter-selects > .btn {
    grid-column: 1 / -1;
    min-height: 42px;
    font-size: 0.875rem;
  }
}

/* --- Property cards ------------------------------------------- */
@media (max-width: 767px) {
  .properties-grid { gap: 1.25rem; }
  .card-image      { padding-top: 60%; }
  .card-body       { padding: 1rem 1.125rem 1.125rem; }
  .card-price      { font-size: 1.42rem; }
  .card-features   { gap: 0.75rem; }
}

/* --- Stats bar ------------------------------------------------ */
@media (max-width: 767px) {
  .stats-bar { padding: 2rem 0; }
  .stat-item strong { font-size: 1.75rem; }
}

/* --- CTA section: stack buttons on small screens -------------- */
@media (max-width: 639px) {
  .cta-section { padding: 3.5rem 0; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }
}

/* --- Nav mobile menu: taller tap targets ---------------------- */
@media (max-width: 767px) {
  .nav-mobile { padding: 0.25rem 1rem 2.5rem; }
  .nav-mobile ul li a {
    padding: 1rem 0.875rem;
    font-size: 1rem;
  }
}

/* --- WhatsApp float: tuck into corner, doesn't overlap toasts - */
@media (max-width: 767px) {
  .wa-float {
    width: 50px; height: 50px;
    bottom: 1.25rem;
    right: 1rem;
  }
  .wa-float svg { width: 22px; height: 22px; }
  /* Push toasts above the WA button */
  .toast-wrap { bottom: 5rem; }
}

/* --- Contact form inputs: 16 px prevents iOS zoom ------------- */
@media (max-width: 767px) {
  .form-control {
    font-size: 1rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
  }
  textarea.form-control { min-height: 120px; }
  /* First/last name side-by-side → stack on smallest phones */
  @media (max-width: 479px) {
    .form-row { grid-template-columns: 1fr; }
  }
}

/* --- Pillars / testimonials: comfy mobile padding ------------- */
@media (max-width: 599px) {
  .pillar-card      { padding: 1.5rem; }
  .testimonial-card { padding: 1.375rem; }
}

/* --- Footer spacing ------------------------------------------- */
@media (max-width: 639px) {
  .footer { padding: 3rem 0 0; }
  .footer-grid { gap: 2rem; }
}

/* --- Safe area on notched phones (iPhone X+) ------------------ */
@supports (padding: max(0px)) {
  @media (max-width: 767px) {
    .wa-float {
      bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem));
    }
    .nav-mobile {
      padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 1.5rem));
    }
  }
}

/* ============================================================
   VISUAL POLISH — depth, tint & gold accents
   ============================================================ */

/* Tinted, faintly-textured background so white cards separate */
.bg-featured {
  background:
    radial-gradient(circle at 1px 1px, rgba(31,93,76,.04) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(180deg, #f4efe5 0%, var(--cream) 60%);
}

/* Refined gold accent rule under centered section headings */
.section-header.centered h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin: 0.95rem auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  border-radius: 2px;
}

/* Lucide icons render crisp at brand weight */
.pillar-icon [data-lucide] { width: 26px; height: 26px; }
