.btn-sm {
  min-height: 36px;
  font-size: .85rem;
}

body.search-page .page-hero {
  background:
    linear-gradient(rgba(10, 18, 12, 0.72), rgba(10, 18, 12, 0.72)),
    url('https://images.unsplash.com/photo-1535131749006-b7f58c99034b?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: #fff;
  padding: 2.25rem 0 5rem;
}

body.search-page .page-hero h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: .75rem;
}

body.search-page .page-hero p {
  color: rgba(255,255,255,.9);
  max-width: 820px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.surface-card,
.filter-panel,
.result-card,
.saved-card,
.map-panel,
.insight-card,
.ad-card {
  background: var(--lv-surface);
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius);
  box-shadow: var(--lv-shadow);
}

.search-summary-shell {
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
}

.search-criteria-panel {
  position: relative;
}

.search-criteria-panel.is-loading {
  pointer-events: none;
}

.search-criteria-panel.is-loading .search-primary-criteria,
.search-criteria-panel.is-loading .search-filters-shell {
  opacity: 0.6;
}

.search-filters-shell {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid var(--lv-border);
}

.search-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.search-filters-bar-start,
.search-filters-bar-end {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.search-filters-bar-end {
  margin-left: auto;
}

.search-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--lv-border);
  background: #fff;
  color: var(--lv-text);
  border-radius: 999px;
  padding: .45rem .85rem;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease;
}

.search-filters-toggle:hover,
.search-filters-toggle.is-open {
  background: #edf4ef;
  border-color: #b9dcc4;
}

.search-filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--lv-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.search-filters-chevron {
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -.15rem;
  transition: transform .2s ease;
}

.search-filters-toggle.is-open .search-filters-chevron {
  transform: rotate(-135deg);
  margin-top: .15rem;
}

.search-filters-clear {
  color: var(--lv-muted);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.search-filters-clear:hover {
  color: var(--lv-primary-dark);
  text-decoration: underline;
}

.search-filters-panel {
  margin-top: .6rem;
  padding: .65rem .7rem .7rem;
  border: 1px solid var(--lv-border);
  border-radius: 12px;
  background: var(--lv-surface-soft);
}

.search-filters-panel[hidden] {
  display: none !important;
}

.search-filters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem .6rem;
  align-items: end;
}

.search-filter-cell {
  min-width: 0;
}

.search-filter-cell--range,
.search-filter-cell--toggle {
  grid-column: span 2;
}

.search-filter-cell--meta-row {
  grid-column: 1 / -1;
}

.search-meta-filter-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) minmax(7.5rem, 10rem) minmax(0, 1fr);
  gap: .6rem;
  align-items: end;
}

.search-meta-filter-row__field {
  min-width: 0;
}

.search-meta-filter-row__toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.search-filter-label {
  display: block;
  margin-bottom: .22rem;
  color: var(--lv-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.search-filter-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .35rem;
  align-items: center;
}

.search-filter-range-sep {
  color: var(--lv-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

.search-filters-panel .form-select-sm {
  min-height: 2rem;
  padding-top: .28rem;
  padding-bottom: .28rem;
  padding-left: .55rem;
  padding-right: 1.55rem;
  font-size: .82rem;
  border-radius: 8px;
  border-color: rgba(22, 90, 57, 0.14);
  background-color: #fff;
}

.search-filters-panel .form-select-sm:focus {
  border-color: #cbb36c;
  box-shadow: none;
}

.search-filter-cell--toggle {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.summary-stat {
  border: 1px solid var(--lv-border);
  border-radius: 16px;
  background: var(--lv-surface-soft);
  padding: .85rem 1rem;
  height: 100%;
}

.summary-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--lv-text);
  line-height: 1.1;
}

.summary-stat span {
  color: var(--lv-muted);
  font-size: .82rem;
  font-weight: 700;
}

.save-search-btn {
  min-height: 42px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.01em;
  box-shadow: 0 4px 12px rgba(22, 90, 57, .14);
}

.btn.btn-brand.search-run-btn,
.search-run-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: 0 1.15rem 0 1rem !important;
  line-height: 1;
  border-radius: 999px;
  background: #2f9d5e;
  border-color: #2f9d5e;
  box-shadow: 0 4px 12px rgba(47, 157, 94, .22);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.btn.btn-brand.search-run-btn:hover,
.btn.btn-brand.search-run-btn:focus,
.search-run-btn:hover,
.search-run-btn:focus {
  background: #268a50;
  border-color: #268a50;
  color: #fff;
}

.search-run-btn-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex: 0 0 auto;
}

.search-run-btn-label {
  line-height: 1;
}

.search-run-btn-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 2px;
  height: 7px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}

