/* === Design Tokens === */
:root {
  --primary-dark: #171923;
  --body-text: #333333;
  --secondary-text: #4A5568;
  --muted-text: #6A7175;
  --slate: #718096;
  --teal-accent: #29F17A;
  --teal-light-bg: #f4fdf7;
  --light-gray: #EDF2F7;
  --border: #E2E6E8;
  --white: #FFFFFF;
  --footer-dark: #1A202C;
  --card-radius: 12px;
  --pill-radius: 9999px;
  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-button: 0 1px 3px rgba(23,25,35,0.1);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-dropdown: 0 4px 16px rgba(0,0,0,0.12);
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --nav-height: 56px;
  --filter-height: 52px;
  --sidebar-width: 56px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body { min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.43;
}
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}
input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* === Shared Site Nav === */
.site-nav {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 901;
  transition: background 0.3s, border-color 0.3s;
}
.home-page .site-nav {
  background: #212737;
  border-bottom-color: transparent;
}
.home-page .site-nav .btn-login {
  color: var(--white) !important;
  border-color: rgba(255,255,255,0.2);
  background: transparent;
}
.home-page .site-nav .btn-login:hover {
  background: rgba(255,255,255,0.1);
}
.home-page .site-nav .btn-call-us {
  background: #54ff99;
  color: #212737 !important;
}
.home-page .site-nav .mobile-hamburger {
  color: rgba(255,255,255,0.6);
}
.home-page .site-nav .logo-white { display: block; }
.home-page .site-nav .logo-blue { display: none; }
.home-page .site-nav.scrolled {
  background: var(--white);
  border-bottom-color: var(--border);
}
.home-page .site-nav.scrolled .btn-login {
  color: var(--primary-dark) !important;
  border-color: var(--border);
  background: var(--white);
}
.home-page .site-nav.scrolled .btn-call-us {
  background: #29F17A;
  color: var(--primary-dark) !important;
}
.home-page .site-nav.scrolled .mobile-hamburger {
  color: var(--muted-text);
}
.home-page .site-nav.scrolled .logo-white { display: none; }
.home-page .site-nav.scrolled .logo-blue { display: block; }
.site-nav-logo {
  display: flex;
  flex-shrink: 0;
}
.site-nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 480px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  margin: 0 24px;
}
.site-nav-search-input {
  flex: 1;
  font-size: 13px;
  color: var(--body-text);
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
}
.site-nav-search-input::placeholder { color: var(--muted-text); }
.site-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === Top Nav (legacy) === */
.top-nav {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 24px;
  background: var(--white);
  z-index: 901;
  position: relative;
}
.logo {
  display: flex;
  flex-shrink: 0;
}
.logo-img {
  height: 30px;
  width: auto;
}
.logo-white { display: none; }
.logo-blue { display: block; }
.nav-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-tabs a {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-text);
  border-radius: var(--pill-radius);
  transition: background 0.15s, color 0.15s;
}
.nav-tabs a:hover { background: var(--light-gray); color: var(--primary-dark); }
.nav-tabs a.active { color: var(--primary-dark); font-weight: 600; }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-right a {
  font-size: 14px;
  color: var(--secondary-text);
  font-weight: 500;
}
.btn-login,
.btn-signup {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-weight: 700;
  color: var(--primary-dark) !important;
  font-size: 13px;
  background: var(--white);
  transition: background 0.15s;
}
.btn-login:hover,
.btn-signup:hover { background: var(--light-gray); }

/* === Filter Bar === */
.filter-bar {
  height: var(--filter-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  background: var(--white);
  z-index: 900;
  position: relative;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  padding: 0 14px;
  height: 36px;
  width: 220px;
  flex-shrink: 0;
  background: var(--white);
}
.search-input-wrap svg { flex-shrink: 0; color: var(--slate); }
.search-input-wrap input {
  flex: 1;
  font-size: 13px;
  color: var(--body-text);
  min-width: 0;
}
.search-input-wrap input::placeholder { color: var(--muted-text); }
.filter-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--body-text);
  background: var(--white);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  cursor: pointer;
}
.filter-pill:hover { background: var(--light-gray); }
.filter-pill.active {
  background: var(--teal-light-bg);
  border-color: var(--teal-accent);
  color: var(--teal-accent);
}
.filter-pill .chevron {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}
.mobile-filters-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--body-text);
  background: var(--white);
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
}
.filter-pill .badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  margin-left: 2px;
}
.btn-save-search {
  padding: 0 18px;
  height: 36px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--pill-radius);
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-save-search:hover { opacity: 0.85; }
.filter-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.saved-homes-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-accent);
  white-space: nowrap;
}

/* === Filter Dropdowns === */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-dropdown);
  border: 1px solid var(--border);
  z-index: 200;
  display: none;
  min-width: 320px;
}
.filter-dropdown.open { display: block; }
.filter-dropdown-header {
  padding: 16px 20px 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
}
.filter-dropdown-body { padding: 16px 20px; }
.filter-dropdown-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}
.btn-see-results {
  width: 100%;
  padding: 14px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--pill-radius);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: opacity 0.15s;
}
.btn-see-results:hover { opacity: 0.85; }

/* Price range filter */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.price-input-group { flex: 1; }
.price-input-group label {
  display: block;
  font-size: 12px;
  color: var(--muted-text);
  margin-bottom: 6px;
}
.price-input-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.price-inputs .divider {
  color: var(--muted-text);
  margin-top: 18px;
}

/* Segmented selectors (beds/baths) */
.segment-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}
.segment-group button {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--body-text);
  border-right: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.segment-group button:last-child { border-right: none; }
.segment-group button:hover { background: var(--light-gray); }
.segment-group button.active {
  background: var(--teal-light-bg);
  color: var(--teal-accent);
  font-weight: 600;
}

/* Property type grid */
.property-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.property-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-text);
  cursor: pointer;
  transition: all 0.15s;
}
.property-type-option:hover { border-color: var(--teal-accent); }
.property-type-option.active {
  background: var(--teal-light-bg);
  border-color: var(--teal-accent);
  color: var(--teal-accent);
}
.property-type-option svg { width: 28px; height: 28px; }
.filter-section-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.filter-section + .filter-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* === Main Layout (Search Results) === */
.search-layout {
  display: flex;
  height: calc(100vh - var(--nav-height) - var(--filter-height));
  overflow: hidden;
}

/* Left sidebar */
.sidebar {
  width: var(--sidebar-width);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  flex-shrink: 0;
  background: var(--white);
}
.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted-text);
  cursor: pointer;
  transition: all 0.15s;
  width: 48px;
  text-align: center;
}
.sidebar-item:hover { background: var(--light-gray); color: var(--body-text); }
.sidebar-item.active {
  color: var(--teal-accent);
  background: var(--teal-light-bg);
  font-weight: 600;
}
.sidebar-item svg { width: 20px; height: 20px; }

/* Map pane */
.map-pane {
  flex: 1;
  position: relative;
  min-width: 0;
}
#map {
  width: 100%;
  height: 100%;
}
.map-sub-filters {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 500;
}
.sub-filter-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--body-text);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: background 0.15s;
}
.sub-filter-chip:hover { background: var(--light-gray); }
.sub-filter-chip .close {
  font-size: 16px;
  line-height: 1;
  opacity: 0.5;
  margin-left: 2px;
}

/* Listing pane */
.listing-pane {
  width: 380px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.listing-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.listing-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}
.listing-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.listing-count {
  font-size: 13px;
  color: var(--muted-text);
}
.listing-sort {
  font-size: 13px;
  color: var(--body-text);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.listing-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* === Listing Card === */
.listing-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.listing-card:hover { background: #FAFBFC; }
.listing-card.selected {
  background: var(--teal-light-bg);
  border-left: 3px solid var(--teal-accent);
}
.card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.card-photo-img {
  width: 100%;
  height: 100%;
  background-color: #E2E8F0;
  background-size: cover;
  background-position: center;
}
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}
.badge {
  padding: 4px 10px;
  border-radius: var(--pill-radius);
  font-size: 11px;
  font-weight: 600;
}
.badge-time {
  background: var(--primary-dark);
  color: var(--white);
}
.badge-apply {
  background: var(--teal-accent);
  color: var(--white);
}
.card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
  border: none;
}
.card-favorite:hover { transform: scale(1.1); }
.card-favorite svg { width: 16px; height: 16px; color: var(--secondary-text); }
.card-favorite.favorited svg { color: #E53E3E; fill: #E53E3E; }
.card-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.card-dot.active { background: var(--white); }
.card-info { padding-top: 10px; }
.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}
.card-price-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-accent);
}
.card-overflow {
  margin-left: auto;
  font-size: 18px;
  color: var(--muted-text);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.card-details {
  font-size: 13px;
  color: var(--secondary-text);
  margin-top: 4px;
}
.card-address {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 2px;
}

/* End of results */
.end-of-results {
  padding: 24px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.end-of-results svg { flex-shrink: 0; color: var(--slate); margin-top: 2px; }
.end-of-results-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}
.end-of-results-text p {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 2px;
}
.end-of-results-text a {
  color: var(--teal-accent);
  font-weight: 600;
  cursor: pointer;
}

/* === Price Histogram + Dual Range Slider === */
.histogram-wrap {
  margin-bottom: 8px;
}
.histogram {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 80px;
  padding: 0 2px;
}
.hist-bar {
  flex: 1;
  min-height: 2px;
  background: var(--border);
  border-radius: 2px 2px 0 0;
  transition: background 0.15s;
}
.hist-bar.in-range {
  background: var(--teal-accent);
}
.range-slider {
  position: relative;
  height: 24px;
  margin-top: -2px;
}
.range-slider::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.range-slider-track {
  position: absolute;
  top: 10px;
  height: 4px;
  background: var(--teal-accent);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}
.range-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}
.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-accent);
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  pointer-events: all;
  margin-top: -7px;
  position: relative;
  z-index: 3;
}
.range-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-accent);
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  pointer-events: all;
}
.range-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted-text);
  margin-top: 2px;
}

