:root {
  --brand: #d81e06;
  --brand-strong: #b3170a;
  --brand-soft: #fdecea;
  --ink: #17201d;
  --ink-soft: #3f4c47;
  --muted: #6d7974;
  --line: #dce2df;
  --line-strong: #c9d1cd;
  --paper: #f3f5f4;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --green: #2d6b52;
  --green-soft: #eaf4ef;
  --blue: #376d7a;
  --amber: #94631e;
  --shadow: 0 14px 32px rgba(24, 35, 31, 0.08);
  --header-height: 68px;
  --content-width: 1240px;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(55, 109, 122, 0.28);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(220, 226, 223, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  width: min(var(--content-width), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.desktop-nav {
  display: flex;
  align-self: stretch;
  justify-self: center;
  align-items: stretch;
  gap: 28px;
}

.nav-link {
  position: relative;
  padding: 0 2px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-strong);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.saved-button {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 650;
}

.saved-button:hover,
.saved-button[aria-pressed="true"] {
  border-color: #e0aaa3;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.saved-button svg {
  width: 17px;
  height: 17px;
}

.saved-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.saved-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  line-height: 1;
}

.search-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.search-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 34px;
}

.search-heading {
  max-width: 640px;
}

.search-kicker,
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 750;
}

.search-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
}

.search-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.search-heading h1 {
  margin: 0;
  color: #111916;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  text-shadow: none;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.search-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-form {
  display: flex;
  width: min(760px, 100%);
  gap: 10px;
  margin-top: 24px;
}

.search-input-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(28, 41, 36, 0.05);
}

.search-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(55, 109, 122, 0.12);
}

.search-input-wrap svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--muted);
}

.search-input-wrap input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 0 0 11px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.search-input-wrap input::placeholder {
  color: #8a9691;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 7px;
  font-weight: 700;
}

.primary-button {
  padding: 0 21px;
  border: 1px solid var(--brand);
  color: #fff;
  background: var(--brand);
}

.primary-button:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
}

.search-submit {
  min-width: 130px;
  height: 52px;
}

.quick-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}

.quick-search > span {
  color: var(--ink-soft);
  font-weight: 650;
}

.quick-search button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.quick-search button:hover {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-shell {
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 660px;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.mobile-category-scroller {
  display: none;
}

.filter-toolbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.filter-panel {
  display: flex;
  align-items: end;
  gap: 12px;
}

.select-field {
  display: grid;
  min-width: 148px;
  gap: 6px;
}

.select-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.select-field select,
.sort-field select {
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background-color: var(--surface);
  font-size: 13px;
}

.select-field select:hover,
.sort-field select:hover {
  border-color: var(--line-strong);
}

.select-field select:disabled,
.sort-field option:disabled {
  color: #9aa39f;
}

.reset-button,
.mobile-filter-toggle,
.banner-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.reset-button {
  margin-left: auto;
  padding: 0 4px;
}

.reset-button:hover,
.banner-retry:hover {
  color: var(--brand-strong);
}

.reset-button svg,
.mobile-filter-toggle svg,
.banner-retry svg {
  width: 16px;
  height: 16px;
}

.mobile-filter-toggle {
  display: none;
}

.source-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-top: 18px;
  padding: 10px 13px;
  border: 1px solid #e9cfaa;
  border-radius: 7px;
  color: #6e501f;
  background: #fff8eb;
  font-size: 12px;
}

.source-banner.is-partial {
  border-color: #c8dcdf;
  color: #315c66;
  background: #eff7f8;
}

.source-banner-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.source-banner-copy svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.banner-retry {
  height: 30px;
  flex: 0 0 auto;
  color: inherit;
}

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 18px;
}

.catalog-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.catalog-heading .eyebrow {
  margin-bottom: 5px;
}

.result-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-field select {
  min-width: 138px;
}

.view-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, 38px);
  height: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface);
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--brand-strong);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.view-switch .icon-button {
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 0;
}

.view-switch .icon-button + .icon-button {
  border-left: 1px solid var(--line);
}

.view-switch .icon-button.is-active {
  color: #fff;
  background: var(--ink);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.property-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.property-card:hover {
  border-color: #c8d0cc;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.property-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e6ebe8;
}

.property-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  background: linear-gradient(to top, rgba(17, 24, 21, 0.34), transparent);
  pointer-events: none;
  content: "";
}

.property-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.property-image-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.property-card:hover .property-media img {
  transform: scale(1.025);
}

.property-type,
.demo-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
}

.property-type {
  left: 12px;
  color: #fff;
  background: rgba(23, 32, 29, 0.82);
  backdrop-filter: blur(6px);
}

.demo-label {
  left: 64px;
  color: #6e501f;
  background: #fff3d8;
}

.card-favorite {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  color: #fff;
  background: rgba(23, 32, 29, 0.58);
  backdrop-filter: blur(6px);
}

.card-favorite:hover,
.card-favorite.is-saved {
  color: #fff;
  background: var(--brand);
}

.card-favorite.is-saved svg {
  fill: currentColor;
}