.save-search-modal .modal-content {
  border: 1px solid var(--lv-border, #d7e2da);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(16, 70, 44, .14);
}

.save-search-modal .modal-header {
  padding: 1.15rem 1.25rem .85rem;
  border-bottom: 1px solid rgba(22, 90, 57, .1);
}

.save-search-modal .modal-title {
  color: var(--lv-primary-dark, #104428);
  font-weight: 800;
  letter-spacing: -.02em;
}

.save-search-modal .modal-body {
  padding: 1rem 1.25rem 1.1rem;
}

.save-search-modal .modal-footer {
  padding: .85rem 1.25rem 1.15rem;
  border-top: 1px solid rgba(22, 90, 57, .1);
}

.save-search-modal-lead {
  color: var(--lv-muted, #58685b);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
}

.save-search-modal .form-label {
  font-weight: 700;
  color: var(--lv-ink, #163a28);
}

.save-search-modal-error {
  margin-top: .65rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  background: #fdecee;
  color: #8a1f2b;
  font-size: .84rem;
  font-weight: 700;
}

.search-toggle-switch--compact {
  min-height: 2rem;
  padding: .15rem .5rem;
  border: 1px solid rgba(22, 90, 57, 0.14);
  border-radius: 8px;
  background: #fff;
  width: 100%;
  justify-content: space-between;
}

.search-toggle-switch--inline {
  min-height: 2rem;
  padding: .1rem .4rem;
  border: 1px solid rgba(22, 90, 57, 0.14);
  border-radius: 8px;
  background: #fff;
  width: auto;
  max-width: 100%;
  justify-content: space-between;
  gap: .3rem;
}

.search-toggle-switch--inline .search-toggle-switch-text {
  font-size: .68rem;
  white-space: nowrap;
}

.search-toggle-switch--inline .search-toggle-switch-track {
  width: 2.15rem;
  height: 1.28rem;
}

.search-toggle-switch--inline .search-toggle-switch-track::after {
  width: .98rem;
  height: .98rem;
}

.search-toggle-switch--inline .search-toggle-switch-input:checked + .search-toggle-switch-track::after {
  transform: translateX(.82rem);
}

.search-toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.search-toggle-switch-text {
  color: var(--lv-muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.search-toggle-switch-label {
  color: var(--lv-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.search-toggle-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.search-toggle-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #d5dfd7;
  border: 1px solid #cbdccd;
  transition: background .2s ease, border-color .2s ease;
}

.search-toggle-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  transition: transform .2s ease;
}

.search-toggle-switch-input:checked + .search-toggle-switch-track {
  background: var(--lv-primary);
  border-color: var(--lv-primary);
}

.search-toggle-switch-input:checked + .search-toggle-switch-track::after {
  transform: translateX(1.15rem);
}

.search-toggle-switch-input:focus-visible + .search-toggle-switch-track {
  outline: 3px solid rgba(184, 138, 27, 0.35);
  outline-offset: 2px;
}

.search-listing-type-wrap {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-left: auto;
}

.search-listing-type-label {
  color: var(--lv-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.buy-rent-toggle {
  position: relative;
  display: inline-flex;
  background: #eef5ef;
  border: 1px solid #cbdccd;
  border-radius: 999px;
  padding: .3rem;
  gap: 0;
  isolation: isolate;
}

.buy-rent-toggle--compact {
  min-width: 168px;
  min-height: 42px;
}

.buy-rent-toggle::before {
  content: '';
  position: absolute;
  top: .3rem;
  bottom: .3rem;
  left: .3rem;
  width: calc((100% - .6rem) / 2);
  border-radius: 999px;
  background: var(--lv-primary);
  box-shadow: 0 4px 10px rgba(22, 90, 57, .18);
  transition: transform .22s ease;
  z-index: 0;
}

.buy-rent-toggle[data-active="rent"]::before {
  transform: translateX(100%);
}

.buy-rent-toggle .toggle-option {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lv-primary-dark);
  font-weight: 800;
  flex: 1;
  padding: .45rem .75rem;
  font-size: .84rem;
  transition: color .22s ease;
  cursor: pointer;
}

.buy-rent-toggle .toggle-option.active {
  color: #fff;
}

.advanced-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid #cbdccd;
  background: #edf4ef;
  color: var(--lv-primary-dark);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
}

.advanced-search-toggle::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.advanced-search-toggle[aria-expanded="true"]::after {
  content: "-";
}

.advanced-search-panel {
  margin-top: .75rem;
  padding: .75rem .85rem .85rem;
  border: 1px solid #d5e3d9;
  border-radius: 12px;
  background: #f7faf8;
}

.advanced-search-panel--compact {
  margin-top: .65rem;
}

.advanced-search-validation {
  margin-bottom: .65rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  border: 1px solid #f0c36d;
  background: #fff8e8;
  color: #7a4e00;
  font-size: .82rem;
  font-weight: 700;
}

.adv-filter-strip {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.adv-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: stretch;
}

.adv-filter-group {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .45rem .55rem .55rem;
  min-width: 0;
}

.adv-filter-group-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.adv-filter-group-fields {
  display: grid;
  gap: .45rem .5rem;
  align-items: end;
}

.adv-filter-group-fields--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adv-filter-group-fields--listing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.adv-filter-field--toggle {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.adv-filter-group-fields--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.adv-filter-group--price {
  flex: 1 1 12.5rem;
  background: #e8f5ec;
  border-color: #b9dcc4;
}

.adv-filter-group--price .adv-filter-group-label {
  color: #1a5c36;
}

.adv-filter-group--home {
  flex: 2.2 1 22rem;
  background: #eaf1fb;
  border-color: #c2d2ee;
}

.adv-filter-group--home .adv-filter-group-label {
  color: #2a4a7a;
}

.adv-filter-group--size {
  flex: 1 1 12.5rem;
  background: #eef4f0;
  border-color: #c5d5cb;
}

.adv-filter-group--size .adv-filter-group-label {
  color: #3a5444;
}

.adv-filter-group--golf {
  flex: 1.4 1 14rem;
  background: #eef7e6;
  border-color: #c5dda8;
}

.adv-filter-group--golf .adv-filter-group-label {
  color: #3d6324;
}

.adv-filter-group--listing {
  flex: 1.4 1 14rem;
  background: #fff4e8;
  border-color: #e6cba8;
}

.adv-filter-group--listing .adv-filter-group-label {
  color: #7a4e16;
}

.adv-filter-field {
  min-width: 0;
}

.adv-filter-field--range {
  min-width: 0;
}

.adv-filter-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .35rem;
  align-items: center;
}

.adv-filter-range-sep {
  color: #6a7a6e;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1;
}

.advanced-search-panel .adv-filter-field .form-label {
  display: block;
  font-size: .72rem;
  margin-bottom: .22rem;
  color: #405549;
  font-weight: 700;
  letter-spacing: .01em;
}

.advanced-search-panel .adv-filter-field .form-select-sm,
.advanced-search-panel .adv-filter-range .form-select-sm {
  min-height: 2rem;
  padding-top: .3rem;
  padding-bottom: .3rem;
  padding-left: .55rem;
  padding-right: 1.65rem;
  font-size: .82rem;
  border-radius: 7px;
  border-color: rgba(22, 90, 57, 0.18);
  background-color: #fff;
}

.advanced-search-panel .adv-filter-field .form-select-sm:focus,
.advanced-search-panel .adv-filter-range .form-select-sm:focus {
  border-color: var(--lv-primary, #165a39);
  box-shadow: 0 0 0 .18rem rgba(22, 90, 57, 0.12);
}

.adv-filter-clear {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 .15rem .4rem;
  margin-left: auto;
  min-width: 3.25rem;
}

.adv-filter-clear-link {
  color: var(--lv-primary-dark, #104428);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.adv-filter-clear-link:hover {
  text-decoration: underline;
  color: var(--lv-primary, #165a39);
}

.advanced-search-panel[hidden] {
  display: none !important;
}

@media (max-width: 1199.98px) {
  .search-filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .search-filters-bar-end {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

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

  .search-filter-cell--range,
  .search-filter-cell--toggle {
    grid-column: span 2;
  }

  .search-filter-cell--meta-row {
    grid-column: 1 / -1;
  }

  .search-meta-filter-row {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .search-meta-filter-row__toggles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
  }

  .search-toggle-switch--inline {
    width: 100%;
    padding: .1rem .32rem;
  }
}

@media (max-width: 575.98px) {
  .search-filters-grid {
    grid-template-columns: 1fr;
  }

  .search-filter-cell--range,
  .search-filter-cell--toggle {
    grid-column: span 1;
  }
}

.search-multi-select {
  position: relative;
}

@media (min-width: 992px) {
  .search-primary-criteria .search-primary-location .search-multi-select-menu {
    min-width: 12.5rem;
    right: auto;
  }
}

.search-multi-select-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.search-multi-select-toggle .search-multi-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-multi-select-menu {
  position: absolute;
  top: calc(100% + .3rem);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--lv-surface, #fff);
  border: 1px solid var(--lv-border);
  border-radius: 14px;
  box-shadow: var(--lv-shadow-strong, 0 12px 28px rgba(16, 42, 28, .14));
  padding: .35rem;
  max-height: 260px;
  overflow-y: auto;
}

.search-multi-select-menu[hidden] {
  display: none;
}

.search-multi-select-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: .5rem .6rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  color: var(--lv-text);
}

.search-multi-select-option[hidden] {
  display: none;
}

.search-multi-select-option:hover {
  background: #edf4ef;
}

.search-multi-select-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--lv-primary);
}

.search-multi-select-text {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.search-multi-select-count {
  flex-shrink: 0;
  margin-left: auto;
  font-size: .8rem;
  font-weight: 700;
  color: var(--lv-muted, #6c757d);
}

.property-navigation-indicator {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
}

.property-navigation-indicator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--lv-border, #e4ebe6);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 42, 28, .14);
  text-align: center;
}

.property-navigation-indicator-title {
  margin: 0;
  color: var(--lv-primary-dark, #104428);
  font-weight: 800;
}

.property-navigation-indicator-address {
  margin: 0;
  color: var(--lv-text, #203129);
  font-weight: 600;
  line-height: 1.35;
}

.search-typeahead {
  position: relative;
  width: 100%;
}

.search-typeahead-list {
  position: absolute;
  top: calc(100% + .3rem);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--lv-surface, #fff);
  border: 1px solid var(--lv-border);
  border-radius: 14px;
  box-shadow: var(--lv-shadow-strong, 0 12px 28px rgba(16, 42, 28, .14));
  padding: .35rem;
  max-height: 22rem;
  overflow-y: auto;
}

.search-typeahead-list[hidden] {
  display: none;
}

.search-typeahead-group + .search-typeahead-group {
  margin-top: .35rem;
  padding-top: .35rem;
  border-top: 1px solid var(--lv-border);
}

.search-typeahead-group-label {
  padding: .35rem .6rem .2rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lv-muted, #6c757d);
}

.search-typeahead-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  width: 100%;
  margin: 0;
  padding: .5rem .6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--lv-text);
  text-align: left;
  cursor: pointer;
}

.search-typeahead-option:hover,
.search-typeahead-option.is-active {
  background: #edf4ef;
}

.search-typeahead-option-label {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.25;
}

.search-typeahead-option-sublabel {
  font-size: .8rem;
  font-weight: 500;
  color: var(--lv-muted, #6c757d);
}

.search-typeahead-empty {
  padding: .7rem .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--lv-muted, #6c757d);
}

@media (max-width: 575.98px) {
  .search-typeahead-list {
    max-height: 16rem;
  }
}

/* Legacy compact helpers retained for other pages if needed */
.advanced-search-grid .filter-section {
  border-top: 1px solid var(--lv-border);
  padding-top: .75rem;
  margin-top: .75rem;
}

.advanced-search-panel--compact .range-row {
  gap: .65rem;
}

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.25rem;
  align-items: start;
}

.results-content {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.sidebar-stack {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: sticky;
  top: 92px;
}

.filter-panel {
  margin-bottom: 1rem;
}

.filter-section {
  border-top: 1px solid var(--lv-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.filter-section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.filter-heading {
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--lv-text);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .6rem;
  color: var(--lv-muted);
  font-weight: 600;
  font-size: .92rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--lv-primary);
}

.mode-switcher {
  display: inline-flex;
  background: #eef5ef;
  border: 1px solid #cbdccd;
  border-radius: 999px;
  padding: .3rem;
  gap: .25rem;
}

.mode-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lv-primary-dark);
  font-weight: 800;
  padding: .55rem .9rem;
  min-width: 72px;
}

.mode-btn.active {
  background: var(--lv-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(22, 90, 57, .22);
}

.mode-btn:focus-visible,
.chip:focus-visible {
  outline: 3px solid rgba(184, 138, 27, 0.35);
  outline-offset: 2px;
  box-shadow: none;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid #cbdccd;
  background: #edf4ef;
  color: var(--lv-primary-dark);
  border-radius: 999px;
  padding: .45rem .7rem;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.chip-muted {
  background: #fff;
  color: var(--lv-muted);
}

.sort-select {
  width: min(220px, 100%);
}

.result-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.result-toolbar-sort {
  display: flex;
  align-items: center;
  gap: .65rem;
  justify-content: flex-start;
  min-width: 0;
}

.result-toolbar-sort-label {
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
  color: var(--lv-muted);
  white-space: nowrap;
}

.result-toolbar-view {
  margin-left: auto;
  flex-shrink: 0;
}

.result-card {
  overflow: hidden;
}

.list-mode .result-card,
.split-layout .result-card {
  overflow: visible;
}

.result-card-media {
  display: block;
  min-width: 0;
}

.result-card-image-link {
  color: inherit;
  text-decoration: none;
}

.result-image-slide .result-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.result-image-slide--placeholder .result-card-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.result-image-carousel {
  position: relative;
}

.result-image-carousel:focus {
  outline: none;
}

.result-image-carousel:focus-visible .result-image-frame {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 2px var(--lv-primary);
}

.result-image-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-top-left-radius: var(--lv-radius);
  border-top-right-radius: var(--lv-radius);
  background: #edf4ef;
}

.result-image-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf4ef;
  transition: opacity .2s ease, visibility .2s ease;
  pointer-events: none;
}

.result-image-loader-spinner {
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid rgba(30, 77, 51, 0.14);
  border-top-color: var(--lv-primary);
  border-radius: 50%;
  animation: result-image-spin .75s linear infinite;
  pointer-events: none;
}

.result-image-frame--loaded .result-image-loader {
  opacity: 0;
  visibility: hidden;
}

.result-image-gallery-pending {
  position: absolute;
  right: .75rem;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.result-image-gallery-pending-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(30, 77, 51, 0.14);
  border-top-color: var(--lv-primary);
  border-radius: 50%;
  animation: result-image-spin .75s linear infinite;
  pointer-events: none;
}

.result-image-carousel--gallery-loading .carousel-arrow--next.carousel-arrow--gallery-pending {
  opacity: 0.45;
}

.result-image-carousel--gallery-failed .result-image-gallery-status-text {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: 2.35rem;
  z-index: 2;
  margin: 0;
  padding: .2rem .45rem;
  border-radius: .35rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .result-image-gallery-pending-spinner {
    animation: none;
    border-top-color: var(--lv-primary);
    opacity: 0.85;
  }
}

@keyframes result-image-spin {
  to {
    transform: rotate(360deg);
  }
}

.result-image-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  cursor: grab;
  position: relative;
  z-index: 0;
}

.result-image-track:active {
  cursor: grabbing;
}

.result-image-track::-webkit-scrollbar {
  display: none;
}

.result-image-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}

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

.result-image-slide img.result-image-slide-media--loading {
  opacity: 0;
}

.result-image-slide--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9f3ec, #edf4ef);
}

.result-image-carousel--placeholder .result-image-frame {
  background: linear-gradient(135deg, #e9f3ec, #edf4ef);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--lv-primary-dark);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-arrow--prev {
  left: .75rem;
}

.carousel-arrow--next {
  right: .75rem;
}

.carousel-arrow:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.carousel-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.35rem .75rem .55rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.78) 100%);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .02em;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.result-image {
  min-height: 245px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.result-image-badges {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  max-width: calc(100% - 1.8rem);
}

.result-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  background: rgba(255,255,255,.97);
  border-radius: 999px;
  padding: .4rem .7rem;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
}

.result-pill-part {
  display: inline;
}

.result-pill-dot {
  width: .22rem;
  height: .22rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
  flex-shrink: 0;
}

.result-pill--open-house {
  background: var(--lv-primary);
  color: #fff;
}

.result-pill--sponsored {
  background: #1f3b2c;
  color: #fff;
}

.favorite-btn {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lv-primary-dark);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.property-title-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.property-title-row .property-title,
.property-title-row .featured-home-title {
  min-width: 0;
  flex: 1 1 auto;
}

.property-like-count {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  margin-left: calc(2.35rem + .55rem);
  color: var(--lv-muted, #58685b);
  font-size: .86rem;
  font-weight: 700;
}

.property-like-count-icon {
  color: var(--lv-primary, #165a39);
  font-size: .95rem;
  line-height: 1;
}

.property-like-count-label {
  font-weight: 600;
}

.favorite-toggle {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  margin-top: 0;
  padding: 0;
  border: 1.5px solid rgba(31, 77, 58, .28);
  border-radius: 999px;
  background: #fff;
  color: var(--lv-primary-dark, #1f4d3a);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.favorite-toggle:hover,
.favorite-toggle:focus-visible {
  color: var(--lv-primary, #2f6b4f);
  background: #f3faf6;
  border-color: rgba(47, 107, 79, .55);
  outline: none;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(31, 77, 58, .12);
}

.favorite-toggle.is-saved,
.favorite-toggle[data-saved="true"] {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
  box-shadow: 0 2px 8px rgba(180, 35, 24, .28);
}

.favorite-toggle.is-saved:hover,
.favorite-toggle.is-saved:focus-visible,
.favorite-toggle[data-saved="true"]:hover,
.favorite-toggle[data-saved="true"]:focus-visible {
  color: #fff;
  background: #912018;
  border-color: #912018;
}

.favorite-toggle[data-busy="true"] {
  opacity: .65;
  pointer-events: none;
}

.favorite-toggle-icon {
  display: block;
  line-height: 1;
  transform: translateY(0.5px);
}

.price {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--lv-primary);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.property-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0;
}

.property-location {
  color: var(--lv-muted);
  font-size: .84rem;
  font-weight: 600;
}

.result-card-body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.property-meta-line {
  margin: .35rem 0 .55rem;
  color: var(--lv-text);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}

.meta-box {
  border: 1px solid var(--lv-border);
  border-radius: 14px;
  padding: .75rem .45rem;
  text-align: center;
  background: #fbfcfb;
}

.meta-box strong {
  display: block;
  font-size: .95rem;
  line-height: 1.1;
}

.meta-box span {
  display: block;
  color: var(--lv-muted);
  font-size: .72rem;
  margin-top: .15rem;
  font-weight: 700;
}

.course-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .55rem;
}

.course-detail-row .badge,
.course-detail-row .course-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  line-height: 1;
  margin: 0;
  vertical-align: middle;
}

.course-tag {
  border-radius: 999px;
  background: #edf4ef;
  color: var(--lv-primary-dark);
  border: 1px solid #cbdccd;
  padding: .32rem .58rem;
  font-size: .76rem;
  font-weight: 800;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(22, 90, 57, 0.1);
}

.result-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.result-community-callout {
  background: #edf5ef;
  border: 1px solid #c8dccf;
  color: #1f4d33;
  font-weight: 800;
}

.result-open-house {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .65rem;
  margin-top: .55rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1px solid #c5dda8;
  background: linear-gradient(180deg, #f3f9ec 0%, #e8f4dc 100%);
}

.result-open-house-badge {
  display: inline-flex;
  align-items: center;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: var(--lv-primary, #165a39);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}

.result-open-house-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .55rem;
  min-width: 0;
}

.result-open-house-attr {
  color: #2f4f28;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
}

.result-open-house-attr + .result-open-house-attr::before {
  content: "·";
  margin-right: .55rem;
  color: #6a8460;
  font-weight: 800;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  gap: 1.25rem;
}

.split-layout .map-panel {
  min-height: 780px;
  position: sticky;
  top: 92px;
}

.split-layout .result-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  height: auto;
  min-height: 210px;
  max-height: none;
  margin-bottom: .85rem !important;
  overflow: visible;
}

.split-layout .result-card--has-open-house {
  height: auto;
  max-height: none;
  min-height: 210px;
  overflow: visible;
}

.split-layout .result-card-media {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.split-layout .result-card-media,
.split-layout .result-image-carousel,
.split-layout .result-image-frame {
  aspect-ratio: auto;
  min-height: 210px;
  height: 100%;
  max-height: none;
}

.split-layout .result-image-frame,
.split-layout .result-image-slide,
.split-layout .result-image-slide img,
.split-layout .result-image-slide .result-card-image-link {
  min-height: 0;
  height: 100%;
  width: 100%;
  border-top-left-radius: var(--lv-radius);
  border-bottom-left-radius: var(--lv-radius);
}

.split-layout .result-image-slide img {
  object-fit: cover;
  object-position: center;
}

.split-layout .result-card-body {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.split-layout .result-card--has-open-house .result-card-body {
  height: auto;
  overflow: visible;
}

.split-layout .property-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-layout .result-card-body,
.split-layout .result-card .p-4 {
  padding: .75rem .85rem !important;
}

.split-layout .property-title {
  font-size: .95rem;
  line-height: 1.2;
  margin-bottom: 0;
}

.split-layout .property-location {
  font-size: .76rem;
}

.split-layout .price {
  font-size: 1rem;
  white-space: nowrap;
}

.split-layout .property-meta-line {
  margin: .2rem 0 .4rem;
  font-size: .82rem;
}

.split-layout .meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  margin-top: .65rem !important;
  margin-bottom: .65rem !important;
}

.split-layout .meta-box {
  padding: .48rem .35rem;
  border-radius: 10px;
}

.split-layout .meta-box strong {
  font-size: .82rem;
}

.split-layout .meta-box span {
  font-size: .62rem;
}

.split-layout .split-hide {
  display: none;
}

.split-layout .result-card p.text-secondary {
  display: none;
}

.split-layout .course-detail-row {
  margin-top: .35rem;
  gap: .35rem;
  flex-wrap: wrap;
}

.split-layout .course-tag {
  font-size: .68rem;
  padding: .28rem .5rem;
}

.split-layout .result-actions {
  margin-top: 1rem !important;
  justify-content: flex-end;
  padding-top: .9rem;
}

.split-layout .result-actions-buttons .btn {
  min-height: 36px;
  font-size: .8rem;
  padding-left: .85rem;
  padding-right: .85rem;
}

.split-layout .result-actions-buttons .btn:nth-child(n+2) {
  display: none;
}

.split-layout .result-pill {
  font-size: .68rem;
  padding: .32rem .55rem;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.split-layout .result-pill--open-house {
  max-width: 160px;
}

.split-layout .result-pill--sponsored {
  max-width: 140px;
}

.split-layout .favorite-btn {
  width: 34px;
  height: 34px;
  font-size: .9rem;
}

.list-mode .result-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: auto;
  min-height: 230px;
  max-height: none;
  align-items: stretch;
  overflow: visible;
}

.list-mode .result-card--has-open-house {
  height: auto;
  max-height: none;
  min-height: 230px;
  overflow: visible;
}

.list-mode .result-card-media {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.list-mode .result-card-media,
.list-mode .result-image-carousel,
.list-mode .result-image-frame {
  aspect-ratio: auto;
  min-height: 210px;
  height: 100%;
  max-height: none;
}

.list-mode .result-image-frame {
  border-top-left-radius: var(--lv-radius);
  border-bottom-left-radius: var(--lv-radius);
}

.list-mode .result-image-slide,
.list-mode .result-image-slide img,
.list-mode .result-image-slide .result-card-image-link {
  min-height: 0;
  height: 100%;
  width: 100%;
}

.list-mode .result-image-slide img {
  object-fit: cover;
  object-position: center;
}

.list-mode .result-card-body {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.list-mode .result-card--has-open-house .result-card-body {
  height: auto;
  overflow: visible;
}

.list-mode .property-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-mode .course-detail-row {
  max-height: none;
  overflow: visible;
  flex-wrap: wrap;
}

.list-mode .result-actions {
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Embedded list-mode cards on course/community detail share the same layout rules. */
.course-listing-results.list-mode .result-card,
.community-listing-results.list-mode .result-card {
  min-height: 230px;
}

.list-mode .split-hide {
  display: block;
}

.list-mode .result-card p.text-secondary,
.list-mode .course-detail-row .course-tag,
.list-mode .result-actions .btn,
.list-mode .result-actions-buttons .btn {
  display: inline-flex;
}

.map-only-layout .map-panel {
  min-height: 780px;
}

.map-panel {
  background:
    linear-gradient(135deg, rgba(238, 245, 239, .92), rgba(248, 251, 248, .92)),
    url('https://images.unsplash.com/photo-1587174486073-ae5e5cff23aa?auto=format&fit=crop&w=1400&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #314a37;
  font-weight: 800;
  padding: 1.5rem;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}

.map-placeholder-content {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--lv-border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--lv-shadow);
  max-width: 360px;
}

.map-pin {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  background: var(--lv-primary);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 90, 57, .28);
}

.map-pin span {
  transform: rotate(45deg);
  font-size: .72rem;
  font-weight: 900;
}

.pin-1 { top: 20%; left: 62%; }
.pin-2 { top: 42%; left: 38%; background: var(--lv-accent); }
.pin-3 { top: 64%; left: 70%; }
.pin-4 { top: 56%; left: 20%; background: #375f96; }

.saved-card h3,
.insight-card h3,
.ad-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.saved-list {
  display: grid;
  gap: .65rem;
}

.saved-item {
  border: 1px solid var(--lv-border);
  border-radius: 14px;
  padding: .75rem;
  background: var(--lv-surface-soft);
}

.saved-item strong {
  display: block;
  font-size: .9rem;
  color: var(--lv-text);
  margin-bottom: .15rem;
}

.saved-item span {
  display: block;
  color: var(--lv-muted);
  font-size: .78rem;
  font-weight: 600;
}

.mini-property {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  border: 1px solid var(--lv-border);
  background: var(--lv-surface-soft);
  border-radius: 14px;
  padding: .55rem;
}

.mini-property-image {
  height: 58px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.mini-property strong {
  font-size: .84rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-property span {
  color: var(--lv-muted);
  font-size: .76rem;
  font-weight: 700;
}

.insight-metric {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--lv-border);
  padding-top: .75rem;
  margin-top: .75rem;
  color: var(--lv-muted);
  font-weight: 700;
  font-size: .86rem;
}

.insight-metric strong {
  color: var(--lv-text);
}

.insight-metric-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  cursor: pointer;
}

.insight-metric-link:hover,
.insight-metric-link:focus-visible {
  color: var(--lv-primary);
  border-bottom-style: solid;
  outline: none;
}

.insight-metric-link.is-active {
  color: var(--lv-primary);
  border-bottom-style: solid;
}

.insight-metric-link.is-disabled,
.insight-metric-link[aria-disabled="true"] {
  color: inherit;
  border-bottom: none;
  cursor: default;
  pointer-events: none;
}

.ad-card {
  background: linear-gradient(180deg, #fffdf7, #ffffff);
}

.sidebar-midpoint-ad {
  overflow: hidden;
}

.sidebar-midpoint-ad .sponsored-label {
  margin-left: .35rem;
  margin-top: .15rem;
}

.sidebar-midpoint-ad-link {
  display: block;
  border-radius: calc(var(--lv-radius) - 4px);
  overflow: hidden;
}

.sidebar-midpoint-ad-image {
  display: block;
  width: 100%;
  height: auto;
}

.sponsored-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  color: #7a6118;
  background: #fff3cf;
  border-radius: 999px;
  padding: .34rem .6rem;
  margin-bottom: .7rem;
}

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

.search-filters-panel {
  display: block;
}

.search-filters-sheet-bar,
.search-filters-sheet-footer {
  display: none;
}

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

@media (max-width: 767.98px) {
  html.js-enabled body.phone-filters-open .search-summary-shell {
    z-index: 1100;
  }

  html.js-enabled .search-filters-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 1050;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }

  html.js-enabled .search-filters-panel.is-open {
    transform: none;
  }

  html.js-enabled .search-filters-panel.is-select-open,
  html.js-enabled .search-filters-panel.is-select-open .search-filters-sheet-body {
    overflow: visible;
  }

  html.js-enabled .search-filters-sheet-bar,
  html.js-enabled .search-filters-sheet-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: .75rem;
    background: #fff;
  }

  html.js-enabled .search-filters-sheet-bar {
    justify-content: space-between;
    padding: max(.75rem, env(safe-area-inset-top)) 1rem .75rem;
    border-bottom: 1px solid var(--lv-border);
  }

  html.js-enabled .search-filters-sheet-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
  }

  html.js-enabled .search-filters-sheet-close {
    appearance: none;
    border: 1px solid var(--lv-border);
    background: #fff;
    color: var(--lv-text);
    border-radius: 999px;
    padding: .45rem 1rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 44px;
    touch-action: manipulation;
  }

  html.js-enabled .search-filters-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: .85rem 1rem 1.25rem;
  }

  html.js-enabled .search-filters-sheet-footer {
    padding: .75rem 1rem max(.75rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--lv-border);
  }

  html.js-enabled .search-filters-sheet-done {
    width: 100%;
    min-height: 44px;
    touch-action: manipulation;
  }

  html.js-enabled .search-filters-panel .form-select-sm {
    font-size: 16px;
  }

  html.js-enabled .mobile-filter-overlay,
  html.js-enabled .mobile-filter-overlay[hidden] {
    display: none !important;
  }

  html.js-enabled .sidebar-stack {
    margin-bottom: 0;
    min-height: 0;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }
}

.map-mode-hidden {
  display: none;
}

.result-image--placeholder {
  background: linear-gradient(135deg, #e9f3ec, #edf4ef);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-image-placeholder-label {
  color: var(--lv-primary-dark);
  font-weight: 800;
  font-size: .9rem;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--lv-border);
  border-radius: 999px;
  padding: .45rem .75rem;
}

@media (max-width: 1199.98px) {
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .split-layout {
    grid-template-columns: minmax(0, 1fr) 42%;
  }

  .split-layout .result-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .list-mode .result-card {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .layout-shell {
    display: block;
  }

  .sidebar-stack {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 1rem;
  }

  .sidebar-saved-tools {
    display: none;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }

  .split-layout,
  .list-mode {
    display: block;
  }

  .split-layout .result-card,
  .list-mode .result-card {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .split-layout .result-image-frame,
  .split-layout .result-image-carousel,
  .list-mode .result-image-frame,
  .list-mode .result-image-carousel {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .split-layout .result-image-frame,
  .split-layout .result-image-slide,
  .split-layout .result-image-slide img,
  .list-mode .result-image-frame,
  .list-mode .result-image-slide,
  .list-mode .result-image-slide img {
    min-height: 0;
    border-bottom-left-radius: 0;
  }

  .split-layout .map-panel {
    position: static;
    min-height: 420px;
    margin-bottom: 1rem;
  }

  .split-layout .result-card p.text-secondary {
    display: block;
  }

  .split-layout .result-actions-buttons .btn:nth-child(n+2) {
    display: inline-flex;
  }

  .split-layout .split-hide {
    display: block;
  }
}

@media (max-width: 575.98px) {
  body.search-page .page-hero {
    padding: 1.8rem 0 4.5rem;
  }

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

  .result-toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .result-toolbar-sort {
    width: 100%;
  }

  .result-toolbar-view,
  .mode-switcher {
    width: 100%;
    margin-left: 0;
  }

  .mode-btn {
    flex: 1;
  }

  .sort-select {
    width: 100%;
    flex: 1;
  }
}

#searchResults.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.search-layout {
  position: relative;
  width: 100%;
  min-height: 280px;
}

.search-results-panel.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.search-layout--list .search-map-panel {
  display: none;
}

.search-layout--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
  gap: 1rem;
  align-items: start;
}

.search-layout--split .search-map-panel {
  position: sticky;
  top: 92px;
}

.search-layout--map .search-results-panel {
  display: none;
}

.search-layout--map .search-map-panel {
  display: block;
}

.search-map-panel.has-map {
  background: none;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  text-align: left;
}

.search-map,
.search-map.map-canvas {
  min-height: 520px;
  width: 100%;
}

.search-layout--map .search-map,
.search-layout--map .search-map.map-canvas {
  min-height: 680px;
}

.search-map-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--lv-muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
}

.search-map-panel {
  position: relative;
}

/* Custom map tools: override Mapbox .mapboxgl-ctrl button sizing that clips labels/icons */
.mapboxgl-ctrl.search-map-tools-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: min(240px, calc(100vw - 48px));
  background: transparent;
  box-shadow: none;
  border: 0;
}

.search-map-tools-stack .search-map-tool-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(31, 60, 47, .18);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 20px rgba(16, 36, 27, .16);
}

.search-map-tools-stack .search-map-tool-card .search-map-tool-btn,
.mapboxgl-ctrl.search-map-tools-stack button.search-map-tool-btn {
  flex: 1 1 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: auto !important;
  min-width: 0;
  height: auto !important;
  min-height: 40px;
  margin: 0;
  padding: .55rem .9rem !important;
  border: 0 !important;
  border-right: 1px solid rgba(31, 60, 47, .12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  color: #355245 !important;
  cursor: pointer;
  font: inherit;
  line-height: 1.1;
  box-shadow: none !important;
}

.search-map-tools-stack .search-map-tool-card .search-map-tool-btn:last-child,
.mapboxgl-ctrl.search-map-tools-stack button.search-map-tool-btn:last-child {
  border-right: 0 !important;
}

.search-map-tools-stack .search-map-tool-card .search-map-tool-btn:hover,
.mapboxgl-ctrl.search-map-tools-stack button.search-map-tool-btn:hover {
  background: #f3f7f4 !important;
  background-image: none !important;
  color: #1f3c2f !important;
}

.search-map-tools-stack .search-map-tool-card .search-map-tool-btn.is-active,
.mapboxgl-ctrl.search-map-tools-stack button.search-map-tool-btn.is-active {
  background: #165a39 !important;
  background-image: none !important;
  color: #fff !important;
}

.search-map-tools-stack .search-map-tool-card .search-map-tool-btn:focus-visible {
  outline: 2px solid #b88a1b;
  outline-offset: -2px;
  z-index: 1;
}

.search-map-tile-toggle .search-map-tile-btn {
  min-width: 88px;
}

.search-map-tile-name {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.search-map-size-toggle {
  width: fit-content;
}

.search-map-size-toggle .search-map-size-btn,
.mapboxgl-ctrl.search-map-tools-stack .search-map-size-toggle button.search-map-size-btn {
  width: 44px !important;
  min-width: 44px !important;
  flex: 0 0 44px;
  padding: .45rem !important;
}

.search-map-measure-toggle {
  width: fit-content;
}

.search-map-measure-toggle .search-map-measure-btn,
.mapboxgl-ctrl.search-map-tools-stack .search-map-measure-toggle button.search-map-measure-btn {
  width: 44px !important;
  min-width: 44px !important;
  flex: 0 0 44px;
  padding: .45rem !important;
  border-right: 0 !important;
}

.search-map-tool-icon {
  width: 20px !important;
  height: 20px !important;
  display: block;
  flex: 0 0 20px;
  overflow: visible;
}

.search-map-measure-readout {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  max-width: 420px;
  margin: 0 auto;
  padding: .7rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 60, 47, .16);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(22, 90, 57, .16);
  color: #1f3c2f;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.search-map-measure-readout.is-complete {
  border-color: rgba(184, 138, 27, .45);
  background: rgba(255, 248, 230, .97);
}

.lv-map-measure-marker {
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.lv-map-measure-marker-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 3px auto 0;
  border-radius: 50%;
  border: 3px solid #1e3a8a;
  background: #f0b429;
  box-shadow: 0 2px 10px rgba(30, 58, 138, .38);
  color: #1e3a8a;
}

.lv-map-measure-marker-disc svg {
  width: 14px;
  height: 14px;
  display: block;
}

.lv-map-measure-label {
  padding: .28rem .58rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 138, 27, .55);
  background: rgba(255, 248, 230, .97);
  box-shadow: 0 6px 16px rgba(22, 90, 57, .18);
  color: #1f3c2f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.search-map-panel.is-measuring .mapboxgl-canvas-container {
  cursor: crosshair;
}

body.search-map-expanded-mode {
  overflow: hidden;
}

body.search-map-expanded-mode #searchMapPanel {
  position: fixed;
  top: 92px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1040;
  width: auto;
  min-height: 0;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(16, 36, 27, .28);
  overflow: hidden;
}

body.search-map-expanded-mode #searchMapPanel .search-map,
body.search-map-expanded-mode #searchMapPanel .search-map.map-canvas {
  min-height: 100%;
  height: 100%;
}

.search-map-panel.is-fullscreen {
  border-radius: 0;
  background: #101816;
}

.search-map-panel.is-fullscreen .search-map,
.search-map-panel.is-fullscreen .search-map.map-canvas {
  min-height: 100%;
  height: 100%;
}

.map-popup {
  font-size: .85rem;
  line-height: 1.45;
}

.map-popup a {
  display: inline-block;
  margin-top: .35rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .search-layout--split {
    display: block;
  }

  .search-layout--split .search-map-panel {
    position: static;
    margin-top: 1rem;
  }

  .search-map,
  .search-map.map-canvas {
    min-height: 420px;
  }

  .search-map-tile-name {
    font-size: .76rem;
  }

  body.search-map-expanded-mode #searchMapPanel {
    top: 72px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
}

.listing-attribution {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  color: #8a908c;
  font-size: 0.68rem;
  line-height: 1.35;
}

.result-actions .listing-attribution {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0 auto 0 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-actions-buttons {
  flex: 0 0 auto;
}

.listing-attribution-line + .listing-attribution-line {
  margin-top: 2px;
}

.listing-office-name {
  text-transform: uppercase;
}

.listing-attribution .idx-mark {
  min-width: 28px;
  height: 14px;
  margin: 0 3px;
  padding: 0 4px;
  font-size: 8px;
}

.idx-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 22px;
  margin: 0 4px;
  padding: 0 8px;
  background: #111;
  color: #fff;
  font: 700 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  vertical-align: middle;
}
