/* ═══════════════════════════════════════════════════════════════════
   resale.center — homes.css
   Search results page styles.
   Imports style.css via <link>. Only page-specific rules live here.
═══════════════════════════════════════════════════════════════════ */

/* ── SCREEN READER UTILITY ────────────────────────────────────────── */
.sr-only {
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); border:0; white-space:nowrap;
}

/* ══ SEARCH HERO ════════════════════════════════════════════════════ */
.search-hero {
  background: var(--black);
  padding: calc(var(--nav-h) + 44px) 24px 36px;
  position: relative;
  overflow: hidden;
}
/* Subtle texture pattern */
.search-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.025) 0%, transparent 60%);
  pointer-events: none;
}
.sh-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.sh-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 8px;
}
.sh-heading em {
  font-style: italic;
  color: rgba(255,255,255,0.6);
}
.sh-sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 24px;
}

/* ── SEARCH BAR ───────────────────────────────────────────────────── */
.sh-bar {
  position: relative;
  margin-bottom: 20px;
  max-width: 680px;
}
.sb-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 100px;
  padding: 0 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  transition: box-shadow 0.2s;
}
.sb-wrap:focus-within {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.25);
}
.sb-icon {
  flex-shrink: 0;
  color: var(--grey-3);
  margin-right: 2px;
  pointer-events: none;
}
.sb-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  outline: none;
  -webkit-appearance: none;
}
.sb-input::placeholder { color: var(--grey-3); }
.sb-input::-webkit-search-cancel-button { display: none; }
.sb-clear {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grey-1); color: var(--grey-4);
  border: none; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s;
}
.sb-clear:hover { background: var(--grey-2); }

/* Autocomplete dropdown */
.main-ac {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--grey-1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 100;
  animation: acFadeUp 0.15s var(--ease);
}
@keyframes acFadeUp {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.ac-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; cursor: pointer;
  transition: background 0.12s; border: none; background: none;
  width: 100%; text-align: left;
}
.ac-item:hover, .ac-item:focus { background: var(--off-white); }
.ac-item-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--grey-1); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--grey-3);
}
.ac-item-main { font-size: 14px; color: var(--black); font-weight: 500; }
.ac-item-sub  { font-size: 12px; color: var(--grey-3); }
.ac-match     { font-weight: 700; color: var(--black); }

/* ── FILTER ROW ───────────────────────────────────────────────────── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  max-width: 900px;
}
.filter-row::-webkit-scrollbar { display: none; }
.fp-group { display: flex; gap: 4px; flex-shrink: 0; }

/* Filter pill base */
.fp {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer; white-space: nowrap;
  transition: all 0.18s; -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.fp:hover { border-color: rgba(255,255,255,0.45); color: var(--white); }
.fp--active {
  background: var(--white); border-color: var(--white);
  color: var(--black); font-weight: 600;
}
.fp--active:hover { background: var(--off-white); }
.fp-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--black); color: var(--white);
  border-radius: 100px; font-size: 10px; font-weight: 700;
  margin-left: 2px;
}
.fp--active .fp-badge { background: var(--black); color: var(--white); }
.fp-arr { transition: transform 0.2s; }
.fp--budget[aria-expanded="true"] .fp-arr { transform: rotate(180deg); }

/* Divider between pill groups */
.fp-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.12); flex-shrink: 0;
}

