/* =========================================================================
   Alcázar Estates — Unified Premium Design System
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --ae-bg: #f6f3ec;
  --ae-bg-warm: #f2ede2;
  --ae-surface: #ffffff;
  --ae-surface-soft: rgba(255, 255, 255, 0.78);
  --ae-surface-glass: rgba(255, 255, 255, 0.62);
  --ae-graphite: #111214;
  --ae-graphite-soft: #1a1c1f;
  --ae-ink: #14161a;
  --ae-text: #171819;
  --ae-text-soft: #5b5d62;
  --ae-text-mute: #8a8c90;
  --ae-line: rgba(20, 22, 26, 0.08);
  --ae-line-strong: rgba(20, 22, 26, 0.16);
  --ae-primary: #0f2d25;
  --ae-primary-2: #16392f;
  --ae-primary-3: #1f4a3e;
  --ae-accent: #c4a36a;
  --ae-accent-2: #b08c4e;
  --ae-accent-soft: rgba(196, 163, 106, 0.16);
  --ae-danger: #a9412d;
  --ae-success: #2f7a52;

  /* Radii */
  --ae-r-xs: 10px;
  --ae-r-sm: 14px;
  --ae-r-md: 20px;
  --ae-r-lg: 28px;
  --ae-r-xl: 36px;
  --ae-r-2xl: 44px;
  --ae-r-pill: 999px;

  /* Shadows */
  --ae-shadow-xs: 0 4px 14px rgba(15, 16, 21, 0.05);
  --ae-shadow-sm: 0 10px 28px rgba(15, 16, 21, 0.07);
  --ae-shadow-md: 0 20px 55px rgba(15, 16, 21, 0.10);
  --ae-shadow-lg: 0 34px 85px rgba(15, 16, 21, 0.16);
  --ae-shadow-glow: 0 24px 60px rgba(15, 45, 37, 0.22);

  /* Motion */
  --ae-t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --ae-t: 280ms cubic-bezier(.2,.7,.2,1);
  --ae-t-slow: 620ms cubic-bezier(.2,.7,.2,1);

  /* Typography */
  --ae-font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ae-font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Layout */
  --ae-container: min(1240px, calc(100% - 40px));
  --ae-container-wide: min(1360px, calc(100% - 40px));
  --ae-header-h: 86px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ae-font-sans);
  color: var(--ae-text);
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(196, 163, 106, 0.12), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(15, 45, 37, 0.07), transparent 60%),
    var(--ae-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
input, select, textarea { appearance: none; -webkit-appearance: none; }
select { background-repeat: no-repeat; }
:focus-visible { outline: 2px solid var(--ae-primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(15,45,37,0.85); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 16px;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ae-ink);
}
h1, h2 { font-family: var(--ae-font-display); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.45rem, 6vw, 5rem); }
h2 { font-size: clamp(1.95rem, 3.7vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 700; }
p { margin: 0 0 18px; color: var(--ae-text-soft); }
small { color: var(--ae-text-mute); }

.container { width: var(--ae-container); margin: 0 auto; }
.container-wide { width: var(--ae-container-wide); margin: 0 auto; }
.section { padding: clamp(64px, 8.2vw, 102px) 0; position: relative; }
.section-tight { padding: clamp(56px, 6vw, 88px) 0; }

/* ---------- Helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ae-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}
.light .eyebrow, .on-dark .eyebrow { color: var(--ae-accent); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ae-line-strong), transparent);
  margin: 28px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 34px;
  flex-wrap: wrap;
}
.section-heading.centered {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
  flex-direction: column;
}
.section-heading .heading-copy { max-width: 700px; }
.section-heading h2 { margin-bottom: 10px; line-height: 1.08; }
.section-heading p { margin-bottom: 0; max-width: 58ch; font-size: 0.98rem; line-height: 1.62; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ae-primary);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color var(--ae-t), border-color var(--ae-t), transform var(--ae-t);
}
.text-link i { transition: transform var(--ae-t); }
.text-link:hover { border-color: currentColor; }
.text-link:hover i { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--ae-r-pill);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--ae-t), background var(--ae-t), box-shadow var(--ae-t),
    border-color var(--ae-t), color var(--ae-t), opacity var(--ae-t);
  user-select: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ae-primary), var(--ae-primary-2));
  box-shadow: 0 18px 40px rgba(15, 45, 37, 0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover { box-shadow: 0 24px 55px rgba(15, 45, 37, 0.30); }
.btn-secondary {
  color: var(--ae-ink);
  background: rgba(255,255,255,0.72);
  border-color: var(--ae-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-secondary:hover { background: #fff; border-color: var(--ae-line-strong); box-shadow: var(--ae-shadow-sm); }
.btn-ghost {
  color: var(--ae-ink);
  background: transparent;
  border-color: var(--ae-line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.55); }
.btn-dark {
  color: #fff;
  background: var(--ae-graphite);
  border-color: rgba(255,255,255,0.08);
}
.btn-dark:hover { background: var(--ae-graphite-soft); }
.btn-accent {
  color: var(--ae-graphite);
  background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-2));
  box-shadow: 0 18px 40px rgba(196, 163, 106, 0.28);
}
.btn-accent:hover { box-shadow: 0 22px 48px rgba(196, 163, 106, 0.38); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 46px; height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--ae-line);
  color: var(--ae-ink);
  transition: transform var(--ae-t), box-shadow var(--ae-t), background var(--ae-t);
}
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--ae-shadow-sm); }
.icon-btn.is-light {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
  backdrop-filter: blur(12px);
}
.icon-btn.is-light:hover { background: rgba(255,255,255,0.3); }

/* ---------- Pills / Badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--ae-r-pill);
  background: var(--ae-accent-soft);
  color: var(--ae-primary);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--ae-r-pill);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-sale { color: #fff; background: var(--ae-primary); }
.badge-rent { color: #fff; background: var(--ae-graphite); }
.badge-long { color: #fff; background: var(--ae-graphite); }
.badge-short { color: var(--ae-graphite); background: var(--ae-accent); }
.badge-soft { color: var(--ae-ink); background: rgba(255,255,255,0.86); border: 1px solid var(--ae-line); }
.badge-accent { color: var(--ae-graphite); background: var(--ae-accent); }
.badge-status-available { color: var(--ae-success); background: rgba(47, 122, 82, 0.12); }
.badge-status-reserved { color: #8c5a10; background: rgba(196, 163, 106, 0.22); }
.badge-status-closed { color: #7a2a1d; background: rgba(169, 65, 45, 0.12); }

/* ---------- Glass & Card surfaces ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.62));
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--ae-shadow-sm);
}
.surface {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-r-lg);
  box-shadow: var(--ae-shadow-sm);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid transparent;
  transition: background var(--ae-t), box-shadow var(--ae-t), border-color var(--ae-t), backdrop-filter var(--ae-t);
}
.site-header.scrolled {
  background: rgba(246, 243, 236, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--ae-line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--ae-header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 390px;
}
.brand-logo {
  width: clamp(88px, 10.5vw, 128px);
  height: 40px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--ae-line);
  background: rgba(255,255,255,0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  flex: 0 0 auto;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.brand-descriptor {
  margin: 0;
  min-width: 0;
  max-width: 26ch;
  color: #4b5552;
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.015em;
  line-height: 1.34;
  text-transform: none;
}
.brand-mark {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--ae-primary), var(--ae-primary-3));
  box-shadow: 0 14px 30px rgba(15, 45, 37, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(196,163,106,0.35), transparent 50%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; letter-spacing: 0.01em; }
.brand-text small {
  color: var(--ae-text-soft);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  position: relative;
  font-weight: 600;
  color: var(--ae-text-soft);
  transition: color var(--ae-t);
  padding: 6px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 1.5px; width: 100%;
  background: var(--ae-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ae-t);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ae-ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ae-line);
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--ae-ink);
  transition: transform var(--ae-t), opacity var(--ae-t);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative;
  min-height: min(96vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .hero-overlay, .hero-glow {
  position: absolute;
  inset: 0;
}
.hero-media {
  background:
    linear-gradient(130deg, rgba(10,14,14,0.6), rgba(10,14,14,0.1) 55%),
    url("https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
  transform: scale(1.04);
  animation: heroFloat 18s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.08) translateY(-10px); }
}
.hero-overlay {
  background:
    radial-gradient(circle at 18% 22%, rgba(196,163,106,0.18), transparent 22%),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.08), transparent 20%),
    linear-gradient(180deg, rgba(9,13,13,0.32), rgba(9,13,13,0.62));
}
.hero-glow { pointer-events: none; border-radius: 50%; filter: blur(80px); }
.hero-glow-a { width: 360px; height: 360px; top: 6%; left: -8%; background: rgba(196,163,106,0.22); }
.hero-glow-b { width: 340px; height: 340px; right: -4%; bottom: 6%; background: rgba(255,255,255,0.12); }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.88fr);
  gap: 34px;
  align-items: center;
  padding: calc(var(--ae-header-h) + 28px) 0 62px;
}
.hero-copy { max-width: 780px; color: #fff; }
.hero-copy .eyebrow { color: var(--ae-accent); }
.hero-copy .eyebrow::before { background: var(--ae-accent); }
.hero-copy h1 {
  color: #fff;
  margin-bottom: 16px;
  text-wrap: balance;
  font-size: clamp(2.55rem, 6.4vw, 5.2rem);
  line-height: 1.04;
  max-width: 14.5ch;
}
.hero-copy p {
  max-width: 60ch;
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  line-height: 1.68;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 18px;
}
.hero-highlights {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-size: 0.94rem;
}
.hero-highlights li { display: inline-flex; align-items: center; gap: 10px; }
.hero-highlights i { color: var(--ae-accent); }

/* Hero search panel */
.hero-panel {
  padding: 22px;
  border-radius: var(--ae-r-2xl);
}
.hero-panel-head p {
  margin: 10px 0 0;
  color: var(--ae-text-soft);
  font-size: 0.96rem;
}
.quick-search-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 18px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-stats article {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-stats strong {
  display: block;
  font-family: var(--ae-font-display);
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.hero-stats span { display: block; font-size: 0.82rem; color: var(--ae-text-soft); }

/* ---------- Form fields ---------- */
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field label, .field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ae-ink);
  letter-spacing: 0.01em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--ae-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78));
  color: var(--ae-ink);
  transition: border-color var(--ae-t), box-shadow var(--ae-t), transform var(--ae-t);
}
.form-field textarea { padding: 14px 16px; min-height: 130px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ae-text-mute); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(15, 45, 37, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 45, 37, 0.10);
}
.form-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%2314161a' d='M5.5 7.5l4.5 5 4.5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 38px;
}

