:root {
  --ink: #143941;
  --muted: #65787b;
  --soft: #f7f4ec;
  --surface: #ffffff;
  --line: #e6decf;
  --primary: #143941;
  --primary-strong: #0f2d34;
  --primary-soft: #e8efe9;
  --accent: #d8be7a;
  --accent-strong: #b89446;
  --champagne: #f3e3b8;
  --danger: #c2413a;
  --success: #16835d;
  --shadow: 0 18px 48px rgba(20, 57, 65, .16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.topline {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}
.topline strong { color: var(--champagne); }
.topline a { color: #fff; font-weight: 800; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230,222,207,.9);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 190, 122, .72);
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(20, 57, 65, .26);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.links a {
  padding: 9px 11px;
  border-radius: var(--radius);
}
.links a:hover { background: var(--soft); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.phone-link {
  display: inline-flex;
  color: var(--primary);
  font-weight: 900;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: #f4ead0;
  white-space: nowrap;
}
.phone-link:hover { background: var(--champagne); }
.menu-button { display: none; }
.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 20px;
  width: min(320px, calc(100vw - 28px));
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 80;
}
.mobile-menu.open { display: grid; gap: 4px; }
.mobile-menu a,
.mobile-menu button {
  width: 100%;
  justify-content: flex-start;
}
.mobile-menu a {
  padding: 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 900;
}
.mobile-menu a:hover {
  background: var(--soft);
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 15px;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 57, 65, .26);
}
.btn.primary:hover { background: var(--primary-strong); }
.btn.light {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn.gold {
  background: var(--accent);
  color: #1f1a0f;
}
.btn.ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

.hero {
  min-height: 690px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20,57,65,.9), rgba(20,57,65,.66) 48%, rgba(20,57,65,.34)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=86") center/cover;
  display: grid;
  align-items: end;
}
.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 34px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #f7fdfb;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}
.hero h1 {
  max-width: 780px;
  margin: 22px 0 14px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.018em;
}
.hero-copy {
  max-width: 670px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.86);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin-bottom: 24px;
}
.metric {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}
.metric span {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
}

.quick-search {
  max-width: 1040px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.quick-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(130px, .55fr)) auto;
  gap: 10px;
}
.control {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: #fff;
}
.control label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.control input,
.control select {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.suggestions button,
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}
.suggestions button:hover,
.chip:hover,
.chip.active {
  color: var(--primary);
  border-color: rgba(216,190,122,.58);
  background: var(--primary-soft);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #f8f5ec;
  padding: 7px 10px;
}
.hero-proof span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}
.section.full {
  width: 100%;
  padding: 70px 0;
  background: #fff;
  border-block: 1px solid var(--line);
}
.section.full > .inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.sub {
  max-width: 680px;
  margin: 9px 0 0;
  color: var(--muted);
}

.finder {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 18px;
  align-items: start;
}
.filters {
  position: sticky;
  top: clamp(76px, calc((100dvh - 577px) / 2), 162px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(20,57,65,.06);
}
.filters-head {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.filters-head strong { font-size: 15px; }
.filters-head .btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.filter-body { padding: 9px 10px 10px; display: grid; gap: 6px; }
.field { display: grid; gap: 4px; }
.field label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.14;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 32px;
  padding: 7px 9px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(216,190,122,.24);
}
.facility-dropdown {
  position: relative;
}
.facility-toggle {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
}
.facility-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.facility-toggle i {
  font-style: normal;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.facility-toggle:hover,
.facility-toggle[aria-expanded="true"] {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(216,190,122,.18);
}
.facility-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 210px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 38px rgba(20,57,65,.18);
  padding: 4px;
}
.field .facility-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  text-transform: none;
  letter-spacing: 0;
}
.field .facility-option:hover {
  background: var(--soft);
}
.field .facility-option input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.price-filter { gap: 6px; }
.price-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.price-presets button {
  min-height: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 5px;
}
.price-presets button:hover,
.price-presets button.active {
  border-color: var(--accent-strong);
  background: var(--champagne);
}
.price-range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
}
.price-range-head strong {
  color: var(--accent-strong);
  white-space: nowrap;
}
.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.price-input {
  display: grid;
  gap: 2px;
}
.price-input label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: none;
}
.price-input div {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 4px 6px;
}
.price-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  font-weight: 900;
  color: var(--ink);
}
.price-input span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.results-toolbar .btn.active,
.mobilebar button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.mobile-filter-toggle { display: none; }
.result-title strong { display: block; font-size: 20px; }
.result-title span { color: var(--muted); font-size: 14px; }
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}
.status-legend strong {
  color: var(--ink);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--primary-soft);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}