/* Budget dropdown */
.fp-budget-wrap { position: relative; flex-shrink: 0; }
.budget-dd {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  width: 320px; z-index: 120;
  background: var(--white);
  border: 1px solid var(--grey-1);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  padding: 20px;
  animation: acFadeUp 0.15s var(--ease);
}
.bd-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--grey-3); margin-bottom: 12px;
}
.bd-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.bd-chip {
  padding: 7px 12px; border-radius: 100px;
  border: 1.5px solid var(--grey-1); background: var(--off-white);
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--grey-4); cursor: pointer; transition: all 0.15s;
}
.bd-chip:hover { border-color: var(--black); color: var(--black); }
.bd-chip--active { background: var(--black); border-color: var(--black); color: var(--white); }
.bd-custom {
  display: flex; align-items: flex-end; gap: 8px; margin-bottom: 14px;
}
.bd-custom-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bd-custom-label { font-size: 11px; font-weight: 600; color: var(--grey-3); }
.bd-custom-input {
  width: 100%; background: var(--off-white); border: 1.5px solid transparent;
  border-radius: 10px; padding: 10px 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--black);
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.bd-custom-input:focus { border-color: var(--black); background: var(--white); }
.bd-dash { color: var(--grey-3); font-size: 16px; padding-bottom: 10px; flex-shrink: 0; }


/* ══ RESULTS SECTION ════════════════════════════════════════════════ */
.results-section {
  background: var(--off-white);
  padding: 28px 24px 80px;
  min-height: 60vh;
}
.rs-inner { max-width: var(--max-w); margin: 0 auto; }

/* ── TOOLBAR ──────────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar-count {
  font-size: 14px; color: var(--grey-4); font-weight: 400;
}
.toolbar-count strong { font-size: 18px; font-weight: 700; color: var(--black); }
.tc-owners strong { color: var(--wa-dk); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select {
  appearance: none; -webkit-appearance: none;
  background: var(--white); border: 1.5px solid var(--grey-1);
  border-radius: 100px; padding: 8px 32px 8px 14px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--black); cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color 0.2s;
}
.sort-select:focus { border-color: var(--black); }
.view-toggle {
  display: flex; background: var(--white);
  border: 1.5px solid var(--grey-1); border-radius: 100px; overflow: hidden;
}
.vt-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 34px; border: none;
  background: transparent; color: var(--grey-3); cursor: pointer;
  transition: all 0.15s;
}
.vt-btn:hover { color: var(--black); }
.vt-btn--active { background: var(--black); color: var(--white); }

/* ── ACTIVE FILTER TAGS ───────────────────────────────────────────── */
.active-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.at-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--black); color: var(--white);
  font-size: 12px; font-weight: 600;
  padding: 5px 10px 5px 12px;
  border-radius: 100px; animation: tagIn 0.2s var(--ease);
}
@keyframes tagIn { from{opacity:0;transform:scale(0.85)} to{opacity:1;transform:scale(1)} }
.at-tag-remove {
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: var(--white);
  border: none; cursor: pointer; font-size: 12px; line-height: 1;
  transition: background 0.12s;
}
.at-tag-remove:hover { background: rgba(255,255,255,0.35); }

/* ── OWNER NOTICE ─────────────────────────────────────────────────── */
.owner-notice {
  display: flex; align-items: center; gap: 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px;
  font-size: 13px; color: #166534; line-height: 1.5;
}
.owner-notice svg { flex-shrink: 0; color: var(--wa-dk); }

/* ══ LISTINGS GRID ══════════════════════════════════════════════════ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}
.listings-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

/* ══ LISTING CARD ═══════════════════════════════════════════════════ */
.listing-card {
  background: var(--white);
  border: 1px solid var(--grey-1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
  opacity: 0; transform: translateY(12px);
  animation: cardIn 0.35s var(--ease) forwards;
  position: relative;
}
@keyframes cardIn {
  to { opacity:1; transform:translateY(0); }
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--grey-2);
}
.listing-card--plot {
  border-left: 3px solid var(--black);
}
/* List view layout */
.listings-grid[data-view="list"] .listing-card {
  display: grid;
  grid-template-columns: 240px 1fr;
}
.listings-grid[data-view="list"] .lc-photo-wrap {
  height: 100%;
  min-height: 200px;
  border-radius: 0;
}

/* ── PHOTO WRAP ───────────────────────────────────────────────────── */
.lc-photo-wrap {
  position: relative;
  height: 210px;
  background: var(--grey-1);
  overflow: hidden;
}
.lc-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--grey-3);
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease);
}
.listing-card:hover .lc-photo-placeholder { transform: scale(1.03); }