.form-field-hint { font-size: 0.82rem; color: var(--ae-text-mute); }

/* ---------- Hero custom select (visual-only enhancement) ---------- */
.hero-panel .quick-search-form .form-field { position: relative; }
.hero-panel .quick-search-form .ae-select {
  position: relative;
  width: 100%;
}
.hero-panel .quick-search-form .ae-select.is-open { z-index: 18; }
.hero-panel .quick-search-form .ae-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.hero-panel .quick-search-form .ae-select-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 16px;
  border-radius: 14px;
  border: 1px solid var(--ae-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
  color: var(--ae-ink);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color var(--ae-t), box-shadow var(--ae-t), background var(--ae-t);
}
.hero-panel .quick-search-form .ae-select-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-panel .quick-search-form .ae-select-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
}
.hero-panel .quick-search-form .ae-select-caret::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: center/contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%2314161a' d='M5.5 7.5l4.5 5 4.5-5z'/></svg>");
  transition: transform var(--ae-t-fast);
}
.hero-panel .quick-search-form .ae-select.is-open .ae-select-caret::before {
  transform: rotate(180deg);
}
.hero-panel .quick-search-form .ae-select-trigger:hover {
  border-color: var(--ae-line-strong);
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.9));
}
.hero-panel .quick-search-form .ae-select-trigger:focus-visible,
.hero-panel .quick-search-form .ae-select.is-open .ae-select-trigger {
  border-color: rgba(15, 45, 37, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 45, 37, 0.1), 0 10px 30px rgba(15, 16, 21, 0.08);
}
.hero-panel .quick-search-form .ae-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 248px;
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(20, 22, 26, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,246,241,0.98));
  box-shadow: 0 22px 48px rgba(14, 19, 18, 0.2);
  backdrop-filter: blur(14px);
}
.hero-panel .quick-search-form .ae-select-option {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ae-ink);
  text-align: left;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 10px 12px;
  transition: background var(--ae-t-fast), color var(--ae-t-fast);
}
.hero-panel .quick-search-form .ae-select-option:hover,
.hero-panel .quick-search-form .ae-select-option.is-active {
  background: rgba(15, 45, 37, 0.08);
}
.hero-panel .quick-search-form .ae-select-option.is-selected {
  background: rgba(15, 45, 37, 0.14);
  color: var(--ae-primary);
}
.hero-panel .quick-search-form .ae-select.is-disabled .ae-select-trigger {
  opacity: 0.62;
  cursor: not-allowed;
}

