:root {
  /* Yool design system (from DESIGN.md) */
  --primary: #0f4c81;
  --primary-deep: #00355f;
  --primary-container: #0f4c81;
  --on-primary: #ffffff;
  --brand-green: #16a34a;
  --brand-green-hover: #15803d;
  --secondary: #5c5f60;
  --surface: #f9f9fe;
  --surface-low: #f3f3f8;
  --surface-container: #ededf3;
  --white: #ffffff;
  --on-surface: #191c1f;
  --on-surface-variant: #42474f;
  --outline: #727780;
  --outline-variant: #c2c7d1;
  --error: #ba1a1a;

  /* Legacy aliases used across PHP templates */
  --navy: var(--primary);
  --navy-deep: var(--primary-deep);
  --navy-mid: #1a5f9c;
  --navy-soft: #2d7ab8;
  --gold: var(--brand-green);
  --gold-light: #86efac;
  --gold-hover: var(--brand-green-hover);
  --off: var(--surface);
  --muted: var(--secondary);
  --text: var(--on-surface);
  --line: var(--outline-variant);
  --shadow: 0 8px 32px 0 rgba(15, 76, 129, 0.04);
  --radius: 12px;
  --header-h: 80px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Plus Jakarta Sans", system-ui, sans-serif;
  --site-photo: url("../images/hero-villa.png");
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--on-surface);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
#main { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .container { width: min(var(--container), calc(100% - 128px)); }
}

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--brand-green); color: #fff; padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; }

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ambient-shadow { box-shadow: var(--shadow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 22px; font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; cursor: pointer; transition: 0.2s ease;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--brand-green); color: #fff; }
.btn-gold:hover { background: var(--brand-green-hover); transform: translateY(-1px); }
.btn-navy { background: var(--primary); color: #fff; }
.btn-navy:hover { background: var(--primary-deep); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* Topbar + Header (Yool glass nav) */
.topbar { display: none; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--outline-variant); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
}
.logo-mark { display: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong {
  font-size: 1.35rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em;
}
.logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline);
}
.logo-light .logo-text strong { color: #fff; }
.logo-light .logo-text span { color: rgba(255,255,255,.7); }
.logo-light .logo-img { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav ul a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--secondary); position: relative; padding-bottom: 4px;
}
.site-nav ul a:hover,
.site-nav ul a.active { color: var(--primary); }
.site-nav ul a.active { border-bottom: 2px solid var(--primary); }
.site-nav ul a.nav-dashboard { color: var(--primary); font-weight: 800; }
.nav-tools { display: flex; gap: 8px; }
.nav-select select {
  border: 1px solid var(--outline-variant); background: #fff;
  border-radius: 10px; padding: 8px 10px; color: var(--primary); font-weight: 600; font-size: 12px;
}
.nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-user { font-size: 14px; color: var(--primary); font-weight: 600; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--primary); }
.nav-overlay { display: none; }

body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }

/* Hero — full-bleed professional */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  color: var(--on-surface);
  overflow: hidden;
  margin-top: 0;
  padding-top: var(--header-h);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  position: absolute;
  inset: -4%;
  background: var(--site-photo) center / cover no-repeat;
  animation: heroZoom 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 76, 129, 0.55) 0%, rgba(15, 76, 129, 0.28) 42%, rgba(0, 53, 95, 0.18) 100%),
    linear-gradient(to top, rgba(9, 20, 38, 0.35), transparent 55%);
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 72px 0 88px;
  max-width: 720px;
}
.hero-panel {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 24px 64px rgba(9, 20, 38, 0.18);
}
.hero-brand {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--primary);
  margin: 0 0 14px;
}
.hero-brand-sub { display: none; }
.eyebrow {
  display: inline-block;
  color: var(--brand-green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  max-width: 22ch;
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hero p.lede {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--secondary);
  max-width: 38ch;
  margin: 0 0 28px;
  line-height: 1.55;
}

.hero-search {
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 14px 40px rgba(15, 76, 129, 0.12);
}
.hero-app-cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-app-cta .btn {
  min-height: 48px;
  gap: 8px;
}
.search-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface-low);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 10px;
}
.search-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.search-tabs button.is-active {
  background: var(--primary);
  color: #fff;
}
.search-tabs button:not(.is-active):hover {
  background: rgba(15, 76, 129, 0.08);
  color: var(--primary);
}