/* === Checkbox & Radio rows === */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--body-text);
  cursor: pointer;
  padding: 4px 0;
}
.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  background: var(--white);
}
.checkbox-row input[type="checkbox"]:checked {
  background: var(--teal-accent);
  border-color: var(--teal-accent);
}
.checkbox-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.radio-list { display: flex; flex-direction: column; gap: 2px; }
.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--body-text);
  cursor: pointer;
  padding: 4px 0;
}
.radio-row input[type="radio"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  background: var(--white);
}
.radio-row input[type="radio"]:checked {
  border-color: var(--teal-accent);
  border-width: 2px;
}
.radio-row input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-accent);
}

/* === More Filters Modal === */
.more-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.more-filters-modal.open {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.mf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.mf-panel {
  position: relative;
  width: 640px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  margin-top: 5vh;
  z-index: 1;
}
.mf-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.mf-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
.mf-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted-text);
  border-radius: 50%;
  transition: background 0.15s;
}
.mf-close:hover { background: var(--light-gray); }
.mf-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.mf-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.mf-section:last-child { border-bottom: none; }
.mf-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.mf-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.mf-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.mf-reset {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-accent);
  white-space: nowrap;
}
.mf-reset:hover { text-decoration: underline; }

/* Icon buttons (pets, amenities, views) */
.icon-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--secondary-text);
  cursor: pointer;
  min-width: 90px;
  text-align: center;
  transition: all 0.15s;
  background: var(--white);
}
.icon-btn:hover { border-color: var(--teal-accent); }
.icon-btn.active {
  background: var(--teal-light-bg);
  border-color: var(--teal-accent);
  color: var(--teal-accent);
}

/* Amenity chips */
.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.amenity-chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-text);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}
.amenity-chip:hover { border-color: var(--teal-accent); }
.amenity-chip.active {
  background: var(--teal-light-bg);
  border-color: var(--teal-accent);
  color: var(--teal-accent);
}

/* Checkbox list */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 768px) {
  .mf-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin-top: 0;
    height: 100vh;
  }
}

/* === Map Markers (Leaflet custom) === */
/* Google Maps InfoWindow overrides */
.gm-style-iw { border-radius: 12px !important; padding: 0 !important; box-shadow: var(--shadow-dropdown) !important; }
.gm-style-iw-d { overflow: hidden !important; padding: 0 !important; }
.gm-style-iw-tc { display: none; }
.gm-style .gm-style-iw-chr { display: none !important; }

/* Map preview card */
.map-preview {
  width: 280px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-dropdown);
  overflow: hidden;
  font-family: var(--font-body);
}
.map-preview-photo {
  width: 100%;
  height: 140px;
  background-color: #E2E8F0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.map-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--secondary-text);
  border: none;
  line-height: 1;
}
.map-preview-body { padding: 10px 12px; }
.map-preview-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
.map-preview-details {
  font-size: 12px;
  color: var(--secondary-text);
  margin-top: 3px;
}
.map-preview-address {
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 2px;
}


/* === Listing Detail Page === */
.detail-nav {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.detail-nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.detail-nav-left .logo-img { height: 48px; width: auto; }
.detail-nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 480px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  margin: 0 24px;
}
.detail-search-input {
  flex: 1;
  font-size: 13px;
  color: var(--body-text);
  background: none;
}
.detail-search-input::placeholder { color: var(--muted-text); }
.detail-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.detail-nav-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--secondary-text);
  cursor: pointer;
}
.detail-nav-action:hover { color: var(--primary-dark); }

/* Photo gallery — Zumper-style vertical layout */
.photo-gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.gallery-hero {
  width: 100%;
  height: 460px;
  background-color: #E2E8F0;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
}
.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gallery-pair-img {
  height: 240px;
  background-color: #E2E8F0;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}
.photo-count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: var(--pill-radius);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Detail content */
/* Full-width property header */
.detail-header-wrap {
  margin-bottom: 24px;
}
.detail-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 40px;
  position: relative;
}
.detail-header-left {
  width: 100%;
}
.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-text);
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}
.detail-back-link:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.detail-prop-name {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
}
.detail-address {
  font-size: 15px;
  color: var(--muted-text);
  line-height: 1.4;
  margin-top: 2px;
}
.detail-header-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.detail-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-text);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  margin-left: auto;
}
.detail-save-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.detail-save-btn.saved {
  color: #e74c3c;
  border-color: #e74c3c;
}
.detail-save-btn.saved svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}
@keyframes save-pop {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.detail-save-btn.save-animate svg {
  animation: save-pop 0.45s ease;
}
@keyframes save-pop-card {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  60% { transform: scale(0.85); }
  100% { transform: scale(1); }
}
.card-favorite.save-animate svg {
  animation: save-pop-card 0.4s ease;
}
.detail-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.detail-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}
.detail-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.detail-main { min-width: 0; }

/* Tabs */
.detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-top: 20px;
  gap: 0;
}
.detail-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-text);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.detail-tab:hover { color: var(--body-text); }
.detail-tab.active {
  color: var(--primary-dark);
  font-weight: 600;
  border-bottom-color: var(--primary-dark);
}

/* What's special */
.section { margin-top: 24px; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.special-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.special-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 13px;
  color: var(--secondary-text);
}

/* Available units */
.section-subtitle {
  font-size: 13px;
  color: var(--muted-text);
  line-height: 1.5;
  margin-top: -4px;
  margin-bottom: 4px;
}
.cost-calc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-accent);
  margin-bottom: 12px;
  display: inline-block;
}
.units-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.units-header {
  display: grid;
  grid-template-columns: 1fr 100px 120px 140px 24px;
  align-items: center;
  padding: 10px 20px;
  background: var(--light-gray);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary-text);
}
.unit-row {
  display: grid;
  grid-template-columns: 1fr 100px 120px 140px 24px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.unit-row:hover { background: var(--light-gray); }
.unit-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.unit-thumb {
  width: 80px;
  height: 72px;
  border-radius: 8px;
  background: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 4px;
}
.unit-thumb svg { opacity: 0.35; }
.unit-thumb-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}
.unit-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-text);
}
.unit-beds {
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 500;
}
.unit-floorplan {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal-accent);
  margin-top: 2px;
}
.unit-sqft {
  font-size: 13px;
  color: var(--muted-text);
}
.unit-avail {
  font-size: 13px;
  color: var(--muted-text);
}
.unit-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-accent);
}
.unit-chevron {
  color: var(--muted-text);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Facts & Features */
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.fact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.fact-card:nth-last-child(-n+2) { border-bottom: none; }
.fact-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fact-icon svg {
  width: 18px;
  height: 18px;
  color: var(--secondary-text);
}
.fact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}
.fact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 1px;
}

/* Getting around scores */
.scores-row {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.score-card {
  flex: 1;
  padding: 18px;
  background: var(--light-gray);
  border-radius: 12px;
}
.score-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.score-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.score-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
  font-style: italic;
}
.score-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.score-bar-fill {
  height: 100%;
  background: var(--teal-accent);
  border-radius: 3px;
}
.score-desc {
  font-size: 13px;
  color: var(--muted-text);
}

/* Nearby schools */
.school-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.school-rating {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal-accent);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.school-info { flex: 1; }
.school-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.school-meta {
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 1px;
}

/* Cost calculator */
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cost-column h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}
.cost-label { color: var(--muted-text); }
.cost-value { color: var(--body-text); font-weight: 600; }
.cost-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--teal-light-bg);
  border-radius: 8px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
}
.cost-total .cost-label { color: var(--teal-accent); font-weight: 700; }
.cost-total .cost-value { color: var(--teal-accent); }