/* ---------- Page hero (listing/single) ---------- */
.page-hero {
  padding: calc(var(--ae-header-h) + 30px) 0 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0)),
    radial-gradient(circle at 0% 20%, rgba(196,163,106,0.16), transparent 30%);
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ae-text-soft);
  font-size: 0.94rem;
}
.breadcrumb a:hover { color: var(--ae-primary); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.page-hero-inner { max-width: 760px; }

/* Property archive: tighten top spacing + hide breadcrumb row (visual-only). */
body.page-properties .page-hero {
  padding-top: calc(var(--ae-header-h) - 10px);
  padding-bottom: 10px;
}
body.page-properties .page-hero .breadcrumb {
  display: none;
}
body.page-properties .page-hero-inner .eyebrow {
  margin-bottom: 12px;
}
body.page-properties .page-hero-inner h1 {
  margin-bottom: 12px;
  line-height: 1.04;
}
body.page-properties .page-hero-inner p {
  margin-bottom: 0;
  max-width: 62ch;
}

/* Property archive: reduce gap before toolbar/filter section (inline style is 40px). */
body.page-properties .page-hero + .section {
  padding-top: 20px !important;
}

@media (max-width: 860px) {
  body.page-properties .page-hero {
    padding-top: calc(var(--ae-header-h) - 14px);
    padding-bottom: 8px;
  }
}

/* ---------- Properties grid / card ---------- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--ae-r-lg);
  overflow: hidden;
  box-shadow: var(--ae-shadow-sm);
  transition: transform var(--ae-t), box-shadow var(--ae-t), border-color var(--ae-t);
  backdrop-filter: blur(16px);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ae-shadow-lg);
  border-color: rgba(255,255,255,0.8);
}
.property-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.25 / 0.9;
}
.property-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}
.property-card:hover .property-card-media img { transform: scale(1.07); }
.property-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
  pointer-events: none;
}
.property-card-badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}
.property-card-fav {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
}
.property-card-fav.is-favorite {
  color: var(--ae-danger);
  background: rgba(255, 255, 255, 0.95);
}
.property-card-fav.is-favorite i {
  color: var(--ae-danger);
}
.property-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.property-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.property-title {
  margin: 0 0 6px;
  font-family: var(--ae-font-display);
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.14;
}
.property-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ae-text-soft);
  font-size: 0.92rem;
}
.property-location i { color: var(--ae-accent-2); }
.property-price {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ae-ink);
  white-space: nowrap;
}
.property-price small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ae-text-mute);
  font-weight: 700;
}
.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--ae-r-pill);
  background: rgba(15, 45, 37, 0.06);
  color: var(--ae-primary);
  font-size: 0.82rem;
  font-weight: 700;
}
.fact-chip i { color: var(--ae-primary); }
.property-description { margin: 0; font-size: 0.93rem; line-height: 1.64; }
.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ae-line);
}
.property-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 60%;
}
.extra-tag {
  padding: 6px 10px;
  border-radius: var(--ae-r-pill);
  background: rgba(20,22,26,0.05);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ae-text-soft);
}

/* ---------- Featured section ---------- */
.featured-properties .section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
  align-items: center;
  flex-direction: column;
  gap: 14px;
}
.featured-properties .section-heading .heading-copy { max-width: 680px; }
.featured-properties .section-heading h2 { max-width: 20ch; margin-bottom: 0; }

