/* ============================================================
   Property Exchange Real Estate & Builders
   Theme: Royal Blue & Cream  |  Fonts: Playfair Display + Poppins
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --navy:        #0a1628;
  --navy-2:      #0f2140;
  --royal:       #1e3d8f;
  --royal-light: #2f57c9;
  --royal-glow:  rgba(30, 61, 143, 0.30);
  --cream:       #faf7f0;
  --cream-2:     #e8e2d5;
  --gold:        #b08d4a;
  --gold-light:  #c9a86a;
  --ink:         #14213d;
  --muted:       #4a5568;
  --line:        rgba(20, 33, 61, 0.10);
  --white:       #ffffff;

  --shadow-sm: 0 4px 14px rgba(11, 31, 63, 0.08);
  --shadow-md: 0 16px 40px rgba(11, 31, 63, 0.12);
  --shadow-lg: 0 30px 70px rgba(11, 31, 63, 0.20);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1200px;

  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body:    "Poppins", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
section { position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 700; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section.alt { background: var(--cream-2); }
.grid-cta-row { text-align: center; margin-top: 46px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--royal);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }

.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; transition: all 0.35s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--royal); color: #fff; box-shadow: 0 10px 26px var(--royal-glow); }
.btn-primary:hover { background: var(--royal-light); transform: translateY(-3px); box-shadow: 0 16px 34px var(--royal-glow); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #bd9757; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(176, 141, 74, 0.35); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }
.btn-ghost { border: 1.5px solid var(--royal); color: var(--royal); }
.btn-ghost:hover { background: var(--royal); color: #fff; transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn:active, .prop-btn:active, .nav-cta:active, .filter-tab:active, .size-chip:active { transform: translateY(0) scale(0.97); }

/* ---------- Skip Link (keyboard users) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600; font-size: 0.9rem;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  padding: 20px 0; transition: all 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 50px; height: 50px; border-radius: 12px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { line-height: 1.1; }
.brand-text b { font-family: var(--ff-display); font-size: 1.15rem; color: var(--navy); display: block; letter-spacing: 0.01em; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.header:not(.scrolled) .brand-text b { color: #fff; }
.header:not(.scrolled) .brand-text span { color: var(--gold-light); }

.menu { display: flex; align-items: center; gap: 30px; }
.menu a {
  font-weight: 500; font-size: 0.95rem; color: #fff; position: relative; padding: 4px 0;
  transition: color 0.3s;
}
.header.scrolled .menu a { color: var(--ink); }
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.menu a:hover::after, .menu a.active::after { width: 100%; }
.menu a.active { color: var(--gold); }
.header.scrolled .menu a.active { color: var(--royal); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 50px;
  background: var(--gold); color: var(--navy); font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(201,162,75,0.4); }
.nav-cta svg { width: 16px; height: 16px; }

.burger { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 6px 0; }
.burger span { height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: all 0.3s; }
.header.scrolled .burger span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding-top: 90px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../assets/img/hero.webp");
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(11,31,63,0.92) 0%, rgba(11,31,63,0.75) 45%, rgba(11,31,63,0.35) 100%);
}
.hero-inner { max-width: 720px; padding: 40px 0; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold-light); font-style: italic; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px;
  padding-top: 34px; border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stat b { font-family: var(--ff-display); font-size: 2.1rem; color: #fff; display: block; }
.hero-stat span { font-size: 0.85rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.7); }

/* ---------- Quick Search Bar ---------- */
.search-wrap { position: relative; z-index: 5; padding-top: 44px; }
.search-wrap + .stats-strip { padding-top: 128px; }
.search-bar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 22px; margin-bottom: -64px;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 16px; align-items: end;
}
.search-field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.search-field select, .search-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9rem; color: var(--ink); background: var(--cream); outline: none;
  transition: border 0.25s;
}
.search-field select:focus, .search-field input:focus { border-color: var(--royal); }

/* ---------- Stats Strip ---------- */
.stats-strip { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-card { padding: 20px; position: relative; }
.stat-card:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,0.12); }
.stat-num { font-family: var(--ff-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--gold-light); line-height: 1; }
.stat-num .suffix { color: #fff; }
.stat-label { margin-top: 10px; font-size: 0.9rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.75); }