/* Contact form */
.contact-form { margin-top: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--body-text);
  transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--teal-accent); outline: none; }
textarea.form-input { min-height: 80px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-primary {
  padding: 12px 24px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--pill-radius);
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.form-disclaimer {
  font-size: 11px;
  color: var(--muted-text);
  margin-top: 12px;
  line-height: 1.4;
}

/* Tour sidebar */
/* ── Tour Sidebar (sticky shell) ── */
.tour-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  align-self: start;
}

/* ── Welcome / Wizard Module ── */
.welcome-module {
  --wm-accent: #29F17A;
  --wm-accent-dark: #29F17A;
  --wm-light-bg: #edfbf2;
  --wm-border: var(--border);
  --wm-muted: var(--muted-text);
  --dur-fast: 120ms;
  --dur-normal: 250ms;
  --dur-instant: 80ms;
  --ease-micro: cubic-bezier(.25,.1,.25,1);
  --ease-enter: cubic-bezier(.22,1,.36,1);
  --ease-exit: cubic-bezier(.4,0,1,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --slide-y: 12px;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--wm-border);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.wm-heading {
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: var(--primary-dark);
}
.wm-subtitle {
  font-size: 13px;
  line-height: 20px;
  color: var(--wm-muted);
  text-align: center;
  transition: opacity 120ms var(--ease-exit);
}
.wm-subtitle.fading { opacity: 0; }

/* Size / Timeline grid */
.size-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.size-row {
  display: flex;
  gap: 10px;
}
.size-btn {
  flex: 1;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--secondary-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-micro),
              background var(--dur-fast) var(--ease-micro),
              color var(--dur-fast) var(--ease-micro);
}
.size-btn:hover { border-color: var(--slate); }
.size-btn.selected {
  border-color: var(--wm-accent);
  border-width: 2px;
  background: var(--wm-light-bg);
  color: var(--wm-accent-dark);
  font-weight: 600;
  gap: 6px;
}
.size-btn .check-icon {
  display: block;
  flex-shrink: 0;
  width: 0;
  overflow: hidden;
  transform: scale(0);
  transition: width 200ms var(--ease-spring), transform 200ms var(--ease-spring);
}
.size-btn.selected .check-icon { width: 16px; transform: scale(1); }
.size-btn.full { flex: 0 0 100%; }

/* Action buttons */
.wm-btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.wm-action-btn {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, transform 80ms ease, opacity 250ms ease;
}
.wm-action-btn:active { transform: scale(0.97); }
.wm-action-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.wm-btn-apply {
  background: #212737;
  color: #fff;
}
.wm-btn-apply:hover { background: #1a1f2e; }
.wm-btn-tour {
  background: none;
  color: var(--wm-accent-dark);
  border: 2px solid var(--wm-accent);
}
.wm-btn-tour:hover { background: var(--wm-light-bg); }

/* Login prompt */
.wm-login-prompt {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--wm-muted);
  text-align: center;
}
.wm-login-prompt a { color: var(--wm-accent-dark); font-weight: 500; }

/* Progress bar */
.progress-bar {
  display: flex;
  gap: 6px;
  width: 200px;
  margin: 6px auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--dur-normal) var(--ease-enter),
              opacity var(--dur-normal) var(--ease-enter);
}
.progress-bar.visible { max-height: 20px; opacity: 1; }
.progress-bar .seg {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--light-gray);
  position: relative;
  overflow: hidden;
}
.progress-bar .seg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--wm-accent);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-enter);
}
.progress-bar .seg.filled::after { transform: scaleX(1); }

/* Wizard step transitions */
.wizard-steps-wrap {
  position: relative;
  width: 100%;
  min-height: 212px;
}
.wizard-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(var(--slide-y));
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-exit),
              transform var(--dur-fast) var(--ease-exit);
}
.wizard-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity var(--dur-normal) var(--ease-enter),
              transform var(--dur-normal) var(--ease-enter);
}
.wizard-step.active .size-row,
.wizard-step.active .wm-input,
.wizard-step.active .field-error {
  animation: stagger-in var(--dur-normal) var(--ease-enter) both;
}
.wizard-step.active .size-row:nth-child(1) { animation-delay: 60ms; }
.wizard-step.active .size-row:nth-child(2) { animation-delay: 120ms; }
.wizard-step.active .size-row:nth-child(3) { animation-delay: 180ms; }
.wizard-step.active .size-row:nth-child(4) { animation-delay: 240ms; }
.wizard-step.active .wm-input:nth-of-type(1) { animation-delay: 60ms; }
.wizard-step.active .wm-input:nth-of-type(2) { animation-delay: 120ms; }

@keyframes stagger-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Wizard inputs */
.wm-input {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--wm-border);
  background: transparent;
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 0 16px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-micro);
}
.wm-input::placeholder { color: var(--slate); }
.wm-input:focus { border-color: var(--wm-accent); }
.wm-input.error { border-color: #e53e3e; }
.wm-input.shaking { animation: shake 400ms ease; }

@keyframes shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(6px); }
  30%  { transform: translateX(-6px); }
  45%  { transform: translateX(4px); }
  60%  { transform: translateX(-4px); }
  75%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.field-error {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #e53e3e;
  margin-top: -4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms var(--ease-enter),
              transform 200ms var(--ease-enter);
  pointer-events: none;
}
.field-error.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Trust list */
.wm-trust-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% + 48px);
  margin: 0 -24px -28px;
  padding: 16px 24px 20px;
  background: #F5F7F8;
  border-top: 1px solid var(--border);
}
.wm-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--secondary-text);
  line-height: 16px;
}
.wm-trust-item a { color: var(--wm-accent-dark); font-weight: 500; text-decoration: underline; }

/* Success state */
.wm-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}
.wm-success-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: center;
  line-height: 1.4;
}
.wm-success-sub {
  font-size: 13px;
  color: var(--muted-text);
  text-align: center;
  line-height: 1.5;
}

/* Nearby apartments */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.nearby-card {
  cursor: pointer;
}
.nearby-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #E2E8F0;
  background-size: cover;
  background-position: center;
  border-radius: var(--card-radius);
}
.nearby-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 8px;
}
.nearby-specs {
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 2px;
}

/* Footer */
.site-footer {
  background: var(--footer-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 40px 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.footer-logo span { color: var(--teal-accent); }
.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* Related searches */
.related-searches {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
}
.related-searches h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related-tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 13px;
  color: var(--secondary-text);
  cursor: pointer;
  transition: all 0.15s;
}
.related-tag:hover {
  background: var(--light-gray);
  border-color: var(--secondary-text);
}

/* Neighborhood map placeholder */
.neighborhood-map {
  width: 100%;
  height: 300px;
  border-radius: var(--card-radius);
  margin-top: 12px;
  overflow: hidden;
}
.map-type-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}
.map-type-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--secondary-text);
  cursor: pointer;
}
.map-type-btn.active { background: var(--light-gray); color: var(--primary-dark); }