/* ---------- Benefits / Info cards ---------- */
.benefits-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(242,237,226,0.82));
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.info-card {
  padding: 26px;
  border-radius: var(--ae-r-lg);
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--ae-shadow-xs);
  backdrop-filter: blur(16px);
  transition: transform var(--ae-t), box-shadow var(--ae-t);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--ae-shadow-md); }
.info-card h3 { margin: 0 0 10px; font-family: var(--ae-font-sans); font-size: 1.15rem; letter-spacing: -0.01em; }
.info-card p { margin: 0; font-size: 0.94rem; line-height: 1.62; }
.icon-box {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 18px;
  color: var(--ae-accent);
  background: linear-gradient(135deg, var(--ae-primary), var(--ae-primary-3));
  box-shadow: 0 14px 32px rgba(15,45,37,0.2);
}
.icon-box i { font-size: 1.15rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.about-media {
  position: relative;
  margin: 0;
}
.about-media img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: var(--ae-r-2xl);
  box-shadow: var(--ae-shadow-md);
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--ae-accent-soft), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
}
.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.about-metrics article {
  padding: 20px;
  border-radius: var(--ae-r-md);
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--ae-line);
  box-shadow: var(--ae-shadow-xs);
}
.about-metrics strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ae-font-display);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.about-metrics span { font-size: 0.9rem; color: var(--ae-text-soft); }