/* ---------- Category Cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-md);
  isolation: isolate;
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,31,63,0) 30%, rgba(11,31,63,0.92) 100%); }
.cat-card:hover img { transform: scale(1.1); }
.cat-body { padding: 26px; width: 100%; }
.cat-body .count { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.cat-body h3 { color: #fff; margin: 6px 0 4px; }
.cat-body p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }
.cat-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 0.88rem; color: #fff; transition: gap 0.3s; }
.cat-card:hover .cat-link { gap: 14px; color: var(--gold-light); }
.cat-link svg { width: 16px; height: 16px; }

/* ---------- Property Cards ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 46px; }
.filter-tab {
  padding: 11px 24px; border-radius: 50px; font-weight: 500; font-size: 0.9rem;
  color: var(--ink); background: #fff; border: 1px solid var(--line); transition: all 0.3s var(--ease);
}
.filter-tab:hover { border-color: var(--royal); color: var(--royal); }
.filter-tab.active { background: var(--royal); color: #fff; border-color: var(--royal); box-shadow: 0 8px 20px var(--royal-glow); }

.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prop-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.prop-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(100deg, var(--cream-2) 40%, #f6f1e6 50%, var(--cream-2) 60%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.prop-card:hover .prop-media img { transform: scale(1.08); }
.prop-badge {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.94);
  color: var(--royal); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 6px 13px; border-radius: 50px;
}
.prop-tag {
  position: absolute; top: 14px; right: 14px; background: var(--gold);
  color: var(--navy); font-size: 0.72rem; font-weight: 700; padding: 6px 12px; border-radius: 50px;
}
.prop-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.prop-loc { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.prop-loc svg { width: 14px; height: 14px; color: var(--royal); }
.prop-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.prop-price { font-family: var(--ff-display); font-size: 1.3rem; color: var(--royal); font-weight: 700; margin: 6px 0 14px; }
.prop-price small { font-family: var(--ff-body); font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.prop-features { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.prop-feature { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink); }
.prop-feature svg { width: 16px; height: 16px; color: var(--royal); }
.prop-actions { display: flex; gap: 10px; margin-top: auto; }
.prop-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; transition: all 0.3s var(--ease);
}
.prop-btn svg { width: 16px; height: 16px; }
.prop-btn.call { background: var(--royal); color: #fff; }
.prop-btn.call:hover { background: var(--royal-light); }
.prop-btn.wa { background: #25d366; color: #fff; }
.prop-btn.wa:hover { background: #1eb257; }

.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- About / Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split-media .frame { position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.split-badge {
  position: absolute; right: -18px; bottom: 26px; background: var(--navy); color: #fff;
  padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow-md); text-align: center;
}
.split-badge b { font-family: var(--ff-display); font-size: 2.4rem; color: var(--gold-light); display: block; line-height: 1; }
.split-badge span { font-size: 0.82rem; color: rgba(255,255,255,0.8); }

.check-list { display: grid; gap: 14px; margin: 26px 0 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.check-list svg { width: 22px; height: 22px; color: var(--royal); flex: none; margin-top: 2px; }

/* ---------- Features / Services ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease); border: 1px solid transparent; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--royal), var(--gold)); transition: width 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card:hover::before { width: 100%; }
.feature-icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(30,61,143,0.12), rgba(201,162,75,0.14)); color: var(--royal);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; }
.feature-card.center { text-align: center; }
.team-avatar {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 18px; box-shadow: var(--shadow-sm);
}
.team-role { color: var(--royal); font-weight: 600; margin-bottom: 8px; }

/* ---------- Testimonials ---------- */
.testi-section { background: var(--navy); color: #fff; overflow: hidden; }
.testi-section h2 { color: #fff; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 32px; backdrop-filter: blur(6px);
}
.testi-quote { font-family: var(--ff-display); font-size: 3rem; color: var(--gold); line-height: 0.6; height: 26px; }
.testi-card p { color: rgba(255,255,255,0.85); font-style: italic; margin-bottom: 22px; }
.testi-person { display: flex; align-items: center; gap: 14px; }
.testi-person img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testi-person b { display: block; color: #fff; font-family: var(--ff-body); }
.testi-person span { font-size: 0.82rem; color: var(--gold-light); }
.stars { color: var(--gold-light); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.9rem; }

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(120deg, var(--royal) 0%, var(--navy) 100%);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../assets/img/cta.webp");
  background-size: cover; background-position: center; opacity: 0.14; mix-blend-mode: luminosity;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 14px auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 18px; transition: transform 0.3s var(--ease);
}
.contact-info-card:hover { transform: translateX(6px); }
.contact-info-card .ci-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--royal), var(--navy)); color: var(--gold-light); }
.contact-info-card .ci-icon svg { width: 22px; height: 22px; }
.contact-info-card b { display: block; color: var(--navy); font-family: var(--ff-body); margin-bottom: 2px; }
.contact-info-card p { font-size: 0.92rem; margin: 0; }
.contact-info-card a { color: var(--royal); font-weight: 500; }