/* === Mobile === */
@media (max-width: 768px) {
  .top-nav { padding: 0 12px; gap: 12px; }
  .nav-tabs { display: none; }
  .nav-right a:not(.btn-signup) { display: none; }
  .filter-bar {
    overflow-x: auto;
    padding: 0 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar .search-input-wrap {
    flex: 1;
    width: auto;
  }
  .filter-bar .filter-pill-wrap,
  .filter-bar > .filter-pill {
    display: none;
  }
  .filter-bar .mobile-filters-btn {
    display: flex;
    width: auto;
    flex-shrink: 0;
  }
  .filter-right { display: none; }
  .sidebar { display: none; }
  .listing-pane {
    position: static;
    width: 100%;
    height: 100%;
    flex: 1;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
  }
  .listing-pane.collapsed,
  .listing-pane.expanded {
    height: 100%;
  }
  .sheet-handle { display: none !important; }
  .search-layout { flex-direction: column; height: calc(100vh - var(--nav-height) - var(--filter-height)); }
  .map-pane { display: none; }

  /* Detail page */
  .gallery-hero { height: 260px; }
  .gallery-pair-img { height: 160px; }
  .detail-header {
    padding: 20px 16px 16px;
    gap: 8px 12px;
  }
  .detail-header {
    overflow: hidden;
  }
  .detail-main {
    overflow: hidden;
  }
  .detail-header-stats {
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
  }
  .detail-prop-name { font-size: 26px; }
  .detail-content {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .tour-sidebar {
    display: none;
  }
  .detail-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .detail-tabs::-webkit-scrollbar { display: none; }
  .detail-tab { white-space: nowrap; flex-shrink: 0; }
  .units-header, .unit-row {
    grid-template-columns: 1fr 60px 80px;
  }
  .uh-avail, .unit-avail { display: none; }
  .uh-rent, .unit-price { text-align: right; }
  .unit-chevron { display: none; }
  .unit-thumb { width: 56px; height: 48px; }
  .scores-row { flex-direction: column; }
  .facts-grid, .cost-grid { grid-template-columns: 1fr; }
  .nearby-grid { grid-template-columns: 1fr 1fr; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .site-footer { padding: 32px 20px 20px; }
  .related-searches { padding: 24px 16px; }
  .chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 80px;
  }
  .form-row { grid-template-columns: 1fr; }
}

/* Sheet handle (hidden on desktop) */
.sheet-handle { display: none; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HOME PAGE                                                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

.home-page {
  overflow-x: clip;
}

/* Home Nav */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 64px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.home-nav .logo-img { }
.home-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-call-us {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #29F17A;
  color: var(--primary-dark) !important;
  border-radius: var(--pill-radius);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-call-us:hover { opacity: 0.85; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 60px;
  background: url('hero-bg.jpg') right bottom / cover no-repeat;
  overflow: visible;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: 74px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.hero h1 .teal { color: #54ff99; }
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #54ff99;
  letter-spacing: 0.01em;
}
.hero-trust svg { flex-shrink: 0; }
.hero-sparkle-img {
  display: none;
}
.hero-sparkle-img.sparkle-left {
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
}
.hero-sparkle-img.sparkle-right {
  top: 50%;
  right: 6%;
  transform: translateY(-50%) scaleX(-1);
}

.hero-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  z-index: 10;
}
.hero-search {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--pill-radius);
  padding: 4px 4px 4px 20px;
  gap: 12px;
  position: relative;
  z-index: 2;
  transition: border-radius 0.15s, border-color 0.15s;
}
.hero-search.focus {
  border-color: var(--border);
}

/* Search Dropdown */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 0 10px;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.search-dropdown.open { display: block; }
.search-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.1s;
}
.search-dd-item:hover { background: var(--light-gray); }
.search-dd-item svg { flex-shrink: 0; color: var(--muted-text); }
.search-dd-history {
  margin-top: 0;
  padding-top: 0;
}
.search-dd-history:empty { display: none; }
.search-dd-history-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
  padding: 10px 20px 4px;
  text-align: left;
}
.search-dd-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.1s;
}
.search-dd-history-item:hover { background: var(--light-gray); }
.search-dd-history-item svg { flex-shrink: 0; color: var(--muted-text); }
.hero-search input {
  flex: 1;
  font-size: 15px;
  color: var(--white);
  background: transparent;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.5); }
.hero-search > svg { color: rgba(255,255,255,0.5); stroke: rgba(255,255,255,0.5); }
.hero-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.hero-search-btn svg { stroke: #212737 !important; }
.hero-search-btn:hover { opacity: 0.85; }

/* Google Places Autocomplete (home hero) */
.pac-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  font-family: var(--font-body);
  overflow: visible !important;
  z-index: 9999;
  min-width: 360px !important;
}
.pac-container::after { display: none !important; }
.pac-item {
  padding: 10px 16px;
  border-top: 1px solid var(--light-gray);
  color: var(--body-text);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 20px;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}
.pac-item > span {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}
.pac-item:first-child { border-top: none; }
.pac-item:hover,
.pac-item-selected { background: var(--light-gray); }
.pac-item .pac-icon { display: none; }
.pac-item .pac-icon-marker { display: none; }
.pac-item::before {
  content: '';
  width: 16px; height: 16px; margin-right: 12px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z' stroke='%236A7175' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='10' r='3' stroke='%236A7175' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.pac-item .pac-item-query {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 14px;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}
.pac-matched { font-weight: 600; }

/* Social Proof */
.social-proof {
  text-align: center;
  padding: 0 24px 56px;
}
.social-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--teal-light-bg);
  border-radius: var(--pill-radius);
  padding: 12px 28px;
  font-size: 14px;
  color: var(--teal-accent);
  font-weight: 500;
}
.social-proof-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.social-proof-divider {
  width: 1px;
  height: 16px;
  background: rgba(54,103,113,0.25);
}
.social-proof-right { color: var(--secondary-text); }

/* Best Deals */
.best-deals {
  background: var(--white);
  padding: 64px 0;
}
.best-deals-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
}
.best-deals-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}
.best-deals-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1a9d52;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.best-deals h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-outline-light:hover { background: var(--light-gray); }

.deal-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.deal-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}
.deal-card:hover { transform: translateY(-2px); }
.deal-card-photo {
  height: 200px;
  background-color: #E2E8F0;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.deal-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}
.deal-card-cashback {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 10px;
  background: rgba(41, 241, 122, 0.12);
  color: #1a9d52;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--pill-radius);
}
.deal-card-cashback svg {
  margin-left: -2px;
}
.deal-card-specs {
  font-size: 13px;
  color: var(--secondary-text);
  margin-top: 2px;
}
.deal-card-name {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 2px;
}

/* Feature Cards */
.features {
  padding: 64px 0;
}
.features-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.feature-card--teal {
  background: var(--teal-light-bg);
  border-color: transparent;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-icon--dark { background: var(--primary-dark); }
.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 15px;
  color: var(--secondary-text);
  line-height: 1.6;
  margin-bottom: 24px;
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--pill-radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-dark:hover { opacity: 0.85; }
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-outline-dark:hover { background: var(--light-gray); }

/* 10K Apartments CTA */
.apartments-cta {
  background: var(--light-gray);
  padding: 80px 0;
}
.apartments-cta-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}
.apartments-cta-text { max-width: 520px; }
.apartments-cta-text h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.apartments-cta-text p {
  font-size: 15px;
  color: var(--secondary-text);
  line-height: 1.7;
  margin-bottom: 28px;
}
.apartments-cta-visual {
  width: 420px;
  height: 280px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--muted-text);
  font-size: 14px;
  box-shadow: var(--shadow-subtle);
}

/* Browse Categories */
.categories {
  padding: 72px 0;
}
.categories-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
}
.categories-inner h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.category-tab {
  padding: 8px 20px;
  border-radius: var(--pill-radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-text);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all 0.15s;
}
.category-tab:hover { background: var(--light-gray); }
.category-tab.active {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}
.city-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.city-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}
.city-card:hover { transform: translateY(-2px); }
.city-card-img {
  height: 220px;
  border-radius: 12px;
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--light-gray);
}
.city-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
}
.city-card-count {
  font-size: 13px;
  color: var(--muted-text);
  margin-top: 2px;
}