.search-card {
  width: 100%;
  margin: 0;
  background: transparent;
  color: var(--text);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  gap: 8px;
  text-align: left;
  border: 0;
  align-items: end;
}
.search-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--outline);
  margin: 0 0 6px 4px;
}
.search-control {
  position: relative;
}
.search-control > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline);
  font-size: 14px;
  pointer-events: none;
}
.search-card input,
.search-card select,
.filter-bar input,
.filter-bar select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 14px;
  background: var(--surface-low);
  color: var(--on-surface);
  outline: none;
  transition: 0.2s ease;
  min-height: 52px;
}
.search-card .search-control input,
.search-card .search-control select {
  padding-left: 40px;
}
.search-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23727780' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.search-card input:focus,
.search-card select:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.15);
}
.search-card .btn {
  align-self: end;
  height: 52px;
  padding-inline: 24px;
  border-radius: 12px;
  background: var(--brand-green);
  color: #fff;
  white-space: nowrap;
}
.search-card .btn:hover {
  background: var(--brand-green-hover);
}
.hero-login-actions { display: none; }

/* Sections */
.section { padding: 100px 0; background: #fff; }
.section-alt { background: var(--surface-low); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2,
.page-hero h1,
.cta-band h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--primary);
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-head p { color: var(--secondary); margin-top: 10px; }

.property-grid,
.category-grid,
.stats-grid,
.why-grid,
.agent-grid { display: grid; gap: 24px; }
.property-grid { grid-template-columns: repeat(3, 1fr); }

/* Property cards — marketplace (GuriLink-inspired) */
.property-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 76, 129, 0.06);
  border: 1px solid var(--outline-variant);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.1);
}
.property-media {
  position: relative; display: block; height: 200px; overflow: hidden;
}
.property-media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.property-card:hover .property-media img { transform: scale(1.05); }
.card-price {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(15, 76, 129, 0.92); color: #fff;
  font-weight: 800; font-size: 1.05rem; padding: 8px 12px; border-radius: 10px;
}
.badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92);
  color: var(--primary); font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
}
.badge-listing { z-index: 2; }
.badge-sale { background: rgba(255,255,255,.92); color: var(--primary); }
.badge-rent { background: rgba(22,163,74,.95); color: #fff; }
.badge-type {
  top: 12px; left: auto; right: 56px;
  background: rgba(15,76,129,.85); color: #fff;
}
.badge-sold { top: auto; bottom: 12px; left: auto; right: 12px; background: #ba1a1a; color: #fff; }
.property-price {
  position: static; background: none; color: var(--brand-green);
  font-weight: 800; font-size: 1.25rem; padding: 0; border-radius: 0;
}
.card-tools {
  position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 3;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,.9);
  display: grid; place-items: center; color: var(--primary);
}
.icon-btn:hover { background: var(--primary); color: #fff; }
.property-body { padding: 14px 16px 16px; }
.card-type {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--outline); margin-bottom: 4px;
}
.property-body h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; line-height: 1.3;
}
.card-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
}
.card-specs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-specs i {
  color: var(--primary);
  font-size: 13px;
}
.property-location { color: var(--secondary); font-size: 13px; margin-bottom: 0; }
.property-meta {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 18px 0; border-top: 1px solid rgba(194,199,209,.45);
  border-bottom: 1px solid rgba(194,199,209,.45); margin-bottom: 18px;
  color: var(--secondary); font-size: 13px; font-weight: 600;
}
.property-meta i { color: var(--outline); margin-right: 4px; }
.property-body .btn {
  border: 1px solid var(--primary); color: var(--primary); background: transparent; border-radius: 12px;
}
.property-body .btn:hover { background: var(--primary); color: #fff; }
.property-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 4px;
}