/* ---------- Services (dark) ---------- */
.section-dark {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(196,163,106,0.16), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(145deg, #101312, #0d0f0f 55%, #14241e);
  overflow: hidden;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-dark::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 35%;
  height: 300px;
  border-radius: 50%;
  background: rgba(196,163,106,0.08);
  filter: blur(50px);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--ae-r-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  height: 100%;
  overflow: hidden;
  transition: transform var(--ae-t), background var(--ae-t), border-color var(--ae-t);
}
.service-card::before {
  content: attr(data-index);
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--ae-font-display);
  font-size: 2.2rem;
  color: rgba(196,163,106,0.38);
}
.service-card h3 {
  margin: 32px 0 8px;
  font-family: var(--ae-font-sans);
  font-size: 1.08rem;
}
.service-card p { margin: 0; font-size: 0.91rem; line-height: 1.62; }
.service-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(196,163,106,0.35);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.testimonial-card {
  padding: 34px 30px 28px;
  border-radius: var(--ae-r-lg);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--ae-line);
  box-shadow: var(--ae-shadow-xs);
  backdrop-filter: blur(14px);
  position: relative;
}
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 8px; left: 20px;
  font-family: var(--ae-font-display);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--ae-accent);
  opacity: 0.35;
}
.testimonial-card p {
  margin: 0 0 20px;
  color: var(--ae-ink);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.58;
}
.stars { color: var(--ae-accent); margin-bottom: 12px; font-size: 0.92rem; }
.testimonial-card strong { display: block; font-size: 0.92rem; margin-top: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.testimonial-card span { color: var(--ae-text-soft); font-size: 0.84rem; letter-spacing: 0.03em; }

/* ---------- CTA Panel ---------- */
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 38px;
  border-radius: var(--ae-r-2xl);
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(196,163,106,0.18), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.09), transparent 25%),
    linear-gradient(145deg, var(--ae-primary), var(--ae-primary-2) 60%, #1f4a3e);
  box-shadow: var(--ae-shadow-lg);
}
.cta-panel h2 { color: #fff; max-width: 17ch; margin-bottom: 10px; font-size: clamp(1.95rem, 3.2vw, 2.8rem); }
.cta-panel p { color: rgba(255,255,255,0.78); margin: 0; max-width: 50ch; line-height: 1.62; }
.cta-panel .eyebrow { color: var(--ae-accent); }
.cta-panel .eyebrow::before { background: var(--ae-accent); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 24px;
  color: rgba(255,255,255,0.78);
  background: linear-gradient(160deg, #0f1211 0%, #101514 55%, #162e26 120%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--ae-accent), var(--ae-accent-2));
  color: #1a1a1a;
}
.footer-brand .brand-text small,
.footer-copy,
.site-footer li,
.footer-bottom p { color: rgba(255,255,255,0.64); }
.site-footer h3 {
  margin-bottom: 12px;
  font-family: var(--ae-font-sans);
  font-size: 0.78rem;
  color: #fff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-copy {
  margin: 0 0 18px;
  max-width: 44ch;
  line-height: 1.62;
  font-size: 0.94rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.footer-links a { transition: color var(--ae-t); }
.footer-links a:hover { color: var(--ae-accent); }
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-links a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  transition: background var(--ae-t), transform var(--ae-t);
}
.social-links a:hover {
  background: rgba(196, 163, 106, 0.22);
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { margin: 0; font-size: 0.84rem; letter-spacing: 0.03em; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.64); transition: color var(--ae-t); }
.footer-legal a:hover { color: var(--ae-accent); }

/* ---------- Properties listing toolbar (filter-mockup reference) ---------- */
.catalog-toolbar.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.catalog-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(43, 43, 43, 0.06);
}
.catalog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 24px;
  color: #555a5f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: background var(--ae-t-fast), color var(--ae-t-fast), box-shadow var(--ae-t-fast);
}
.catalog-tab:hover { color: #1e1d1b; }
.catalog-tab.is-active {
  background: #0d463a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 34, 29, 0.12);
}
.sortbox {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sortbox__label {
  color: #445061;
  font-size: 16px;
  font-weight: 650;
}
.sortbox__field {
  position: relative;
  width: 256px;
}
.sortbox__field select {
  width: 100%;
  height: 54px;
  padding: 0 56px 0 20px;
  border: 1px solid #e5e2dc;
  border-radius: 18px;
  background: #fff;
  color: #1d1f21;
  appearance: none;
  outline: none;
  font: inherit;
}
.sortbox__chevron {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #232526;
  border-bottom: 2px solid #232526;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.filters-panel {
  padding: 28px;
  border-radius: var(--ae-r-lg);
  margin-bottom: 28px;
}
.filters-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filters-heading h2 {
  font-family: var(--ae-font-sans);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.filters-heading p { margin: 0; }
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ae-primary);
}
.filters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.filters-actions {
  grid-column: span 6;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.results-bar p, .results-note { margin: 0; font-size: 0.95rem; }
.results-note { color: var(--ae-text-soft); }
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.no-results {
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: var(--ae-r-lg);
  text-align: center;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--ae-line);
  box-shadow: var(--ae-shadow-xs);
}
.no-results h3 { margin-bottom: 8px; }
.no-results p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile filter sheet uses position:fixed; must not sit under .reveal transforms. */
.property-filters.reveal,
.property-filters.reveal.is-visible {
  transform: none;
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: calc(var(--ae-header-h) + 30px); }
  .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { padding-bottom: 6px; }
  .properties-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters-actions { grid-column: span 3; }
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .brand {
    gap: 10px;
    max-width: calc(100% - 74px);
  }
  .brand-logo {
    width: clamp(78px, 24vw, 108px);
    height: 36px;
    padding: 5px 8px;
  }
  .brand-descriptor {
    max-width: 20ch;
    font-size: 0.73rem;
    letter-spacing: 0.01em;
  }
  .site-nav {
    position: absolute;
    left: 20px; right: 20px;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--ae-line);
    box-shadow: var(--ae-shadow-md);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--ae-t), transform var(--ae-t), visibility var(--ae-t);
    gap: 14px;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: translateY(0); }

  .hero { min-height: auto; }
  .hero-copy h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); max-width: 100%; }
  .quick-search-form { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .properties-grid, .services-grid { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr; }
  .filters-actions { grid-column: auto; }
  .about-metrics { grid-template-columns: 1fr; }
  .featured-properties .section-heading h2 { max-width: 100%; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 28px; }
  .section-heading { align-items: flex-start; }
  .about-media img { min-height: 420px; }
}