/* Testimonials */
.testimonials {
  background: var(--light-gray);
  padding: 72px 0;
}
.testimonials-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
  text-align: center;
}
.testimonials-inner h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.testimonials-sub {
  font-size: 15px;
  color: var(--muted-text);
  margin-bottom: 40px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.review-stars {
  font-size: 14px;
  color: var(--teal-accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review-card p {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.6;
  margin-bottom: 20px;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

/* FAQ */
.faq {
  padding: 72px 0;
}
.faq-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.faq-inner h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.faq-sub {
  font-size: 15px;
  color: var(--muted-text);
  margin-bottom: 40px;
}
.faq-list { text-align: left; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-answer {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--secondary-text);
  line-height: 1.6;
}

/* Directory */
.directory {
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.directory-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
}
.directory-inner h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 32px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.directory-col h5 {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.directory-col a {
  display: block;
  font-size: 14px;
  color: var(--secondary-text);
  padding: 4px 0;
  text-decoration: none;
}
.directory-col a:hover { color: var(--teal-accent); }

/* Home Footer */
.home-footer {
  background: var(--footer-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
.home-footer-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 64px;
}
.home-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 40px;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
}
.footer-housing {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.home-footer-links {
  display: flex;
  gap: 80px;
}
.home-footer-links .footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.home-footer-links .footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding: 3px 0;
  text-decoration: none;
}
.home-footer-links .footer-col a:hover { color: var(--white); }
.home-footer-social h5 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.15s;
}
.social-icon:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.home-footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}
.home-footer-legal p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.home-footer-legal-links {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}
.home-footer-legal-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.home-footer-legal-links a:hover { color: rgba(255,255,255,0.7); }
.home-footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* Home page responsive */
@media (max-width: 1024px) {
  .home-nav { padding: 0 24px; }
  .best-deals-inner,
  .features-inner,
  .apartments-cta-inner,
  .categories-inner,
  .testimonials-inner,
  .directory-inner,
  .home-footer-inner { padding: 0 24px; }
  .deal-cards { grid-template-columns: repeat(2, 1fr); }
  .city-cards { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .directory-grid { grid-template-columns: repeat(3, 1fr); }
  .features-inner { grid-template-columns: 1fr; }
  .apartments-cta-visual { display: none; }
}
/* Mobile-only elements (hidden by default) */
.site-nav-text-logo {
  display: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.6);
  gap: 0;
}
.site-nav-text-logo .text-logo-accent {
  color: var(--teal-accent);
}
.mobile-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.mobile-menu.open { display: block; }
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--secondary-text);
  cursor: pointer;
  margin-bottom: 16px;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu-call {
  color: var(--teal-accent);
}
.footer-text-logo {
  display: none;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.footer-text-logo .ftl-free {
  color: var(--teal-accent);
}

/* ═══ Shared Nav — Tablet ═══ */
@media (max-width: 900px) {
  .site-nav-right { display: none; }
  .mobile-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    margin-left: auto;
  }
  .hero h1 { font-size: 50px; }
  .hero-sparkle-img { width: 100px; }
}

/* ═══ Home Page — Mobile ═══ */
@media (max-width: 640px) {

  /* ── Nav ── */
  .home-page .site-nav { padding: 14px 20px; }

  /* ── Hero ── */
  .hero {
    padding: 40px 20px 48px;
    justify-content: flex-start;
    padding-top: 20vh;
  }
  .hero-content { width: 100%; }
  .hero h1 {
    font-size: 34px;
    margin-bottom: 28px;
  }
  .hero-br { display: none; }
  .hero-sparkle-img { display: none; }
  .hero-search-wrap { max-width: 100%; }
  .hero-search { padding: 4px 4px 4px 16px; gap: 10px; }
  .hero-search input { font-size: 14px; }
  .hero-search-btn { width: 40px; height: 40px; }

  /* ── Social Proof ── */
  .social-proof { padding: 20px 20px 28px; }
  .social-proof-pill {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
  }
  .social-proof-left svg { display: none; }
  .social-proof-divider { display: none; }

  /* ── Best Deals ── */
  .best-deals { padding: 40px 0; }
  .best-deals-inner { padding: 0 20px; }
  .best-deals-header { margin-bottom: 20px; align-items: center; }
  .best-deals h2 { font-size: 22px; }
  .best-deals .btn-outline-light {
    font-size: 14px;
  }
  .deal-cards {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 0 20px;
    scrollbar-width: none;
  }
  .deal-cards::-webkit-scrollbar { display: none; }
  .deal-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
  .deal-card-photo { height: 130px; border-radius: 10px; margin-bottom: 10px; }
  .deal-card-price { font-size: 18px; }

  /* ── Feature Cards ── */
  .features { padding: 40px 0; }
  .features-inner { padding: 0 20px; gap: 16px; }
  .feature-card { padding: 28px; border-radius: 14px; }
  .feature-icon { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px; }
  .feature-card h3 { font-size: 19px; }
  .feature-card p { font-size: 14px; margin-bottom: 20px; }

  /* ── 10K Apartments ── */
  .apartments-cta { padding: 48px 0; }
  .apartments-cta-inner { padding: 0 20px; }
  .apartments-cta-text { max-width: 100%; }
  .apartments-cta-text h2 { font-size: 28px; }
  .apartments-cta-text p { font-size: 14px; }

  /* ── Browse Categories ── */
  .categories {
    padding: 48px 0;
  }
  .categories-inner { padding: 0 20px; }
  .categories-inner h2 {
    font-size: 24px;
    text-align: center;
  }
  .category-tabs { justify-content: center; }
  .category-tab {
    font-size: 13px;
    padding: 6px 16px;
  }
  .city-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .city-card:nth-child(n+5) { display: none; }
  .city-card {
    border-radius: 12px;
    overflow: hidden;
  }
  .city-card-img { height: 120px; border-radius: 0; margin-bottom: 0; }
  .city-card-name { padding: 10px 12px 2px; font-size: 14px; }
  .city-card-count { padding: 0 12px 10px; font-size: 12px; }

  /* ── Testimonials ── */
  .testimonials { padding: 48px 0; }
  .testimonials-inner { padding: 0 20px; }
  .testimonials-inner h2 { font-size: 22px; }
  .testimonials-sub { margin-bottom: 24px; font-size: 14px; }
  .review-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-card:nth-child(n+4) { display: none; }

  /* ── FAQ ── */
  .faq {
    padding: 48px 0;
  }
  .faq-inner { padding: 0 20px; }
  .faq-inner h2 {
    font-size: 24px;
  }
  .faq-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .faq-item summary {
    font-size: 15px;
    padding: 16px 0;
  }

  /* ── Directory ── */
  .directory { display: none; }

  /* ── Footer ── */
  .home-footer { padding: 32px 0 20px; }
  .home-footer-inner { padding: 0 20px; }
  .home-footer-top {
    flex-direction: column;
    gap: 24px;
    padding-bottom: 20px;
  }
  .home-footer-brand .footer-logo-img { max-width: 160px; }
  .footer-housing { display: none; }
  .home-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .home-footer-links .footer-col a { font-size: 15px; padding: 6px 0; }
  .home-footer-social { display: none; }
  .home-footer-legal p { display: none; }
  .home-footer-legal-links { display: none; }
}

/* ═══ Content Panels (Recs / Favorites / Inbox) ═══ */
.content-panel {
  flex: 1;
  overflow-y: auto;
  padding: 40px 48px;
  background: var(--white);
}
.panel-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.panel-subtitle {
  font-size: 14px;
  color: var(--muted-text);
  margin-bottom: 28px;
}

/* Shared listing card (Recs + Saved) */
.recs-list, .favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
}
.recs-list .listing-card,
.favorites-grid .listing-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

/* Slideshow */
.card-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #E2E8F0;
  overflow: hidden;
  border-radius: 12px;
}
.card-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.card-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.card-slide-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--teal-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}
.card-slide-badge.sent-badge {
  background: var(--primary-dark);
}
.card-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.15s;
  background: none;
  border: none;
  padding: 0;
}
.card-dismiss:hover { opacity: 1; }
.card-dismiss svg { fill: none; stroke: #fff; }
.card-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s;
}
.card-slideshow:hover .card-slide-nav { opacity: 1; }
.card-slide-nav.prev { left: 8px; }
.card-slide-nav.next { right: 8px; }
.card-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.card-slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.card-slide-dot.active { background: #fff; }
.card-slide-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* Card body */
.card-body {
  padding: 12px 2px 0;
}
.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.card-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--teal-accent);
}
.card-dots-menu {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-text);
  padding: 4px;
}
.card-viewed-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal-accent);
}
.card-viewed-tag.not-viewed { color: var(--muted-text); }
.card-specs {
  font-size: 13px;
  color: var(--muted-text);
  margin-bottom: 2px;
}
.card-address {
  font-size: 13px;
  color: var(--secondary-text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-blurb {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary-text);
  font-style: italic;
  line-height: 1.4;
  margin-top: 8px;
}
.card-blurb svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--muted-text);
}
.btn-request-tour {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-request-tour:hover { opacity: 0.85; }

.favorites-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--muted-text);
  grid-column: 1 / -1;
}
.favorites-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}
.favorites-empty p {
  font-size: 14px;
  margin-top: 8px;
}

/* Inbox list */
.inbox-list { max-width: 600px; }
.inbox-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.inbox-item:hover { background: var(--teal-light-bg); }
.inbox-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inbox-body { flex: 1; min-width: 0; }
.inbox-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.inbox-preview {
  font-size: 13px;
  color: var(--muted-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.inbox-time {
  font-size: 11px;
  color: var(--muted-text);
}
.inbox-badge {
  background: var(--teal-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══ Chat FAB ═══ */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(54,103,113,0.4);
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(54,103,113,0.5);
}
.chat-fab.hidden { display: none; }

/* ═══ Chat Panel ═══ */
.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  max-height: 560px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
}
.chat-panel.open {
  display: flex;
}
.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}
.chat-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--light-gray);
  cursor: pointer;
  font-size: 18px;
  color: var(--muted-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.chat-panel-close:hover { background: var(--border); }

/* Agent card inside chat */
.chat-agent-card {
  text-align: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.chat-agent-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.chat-agent-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}
.chat-agent-reply {
  font-size: 11px;
  color: var(--muted-text);
  margin-bottom: 14px;
}
.chat-agent-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.chat-agent-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chat-agent-stats strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}
.chat-agent-stats span {
  font-size: 10px;
  color: var(--muted-text);
  margin-top: 2px;
}

/* Chat messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
}
.chat-time {
  text-align: center;
  font-size: 11px;
  color: var(--muted-text);
}
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 260px;
}
.chat-msg-agent .chat-msg-bubble {
  background: var(--light-gray);
  color: var(--primary-dark);
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  flex-direction: row-reverse;
}
.chat-msg-user .chat-msg-bubble {
  background: var(--teal-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Chat input */