/* Browse */
.browse-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px;
}
.browse-option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  border: 1px solid var(--outline-variant); background: #fff; border-radius: 16px;
  padding: 18px 20px; cursor: pointer; color: var(--on-surface); transition: 0.2s ease;
}
.browse-option:hover, .browse-option.is-active {
  border-color: var(--primary); box-shadow: var(--shadow);
}
.browse-option.is-active { background: rgba(15, 76, 129, 0.04); }
.browse-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-low); color: var(--primary); font-size: 1.1rem;
}
.browse-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand-green); }
.browse-footer { text-align: center; margin-top: 28px; }

/* Categories */
.category-grid { grid-template-columns: repeat(5, 1fr); }
.category-card {
  position: relative; height: 320px; border-radius: 16px; overflow: hidden; display: block;
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.category-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,76,129,.65), transparent 55%);
}
.category-card:hover img { transform: scale(1.08); }
.category-card span {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  color: #fff; font-weight: 700; font-size: 1.2rem;
}

/* Stats */
.stats-band {
  background: var(--primary);
  color: #fff; padding: 64px 0;
}
.stats-grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item strong {
  display: block; font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
}
.stat-item span {
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px;
  opacity: 0.8; font-weight: 600;
}

/* About / agents / why */
.about-grid, .split-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.about-visual img { width: 100%; height: 480px; object-fit: cover; border-radius: 24px; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--primary); margin-bottom: 14px; }

.agent-profile-grid {
  align-items: start;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
}
.agent-profile-photo {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, #d7e3ef 0%, #eef3f8 100%);
  box-shadow: var(--shadow);
}
.agent-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.agent-profile-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(to top, rgba(10, 39, 68, 0.4), transparent);
  pointer-events: none;
}
.agent-profile-photo .agent-licensed {
  z-index: 1;
}
.about-hero-tagline {
  margin: 16px 0 0; font-size: 1.15rem; font-weight: 600; color: rgba(255,255,255,.92);
}
.purpose-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.purpose-card {
  background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow);
}
.purpose-card h3 { color: var(--primary); margin: 0 0 10px; font-weight: 700; }
.purpose-card p { color: var(--secondary); margin: 0; line-height: 1.65; }
.checklist { margin: 18px 0 24px; }
.checklist li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--secondary); }
.checklist i { color: var(--brand-green); margin-top: 3px; }