/* Badges */
.lc-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; align-items: center;
}
.lc-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
  line-height: 1;
}
.lc-badge--owner {
  background: var(--black); color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.lc-badge--broker {
  background: rgba(255,255,255,0.88); backdrop-filter: blur(8px);
  color: var(--black); border: 1px solid rgba(0,0,0,0.08);
}
.lc-badge--type {
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  color: var(--black); border: 1px solid rgba(0,0,0,0.1);
}

/* Freshness label */
.lc-fresh {
  position: absolute; bottom: 10px; left: 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--white); text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.lc-fresh-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wa); flex-shrink: 0;
  animation: freshPulse 1.8s ease-in-out infinite;
}
@keyframes freshPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(37,211,102,0); }
}

/* Shortlist heart */
.lc-shortlist {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-3); cursor: pointer;
  transition: all 0.18s var(--ease);
}
.lc-shortlist:hover { transform: scale(1.12); color: #e11d48; }
.lc-shortlist.saved svg { fill: #e11d48; stroke: #e11d48; }
.lc-shortlist.saved { color: #e11d48; }

/* ── CARD BODY ────────────────────────────────────────────────────── */
.lc-body {
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 0;
}

/* Price row */
.lc-price-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px;
}
.lc-price {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--black); letter-spacing: -0.025em; line-height: 1.1;
}
.lc-ppsf {
  font-size: 11px; font-weight: 600; color: var(--grey-3);
  background: var(--grey-1); padding: 2px 8px; border-radius: 100px;
}

/* Society */
.lc-society {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--black); line-height: 1.2; margin-bottom: 4px;
}

/* Sector */
.lc-sector {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--grey-3); margin-bottom: 10px;
}

/* Spec chips */
.lc-specs {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px;
}
.lc-chip {
  font-size: 11px; font-weight: 500; color: var(--grey-4);
  background: var(--off-white); padding: 4px 9px;
  border-radius: 6px; border: 1px solid var(--grey-1);
  white-space: nowrap;
}
.lc-chip--furnished {
  background: var(--black); color: var(--white); border-color: var(--black);
}

/* Highlights */
.lc-highlights {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 10px; list-style: none;
}
.lc-hl-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--grey-4);
  border: 1px solid var(--grey-1); background: var(--white);
  padding: 3px 8px; border-radius: 100px;
}
.lc-hl-item svg { flex-shrink: 0; color: var(--grey-3); }

/* Verified + views */
.lc-meta-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.lc-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: #166534;
}
.lc-views {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--grey-3);
}

/* Description (list view only) */
.lc-desc {
  display: none;
  font-size: 13px; color: var(--grey-3); line-height: 1.6;
  font-weight: 300; margin-bottom: 10px;
}
.listings-grid[data-view="list"] .lc-desc { display: block; }

/* CTA row */
.lc-cta-row {
  display: flex; gap: 8px; align-items: center; margin-top: auto;
}
.btn-wa-main {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--wa); color: var(--white);
  padding: 11px 14px; border-radius: 10px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 12px rgba(37,211,102,0.25);
  transition: all 0.2s var(--ease); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-wa-main:hover {
  background: var(--wa-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
}
.btn-details {
  display: flex; align-items: center; gap: 4px;
  padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--grey-1); background: transparent;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--grey-4); cursor: pointer; text-decoration: none;
  transition: all 0.18s; white-space: nowrap;
}
.btn-details:hover { border-color: var(--black); color: var(--black); }