.chat-input-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--teal-accent); }
.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.chat-send:hover { background: #2d565e; }

/* ═══ Admin Login Button ═══ */
.admin-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  padding: 10px 18px;
  max-width: calc(100vw - 40px);
  background: var(--primary-dark);
  color: var(--white) !important;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: background 0.15s, transform 0.15s;
}
.admin-fab:hover {
  background: #2d3748;
  transform: translateY(-1px);
}

/* ═══ Admin Dashboard Page ═══ */
.admin-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Admin nav items */
.admin-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-text);
  text-decoration: none;
  transition: color 0.15s;
}
.admin-nav-link:hover { color: var(--teal-accent); }
.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.admin-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Cards */
.admin-card {
  border: 1px solid #E2E6E8;
  border-radius: 12px;
  overflow: hidden;
}

/* Status Dashboard */
.admin-status {
  padding: 24px;
}
.admin-status-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}
/* Collapsible menu sections */
.admin-collapse-toggle { cursor: pointer; }
.admin-chevron { transition: transform 0.2s; flex-shrink: 0; margin-left: 8px; }
.admin-collapsible.collapsed .admin-chevron { transform: rotate(-90deg); }
.admin-collapse-body { margin-top: 16px; }
.admin-collapsible.collapsed .admin-collapse-body { display: none; }
.admin-collapsible.collapsed .admin-collapse-toggle { margin-bottom: 0 !important; }

/* Pipeline */
.pipeline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}
.pipeline-card {
  flex: 1;
  min-width: 0;
  padding: 12px 8px 10px;
  border-radius: 10px;
  background: #F7F8FA;
  text-align: center;
  position: relative;
  border-top: 3px solid transparent;
  transition: background 0.15s, box-shadow 0.15s;
}
.pipeline-card:not(.pipeline-total):hover {
  background: #EEF0F4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pipeline-card[data-border="teal-light"] { border-top-color: #8BBEC6; }
.pipeline-card[data-border="teal"] { border-top-color: var(--teal-accent); }
.pipeline-card[data-border="orange"] { border-top-color: #E09145; }
.pipeline-card[data-border="red"] { border-top-color: #D45B5B; }
.pipeline-card[data-border="muted"] { border-top-color: #B8BFC4; }
.pipeline-total {
  background: var(--primary-dark);
  padding: 14px 12px 12px;
}
.pipeline-total .pipeline-num { color: #fff; font-size: 28px; }
.pipeline-total .pipeline-label { color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 0.05em; }
.pipeline-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}
.pipeline-label {
  font-size: 11px;
  color: var(--muted-text);
  margin-top: 2px;
}
.pipeline-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 4px;
}

/* Section headers */
.admin-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-section-header h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}
.admin-section-header svg { flex-shrink: 0; }

/* Tabs */
.admin-tabs {
  display: flex;
  border-top: 1px solid var(--border);
}
.admin-tab {
  flex: 1;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-text);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-tab:hover { color: var(--primary-dark); }
.admin-tab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--teal-accent);
}

/* Menu grid */
.admin-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.admin-menu-col {
  display: flex;
  flex-direction: column;
}
.admin-link {
  font-size: 14px;
  color: var(--teal-accent);
  text-decoration: none;
  padding: 5px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}
.admin-link:hover { color: #2d565e; text-decoration: underline; }
.admin-link svg { opacity: 0.5; }
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 0 7px;
}
.admin-badge.teal { background: var(--teal-accent); }
.admin-badge.red { background: #D45B5B; }
.admin-badge.muted { background: #B8BFC4; }

/* Submenu links */
.admin-submenu-link {
  font-size: 13px;
  color: var(--muted-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-submenu-link:hover { color: var(--primary-dark); }
.admin-submenu-divider {
  color: var(--border);
  margin: 0 4px;
}

/* Time filter pills */
.admin-time-filters {
  display: flex;
  gap: 8px;
}
.admin-time-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--secondary-text);
  cursor: pointer;
  transition: all 0.15s;
}
.admin-time-btn:hover { border-color: var(--teal-accent); color: var(--teal-accent); }
.admin-time-btn.active {
  background: var(--teal-accent);
  color: #fff;
  border-color: var(--teal-accent);
}

/* ── Client List View ── */
.client-list-view {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
}
.client-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.client-list-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-back-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-text);
  transition: color 0.15s;
}
.client-back-link:hover { color: var(--teal-accent); }
.breadcrumb-sep {
  color: var(--border);
  font-size: 14px;
}
.client-list-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}
.client-count-badge {
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--pill-radius);
}
.btn-assign-leads {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: opacity 0.15s;
}
.btn-assign-leads:hover { opacity: 0.85; }

.client-list-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cl-filter-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--secondary-text);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  cursor: pointer;
  transition: all 0.15s;
}
.cl-filter-pill:hover { border-color: var(--teal-accent); }
.cl-filter-pill.active {
  background: var(--teal-light-bg);
  border-color: var(--teal-accent);
  color: var(--teal-accent);
}
.cl-filter-pill strong { font-weight: 600; }
.cl-more-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-text);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.cl-more-filters:hover { border-color: var(--teal-accent); color: var(--teal-accent); }

.client-table {
  width: 100%;
  border-collapse: collapse;
}
.client-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.client-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 20px;
}
.client-table th.sortable:hover { color: var(--primary-dark); }
.client-table th.sortable::after {
  content: '⇅';
  position: absolute;
  right: 4px;
  font-size: 10px;
  opacity: 0.4;
}
.client-table th.sort-asc::after { content: '▲'; opacity: 0.8; }
.client-table th.sort-desc::after { content: '▼'; opacity: 0.8; }
.client-table td {
  font-size: 13px;
  color: var(--body-text);
  padding: 14px 12px;
  border-bottom: 1px solid var(--light-gray);
  white-space: nowrap;
}
.client-table tbody tr {
  transition: background 0.1s;
}
.client-table tbody tr:hover {
  background: var(--teal-light-bg);
}
.cl-id {
  color: var(--teal-accent);
  font-weight: 600;
  cursor: pointer;
}
.cl-name {
  font-weight: 600;
  color: var(--primary-dark);
}

/* ── Client Detail View ── */
.client-detail-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height));
}

/* Calling Bar */
.cd-calling-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}
.cd-nav-prev, .cd-nav-next {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-text);
  min-width: 140px;
}
.cd-nav-next { justify-content: flex-end; }
.cd-nav-prev:hover, .cd-nav-next:hover { color: var(--teal-accent); }
.cd-nav-label {
  display: flex;
  flex-direction: column;
}
.cd-nav-dir {
  font-size: 13px;
  font-weight: 600;
}
.cd-nav-name {
  font-size: 11px;
  color: var(--muted-text);
}
.cd-calling-center {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cd-calling-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.cd-calling-phone {
  font-size: 13px;
  color: var(--muted-text);
}
.cd-call-btn {
  padding: 6px 20px;
  border-radius: var(--pill-radius);
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.cd-call-btn:hover { opacity: 0.85; }

/* Auto Call Switch */
.auto-call-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.auto-call-switch input { display: none; }
.auto-call-slider {
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
}
.auto-call-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.auto-call-switch input:checked + .auto-call-slider {
  background: var(--teal-accent);
}
.auto-call-switch input:checked + .auto-call-slider::after {
  transform: translateX(16px);
}
.auto-call-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-text);
}

/* Active Call Bar */
.cd-calling-bar.calling {
  background: linear-gradient(90deg, #065f46 0%, #047857 50%, #059669 100%);
  border-bottom-color: transparent;
}
.cd-calling-bar.calling .cd-nav-prev,
.cd-calling-bar.calling .cd-nav-next {
  color: rgba(255,255,255,0.8);
}
.cd-calling-bar.calling .cd-nav-prev:hover,
.cd-calling-bar.calling .cd-nav-next:hover {
  color: #fff;
}
.cd-calling-bar.calling .cd-nav-name { color: rgba(255,255,255,0.6); }
.cd-call-active {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cd-call-ring {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cdPhoneRing 1s ease-in-out infinite;
  position: relative;
  flex-shrink: 0;
}
.cd-call-ring::before, .cd-call-ring::after {
  content: '';
  position: absolute;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: cdRipple 1.5s ease-out infinite;
}
.cd-call-ring::before { width: 44px; height: 44px; }
.cd-call-ring::after { width: 56px; height: 56px; animation-delay: 0.3s; }
@keyframes cdPhoneRing {
  0%,100% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
  50% { transform: rotate(5deg); }
}
@keyframes cdRipple {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.3); }
}
.cd-call-active-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.cd-call-active-phone {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}
.cd-call-timer {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  letter-spacing: -0.02em;
}
.cd-call-progress-track {
  width: 120px;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}