.agent-grid { grid-template-columns: repeat(4, 1fr); }
.agent-card {
  background: #fff; border-radius: 24px; overflow: hidden; text-align: center;
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.agent-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 39, 68, 0.14); }
.agent-card-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(145deg, #d7e3ef 0%, #eef3f8 100%);
}
.agent-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.agent-card:hover .agent-card-photo img { transform: scale(1.04); }
.agent-card-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(10, 39, 68, 0.45), transparent);
  pointer-events: none;
}
.agent-licensed {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  background: rgba(10, 39, 68, 0.92); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
}
.agent-card-body { padding: 0 0 8px; }
.agent-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px 16px 0; color: var(--primary); font-size: 12px; font-weight: 700;
}
.agent-brand img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.agent-brand-inline { justify-content: flex-start; margin: 0 0 10px; font-size: 14px; }
.agent-card h3 { font-size: 1.2rem; color: var(--primary); margin-top: 10px; font-weight: 700; }
.agent-card h3 a { color: inherit; }
.agent-card .role { color: var(--brand-green); font-size: 13px; font-weight: 700; padding: 0 16px; }
.agent-card p { color: var(--secondary); font-size: 13px; padding: 6px 16px 0; }
.agent-card .agent-bio { min-height: 3.4em; }
.agent-card .agent-sold { font-weight: 600; color: var(--primary); }
.agent-socials { display: flex; justify-content: center; gap: 10px; padding: 14px 0 20px; }
.agent-socials a {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-low); color: var(--primary);
}
.agent-socials a.is-whatsapp { background: #25D366; color: #fff; }
.agent-socials a.is-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.listing-sold-banner {
  background: #fff4e5; color: #7a4b00; border-radius: 12px;
  padding: 12px 16px; margin: 0 0 16px; font-size: 14px;
}

.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-card {
  background: #fff; border: 1px solid var(--outline-variant); border-radius: 16px; padding: 24px;
}
.why-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(22,163,74,.12); color: var(--brand-green); margin-bottom: 14px;
}
.why-card h3 { color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.why-card p { color: var(--secondary); font-size: 14px; }

/* CTA */
.cta-band {
  background:
    linear-gradient(145deg, rgba(15, 76, 129, 0.88), rgba(0, 53, 95, 0.78)),
    var(--site-photo) center / cover no-repeat;
  color: #fff; text-align: center; padding: 100px 0;
}
.cta-band .eyebrow { color: #86efac; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.82); margin-bottom: 28px; max-width: 44ch; margin-inline: auto; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer { background: #0a2744; color: rgba(255,255,255,.8); padding: 64px 0 0; }
.site-footer h3 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { margin: 14px 0 18px; max-width: 320px; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a:hover, .footer-contact a:hover { color: #86efac; }
.footer-contact i { width: 18px; color: var(--brand-green); margin-right: 8px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px;
}
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Page hero */
.page-hero {
  background:
    linear-gradient(160deg, rgba(15, 76, 129, 0.82), rgba(0, 53, 95, 0.88)),
    var(--site-photo) center / cover no-repeat;
  color: #fff; padding: 56px 0 40px; text-align: center;
}
.page-hero-sm { padding: 40px 0 28px; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.breadcrumb { margin-top: 8px; color: rgba(255,255,255,.75); font-size: 13px; }

/* Listing page — GuriLink-inspired view */
.listing-page { padding: 20px 0 48px; background: var(--surface); }
.listing-view-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(15, 76, 129, 0.08);
  margin-bottom: 24px;
}
.listing-view-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(194, 199, 209, 0.45);
}
.listing-view-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
}
.listing-view-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
}
.listing-view-brand strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.listing-view-broker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}
.listing-view-broker-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.listing-view-broker-text strong {
  font-size: 15px;
  color: var(--on-surface);
  font-weight: 800;
}
.broker-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #f59e0b;
  color: #d97706;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.listing-view-broker-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef1f5;
}
.listing-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(160px, 0.7fr);
  gap: 8px;
  padding: 8px;
  background: #fff;
}
.listing-mosaic-main,
.listing-mosaic-side > button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: #0a2744;
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
}
.listing-mosaic-main {
  border-radius: 10px;
  min-height: 320px;
}
.listing-mosaic-main img,
.listing-mosaic-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-mosaic-main img {
  min-height: 320px;
  max-height: 460px;
}
.listing-mosaic-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 320px;
}
.listing-mosaic-side > button {
  border-radius: 10px;
  min-height: 0;
}
.listing-mosaic-actions {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}
.listing-view-summary {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.5fr);
  gap: 18px 28px;
  align-items: start;
  padding: 22px 22px 24px;
}
.listing-view-price {
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.listing-view-price span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--outline);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.listing-view-copy h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--on-surface);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
}
.listing-view-size,
.listing-view-place {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}
.listing-view-size i,
.listing-view-place i {
  color: var(--outline);
  width: 1em;
  text-align: center;
}
.listing-view-copy .listing-tags { margin-top: 10px; }