/* Report button */
.lc-report {
  display: block; text-align: center;
  font-size: 11px; color: var(--grey-2); margin-top: 8px;
  background: none; border: none; cursor: pointer;
  transition: color 0.15s; padding: 2px 0;
  font-family: var(--font-body);
}
.lc-report:hover { color: #dc2626; }

/* ── SKELETON CARDS ───────────────────────────────────────────────── */
.listing-card--skeleton {
  opacity: 1; transform: none; animation: none; pointer-events: none;
}
.sk-photo {
  height: 210px; background: var(--grey-1);
  background-image: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { background-position: -600px 0; }
  to   { background-position:  600px 0; }
}
.sk-body { padding: 16px 18px; }
.sk-line {
  background: var(--grey-1); border-radius: 6px; margin-bottom: 10px;
  background-image: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  background-size: 600px 100%; animation: shimmer 1.4s infinite;
}
.sk-line--price   { height: 28px; width: 55%; margin-bottom: 8px; }
.sk-line--society { height: 18px; width: 75%; margin-bottom: 6px; }
.sk-line--sector  { height: 12px; width: 45%; margin-bottom: 12px; }
.sk-chips { display: flex; gap: 5px; margin-bottom: 14px; }
.sk-chip  { height: 24px; width: 64px; border-radius: 6px; background: var(--grey-1); animation: shimmer 1.4s infinite; }
.sk-cta   { height: 42px; border-radius: 10px; background: var(--grey-1); animation: shimmer 1.4s infinite; }

/* ── EMPTY STATE ──────────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.es-icon { font-size: 48px; display: block; margin-bottom: 6px; }
.es-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 300; letter-spacing: -0.02em; color: var(--black);
}
.es-sub { font-size: 14px; color: var(--grey-3); margin-bottom: 8px; }

/* ── LOAD MORE ────────────────────────────────────────────────────── */
.load-more-wrap {
  text-align: center; padding-top: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.lm-note { font-size: 12px; color: var(--grey-3); }

/* ══ FILTER DRAWER ══════════════════════════════════════════════════ */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 290;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(2px);
  animation: fadeIn 0.2s var(--ease);
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.filter-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
  width: min(420px, 100vw);
  background: var(--white);
  display: flex; flex-direction: column;
  animation: slideLeft 0.3s var(--ease);
  overflow: hidden;
}
@keyframes slideLeft {
  from { transform: translateX(100%); opacity:0; }
  to   { transform: translateX(0);    opacity:1; }
}
.fd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey-1); flex-shrink: 0;
}
.fd-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 300; letter-spacing: -0.02em; color: var(--black);
}
.fd-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--off-white); border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-4); cursor: pointer; transition: all 0.15s;
}
.fd-close:hover { background: var(--grey-1); color: var(--black); }
.fd-body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  scrollbar-width: thin; scrollbar-color: var(--grey-1) transparent;
}
.fd-section { margin-bottom: 28px; }
.fd-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--grey-3); margin-bottom: 10px;
}
.fd-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fd-chip {
  padding: 8px 14px; border-radius: 100px;
  border: 1.5px solid var(--grey-1); background: var(--off-white);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--grey-4); cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.fd-chip:hover { border-color: var(--black); color: var(--black); }