.cd-call-progress-bar {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  transition: width 1s linear;
  width: 0%;
}
.cd-call-position {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.cd-call-stop {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.cd-call-stop:hover { background: #dc2626; }

/* Split Layout */
.cd-split {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Client Panel */
.cd-panel {
  width: 340px;
  flex-shrink: 0;
  background: #F7F8FA;
  color: var(--body-text);
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.cd-panel-scroll {
  padding: 28px 28px 20px;
}
.cd-client-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 8px;
}
.cd-contact-line {
  font-size: 13px;
  color: var(--secondary-text);
  margin-bottom: 16px;
}
.cd-locator-line {
  font-size: 13px;
  color: var(--secondary-text);
  margin-bottom: 20px;
}
.cd-id-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.cd-id-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cd-id-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}
.cd-id-value {
  font-size: 14px;
  color: var(--secondary-text);
  line-height: 1.4;
}
.cd-section-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  margin-bottom: 10px;
}
.cd-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.cd-history-item {
  font-size: 13px;
  color: var(--secondary-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cd-history-icon {
  color: var(--teal-accent);
  font-size: 10px;
  flex-shrink: 0;
}
.cd-history-icon.open { color: var(--muted-text); }

/* Section Dividers */
.cd-section-divider {
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  padding-bottom: 8px;
}
.cd-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}

/* Requirements List */
.cd-req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.cd-req-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cd-req-key {
  font-size: 13px;
  color: var(--muted-text);
}
.cd-req-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
}

/* Notes */
.cd-notes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cd-note-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cd-note-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.cd-note-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-accent);
}
.cd-note-date {
  font-size: 12px;
  color: var(--muted-text);
}
.cd-note-body {
  font-size: 13px;
  color: var(--secondary-text);
  line-height: 1.5;
}
.cd-add-note {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.cd-note-input {
  width: 100%;
  min-height: 60px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 13px;
  resize: vertical;
  outline: none;
}
.cd-note-input::placeholder { color: var(--muted-text); }
.cd-note-input:focus { box-shadow: 0 0 0 1px var(--teal-accent); }
.cd-save-note {
  align-self: flex-end;
  padding: 7px 20px;
  border-radius: 6px;
  background: var(--teal-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.cd-save-note:hover { opacity: 0.85; }

/* View Details toggle */
.cd-view-details-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-accent);
  margin-bottom: 16px;
  text-decoration: none;
}
.cd-view-details-link:hover { text-decoration: underline; }
.cd-vd-arrow { transition: transform 0.2s; }
.cd-vd-arrow.open { transform: rotate(180deg); }
.cd-details-collapse { margin-bottom: 4px; }
.cd-details-collapse.collapsed { display: none; }

/* Right Main Panel */
.cd-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--white);
  padding: 0 40px;
}
.cd-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 20px;
}
.cd-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-text);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.cd-tab.active {
  color: var(--primary-dark);
  font-weight: 600;
  border-bottom-color: var(--primary-dark);
}
.cd-tab:hover { color: var(--primary-dark); }

/* Search Bar */
.cd-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cd-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cd-search-input {
  flex: 1;
  font-size: 13px;
  color: var(--body-text);
  background: none;
}
.cd-search-input::placeholder { color: var(--muted-text); }
.cd-market-toggles {
  display: flex;
  gap: 6px;
}
.cd-market-btn {
  width: 52px;
  height: 36px;
  border-radius: var(--pill-radius);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cd-market-btn:hover { border-color: var(--teal-accent); color: var(--teal-accent); }
.cd-market-btn.active {
  background: var(--teal-accent);
  border-color: var(--teal-accent);
  color: #fff;
}

/* Filter Chips */
.cd-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cd-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--pill-radius);
  font-size: 13px;
  color: var(--secondary-text);
}
.cd-chip-x {
  font-size: 14px;
  color: var(--muted-text);
  line-height: 1;
  cursor: pointer;
}
.cd-chip-x:hover { color: var(--primary-dark); }
.cd-chip-add {
  border-style: dashed;
  cursor: pointer;
}
.cd-chip-add:hover { border-color: var(--teal-accent); color: var(--teal-accent); }
.cd-chip-clear {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal-accent);
  cursor: pointer;
}

/* Sent Recommendations */
.sent-recs { margin-bottom: 20px; }
.sent-recs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sent-recs-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
.sent-recs-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}
.sent-recs-viewall {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-accent);
  text-decoration: none;
}
.sent-recs-viewall:hover { text-decoration: underline; }
.sent-recs-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.sent-rec-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.sent-rec-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.sent-rec-img {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.sent-rec-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: var(--pill-radius);
  background: var(--teal-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.sent-rec-body { padding: 10px 12px; }
.sent-rec-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}
.sent-rec-status {
  font-size: 11px;
  font-weight: 500;
}
.sent-rec-status.viewed { color: var(--teal-accent); }
.sent-rec-status.not-viewed { color: var(--muted-text); }
.sent-rec-specs {
  font-size: 12px;
  color: var(--secondary-text);
  margin-bottom: 2px;
}
.sent-rec-address {
  font-size: 12px;
  color: var(--muted-text);
}

/* Recommendation Cards */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px;
}
.rec-card {
  display: flex;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.15s;
}
.rec-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.rec-img {
  width: 180px;
  min-height: 130px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.rec-body {
  flex: 1;
  padding: 14px 0;
  min-width: 0;
}
.rec-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}
.rec-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 2px;
  cursor: pointer;
}
.rec-name:hover {
  color: var(--teal-accent);
  text-decoration: underline;
}
.rec-specs {
  font-size: 13px;
  color: var(--secondary-text);
  margin-bottom: 2px;
}
.rec-address {
  font-size: 12px;
  color: var(--muted-text);
  margin-bottom: 8px;
}
.rec-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.rec-tags span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--pill-radius);
  background: var(--teal-light-bg);
  color: var(--teal-accent);
  font-weight: 500;
}
.rec-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px 14px 0;
  flex-shrink: 0;
}
.rec-btn {
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.rec-btn-send {
  background: var(--teal-accent);
  color: #fff;
  border: none;
}
.rec-btn-send:hover { opacity: 0.85; }
.rec-btn-dismiss {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted-text);
}
.rec-btn-dismiss:hover { border-color: #D45B5B; color: #D45B5B; }

/* ═══ Login Modal ═══ */
.login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9000;
  animation: loginFadeIn 0.2s ease;
}
.login-overlay.open { display: flex; align-items: center; justify-content: center; }
@keyframes loginFadeIn { from { opacity: 0; } to { opacity: 1; } }
.login-modal {
  position: relative;
  width: 480px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 36px 40px 32px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: loginSlideUp 0.25s ease;
}
@keyframes loginSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.login-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: #6A7175;
  transition: background 0.15s;
}
.login-close:hover { background: #f0f0f0; }
.login-heading {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary-dark);
  text-align: center;
  padding-bottom: 28px;
}
.login-input {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--primary-dark);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.login-input::placeholder { color: #A0AEC0; }
.login-input:focus { border-color: var(--primary-dark); }
.login-btn {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border-radius: 999px;
  border: none;
  background: var(--primary-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.login-btn:hover { opacity: 0.9; }
.login-btn-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-signup-link {
  text-align: center;
  padding: 16px 0 20px;
  font-size: 13px;
  color: #6A7175;
}
.login-signup-link a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.login-signup-link a:hover { text-decoration: underline; }
.login-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}
.login-benefits {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  gap: 10px;
}
.login-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4A5568;
}
.login-benefit svg { flex-shrink: 0; }

@media (max-width: 640px) {
  .login-modal { padding: 28px 24px 24px; }
}

/* ═══ Recs Panel v2 ═══ */
.recs-panel-bg { background: #F7F8FA; }
.recs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 24px;
}
.recs-header-left { display: flex; flex-direction: column; gap: 6px; }
.recs-header-title-row { display: flex; align-items: center; gap: 10px; }
.recs-header-title-row h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}
.recs-new-badge {
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F4FDF7;
  border: 1px solid var(--teal-accent);
  color: var(--primary-dark);
}
.recs-header-agent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6A7175;
}
.recs-agent-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #D4A574;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.recs-sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #4A5568;
  cursor: pointer;
}
.recs-sort-btn:hover { border-color: #ccc; }
.recs-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Rec Card v2 */
.rec-card-v2 {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s;
}
.rec-card-v2:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.rec-card-v2-info {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rec-card-v2-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  min-height: 36px;
}
.rec-tag-sent {
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #F4FDF7;
  color: #1A7A3A;
}
.rec-tag-viewed {
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #EDF2F7;
  color: #4A5568;
}
.rec-card-v2-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.rec-card-v2-address {
  font-size: 14px;
  color: #6A7175;
  line-height: 20px;
  padding-bottom: 14px;
}
.rec-card-v2-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 20px;
}
.rec-card-v2-price {
  font-size: 22px;
  font-weight: 700;
  color: #1A7A3A;
  line-height: 28px;
}
.rec-card-v2-specs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4A5568;
}
.rec-card-v2-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #eee;
}
.rec-card-v2-note-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #D4A574;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.rec-card-v2-note-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rec-card-v2-note-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}
.rec-card-v2-note-quote {
  font-size: 13px;
  font-style: italic;
  color: #4A5568;
  line-height: 19px;
}
.rec-card-v2-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
}
.rec-card-v2-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  border: none;
}
.rec-card-v2-btn-tour {
  background: var(--primary-dark);
  color: #fff;
}
.rec-card-v2-btn-tour:hover { opacity: 0.85; }
.rec-card-v2-btn-apply {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
}
.rec-card-v2-btn-apply:hover { border-color: #ccc; }
.rec-card-v2-btn-dislike {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.rec-card-v2-btn-dislike:hover { border-color: #D45B5B; }
.rec-card-v2-btn-dislike:hover svg { stroke: #D45B5B; }
.rec-card-v2-btn-dislike .dislike-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.rec-card-v2-btn-dislike .dislike-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--primary-dark);
}
.rec-card-v2-btn-dislike:hover .dislike-tooltip { display: block; }

.rec-card-v2-slideshow {
  width: 460px;
  flex-shrink: 0;
  position: relative;
}
.rec-card-v2-slideshow .card-slideshow {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.rec-card-v2-slideshow .card-slides {
  height: 100%;
}
.rec-card-v2-slideshow .card-slide {
  height: 100%;
}

/* Inline Detail View (within Recommendations panel) */
.rec-detail-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.rec-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-text);
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.15s;
}
.rec-detail-back:hover { color: var(--primary-dark); }
.rec-detail-hero {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 20px;
}
.rec-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.rec-detail-address {
  font-size: 14px;
  color: var(--muted-text);
  margin-bottom: 16px;
}
.rec-detail-stats {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.rec-detail-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted-text);
  letter-spacing: 0.5px;
}
.rec-detail-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2px;
}
.rec-detail-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.rec-detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.rec-detail-tags span {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--pill-radius);
  background: var(--teal-light-bg);
  color: var(--teal-accent);
  font-weight: 500;
}
.rec-detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.rec-detail-actions .rec-btn {
  padding: 10px 32px;
  font-size: 14px;
  border-radius: 8px;
}