.property-body {
  padding: 16px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.property-location svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.property-title {
  min-height: 48px;
  margin: 8px 0 5px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0;
}

.property-title button {
  display: -webkit-box;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.property-title button:hover {
  color: var(--brand-strong);
}

.property-address {
  min-height: 20px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-community {
  display: flex;
  min-width: 0;
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.property-community span {
  flex: 0 0 auto;
}

.property-community strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-number {
  min-height: 17px;
  margin: 4px 0 0;
  overflow: hidden;
  color: #75807c;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-facts {
  display: flex;
  min-height: 23px;
  align-items: center;
  gap: 0;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.property-facts span {
  position: relative;
  padding-right: 10px;
}

.property-facts span + span {
  padding-left: 10px;
}

.property-facts span + span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--line);
  content: "";
  transform: translateY(-50%);
}

.property-tags {
  display: flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  overflow: hidden;
}

.property-tag {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #d5e5dd;
  border-radius: 4px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
}

.property-footer {
  display: flex;
  min-height: 47px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #edf0ee;
}

.property-price {
  min-width: 0;
  color: var(--brand-strong);
}

.property-price strong {
  font-size: 21px;
  line-height: 1.1;
}

.property-price small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.detail-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.detail-link:hover {
  color: var(--brand-strong);
}

.detail-link svg {
  width: 14px;
  height: 14px;
}

.listing-grid.is-list {
  grid-template-columns: 1fr;
}

.listing-grid.is-list .property-card {
  display: grid;
  grid-template-columns: minmax(260px, 34%) 1fr;
  min-height: 250px;
}

.listing-grid.is-list .property-media {
  height: 100%;
  min-height: 250px;
  aspect-ratio: auto;
}

.listing-grid.is-list .property-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto auto auto 1fr;
  column-gap: 24px;
  padding: 22px;
}

.listing-grid.is-list .property-location,
.listing-grid.is-list .property-title,
.listing-grid.is-list .property-community,
.listing-grid.is-list .property-address,
.listing-grid.is-list .property-number,
.listing-grid.is-list .property-listed,
.listing-grid.is-list .property-facts,
.listing-grid.is-list .property-tags,
.listing-grid.is-list .property-agent {
  grid-column: 1;
}

.listing-grid.is-list .property-title {
  min-height: 0;
  margin-top: 10px;
  font-size: 20px;
}

.listing-grid.is-list .property-footer {
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 180px;
  align-self: stretch;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
  padding: 0 0 2px 22px;
  border-top: 0;
  border-left: 1px solid #edf0ee;
}

.listing-grid.is-list .property-price strong {
  font-size: 25px;
}

.map-view {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e7ece9;
}

.property-map {
  width: 100%;
  height: 660px;
  min-height: 560px;
  background: #e7ece9;
}

.property-map.leaflet-container {
  color: var(--ink);
  font-family: inherit;
}

.property-map .leaflet-control-zoom,
.property-map .leaflet-control-attribution {
  border: 1px solid rgba(23, 32, 29, 0.18);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(23, 32, 29, 0.12);
}

.property-map .leaflet-control-zoom a {
  color: var(--ink-soft);
}

.property-map-marker {
  border: 0;
  background: transparent;
}

.property-map-marker span {
  position: relative;
  display: grid;
  width: 92px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 5px 14px rgba(23, 32, 29, 0.24);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-map-marker::after {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: var(--brand);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.property-map .leaflet-popup-content-wrapper {
  border-radius: 7px;
}

.property-map .leaflet-popup-content {
  margin: 12px 14px;
}

.map-popup {
  display: grid;
  width: 100%;
  min-width: 190px;
  gap: 5px;
  padding: 0 22px 0 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.map-popup strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-popup span {
  color: var(--muted);
  font-size: 11px;
}

.map-popup b {
  color: var(--brand-strong);
  font-size: 13px;
}

.map-status {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(23, 32, 29, 0.16);
  border-radius: 6px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(23, 32, 29, 0.1);
  font-size: 11px;
}

.skeleton-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.skeleton-media,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: #e7ebe9;
}

.skeleton-media::after,
.skeleton-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.25s infinite;
}

.skeleton-media {
  aspect-ratio: 4 / 3;
}

.skeleton-body {
  display: grid;
  gap: 12px;
  padding: 17px;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
}

.skeleton-line.medium {
  width: 64%;
}

.skeleton-line.short {
  width: 38%;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 48px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.empty-state-inner {
  max-width: 360px;
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #e8f1f3;
}

.empty-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  margin: 0;
  font-size: 18px;
}

.empty-state p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.pagination-wrap {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.page-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.page-button:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.page-button.is-active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.page-button svg {
  width: 17px;
  height: 17px;
}

.page-ellipsis {
  display: inline-grid;
  width: 28px;
  height: 40px;
  place-items: center;
  color: var(--muted);
}

.secondary-button {
  min-width: 160px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 112px;
  margin: 0 auto;
  padding: 22px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark-small {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.footer-brand > div {
  display: grid;
  gap: 2px;
}

.footer-brand strong {
  font-size: 14px;
}

.footer-brand span:last-child {
  color: var(--muted);
  font-size: 11px;
}

.footer-meta {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 6px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.detail-dialog {
  width: min(980px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(12, 20, 17, 0.28);
}

.detail-dialog::backdrop {
  background: rgba(18, 27, 23, 0.62);
  backdrop-filter: blur(3px);
}

.detail-shell {
  display: flex;
  max-height: calc(100dvh - 48px);
  flex-direction: column;
}

.detail-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.detail-toolbar-actions {
  display: flex;
  gap: 6px;
}

.detail-toolbar .icon-button {
  width: 38px;
  height: 38px;
  border: 0;
}

.detail-toolbar .icon-button.is-saved {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.detail-toolbar .icon-button.is-saved svg {
  fill: currentColor;
}

.detail-content {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-loading {
  display: grid;
  min-height: 480px;
  place-items: center;
  color: var(--muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.detail-gallery {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.detail-media-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.detail-media-tab {
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.detail-media-tab svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.detail-media-tab.is-active {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.detail-media-panel[hidden] {
  display: none;
}

.detail-main-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: #e5eae7;
}

.detail-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  max-height: 224px;
  overflow-y: auto;
  padding-right: 2px;
}

.detail-thumbnail {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 5px;
  background: #e5eae7;
}

.detail-thumbnail.is-active {
  border-color: var(--brand);
}

.detail-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-video-list,
.detail-layout-list {
  display: grid;
  gap: 10px;
}

.detail-video-item,
.detail-layout-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.detail-video-item video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.detail-video-item figcaption,
.detail-layout-item figcaption {
  padding: 9px 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.detail-layout-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-layout-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.detail-layout-item figcaption strong,
.detail-layout-item figcaption span {
  display: block;
}

.detail-layout-item figcaption span {
  margin-top: 3px;
  color: var(--muted);
}

.detail-info {
  padding: 26px 24px 30px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.detail-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 750;
}

.detail-badge.demo {
  color: #6e501f;
  background: #fff3d8;
}

.detail-badge.number {
  color: #56615d;
  background: #edf1ef;
  font-variant-numeric: tabular-nums;
}

.detail-info h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: 0;
}

.detail-address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.detail-address svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.detail-price {
  margin-top: 22px;
  color: var(--brand-strong);
}

.detail-price strong {
  font-size: 31px;
  line-height: 1;
}

.detail-price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-fact {
  min-width: 0;
  padding: 15px 10px 15px 0;
}

.detail-fact + .detail-fact {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.detail-fact span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-fact strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-section {
  margin-top: 22px;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.detail-ai-copy {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ai-copy-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.ai-copy-heading h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.ai-copy-heading h3 svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.ai-copy-status {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  line-height: 1.5;
}

.ai-copy-status.is-ready {
  border-color: #bcd5c8;
  color: var(--green);
  background: var(--green-soft);
}

.ai-copy-status.is-generating {
  border-color: #ead5b5;
  color: var(--amber);
  background: #fff9ee;
}

.ai-copy-body {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.72;
}

.ai-copy-hook {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.ai-copy-summary,
.ai-copy-recommendation {
  margin: 0;
}

.ai-copy-recommendation {
  margin-top: 9px;
  color: var(--muted);
}

.ai-copy-bullets {
  display: grid;
  gap: 4px;
  margin: 9px 0 0;
  padding-left: 17px;
}

.ai-copy-bullets li::marker {
  color: var(--brand);
}

.ai-copy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ai-copy-tags span {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
}

.ai-copy-risk {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.ai-copy-risk svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.ai-copy-loading {
  display: grid;
  gap: 7px;
  min-height: 54px;
  align-content: center;
}

.ai-copy-loading span {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 3px;
  background: var(--line);
  animation: ai-copy-pulse 1.2s ease-in-out infinite alternate;
}

.ai-copy-loading span:nth-child(2) {
  width: 82%;
  animation-delay: 120ms;
}

.ai-copy-loading span:nth-child(3) {
  width: 64%;
  animation-delay: 240ms;
}

@keyframes ai-copy-pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.detail-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-tag-list .property-tag {
  font-size: 11px;
}

.detail-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  padding: 11px;
  border: 1px solid #ead5b5;
  border-radius: 6px;
  color: #73551f;
  background: #fff9ee;
  font-size: 11px;
}

.detail-notice svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.detail-cta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.detail-cta .primary-button,
.detail-cta .secondary-button {
  flex: 1 1 0;
  text-decoration: none;
}

.detail-cta .is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.toast {
  position: fixed;
  z-index: 120;
  bottom: 28px;
  left: 50%;
  max-width: min(420px, calc(100% - 32px));
  padding: 11px 15px;
  border-radius: 7px;
  color: #fff;
  background: rgba(23, 32, 29, 0.94);
  box-shadow: 0 10px 28px rgba(12, 20, 17, 0.2);
  font-size: 12px;
  text-align: center;
  transform: translateX(-50%);
}

.noscript-message {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  border: 1px solid #e0aaa3;
  border-radius: 7px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  text-align: center;
}

@media (max-width: 1040px) {
  .header-inner {
    grid-template-columns: 190px 1fr auto;
  }

  .desktop-nav {
    gap: 18px;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 62px;
  }

  .header-inner,
  .search-inner,
  .catalog-shell,
  .footer-inner {
    width: min(100% - 32px, var(--content-width));
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: inline-grid;
  }

  .desktop-nav {
    position: absolute;
    z-index: 60;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 30px rgba(24, 35, 31, 0.12);
  }

  .site-header.nav-open .desktop-nav {
    display: flex;
  }

  .desktop-nav .nav-link {
    height: 42px;
    padding: 0 10px;
    border-radius: 6px;
    text-align: left;
  }

  .desktop-nav .nav-link::after {
    display: none;
  }

  .desktop-nav .nav-link.is-active {
    color: var(--brand-strong);
    background: var(--brand-soft);
  }

  .search-inner {
    padding: 32px 0 28px;
  }

  .search-heading h1 {
    font-size: 30px;
  }

  .catalog-shell {
    padding-top: 0;
  }

  .mobile-category-scroller {
    display: flex;
    gap: 24px;
    margin: 0 -16px 18px;
    padding: 0 16px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    scrollbar-width: none;
  }

  .mobile-category-scroller::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    position: relative;
    height: 50px;
    flex: 0 0 auto;
    padding: 0 1px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 13px;
    font-weight: 650;
  }

  .category-tab::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--brand);
    content: "";
    opacity: 0;
  }

  .category-tab.is-active {
    color: var(--brand-strong);
  }

  .category-tab.is-active::after {
    opacity: 1;
  }

  .filter-toolbar {
    padding-bottom: 14px;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink-soft);
    background: var(--surface);
  }

  .filter-count {
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--brand);
    font-size: 10px;
  }

  .filter-panel {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    margin-top: 13px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
  }

  .filter-toolbar.is-open .filter-panel {
    display: grid;
  }

  .select-field {
    min-width: 0;
  }

  .select-field select {
    width: 100%;
  }

  .reset-button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
  }

  .listing-grid.is-list .property-card {
    grid-template-columns: minmax(220px, 38%) 1fr;
  }

  .listing-grid.is-list .property-body {
    display: block;
    padding: 18px;
  }

  .listing-grid.is-list .property-footer {
    min-width: 0;
    flex-direction: row;
    align-items: flex-end;
    margin-top: 14px;
    padding: 13px 0 0;
    border-top: 1px solid #edf0ee;
    border-left: 0;
  }

  .detail-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .detail-shell {
    max-height: calc(100dvh - 24px);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .header-inner,
  .search-inner,
  .catalog-shell,
  .footer-inner {
    width: min(100% - 24px, var(--content-width));
  }

  .brand-copy small,
  .saved-button > span:not(.saved-count) {
    display: none;
  }

  .pagination-wrap {
    flex-wrap: wrap;
    gap: 5px;
  }

  .page-button {
    width: 36px;
    height: 36px;
  }

  .saved-button {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .saved-count {
    position: absolute;
    top: 10px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 9px;
  }

  .search-inner {
    padding: 26px 0 24px;
  }

  .search-heading h1 {
    font-size: 27px;
  }

  .search-heading > p:last-child {
    max-width: 25em;
    font-size: 13px;
  }

  .search-form {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 8px;
    margin-top: 20px;
  }

  .search-input-wrap {
    height: 48px;
    padding: 0 13px;
  }

  .search-submit {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
  }

  .search-submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .quick-search {
    gap: 10px;
  }

  .quick-search > span,
  .quick-search button:nth-of-type(n + 4) {
    display: none;
  }

  .mobile-category-scroller {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .reset-button {
    grid-column: auto;
  }

  .source-banner {
    align-items: flex-start;
  }

  .catalog-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .catalog-heading h2 {
    font-size: 21px;
  }

  .catalog-actions {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .sort-field select {
    width: 120px;
    min-width: 0;
    padding-right: 28px;
  }

  .view-switch {
    display: inline-grid;
    flex: 0 0 auto;
  }

  .listing-grid,
  .listing-grid.is-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .map-view,
  .property-map {
    min-height: 460px;
  }

  .property-map {
    height: calc(100svh - 220px);
    max-height: 620px;
  }

  .listing-grid.is-list .property-card {
    display: block;
    min-height: 0;
  }

  .listing-grid.is-list .property-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .property-title {
    min-height: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 26px 0;
  }

  .footer-meta {
    width: 100%;
    text-align: left;
  }

  .footer-links {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .detail-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .detail-shell {
    height: 100dvh;
    max-height: 100dvh;
  }

  .detail-gallery {
    padding: 12px;
  }

  .detail-media-tab {
    min-height: 32px;
    padding: 0 5px;
    font-size: 10px;
  }

  .detail-layout-list {
    grid-template-columns: 1fr;
  }

  .detail-info {
    padding: 22px 18px 32px;
  }

  .detail-info h2 {
    font-size: 22px;
  }

  .detail-price strong {
    font-size: 27px;
  }

  .detail-cta {
    flex-direction: column;
  }

  .toast {
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-logo-small {
  height: 34px;
}

.mobile-menu-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface);
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 821px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.page-panel {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 60px;
}

.panel-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.panel-head h2 {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.3;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
}

.form-field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-submit {
  justify-self: start;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.contact-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.contact-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.contact-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.contact-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand);
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.contact-list strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.contact-cta {
  margin-top: 18px;
}

.contact-cta .secondary-button {
  width: 100%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.feature-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 7px;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.franchise-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.franchise-block h3 {
  margin: 0 0 13px;
  font-size: 16px;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
}

.check-list svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--green);
}

.step-list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-list > li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.step-list strong {
  display: block;
  font-size: 13px;
}

.step-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.franchise-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.franchise-form h3 {
  margin: 0 0 15px;
  font-size: 16px;
}

.franchise-form .form-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-nav {
  display: flex;
  gap: 18px;
}

.footer-nav button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.footer-nav button:hover {
  color: var(--brand-strong);
}

@media (max-width: 820px) {
  .page-panel {
    width: min(100% - 32px, var(--content-width));
    padding: 32px 0 48px;
  }

  .panel-head h2 {
    font-size: 24px;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .franchise-cols {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .franchise-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-panel {
    width: min(100% - 24px, var(--content-width));
    padding: 26px 0 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 14px;
  }
}

/* Unit price + listing date + advisor contact */
.property-listed {
  min-height: 16px;
  margin: 2px 0 0;
  overflow: hidden;
  color: #75807c;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-agent {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  margin-top: 12px;
  padding: 8px 0;
  border-top: 1px solid #edf0ee;
}

.property-agent-avatar,
.detail-agent-avatar {
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #e7f1ec;
  color: var(--green);
}

.property-agent-avatar {
  width: 36px;
  height: 36px;
}

.property-agent-avatar img,
.detail-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-agent-avatar i {
  width: 18px;
  height: 18px;
}

.property-agent-info {
  min-width: 0;
}

.property-agent-info strong {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 13px;
}

.property-agent-info strong i {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.property-agent-info span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #75807c;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-agent-call {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

.property-agent-call:hover {
  color: var(--brand-strong);
}

.property-agent-call i {
  width: 15px;
  height: 15px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 7px 12px;
  border: 1px solid var(--brand, #1f7a5a);
  border-radius: 999px;
  background: transparent;
  color: var(--brand, #1f7a5a);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.contact-link:hover {
  background: var(--brand, #1f7a5a);
  color: #fff;
}

.contact-link i {
  width: 15px;
  height: 15px;
}

.detail-unit-price {
  margin-top: 4px;
  color: var(--ink-soft, #5c6b64);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.detail-contact {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line, #e4e9e6);
  border-radius: 8px;
  background: var(--surface-soft, #f5f8f6);
}

.detail-contact-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1c2a24);
}

.detail-contact-note {
  margin: 6px 0 0;
  color: var(--ink-soft, #5c6b64);
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-agent-list {
  margin-top: 14px;
  border-top: 1px solid var(--line, #e4e9e6);
}

.detail-agent {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e4e9e6);
}

.detail-agent-avatar {
  width: 46px;
  height: 46px;
}

.detail-agent-avatar i {
  width: 22px;
  height: 22px;
}

.detail-agent-info {
  min-width: 0;
}

.detail-agent-name {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.detail-agent-name strong {
  color: var(--ink);
  font-size: 14px;
}

.detail-agent-name i {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.detail-agent-name span {
  padding: 2px 5px;
  border-radius: 3px;
  background: #e7f1ec;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.detail-agent-info p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--ink-soft, #5c6b64);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-agent-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line, #d7dfda);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

.detail-agent-call.is-primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.detail-agent-call i {
  width: 15px;
  height: 15px;
}

.detail-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.detail-contact-actions .primary-button,
.detail-contact-actions .secondary-button {
  white-space: nowrap;
}

.primary-button.ghost {
  background: transparent;
  color: var(--brand, #1f7a5a);
  border: 1px solid var(--brand, #1f7a5a);
}

@media (max-width: 640px) {
  .property-agent {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .property-agent-call {
    grid-column: 1 / -1;
    justify-content: center;
    border: 1px solid var(--line, #d7dfda);
    border-radius: 4px;
  }
  .detail-agent {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .detail-agent-avatar {
    width: 42px;
    height: 42px;
  }
  .detail-agent-call {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .detail-contact-actions .primary-button,
  .detail-contact-actions .secondary-button {
    flex: 1;
    justify-content: center;
  }
}

/* Floating property intelligence workspace */
.detail-dialog {
  position: relative;
  width: min(1480px, calc(100% - 36px));
  height: min(900px, calc(100dvh - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 146, 137, 0.55);
  border-radius: 8px;
  background: #eef2f0;
  box-shadow: 0 34px 96px rgba(8, 15, 12, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.detail-dialog[open] {
  animation: detail-float-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.detail-dialog::after {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  width: 92px;
  height: 3px;
  background: var(--brand);
  content: "";
  pointer-events: none;
}

.detail-dialog::backdrop {
  background: rgba(10, 16, 13, 0.6);
  backdrop-filter: blur(8px) saturate(0.82);
}

@keyframes detail-float-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.986);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.detail-shell {
  display: flex;
  height: 100%;
  max-height: none;
  flex-direction: column;
}

.detail-toolbar {
  position: relative;
  display: grid;
  min-height: 64px;
  flex: 0 0 64px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid #cfd7d3;
  background: rgba(250, 252, 251, 0.98);
}

.detail-toolbar-brand,
.assistant-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.detail-toolbar-icon,
.assistant-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.detail-toolbar-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd6d1;
  border-radius: 5px;
  color: var(--brand-strong);
  background: #fff;
}

.detail-toolbar-icon svg,
.assistant-icon svg {
  width: 18px;
  height: 18px;
}

.detail-toolbar-copy,
.assistant-title {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.detail-toolbar-copy small,
.assistant-title small {
  overflow: hidden;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-toolbar-copy small {
  color: #708079;
}

.detail-toolbar-copy strong {
  overflow: hidden;
  color: #18231f;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-toolbar-status,
.assistant-ready {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-toolbar-status {
  color: #426452;
}

.detail-status-dot,
.assistant-ready > span {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #35aa72;
  box-shadow: 0 0 0 4px rgba(53, 170, 114, 0.13);
}

.detail-toolbar-actions {
  display: flex;
  gap: 5px;
}

.detail-toolbar .icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #405049;
  background: #edf1ef;
}

.detail-toolbar .icon-button:hover {
  border-color: #cbd4d0;
  color: var(--brand-strong);
  background: #fff;
}

.detail-toolbar .detail-close-button {
  color: #fff;
  background: #18231f;
}

.detail-toolbar .detail-close-button:hover {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.detail-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.detail-workspace {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 12px minmax(360px, 410px);
  background: #fff;
}

.detail-workspace.is-property-closed,
.detail-workspace.is-assistant-closed {
  grid-template-columns: minmax(0, 1fr);
}

.detail-workspace.is-property-closed .assistant-cabin-header,
.detail-workspace.is-property-closed .assistant-cabin-body,
.detail-workspace.is-property-closed .detail-cta {
  width: min(860px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.detail-property-pane {
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  scrollbar-color: #aebbb5 transparent;
  scrollbar-width: thin;
}

.detail-gallery {
  min-width: 0;
  padding: 18px 22px 22px;
  border: 0;
  border-bottom: 1px solid #d6ded9;
  background: #fff;
}

.detail-gallery-heading,
.assistant-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-gallery-heading {
  min-height: 24px;
  margin-bottom: 10px;
  color: #3c4d45;
}

.detail-gallery-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 750;
}

.detail-gallery-heading svg {
  width: 15px;
  height: 15px;
  color: var(--brand-strong);
}

.detail-gallery-heading small {
  color: #708079;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.detail-pane-heading-actions,
.assistant-cabin-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.detail-pane-close-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  place-items: center;
  border: 1px solid #d8e0dc;
  border-radius: 4px;
  color: #53635c;
  background: #f5f7f6;
}

.detail-pane-close-button:hover {
  border-color: #bdcbc5;
  color: #fff;
  background: #25332d;
}

.detail-pane-close-button svg {
  width: 15px;
  height: 15px;
}

.detail-flow-divider {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 1px 0 rgba(24, 35, 31, 0.08), inset -1px 0 rgba(24, 35, 31, 0.08);
}

.detail-flow-divider::before {
  position: absolute;
  inset: -280px 2px;
  background: linear-gradient(
    180deg,
    #ff245f 0%,
    #ffb21c 20%,
    #31d79b 40%,
    #00b7ff 60%,
    #7657ff 80%,
    #ff245f 100%
  );
  background-size: 100% 280px;
  box-shadow: 0 0 12px rgba(0, 183, 255, 0.42), 0 0 18px rgba(255, 36, 95, 0.24);
  content: "";
  animation: detail-divider-flow 3.2s linear infinite;
}

.detail-flow-divider::after {
  position: absolute;
  top: -24%;
  bottom: auto;
  left: 4px;
  width: 4px;
  height: 24%;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  content: "";
  animation: detail-divider-glint 2.1s ease-in-out infinite;
}

@keyframes detail-divider-flow {
  to { background-position: 0 280px; }
}

@keyframes detail-divider-glint {
  0% { top: -24%; opacity: 0; }
  18% { opacity: 0.9; }
  82% { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

.detail-media-tabs {
  width: min(440px, 100%);
  margin-bottom: 10px;
  border-color: #cdd7d2;
  border-radius: 5px;
  background: #f8faf9;
}

.detail-media-tab {
  border-radius: 3px;
}

.detail-media-tab.is-active {
  color: #fff;
  background: #26342e;
}

.detail-main-image {
  position: relative;
  min-height: 360px;
  max-height: 590px;
  aspect-ratio: 16 / 9;
  border: 1px solid #cbd4d0;
  border-radius: 6px;
  background: #dce3df;
}

.detail-main-image img {
  object-position: center;
}

.detail-thumbnails {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-height: 210px;
  gap: 7px;
  margin-top: 9px;
}

.detail-thumbnail {
  border-radius: 4px;
}

.detail-thumbnail.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(216, 30, 6, 0.18);
}

.detail-video-item,
.detail-layout-item {
  border-radius: 5px;
}

.detail-info {
  padding: 26px 30px 38px;
  background: #fff;
}

.detail-property-header {
  display: grid;
}

.detail-info h2 {
  max-width: 34em;
  font-size: 27px;
  line-height: 1.34;
}

.detail-price {
  margin-top: 18px;
}

.detail-price strong {
  font-size: 32px;
}

.detail-facts {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: 24px;
}

.detail-fact {
  padding: 15px 12px;
}

.detail-fact:first-child {
  padding-left: 0;
}

.detail-information-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-information-grid .detail-section {
  margin: 0;
  padding: 20px 22px 22px 0;
}

.detail-information-grid .detail-overview {
  padding-right: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.detail-description {
  max-width: 72em;
}

.detail-assistant-cabin {
  --cabin-line: rgba(203, 226, 215, 0.14);
  --cabin-muted: #96aaa1;
  display: flex;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid #24332d;
  color: #ecf4f0;
  background: #111916;
  flex-direction: column;
}

.assistant-cabin-header {
  display: flex;
  min-height: 78px;
  flex: 0 0 78px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px;
  border-bottom: 1px solid var(--cabin-line);
  background: #151f1b;
}

.assistant-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(126, 208, 174, 0.35);
  border-radius: 6px;
  color: #8de0bd;
  background: #1b2a24;
}

.assistant-title small {
  color: #7fa092;
}

.assistant-title strong {
  color: #f4f8f6;
  font-size: 15px;
}

.assistant-ready {
  padding: 5px 7px;
  border: 1px solid rgba(126, 208, 174, 0.25);
  border-radius: 4px;
  color: #9be2c4;
  background: rgba(126, 208, 174, 0.07);
}

.assistant-ready > span {
  animation: assistant-ready-pulse 1.8s ease-in-out infinite;
  background: #69d19f;
  box-shadow: 0 0 0 3px rgba(105, 209, 159, 0.12);
}

@keyframes assistant-ready-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.assistant-cabin-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #41574d transparent;
  scrollbar-width: thin;
}

.assistant-snapshot,
.detail-assistant-cabin .detail-ai-copy,
.detail-assistant-cabin .detail-contact {
  margin: 0;
  padding: 22px;
  border: 0;
  border-bottom: 1px solid var(--cabin-line);
  border-radius: 0;
  background: transparent;
}

.assistant-section-heading strong {
  color: #eef5f1;
  font-size: 13px;
}

.assistant-section-heading small {
  color: #6f8f81;
  font-size: 9px;
  font-weight: 700;
}

.assistant-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 13px 0 0;
  border-top: 1px solid var(--cabin-line);
  border-left: 1px solid var(--cabin-line);
}

.assistant-metrics > div {
  min-width: 0;
  min-height: 66px;
  padding: 11px 12px;
  border-right: 1px solid var(--cabin-line);
  border-bottom: 1px solid var(--cabin-line);
}

.assistant-metrics dt {
  color: #789185;
  font-size: 9px;
}

.assistant-metrics dd {
  margin: 5px 0 0;
  overflow: hidden;
  color: #f4f8f6;
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-metrics dd small {
  margin-left: 3px;
  color: var(--cabin-muted);
  font-size: 9px;
  font-weight: 500;
}

.detail-assistant-cabin .ai-copy-heading {
  margin-bottom: 13px;
}

.detail-assistant-cabin .ai-copy-heading h3 {
  color: #eef5f1;
  font-size: 13px;
}

.detail-assistant-cabin .ai-copy-heading h3 svg {
  color: #88dcb8;
}

.detail-assistant-cabin .ai-copy-status {
  border-color: var(--cabin-line);
  color: var(--cabin-muted);
  background: #19231f;
}

.detail-assistant-cabin .ai-copy-status.is-ready {
  border-color: rgba(126, 208, 174, 0.3);
  color: #93dfbf;
  background: rgba(126, 208, 174, 0.08);
}

.detail-assistant-cabin .ai-copy-status.is-generating {
  border-color: rgba(240, 194, 105, 0.3);
  color: #f0c269;
  background: rgba(240, 194, 105, 0.08);
}

.detail-assistant-cabin .ai-copy-body {
  color: #c6d2cc;
  font-size: 12px;
}

.detail-assistant-cabin .ai-copy-hook {
  color: #f4f8f6;
}

.detail-assistant-cabin .ai-copy-recommendation,
.detail-assistant-cabin .ai-copy-risk {
  color: var(--cabin-muted);
}

.detail-assistant-cabin .ai-copy-bullets li::marker {
  color: #e15745;
}

.detail-assistant-cabin .ai-copy-tags span {
  color: #9ae0c2;
  background: #1c3027;
}

.detail-assistant-cabin .ai-copy-loading span {
  background: #2a3a33;
}

.detail-assistant-cabin .detail-contact-title {
  color: #eef5f1;
  font-size: 13px;
}

.detail-assistant-cabin .detail-contact-title svg {
  width: 16px;
  height: 16px;
  color: #8de0bd;
}

.detail-assistant-cabin .detail-contact-note,
.detail-assistant-cabin .detail-agent-info p {
  color: var(--cabin-muted);
}

.detail-assistant-cabin .detail-agent-list {
  border-top-color: var(--cabin-line);
}

.detail-assistant-cabin .detail-agent {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  border-bottom-color: var(--cabin-line);
}

.detail-assistant-cabin .detail-agent-avatar {
  width: 42px;
  height: 42px;
  color: #87d5b4;
  background: #20332a;
}

.detail-assistant-cabin .detail-agent-name strong {
  color: #edf5f1;
}

.detail-assistant-cabin .detail-agent-name span {
  color: #8dd7b8;
  background: #20352b;
}

.detail-assistant-cabin .detail-agent-call {
  min-width: 38px;
  border-color: rgba(126, 208, 174, 0.28);
  color: #a3e3c8;
  background: transparent;
}

.detail-assistant-cabin .detail-agent-call.is-primary {
  border-color: #72c9a5;
  color: #102019;
  background: #8ad8b8;
}

.detail-assistant-cabin .detail-contact-actions {
  justify-content: stretch;
}

.detail-assistant-cabin .detail-contact-actions .primary-button,
.detail-assistant-cabin .detail-contact-actions .secondary-button,
.detail-assistant-cabin .detail-contact > .primary-button {
  width: 100%;
}

.detail-assistant-cabin .detail-cta {
  display: grid;
  min-height: 70px;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--cabin-line);
  background: #151f1b;
}

.detail-assistant-cabin .detail-cta > :only-child {
  grid-column: 1 / -1;
}

.detail-assistant-cabin .detail-cta .primary-button,
.detail-assistant-cabin .detail-cta .secondary-button {
  min-height: 44px;
  border-radius: 5px;
}

.detail-assistant-cabin .primary-button.ghost {
  border-color: rgba(220, 234, 227, 0.28);
  color: #dce9e3;
  background: transparent;
}

.detail-assistant-cabin .primary-button.ghost:hover {
  border-color: #dce9e3;
  color: #111916;
  background: #dce9e3;
}

.detail-assistant-cabin .detail-cta .secondary-button {
  border: 1px solid #8ad8b8;
  color: #102019;
  background: #8ad8b8;
}

.detail-assistant-cabin .detail-cta .secondary-button:hover {
  border-color: #a5e5ca;
  background: #a5e5ca;
}

@media (max-width: 1120px) {
  .detail-dialog {
    width: calc(100% - 24px);
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .detail-workspace {
    grid-template-columns: minmax(0, 1fr) 12px 350px;
  }

  .detail-workspace.is-property-closed,
  .detail-workspace.is-assistant-closed {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-gallery {
    padding-right: 16px;
    padding-left: 16px;
  }

  .detail-main-image {
    min-height: 300px;
  }

  .detail-thumbnails {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .detail-info {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 860px) {
  .detail-content {
    overflow-y: auto;
  }

  .detail-workspace {
    display: block;
    height: auto;
  }

  .detail-flow-divider {
    width: 100%;
    height: 10px;
    min-height: 10px;
    box-shadow: inset 0 1px rgba(24, 35, 31, 0.08), inset 0 -1px rgba(24, 35, 31, 0.08);
  }

  .detail-flow-divider::before {
    inset: 2px -280px;
    background: linear-gradient(90deg, #ff245f 0%, #ffb21c 20%, #31d79b 40%, #00b7ff 60%, #7657ff 80%, #ff245f 100%);
    background-size: 280px 100%;
    animation-name: detail-divider-flow-horizontal;
  }

  .detail-flow-divider::after {
    display: none;
  }

  @keyframes detail-divider-flow-horizontal {
    to { background-position: 280px 0; }
  }

  .detail-property-pane,
  .assistant-cabin-body {
    overflow: visible;
  }

  .detail-assistant-cabin {
    overflow: visible;
    border-top: 1px solid #24332d;
    border-left: 0;
  }

  .assistant-cabin-header {
    min-height: 72px;
    flex-basis: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-flow-divider::before,
  .detail-flow-divider::after,
  .assistant-ready > span {
    animation: none;
  }
}

@media (max-width: 620px) {
  .detail-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .detail-toolbar {
    min-height: 58px;
    flex-basis: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 8px 0 10px;
  }

  .detail-toolbar-icon {
    width: 34px;
    height: 34px;
  }

  .detail-toolbar-copy small,
  .detail-toolbar-status {
    display: none;
  }

  .detail-toolbar-actions {
    gap: 2px;
  }

  .detail-toolbar .icon-button {
    width: 36px;
    height: 36px;
  }

  .detail-gallery {
    padding: 11px 10px 13px;
  }

  .detail-gallery-heading {
    margin-bottom: 8px;
  }

  .detail-main-image {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .detail-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 180px;
  }

  .detail-info {
    padding: 20px 16px 30px;
  }

  .detail-info h2 {
    font-size: 22px;
  }

  .detail-price strong {
    font-size: 28px;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-fact,
  .detail-fact:first-child,
  .detail-fact + .detail-fact {
    padding: 12px 10px;
    border-left: 0;
  }

  .detail-fact:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .detail-information-grid {
    grid-template-columns: 1fr;
  }

  .detail-information-grid .detail-section,
  .detail-information-grid .detail-overview {
    padding: 17px 0;
    border-left: 0;
  }

  .detail-information-grid .detail-overview {
    border-top: 1px solid var(--line);
  }

  .assistant-cabin-header,
  .assistant-snapshot,
  .detail-assistant-cabin .detail-ai-copy,
  .detail-assistant-cabin .detail-contact {
    padding-right: 16px;
    padding-left: 16px;
  }

  .assistant-ready {
    font-size: 9px;
  }

  .detail-assistant-cabin .detail-agent {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .detail-assistant-cabin .detail-agent-call {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* White dual cabins */
.detail-property-pane {
  scrollbar-color: #a4b0aa #f2f5f3;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.detail-property-pane::-webkit-scrollbar {
  width: 8px;
}

.detail-property-pane::-webkit-scrollbar-track {
  background: #f2f5f3;
}

.detail-property-pane::-webkit-scrollbar-thumb {
  border: 2px solid #f2f5f3;
  border-radius: 5px;
  background: #9daaa4;
}

.detail-property-pane::-webkit-scrollbar-thumb:hover {
  background: #718078;
}

.detail-property-pane::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.detail-assistant-cabin {
  --cabin-line: #e1e7e4;
  --cabin-muted: #68766f;
  position: relative;
  border-left: 0;
  color: #1b2521;
  background: #fff;
  box-shadow: none;
}

.assistant-cabin-header {
  border-bottom-color: var(--cabin-line);
  background: #fff;
}

.detail-toolbar .detail-pane-restore-button {
  border-color: #b9ddce;
  color: #267657;
  background: #eef8f3;
}

.detail-toolbar .detail-pane-restore-button:hover {
  border-color: #2f8c66;
  color: #fff;
  background: #2f8c66;
}

.assistant-icon {
  border-color: #b9ddce;
  color: #267657;
  background: #eef8f3;
}

.assistant-title small {
  color: #78867f;
}

.assistant-title strong,
.assistant-section-heading strong,
.detail-assistant-cabin .ai-copy-heading h3,
.detail-assistant-cabin .ai-copy-hook,
.detail-assistant-cabin .detail-contact-title,
.detail-assistant-cabin .detail-agent-name strong {
  color: #1b2521;
}

.assistant-ready {
  border-color: #b9ddce;
  color: #267657;
  background: #eef8f3;
}

.assistant-ready > span {
  background: #35aa72;
  box-shadow: 0 0 0 3px rgba(53, 170, 114, 0.13);
}

.assistant-cabin-body {
  scrollbar-color: #aab7b1 #f4f6f5;
}

.assistant-cabin-body::-webkit-scrollbar {
  width: 7px;
}

.assistant-cabin-body::-webkit-scrollbar-track {
  background: #f4f6f5;
}

.assistant-cabin-body::-webkit-scrollbar-thumb {
  border: 2px solid #f4f6f5;
  border-radius: 5px;
  background: #9aa9a2;
}

.assistant-snapshot,
.detail-assistant-cabin .detail-ai-copy,
.detail-assistant-cabin .detail-contact {
  border-bottom-color: var(--cabin-line);
  background: #fff;
}

.assistant-section-heading small {
  color: #3e8fa2;
}

.assistant-metrics {
  border-top-color: #dce4e0;
  border-left-color: #dce4e0;
  background: #fbfcfb;
}

.assistant-metrics > div {
  border-right-color: #dce4e0;
  border-bottom-color: #dce4e0;
}

.assistant-metrics dt {
  color: #74817b;
}

.assistant-metrics dd {
  color: #1b2521;
}

.assistant-metrics > div:first-child dd {
  color: var(--brand-strong);
}

.assistant-metrics > div:nth-child(3) dd {
  color: #2f7585;
}

.assistant-metrics > div:nth-child(4) dd {
  color: #2d7758;
}

.assistant-metrics dd small {
  color: #6f7c76;
}

.detail-assistant-cabin .ai-copy-heading h3 svg,
.detail-assistant-cabin .detail-contact-title svg {
  color: #2f8c66;
}

.detail-assistant-cabin .ai-copy-status {
  border-color: #dce4e0;
  color: #68766f;
  background: #f5f7f6;
}

.detail-assistant-cabin .ai-copy-status.is-ready {
  border-color: #b9ddce;
  color: #267657;
  background: #eef8f3;
}

.detail-assistant-cabin .ai-copy-status.is-generating {
  border-color: #ead2aa;
  color: #8a5b19;
  background: #fff8eb;
}

.detail-assistant-cabin .ai-copy-body {
  color: #405049;
}

.detail-assistant-cabin .ai-copy-recommendation,
.detail-assistant-cabin .ai-copy-risk,
.detail-assistant-cabin .detail-contact-note,
.detail-assistant-cabin .detail-agent-info p {
  color: #68766f;
}

.detail-assistant-cabin .ai-copy-tags span {
  color: #267657;
  background: #eaf5f0;
}

.detail-assistant-cabin .ai-copy-tags span:nth-child(4n + 2) {
  color: #8b5c19;
  background: #fff3df;
}

.detail-assistant-cabin .ai-copy-tags span:nth-child(4n + 3) {
  color: #2f7585;
  background: #eaf4f6;
}

.detail-assistant-cabin .ai-copy-tags span:nth-child(4n) {
  color: #9e3024;
  background: #fcecea;
}

.detail-assistant-cabin .ai-copy-loading span {
  background: #dfe6e2;
}

.detail-assistant-cabin .detail-agent-list,
.detail-assistant-cabin .detail-agent {
  border-color: var(--cabin-line);
}

.detail-assistant-cabin .detail-agent-avatar {
  color: #267657;
  background: #eaf5f0;
}

.detail-assistant-cabin .detail-agent-name span {
  color: #267657;
  background: #eaf5f0;
}

.detail-assistant-cabin .detail-agent-call {
  border-color: #bfd9ce;
  color: #267657;
  background: #fff;
}

.detail-assistant-cabin .detail-agent-call.is-primary {
  border-color: #2f8c66;
  color: #fff;
  background: #2f8c66;
}

.detail-assistant-cabin .detail-cta {
  border-top-color: var(--cabin-line);
  background: #fafcfb;
}

.detail-assistant-cabin .primary-button.ghost {
  border-color: #c9d3ce;
  color: #34433c;
  background: #fff;
}

.detail-assistant-cabin .primary-button.ghost:hover {
  border-color: #34433c;
  color: #fff;
  background: #34433c;
}

.detail-assistant-cabin .detail-cta .secondary-button {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.detail-assistant-cabin .detail-cta .secondary-button:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
}

@media (max-width: 860px) {
  .detail-property-pane {
    scrollbar-width: none;
  }

  .detail-property-pane::-webkit-scrollbar {
    display: none;
  }

  .detail-assistant-cabin {
    border-top: 0;
    box-shadow: none;
  }
}