.fd-chip--active {
  background: var(--black); border-color: var(--black); color: var(--white);
}
.fd-section--toggle .fd-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fd-toggle-sub { font-size: 12px; color: var(--grey-3); margin-top: 2px; }
/* Toggle switch */
.toggle-switch { position: relative; cursor: pointer; flex-shrink: 0; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ts-track {
  display: block; width: 44px; height: 26px; border-radius: 100px;
  background: var(--grey-1); transition: background 0.25s var(--ease);
  position: relative;
}
.toggle-switch input:checked ~ .ts-track { background: var(--black); }
.ts-dot {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); transition: transform 0.25s var(--ease);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked ~ .ts-track .ts-dot { transform: translateX(18px); }

.fd-footer {
  padding: 16px 24px; border-top: 1px solid var(--grey-1); flex-shrink: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.fd-result-count {
  font-size: 13px; color: var(--grey-3); text-align: center; min-height: 18px;
}
.fd-footer-btns { display: flex; gap: 8px; }
.fd-footer-btns .btn { flex: 1; justify-content: center; border-radius: 10px; }

/* ══ REPORT MODAL ═══════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 390;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(3px);
  animation: fadeIn 0.2s var(--ease);
}
.report-modal {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: var(--white); border-radius: 24px 24px 0 0;
  padding: 28px 24px 40px;
  animation: slideUp 0.3s var(--ease);
  max-width: 560px; margin: 0 auto;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.rm-inner { max-width: 480px; margin: 0 auto; }
.rm-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 4px;
}
.rm-sub { font-size: 13px; color: var(--grey-3); margin-bottom: 18px; }
.rm-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rm-opt {
  padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--grey-1); background: var(--off-white);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--black); text-align: left; cursor: pointer; transition: all 0.15s;
}
.rm-opt:hover { border-color: var(--black); background: var(--white); }
.rm-opt.selected { background: var(--black); color: var(--white); border-color: var(--black); }
.rm-cancel {
  display: block; width: 100%; padding: 13px;
  background: none; border: none; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; color: var(--grey-3);
  cursor: pointer; transition: color 0.15s; text-align: center;
}
.rm-cancel:hover { color: var(--black); }

/* ══ STICKY SEARCH ══════════════════════════════════════════════════ */
.sticky-search {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 180;
  display: flex; gap: 8px; padding: 12px 16px 20px;
  background: linear-gradient(transparent, rgba(245,244,240,0.96) 40%);
  transform: translateY(100%); transition: transform 0.3s var(--ease);
}
.sticky-search.visible { transform: translateY(0); }
.ss-search-btn {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1.5px solid var(--grey-1);
  border-radius: 100px; padding: 12px 18px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--grey-3); cursor: pointer; transition: border-color 0.15s;
  box-shadow: var(--shadow-md);
}
.ss-search-btn:hover { border-color: var(--black); }
.ss-filter-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--black); color: var(--white); border: none;
  cursor: pointer; flex-shrink: 0; position: relative;
  box-shadow: var(--shadow-md); transition: background 0.15s;
}
.ss-filter-btn:hover { background: var(--black-3); }
.ss-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--wa); color: var(--white);
  border-radius: 100px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* ══ FOOTER ═════════════════════════════════════════════════════════ */
.site-footer-mini {
  background: var(--black);
  padding: 28px 24px;
  border-top: 1px solid var(--black-4);
}
.sfm-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.sfm-logo {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--white); letter-spacing: -0.02em;
}
.sfm-logo span { color: var(--grey-4); }
.sfm-copy { font-size: 12px; color: var(--grey-4); margin-left: auto; }
.sfm-links { display: flex; gap: 16px; }
.sfm-link {
  font-size: 12px; color: var(--grey-4); transition: color 0.15s;
}
.sfm-link:hover { color: var(--white); }

/* ══ RESPONSIVE ═════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions { display: none; }
}
@media (max-width: 768px) {
  .search-hero { padding: calc(var(--nav-h) + 28px) 16px 28px; }
  .sh-heading { font-size: 26px; }
  .sh-sub { font-size: 11px; margin-bottom: 16px; }
  .sb-input { font-size: 14px; padding: 14px 8px; }
  .filter-row { gap: 5px; }
  .fp { font-size: 12px; padding: 7px 11px; }
  .results-section { padding: 20px 16px 100px; }
  .listings-grid { grid-template-columns: 1fr; gap: 14px; }
  .listings-grid[data-view="list"] { grid-template-columns: 1fr; }
  .listings-grid[data-view="list"] .listing-card { display: block; }
  .toolbar { gap: 8px; }
  .toolbar-count strong { font-size: 16px; }
  .view-toggle { display: none; }
  .budget-dd { width: calc(100vw - 32px); left: 50%; transform: translateX(-50%); right: auto; }
  .sfm-copy { display: none; }
  .sfm-links { gap: 12px; }
}
@media (max-width: 480px) {
  .sh-heading { font-size: 22px; }
  .lc-price { font-size: 22px; }
  .btn-wa-main { font-size: 12px; padding: 10px 12px; }
  .report-modal { border-radius: 20px 20px 0 0; padding: 24px 16px 36px; }
}