@media (max-width: 560px) {
  .container, .container-wide { width: min(100% - 22px, 1400px); }
  .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
  .brand-logo {
    width: clamp(72px, 30vw, 96px);
    height: 34px;
    padding: 4px 7px;
  }
  .brand-descriptor {
    max-width: 18ch;
    font-size: 0.69rem;
    letter-spacing: 0.008em;
  }
  .hero-copy p, p { font-size: 0.96rem; }
  .btn { min-height: 48px; padding: 0 20px; }
  .hero-panel, .filters-panel, .info-card, .service-card,
  .testimonial-card, .property-card-content { padding-left: 20px; padding-right: 20px; }
}

/* =========================================================================
   Property filters — filter-mockup visual match + mobile drawer
   Scoped under .property-filters; GET param names / PHP unchanged.
   ========================================================================= */

.property-filters {
  --fm-line: #e4ddd2;
  --fm-line-strong: #d8d0c4;
  --fm-shadow: 0 24px 48px rgba(39, 43, 43, 0.08);
  --fm-shadow-soft: 0 10px 24px rgba(18, 34, 29, 0.12);
  --fm-radius-xl: 32px;
  --fm-radius-lg: 22px;
  --fm-radius-md: 18px;
  --fm-radius-sm: 14px;

  position: relative;
  margin: 0 0 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", var(--ae-font-sans), sans-serif;
  color: #1e1d1b;
  /* Do not add transform/filter here: mobile sheet uses position:fixed and must stay viewport-anchored. */
  transform: none;
}