.dot.available { background: var(--success); }
.dot.hot { background: var(--danger); }
.dot.soon { background: var(--accent-strong); }
.dot.unavailable { background: #7f8c8d; }
.view-toggle {
  display: inline-flex;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.view-toggle button {
  min-height: 36px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 7px 11px;
  color: var(--muted);
  font-weight: 850;
}
.view-toggle button.active { color: #fff; background: var(--primary); }
.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid.map-mode { grid-template-columns: 1fr 1fr; }
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(20,57,65,.05);
}
.pagination-info {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.pagination-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.pagination button,
.page-ellipsis {
  min-width: 38px;
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  padding: 7px 10px;
}
.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.map-panel {
  display: none;
  min-height: 660px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    url("https://images.unsplash.com/photo-1583417319070-4a69db38a482?auto=format&fit=crop&w=1100&q=80") center/cover;
  position: sticky;
  top: 88px;
}
.map-panel.active { display: block; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 7px 10px;
  box-shadow: 0 8px 18px rgba(20,57,65,.18);
  font-size: 12px;
  font-weight: 900;
}

.property {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(20,57,65,.07);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.property-image {
  aspect-ratio: 16 / 10;
  min-height: 205px;
  position: relative;
  overflow: hidden;
  background: var(--primary-soft);
  cursor: pointer;
}
.property-image:focus-visible {
  outline: 3px solid rgba(228, 202, 137, .6);
  outline-offset: -3px;
}
.property-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .22s ease;
}
.property:hover .property-photo {
  transform: scale(1.025);
}
.property.unavailable {
  opacity: .78;
}
.property.unavailable .property-image::after {
  content: "Hết phòng - có thể hỏi căn tương tự";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(20,57,65,.88);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}
.property.skeleton {
  min-height: 430px;
  border-color: rgba(20,57,65,.08);
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0)) 0 0 / 220px 100% no-repeat,
    linear-gradient(var(--primary-soft), var(--primary-soft)) 0 0 / 100% 45% no-repeat,
    linear-gradient(#eef3f0, #eef3f0) 16px 52% / 55% 20px no-repeat,
    linear-gradient(#eef3f0, #eef3f0) 16px 60% / 72% 18px no-repeat,
    linear-gradient(#eef3f0, #eef3f0) 16px 70% / 34% 24px no-repeat,
    #fff;
  animation: skeleton-shimmer 1.15s linear infinite;
}
@keyframes skeleton-shimmer {
  to { background-position: 120% 0, 0 0, 16px 52%, 16px 60%, 16px 70%, 0 0; }
}
.image-count {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  background: rgba(20,57,65,.86);
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 950;
}
.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: space-between;
  align-items: flex-start;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(20,57,65,.12);
}
.badge.status-available { color: #fff; background: var(--success); }
.badge.status-unavailable { color: #fff; background: #7f8c8d; }
.badge.status-soon { color: #1f1a0f; background: var(--champagne); }
.badge.status-hot { color: #fff; background: var(--danger); }
.fav {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(20,57,65,.16);
}
.fav.saved { color: #fff; background: var(--danger); }
.property-body { padding: 15px; display: grid; gap: 12px; }
.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.property-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -.012em;
  font-weight: 950;
  font-family: inherit;
}
.property-title:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.property-title:focus-visible {
  outline: 3px solid rgba(228, 202, 137, .55);
  outline-offset: 3px;
  border-radius: 4px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}
.price { color: var(--accent-strong); font-size: 21px; font-weight: 950; }
.usd { color: var(--muted); font-size: 13px; font-weight: 800; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.fact {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  background: #fbfdfc;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 850;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.district-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.district,
.trust {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20,57,65,.06);
}
button.district {
  padding: 0;
  text-align: left;
}
.district-image {
  min-height: 150px;
  background-size: cover;
  background-position: center;
}
.district-body,
.trust { padding: 16px; }
.district strong,
.trust strong {
  display: block;
  font-size: 17px;
  margin-bottom: 5px;
}
.district span,
.trust span { color: var(--muted); font-size: 14px; }

.assistant-block {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 20px;
  align-items: stretch;
}
.assistant-copy {
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(20,57,65,.96), rgba(20,57,65,.78)),
    url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1200&q=80") center/cover;
}
.assistant-copy .sub { color: rgba(255,255,255,.8); }
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.chat-log {
  min-height: 160px;
  max-height: 280px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 9px;
}
.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
}
.bubble.user {
  justify-self: end;
  background: var(--primary);
  color: #fff;
}
.chat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.chat-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  outline: 0;
}
.ai-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ai-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: grid;
  gap: 4px;
  background: #fbfdfc;
  font-size: 13px;
  text-align: left;
}

.journey {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.process {
  display: grid;
  gap: 10px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 950;
}
.lead-form {
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.lead-form h2 { margin: 0; }
.lead-form.plain {
  box-shadow: none;
  padding: 0;
  border: 0;
}
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer {
  background: var(--ink);
  color: #fff;
  padding: 42px 0 90px;
}
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 22px;
}
.footer p,
.footer a { color: rgba(255,255,255,.72); }
.footer .phone-link {
  margin: 4px 0 14px;
  color: var(--primary);
  background: var(--champagne);
}
.footer h3,
.footer h4 { margin-top: 0; }

.mobilebar {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 70;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  backdrop-filter: blur(16px);
}
.mobilebar button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  font-size: 12px;
  font-weight: 900;
}
.mobilebar button.primary {
  background: var(--primary);
  color: #fff;
}

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9, 18, 16, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-wrap.open { display: flex; }
.modal {
  width: min(1180px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
.modal.narrow { width: min(620px, 100%); }
.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  height: min(760px, calc(100dvh - 36px));
}
.modal-media {
  display: grid;
  grid-template-rows: 1fr auto;
  background: #071719;
  min-width: 0;
  min-height: 0;
}
.modal-viewer {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(228, 202, 137, .08), transparent 34%),
    #071719;
  overflow: hidden;
}
.modal-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #071719;
}
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(7,23,25,.62);
  color: #fff;
  font-size: 40px;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.modal-nav.prev { left: 14px; }
.modal-nav.next { right: 14px; }
.modal-nav:hover,
.modal-fullscreen:hover,
.modal-viewer-close:hover {
  background: rgba(228, 202, 137, .22);
  border-color: rgba(228, 202, 137, .72);
}
.modal-counter,
.modal-fullscreen,
.modal-viewer-close {
  position: absolute;
  z-index: 2;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(7,23,25,.66);
  backdrop-filter: blur(8px);
}
.modal-counter {
  left: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 13px;
}
.modal-fullscreen {
  right: 14px;
  top: 14px;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 900;
  font-size: 13px;
}
.modal-viewer-close {
  display: none;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  place-items: center;
}
.modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  background: rgba(15,45,52,.96);
}
.modal-thumb {
  width: 88px;
  height: 66px;
  border: 2px solid transparent;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
  opacity: .74;
}
.modal-thumb.active {
  border-color: var(--champagne);
  opacity: 1;
}
.modal-content {
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: auto;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.modal-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}
.close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.detail-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fbfdfc;
}
.detail-item strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.detail-item span { font-weight: 850; }
.cost-box {
  border-radius: var(--radius);
  padding: 13px;
  background: #fff7e7;
  border: 1px solid #f0d9a6;
}
.advisor-box {
  display: grid;
  gap: 4px;
  border-radius: var(--radius);
  padding: 13px;
  background: var(--primary-soft);
  border: 1px solid #d2dfd6;
}
.advisor-box span {
  color: var(--muted);
  font-size: 14px;
}
.empty {
  display: none;
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 750;
}
.empty-actions { margin-top: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 120;
  max-width: min(520px, calc(100vw - 28px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 850;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1020px) {
  .links { display: none; }
  .menu-button { display: inline-flex; }
  .quick-row { grid-template-columns: 1fr 1fr; }
  .quick-row .btn { grid-column: 1 / -1; }
  .finder { grid-template-columns: 1fr; }
  .filters { position: static; }
  .district-grid,
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assistant-block,
  .journey { grid-template-columns: 1fr; }
}

@media (max-width: 740px) {
  .topline { display: none; }
  .nav { min-height: 62px; padding: 0 14px; }
  .brand small { display: none; }
  .nav-actions .btn.light,
  .phone-link { display: none; }
  .hero { min-height: 760px; }
  .hero-inner { width: calc(100% - 28px); padding-top: 52px; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .quick-row,
  .grid,
  .grid.map-mode,
  .ai-results,
  .footer-inner,
  .lead-grid,
  .modal-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .modal {
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }
  .modal-grid {
    height: auto;
  }
  .modal-viewer {
    height: 56dvh;
    min-height: 340px;
  }
  .modal-image {
    height: 100%;
  }
  .modal-nav {
    width: 40px;
    height: 52px;
    font-size: 34px;
  }
  .modal-fullscreen {
    display: none;
  }
  .modal-viewer-close {
    display: grid;
  }
  .modal-content .close {
    display: none;
  }
  .section,
  .section.full > .inner,
  .footer-inner { width: calc(100% - 28px); }
  .section { padding: 48px 0; }
  .section.full { padding: 48px 0; }
  .section-head { align-items: start; flex-direction: column; }
  #rentals .section-head {
    margin-bottom: 14px;
  }
  .filters {
    display: none;
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: 0 12px 24px rgba(20,57,65,.08);
  }
  .filters.open {
    display: block;
    margin-bottom: 14px;
  }
  .filter-body {
    gap: 9px;
    padding: 12px;
  }
  .field {
    gap: 5px;
  }
  .field label {
    font-size: 12px;
    line-height: 1.2;
  }
  .field input,
  .field select,
  .field textarea,
  .facility-toggle {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 14px;
  }
  .price-presets {
    gap: 6px;
  }
  .price-presets button {
    min-height: 36px;
    font-size: 12px;
    padding: 7px 6px;
  }
  .price-range-head {
    font-size: 13px;
  }
  .price-input label {
    font-size: 11.5px;
  }
  .price-input div {
    padding: 7px 8px;
  }
  .price-input span {
    font-size: 12px;
  }
  .field .facility-option {
    padding: 10px 8px;
    font-size: 14px;
  }
  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }
  .results-toolbar .result-title {
    display: grid;
    gap: 3px;
  }
  .mobile-filter-toggle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 46px;
  }
  .toolbar-lead {
    display: none;
  }
  .map-panel.active { display: none; }
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .pagination-buttons { justify-content: center; }
  .district-grid,
  .trust-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobilebar { display: grid; }
  .footer { padding-bottom: 104px; }
}