/* Google Map Price Pins */
.gmap-price-pin {
  position: absolute;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--teal-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s;
}
.gmap-price-pin:hover { transform: scale(1.1); }

/* List/Map Toggle */
.rec-view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.rec-toggle-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-text);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.rec-toggle-btn + .rec-toggle-btn { border-left: 1px solid var(--border); }
.rec-toggle-btn.active {
  background: var(--teal-accent);
  color: #fff;
}
.rec-toggle-btn.active svg { stroke: #fff; }

/* Map Area */
.cd-map-area {
  width: 100%;
  min-height: 500px;
  background: #E8ECF0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  margin: 0 -40px;
  width: calc(100% + 80px);
}

/* Split View */
.cd-tab-panel.split-view {
  flex-direction: row;
  flex-wrap: wrap;
}
.cd-tab-panel.split-view > .sent-recs,
.cd-tab-panel.split-view > .cd-search-bar,
.cd-tab-panel.split-view > .cd-filter-chips {
  width: 100%;
  flex-shrink: 0;
}
.cd-tab-panel.split-view > .cd-map-area.split-map {
  width: 50%;
  min-width: 50%;
  max-width: 50%;
  margin: 0;
  min-height: 600px;
  border-radius: 10px 0 0 10px;
  flex-shrink: 0;
}
.cd-tab-panel.split-view > .rec-list.split-list {
  width: 50%;
  max-height: 600px;
  overflow-y: auto;
  padding: 0 0 0 12px;
  box-sizing: border-box;
}
.cd-map-marker {
  position: absolute;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(54,103,113,0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cd-map-marker::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: rgba(54,103,113,0.85);
  border-radius: 50%;
}
.cd-map-zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cd-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cd-zoom-btn:hover { background: rgba(255,255,255,0.2); }

/* ═══ Tab Panels ═══ */
.cd-tab-panel { flex: 1; display: flex; flex-direction: column; }
.cd-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted-text);
  font-size: 14px;
}

/* ═══ Communication Panel ═══ */
.comm-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}
.comm-email, .comm-text {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.comm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.comm-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comm-panel-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
.comm-send-email-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.comm-send-email-btn:hover { opacity: 0.85; }
.comm-msg-count {
  font-size: 13px;
  color: #007AFF;
  font-weight: 500;
}
.comm-email-table {
  width: 100%;
  border-collapse: collapse;
}
.comm-email-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--border);
}
.comm-email-table td {
  font-size: 13px;
  color: var(--body-text);
  padding: 8px 12px;
  border-bottom: 1px solid var(--light-gray);
}
.comm-email-table tbody tr:hover { background: #F7F8FA; }
.comm-view-link {
  font-size: 12px;
  font-weight: 500;
  color: #007AFF;
  text-decoration: none;
}
.comm-view-link:hover { text-decoration: underline; }

/* Text Thread */
.comm-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  max-height: 400px;
  overflow-y: auto;
}
.comm-bubble { max-width: 85%; }
.comm-bubble.outbound { align-self: flex-end; }
.comm-bubble.inbound { align-self: flex-start; }
.comm-bubble-text {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.comm-bubble.outbound .comm-bubble-text {
  background: #007AFF;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.comm-bubble.inbound .comm-bubble-text {
  background: #E9E9EB;
  color: #000;
  border-bottom-left-radius: 4px;
}
.comm-bubble-time {
  font-size: 11px;
  color: var(--muted-text);
  margin-top: 4px;
}
.comm-bubble.outbound .comm-bubble-time { text-align: right; }
.comm-delivered {
  font-size: 11px;
  color: var(--muted-text);
  text-align: right;
  font-style: italic;
}
.comm-text-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.comm-text-input input {
  flex: 1;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 14px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--body-text);
}
.comm-text-input input::placeholder { color: var(--muted-text); }
.comm-text-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #007AFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.comm-text-send-btn:hover { opacity: 0.85; }

/* ═══ User Activity Panel ═══ */
.ua-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.ua-stat-card {
  background: #F7F8FA;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ua-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
}
.ua-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}
.ua-stat-sub {
  font-size: 12px;
  color: var(--muted-text);
}
.ua-stat-positive { color: var(--teal-accent); }

/* Two-column layout */
.ua-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}
.ua-search-patterns, .ua-timeline {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  overflow-y: auto;
}
.ua-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ua-panel-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}
.ua-panel-sub {
  font-size: 12px;
  color: var(--muted-text);
}
.ua-sub-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  margin-bottom: 10px;
  margin-top: 20px;
}
.ua-sub-header:first-of-type { margin-top: 0; }

/* Zip code bars */
.ua-zip-list { display: flex; flex-direction: column; gap: 8px; }
.ua-zip-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ua-zip-bar {
  height: 10px;
  background: var(--teal-accent);
  border-radius: 4px;
  opacity: 0.7;
}
.ua-zip-code { font-size: 13px; font-weight: 600; color: var(--primary-dark); min-width: 48px; }
.ua-zip-count { font-size: 12px; color: var(--muted-text); }

/* Filter chips */
.ua-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ua-chip {
  padding: 4px 12px;
  border: 1px solid var(--teal-accent);
  border-radius: var(--pill-radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--teal-accent);
}

/* Smart Search stats */
.ua-smart-list { display: flex; flex-direction: column; gap: 8px; }
.ua-smart-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--secondary-text);
}
.ua-smart-row strong { color: var(--primary-dark); }

/* Activity Timeline */
.ua-timeline-filters { display: flex; gap: 6px; }
.ua-tl-pill {
  padding: 4px 12px;
  border-radius: var(--pill-radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-text);
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  transition: all 0.15s;
}
.ua-tl-pill:hover { border-color: var(--teal-accent); color: var(--teal-accent); }
.ua-tl-pill.active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.ua-tl-group {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 4px;
}
.ua-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}
.ua-tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.ua-tl-dot.blue { background: var(--teal-accent); }
.ua-tl-dot.red { background: #D45B5B; }
.ua-tl-content { flex: 1; min-width: 0; }
.ua-tl-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1.4;
}
.ua-tl-meta {
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 1px;
}
.ua-tl-time {
  font-size: 12px;
  color: var(--muted-text);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Toast */
.admin-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
}
.admin-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