.listing-hero { margin-bottom: 8px; }
.listing-hero-media {
  position: relative;
  background: #0a2744;
  max-height: 420px;
  overflow: hidden;
}
.listing-hero-media #gallery-main,
.listing-hero-media img#gallery-main {
  width: 100%;
  height: min(420px, 58vw);
  object-fit: cover;
  display: block;
}
.listing-hero-actions {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}
.listing-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.94);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.listing-chip:disabled { opacity: .7; cursor: default; }
.listing-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 8px;
}
.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #fff;
  aspect-ratio: 4 / 3;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active,
.gallery-pick.is-active { outline: 2px solid var(--primary); outline-offset: 0; }

.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
  padding-top: 4px;
}
.listing-header { margin-bottom: 22px; }
.listing-price {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 10px;
}
.listing-price span {
  display: inline-block;
  margin-left: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--outline);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.listing-header h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--on-surface);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}
.listing-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 10px;
}
.listing-specs > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.listing-specs i {
  color: var(--primary);
  font-size: 14px;
}
.listing-location {
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 12px;
}
.listing-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.tag-rent { background: #ecfdf5; color: #065f46; }
.tag-sale { background: #eff6ff; color: #1d4ed8; }
.tag-ok { background: #ecfdf5; color: #065f46; }
.tag-off { background: #fef2f2; color: #991b1b; }

.listing-block {
  background: #fff;
  border: 1px solid #c4daf4;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.listing-block h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 800;
}
.listing-special {
  border-top: 4px solid #4189dd;
}
.listing-desc {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}
.listing-desc.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-desc.is-open { display: block; }
.text-toggle {
  margin-top: 10px;
  border: 0;
  background: none;
  color: #4189dd;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.listing-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.55;
}
.listing-notice strong { display: block; margin-bottom: 6px; color: #92400e; }
.listing-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.listing-block-head h2 { margin: 0; }
.text-link {
  appearance: none;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.text-link:hover { text-decoration: underline; }
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
}
.detail-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.detail-fact > i {
  margin-top: 3px;
  color: var(--outline);
  font-size: 18px;
  width: 1.15em;
  text-align: center;
  flex-shrink: 0;
}
.detail-fact dt {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}
.detail-fact dd {
  margin: 0;
  color: var(--on-surface);
  font-size: 15px;
  font-weight: 800;
}
.listing-dl { display: grid; gap: 0; }
.listing-dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--outline-variant);
  font-size: 14px;
}
.listing-dl div:last-child { border-bottom: 0; }
.listing-dl dt { color: var(--outline); font-weight: 600; }
.listing-dl dd { margin: 0; color: var(--primary); font-weight: 700; text-align: right; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
.feature-grid li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
  background: transparent;
  border-radius: 0;
}
.feature-grid-pills li {
  background: transparent;
  padding: 2px 0;
}
.feature-grid span { color: var(--secondary); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.feature-grid span i { color: var(--outline); font-size: 15px; width: 1.1em; text-align: center; }
.feature-grid strong { color: var(--on-surface); font-weight: 800; }
.feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 800;
}
.listing-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.gallery-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--outline);
  letter-spacing: .02em;
}

.gallery-slider {
  display: grid;
  gap: 14px;
  width: 100%;
}

.gallery-slider-main {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #e8eef5;
  border: 1px solid var(--outline-variant);
}

.gallery-slider-main > img {
  width: 100%;
  height: auto;
  max-height: 520px;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #dbe7f5;
}

.gallery-slider-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.18);
  transition: background .2s ease, color .2s ease;
}

.gallery-slider-prev { left: 12px; }
.gallery-slider-next { right: 12px; }

.gallery-slider-nav:hover {
  background: var(--primary);
  color: #fff;
}

.gallery-slider-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.gallery-slider-thumbs .gallery-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  min-width: 96px;
  aspect-ratio: auto;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #e8eef5;
}

.gallery-slider-thumbs .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-slider-thumbs .gallery-thumb.is-active {
  border-color: var(--primary);
  outline: none;
}

.listing-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--outline-variant);
}