.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.92rem; color: var(--ink); background: var(--cream); outline: none;
  transition: border 0.25s, box-shadow 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--royal); box-shadow: 0 0 0 3px rgba(47,87,201,0.12); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success {
  display: none; background: rgba(37,211,102,0.12); border: 1px solid #25d366; color: #178a44;
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.9rem; font-weight: 500;
}
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 60px; height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Page Banner (inner pages) ---------- */
.page-banner {
  position: relative; padding: 180px 0 90px; color: #fff; text-align: center; overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  background-image: url("../assets/img/banner.webp");
}
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,31,63,0.85), rgba(11,31,63,0.9)); }
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb { display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { opacity: 0.6; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.72); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 54px; }
.footer .brand-text b { color: #fff; }
.footer-about p { margin: 18px 0; font-size: 0.92rem; }
.footer h4 { color: #fff; font-family: var(--ff-body); font-size: 1rem; margin-bottom: 22px; letter-spacing: 0.02em; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.92rem; transition: color 0.25s, padding 0.25s; }
.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.92rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.08); transition: all 0.3s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; text-align: center; font-size: 0.85rem; }

/* ---------- Floating Buttons ---------- */
.floaties { position: fixed; right: 22px; bottom: 22px; z-index: 800; display: flex; flex-direction: column; gap: 14px; }
.float-btn {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-md); transition: transform 0.3s var(--ease); position: relative;
}
.float-btn svg { width: 26px; height: 26px; }
.float-btn:hover { transform: scale(1.1); }
.float-btn.wa { background: #25d366; }
.float-btn.call { background: var(--royal); }

/* Back to top */
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 800; width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll Reveal Animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Focus visibility (keyboard users) ---------- */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--royal); outline-offset: 3px;
}

/* ---------- Mobile Nav Panel ---------- */
.mobile-panel {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: var(--navy); z-index: 950;
  transform: translateX(100%); transition: transform 0.4s var(--ease); padding: 90px 30px 30px;
  box-shadow: -20px 0 60px rgba(0,0,0,0.3);
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a { display: block; color: #fff; font-size: 1.15rem; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-panel a.active { color: var(--gold-light); }
.mobile-panel .btn { margin-top: 24px; }
.panel-close { position: absolute; top: 26px; right: 26px; color: #fff; font-size: 1.8rem; line-height: 1; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 940; opacity: 0; visibility: hidden; transition: all 0.4s; }
.overlay.show { opacity: 1; visibility: visible; }

/* ---------- Listing Controls ---------- */
.size-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.size-chip {
  padding: 9px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 500;
  color: var(--ink); background: #fff; border: 1px solid var(--line); transition: all 0.3s var(--ease);
}
.size-chip:hover { border-color: var(--navy); }
.size-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.listing-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 34px;
}
.result-count { font-size: 0.9rem; color: var(--muted); }
.clear-filters { display: none; margin-left: 14px; color: var(--royal); font-weight: 600; font-size: 0.85rem; }
.clear-filters.show { display: inline-block; }
.clear-filters:hover { text-decoration: underline; }
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.sort-wrap select {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font-family: inherit; font-size: 0.85rem; color: var(--ink); outline: none;
}

/* ---------- Mobile Action Bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 890;
  display: none; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  background: var(--navy); padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(10, 22, 40, 0.25);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 6px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 0.88rem;
}
.mobile-bar svg { width: 18px; height: 18px; }
.mobile-bar .mb-call { background: var(--royal); }
.mobile-bar .mb-wa { background: #25d366; }
.mobile-bar .mb-form { background: var(--gold); color: var(--navy); }

/* ---------- Custom select chevron (replaces native arrow) ---------- */
.search-field select, .sort-wrap select, .form-group select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { order: -1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .menu, .nav-actions .nav-cta { display: none; }
  .burger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stat-card:nth-child(2)::after { display: none; }
  .feature-grid, .testi-grid { grid-template-columns: 1fr; }
  .cat-grid, .prop-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hero-stat b { font-size: 1.7rem; }
  .split-badge { right: 12px; }
  .mobile-bar { display: grid; }
  .floaties { display: none; }
  body { padding-bottom: 74px; }
  .to-top { bottom: 92px; }
}
@media (max-width: 480px) {
  .search-bar { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .container { padding: 0 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