.property-filters__mobile-trigger-wrap {
  display: none;
  margin-bottom: 16px;
}

.property-filters__mobile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border: 1px solid var(--fm-line-strong);
  border-radius: 999px;
  background: #fff;
  color: #1e1d1b;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(43, 43, 43, 0.06);
  transition: border-color var(--ae-t-fast, 0.15s), box-shadow var(--ae-t-fast, 0.15s);
}

.property-filters__mobile-trigger:hover {
  border-color: #cbbda9;
  box-shadow: 0 12px 24px rgba(43, 43, 43, 0.08);
}

.property-filters__mobile-trigger:focus-visible {
  outline: 2px solid #0d463a;
  outline-offset: 3px;
}

.property-filters__mobile-trigger-icon {
  display: inline-flex;
  color: #0d463a;
}

.property-filters__mobile-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #0d463a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.property-filters__mobile-summary {
  width: 100%;
  flex-basis: 100%;
  margin-left: 32px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6f726f;
}

.property-filters__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 18, 20, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10010;
}

/* Card shell = panel + mockup filters-card */
.property-filters .property-filters__panel.filters-card {
  border: 1px solid rgba(224, 217, 206, 0.95);
  border-radius: var(--fm-radius-xl);
  background: #fff;
  box-shadow: var(--fm-shadow);
  padding: 34px 30px 28px;
}

.property-filters__sheet-handle {
  display: none;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: var(--fm-line-strong);
  margin: 0 auto 12px;
}

/* Filter header, grid, fields: property-filters-desktop-1to1.css (property archive). */

.property-filters__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--fm-line-strong);
  border-radius: 999px;
  background: #fff;
  color: #232321;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.property-filters__close:hover {
  border-color: #cbbda9;
  background: #faf8f5;
}

.property-filters__close:focus-visible {
  outline: 2px solid #0d463a;
  outline-offset: 2px;
}

body.filters-drawer-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 768px) {
  .property-filters__backdrop {
    display: none !important;
  }

  .property-filters__mobile-summary {
    display: none;
  }
}

@media (max-width: 767px) {
  .property-filters__mobile-trigger-wrap {
    display: block;
  }

  .property-filters__mobile-summary {
    display: block;
    flex-basis: auto;
    width: auto;
    margin-left: 0;
    margin-top: 2px;
  }

  .property-filters__close {
    display: inline-flex;
  }

  .property-filters .property-filters__panel.filters-card {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 0;
    z-index: 10020;
    border-radius: var(--fm-radius-lg) var(--fm-radius-lg) 0 0;
    padding: 22px 16px 18px;
    max-height: min(92vh, 900px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 -8px 40px rgba(39, 43, 43, 0.12);
  }

  .property-filters .property-filters__panel.is-open {
    transform: translateY(0);
  }

  .property-filters__sheet-handle {
    display: block;
  }

  .property-filters .filters-card__title {
    font-size: 38px;
  }

  .property-filters .subtitle {
    font-size: 15px;
  }

  .property-filters .filters-card__top-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .property-filters .field__control input,
  .property-filters .field__control select {
    min-height: 54px;
    font-size: 16px;
  }

  .property-filters .filters-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .property-filters .filters-actions .btn {
    justify-content: center;
    width: 100%;
    min-height: 54px;
    height: auto;
  }

  .property-filters__close {
    width: 38px;
    min-width: 38px;
    height: 46px;
  }
}