.listing-video iframe,
.listing-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.listing-side { position: sticky; top: calc(var(--header-h) + 16px); }
.contact-owner {
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.08);
}
.contact-owner h2 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 800;
}
.contact-owner-person {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.contact-owner-person img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-low);
}
.contact-owner-person strong { display: block; color: var(--primary); font-size: 15px; }
.contact-owner-person span { display: block; font-size: 12px; color: var(--brand-green); font-weight: 700; }
.contact-owner-person small { display: block; font-size: 11px; color: var(--outline); margin-top: 2px; }
.contact-owner .btn { margin-bottom: 8px; }
.contact-owner-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--outline-variant);
}
.contact-owner-tools a {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Pathways */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pathway-card {
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.pathway-card:hover {
  transform: translateY(-3px);
  border-color: #4189dd;
}
.pathway-card i {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: #eff6ff; color: #2563eb; margin-bottom: 14px; font-size: 18px;
}
.pathway-card.rent i { background: #ecfdf5; color: var(--brand-green); }
.pathway-card.post i { background: #fff7ed; color: #c2410c; }
.pathway-card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 8px; }
.pathway-card p { color: var(--secondary); font-size: 14px; margin-bottom: 14px; }
.pathway-card .link {
  font-weight: 700; color: #2563eb; font-size: 14px;
}
.pathway-card.rent .link { color: var(--brand-green); }
.pathway-card.post .link { color: #c2410c; }

.amenity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.amenity-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--secondary);
}
.amenity-list i { color: var(--brand-green); }
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-column: 1 / -1;
}
.contact-lead { color: var(--muted); margin-bottom: 14px; }
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.contact-card h2 { color: var(--primary); margin-bottom: 4px; }
.contact-tagline {
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.contact-list { color: var(--text); }
.contact-social { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.contact-social p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: 10px;
}
.socials-light a {
  background: var(--surface-low);
  color: var(--primary);
}
.socials-light a:hover { background: var(--primary); color: #fff; }
.map-frame {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.breadcrumb a:hover { color: #86efac; }

/* Forms / auth */
.auth-wrap, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.auth-page {
  max-width: 480px;
  margin: 0 auto;
}
.auth-stack {
  display: grid;
  gap: 18px;
}
.form-card {
  background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow);
  border: 1px solid var(--outline-variant, #d7e3f2);
}
.form-card h2 { color: var(--primary); font-size: 1.5rem; margin-bottom: 8px; font-weight: 800; }
.auth-card .auth-lead {
  color: var(--muted, var(--outline));
  margin-bottom: 18px;
  line-height: 1.55;
}
.auth-card .alert { margin-top: 0; margin-bottom: 14px; }
.auth-card .btn-block { margin-top: 8px; width: 100%; }
.auth-links {
  margin-top: 16px;
  text-align: center;
}
.auth-links a {
  color: var(--gold-hover, var(--primary));
  font-weight: 700;
}
.auth-card-register {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}
.auth-card-register h2 {
  font-size: 1.25rem;
}
.auth-note {
  margin-top: 14px;
  color: var(--outline);
  font-size: .92rem;
  line-height: 1.5;
  text-align: center;
}
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.property-request-layout { grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); }
.property-request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.property-request-form .landscape-full { grid-column: 1 / -1; }
.property-request-form > .btn { justify-self: start; margin-top: 12px; }
.filter-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  background: #fff; padding: 16px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-error { background: #fef2f2; color: #991b1b; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--secondary); }
.help { color: var(--outline); font-size: 13px; }
.lede { color: var(--secondary); }

.reveal { opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s ease forwards; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
.reveal:nth-child(4) { animation-delay: .24s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .property-grid, .agent-grid, .why-grid, .purpose-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid, .about-grid, .auth-wrap, .contact-grid { grid-template-columns: 1fr; }
  .agent-profile-grid { grid-template-columns: 1fr; }
  .agent-profile-photo { max-width: 360px; margin: 0 auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 16px; gap: 12px;
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .site-nav.open { transform: none; }
  .site-nav ul { flex-direction: column; gap: 10px; }
  .nav-toggle { display: block; }
  .nav-overlay.open { display: block; position: fixed; inset: var(--header-h) 0 0; background: rgba(10,39,68,.35); z-index: 40; }
  .search-card { grid-template-columns: 1fr; }
  .property-grid, .agent-grid, .why-grid, .purpose-grid, .category-grid, .browse-options, .stats-grid, .pathway-grid { grid-template-columns: 1fr; }
  .hero-content { max-width: none; padding: 48px 0 64px; }
  .hero-panel { padding: 28px 22px; border-radius: 22px; }
  .hero h1 { max-width: none; }
  .search-card .btn { width: 100%; }
  .detail-grid, .detail-sections, .people-grid, .footer-grid, .listing-layout { grid-template-columns: 1fr; }
  .detail-panel, .listing-side { position: static; }
  #gallery-main, .listing-hero-media #gallery-main { height: 240px; }
  .listing-mosaic {
    grid-template-columns: 1fr;
  }
  .gallery-slider-nav {
    width: 38px;
    height: 38px;
  }
  .gallery-slider-prev { left: 8px; }
  .gallery-slider-next { right: 8px; }
  .gallery-slider-main > img {
    min-height: 200px;
    max-height: 360px;
  }
  .gallery-slider-thumbs .gallery-thumb {
    flex-basis: 84px;
    width: 84px;
    min-width: 84px;
    height: 64px;
  }
  .listing-mosaic-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .listing-mosaic-side > button { aspect-ratio: 4 / 3; }
  .listing-mosaic-main img { min-height: 220px; max-height: 280px; }
  .listing-view-summary { grid-template-columns: 1fr; gap: 12px; }
  .listing-view-top { flex-wrap: wrap; }
  .detail-facts, .feature-grid, .listing-dl div { grid-template-columns: 1fr; }
  .listing-dl dd { text-align: left; }
  .logo-text span { display: none; }
}
@media (max-width: 700px) {
  .property-request-form { grid-template-columns: 1fr; }
}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Fixed WhatsApp chat button — always available while scrolling */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 58px;
  min-height: 58px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.whatsapp-float i {
  font-size: 28px;
  line-height: 1;
}
.whatsapp-float-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
  outline: none;
}
.whatsapp-float:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #25d366, 0 14px 34px rgba(37, 211, 102, 0.55);
}
@media (max-width: 700px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    min-width: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
  }
  .whatsapp-float-label { display: none; }
}


/* First-visit Install App sheet (public website) */
.site-install-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 76, 129, 0.28);
  backdrop-filter: blur(2px);
}
.site-install-root[hidden] { display: none !important; }
.site-install-sheet {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--outline-variant, #c2c7d1);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 76, 129, 0.18);
  padding: 18px;
  margin-bottom: env(safe-area-inset-bottom, 0px);
}
.site-install-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.site-install-brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow, 0 8px 32px rgba(15, 76, 129, 0.06));
}
.site-install-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--on-surface, #191c1f);
}
.site-install-brand p {
  margin: 2px 0 0;
  color: var(--secondary, #5c5f60);
  font-size: 0.88rem;
}
.site-install-copy {
  margin: 0 0 12px;
  color: var(--secondary, #5c5f60);
  font-size: 0.95rem;
  line-height: 1.45;
}
.site-install-steps {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--on-surface, #191c1f);
  font-weight: 600;
  font-size: 0.9rem;
}
.site-install-steps li { margin-bottom: 4px; }
.site-install-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.site-install-actions .btn {
  width: 100%;
  min-height: 48px;
}
@media (max-width: 380px) {
  .site-install-actions { grid-template-columns: 1fr; }
}
@media (display-mode: standalone) {
  .site-install-root { display: none !important; }
}
