@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap");


/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f2f0eb;
  color: #111;
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================
   GLOBAL HEADER
========================================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  height: 104px;

  padding: 0 4vw;

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.16
    );

  background: #0a0a0a;

  color: #fff;
}


.brand {
  display: inline-flex;

  flex-direction: column;

  align-items: flex-start;

  width: fit-content;

  color: #fff;

  text-decoration: none;
}


.brand .brokerage-name {
  display: block;

  color: #fff;

  font-size: 11px;

  font-weight: 600;

  line-height: 1.3;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


.brand .agent-name {
  display: block;

  margin-top: 4px;

  color:
    rgba(
      255,
      255,
      255,
      0.82
    );

  font-size: 7px;

  font-weight: 500;

  line-height: 1.3;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}


.desktop-nav {
  display: flex;

  align-items: center;

  gap: 27px;
}


.desktop-nav a {
  position: relative;

  color: #fff;

  text-decoration: none;

  font-size: 10px;

  font-weight: 500;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.desktop-nav a::after {
  content: "";

  position: absolute;

  left: 0;

  right: 100%;

  bottom: -10px;

  height: 1px;

  background: #fff;

  transition:
    right
    0.2s ease;
}


.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 0;
}


.header-actions {
  justify-self: end;

  display: flex;

  align-items: center;

  gap: 22px;
}


.header-signin {
  color: #fff;

  text-decoration: none;

  font-size: 10px;

  font-weight: 500;

  letter-spacing: 0.14em;
}


.header-contact {
  padding: 13px 18px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.55
    );

  color: #fff;

  text-decoration: none;

  font-size: 9px;

  font-weight: 500;

  letter-spacing: 0.15em;

  transition:
    background
    0.2s ease,
    color
    0.2s ease;
}


.header-contact:hover {
  background: #fff;

  color: #111;
}


/* =========================================
   BROKERAGE IDENTIFICATION BAR
========================================= */

.stellar-brokerage-disclosure {
  position: relative;

  z-index: 95;

  width: 100%;

  margin-top: 104px;

  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 24px;

  padding:
    15px
    4vw;

  border-bottom:
    1px solid
    rgba(
      17,
      17,
      17,
      0.14
    );

  background: #fff;

  color: #111;
}


.stellar-brokerage-logo {
  display: block;

  width: 145px;

  max-width: 100%;

  height: auto;
}


.stellar-brokerage-identity {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}


.stellar-brokerage-identity strong {
  color: #111;

  font-size: 12px;

  font-weight: 600;

  line-height: 1.35;
}


.stellar-brokerage-identity span {
  color:
    rgba(
      17,
      17,
      17,
      0.68
    );

  font-size: 9px;

  line-height: 1.45;
}


.stellar-brokerage-contact {
  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 3px;

  text-align: right;
}


.stellar-brokerage-contact a,
.stellar-brokerage-contact span {
  color: #111;

  font-size: 9px;

  line-height: 1.45;
}


.stellar-brokerage-contact a {
  text-decoration: underline;

  text-underline-offset: 2px;
}


/* =========================================
   HERO
========================================= */

.search-hero {
  padding:
    80px
    7vw
    80px;

  background: #111;

  color: white;
}


.search-hero-grid {
  display: grid;

  grid-template-columns:
    1.25fr
    0.75fr;

  gap: 8vw;

  align-items: end;
}


.search-hero h1 {
  margin: 0;

  font-size:
    clamp(
      70px,
      9vw,
      145px
    );

  font-weight: 300;

  line-height: 0.82;

  letter-spacing: -0.065em;
}


.search-hero h1 span {
  display: block;

  font-family:
    "Playfair Display",
    serif;

  font-style: italic;

  font-weight: 500;
}


.search-hero-grid > p {
  margin: 0;

  max-width: 420px;

  color: #aaa;

  font-family:
    "Playfair Display",
    serif;

  font-size: 19px;

  line-height: 1.55;
}


/* =========================================
   SEARCH WORKSPACE
========================================= */

.search-workspace {
  min-height: 800px;

  display: grid;

  grid-template-columns:
    380px
    1fr;
}


/* =========================================
   FILTER PANEL
========================================= */

.filters-panel {
  padding:
    42px
    35px
    70px;

  border-right:
    1px solid
    #d0ccc5;

  background: #f8f7f3;
}


.filters-heading {
  margin-bottom: 35px;

  display: flex;

  justify-content: space-between;

  align-items: flex-end;
}


.filters-heading span,
.filter-group > span {
  color: #777;

  font-size: 8px;

  letter-spacing: 0.16em;
}


.filters-heading h2 {
  margin:
    8px
    0
    0;

  font-family:
    "Playfair Display",
    serif;

  font-size: 27px;

  font-weight: 500;
}


.filters-heading button {
  padding:
    0
    0
    4px;

  border: 0;

  border-bottom:
    1px solid
    #777;

  background: transparent;

  color: #777;

  cursor: pointer;

  font-size: 8px;

  letter-spacing: 0.12em;
}


#propertySearchForm {
  display: flex;

  flex-direction: column;

  gap: 22px;
}


.filter-group {
  display: flex;

  flex-direction: column;

  gap: 9px;
}


.filter-group input,
.filter-group select {
  width: 100%;

  height: 50px;

  padding:
    0
    13px;

  border:
    1px solid
    #d0ccc5;

  border-radius: 0;

  outline: none;

  background: white;

  color: #111;

  font-size: 12px;
}


.filter-group input:focus,
.filter-group select:focus {
  border-color: #111;
}


.two-column-filter {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 10px;
}


.filter-checks {
  display: flex;

  flex-wrap: wrap;

  gap:
    10px
    15px;
}


.filter-checks label {
  display: flex;

  align-items: center;

  gap: 6px;

  font-size: 10px;

  color: #555;
}


.filter-checks input {
  accent-color: #111;
}


.search-submit-button {
  height: 54px;

  margin-top: 8px;

  border: 0;

  background: #111;

  color: white;

  cursor: pointer;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.15em;

  transition:
    background
    0.2s ease;
}


.search-submit-button:hover {
  background: #2a2a2a;
}


/* =========================================
   RESULTS
========================================= */

.results-panel {
  padding:
    42px
    4vw
    80px;
}


.results-topbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 30px;
}


.results-topbar > div:first-child {
  display: flex;

  flex-direction: column;
}


.results-topbar span {
  color: #888;

  font-size: 8px;

  letter-spacing: 0.16em;
}


.results-topbar strong {
  margin-top: 7px;

  font-size: 18px;

  font-weight: 500;
}


.results-actions {
  display: flex;

  gap: 10px;
}


.results-actions select,
.save-search-button {
  height: 42px;

  padding:
    0
    15px;

  border:
    1px solid
    #cbc7bf;

  background: transparent;

  cursor: pointer;

  font-size: 9px;
}


.save-search-button {
  background: #111;

  color: white;

  border-color: #111;

  letter-spacing: 0.12em;

  transition:
    background
    0.2s ease;
}


.save-search-button:hover {
  background: #2a2a2a;
}


.active-filters {
  min-height: 55px;

  padding:
    15px
    0;

  display: flex;

  gap: 8px;

  flex-wrap: wrap;
}


.filter-chip {
  padding:
    8px
    10px;

  background: #e5e2db;

  font-size: 9px;
}


/* =========================================
   IDX PRE-LAUNCH STATE
========================================= */

.search-awaiting-idx {
  display: block;
}


.idx-placeholder {
  min-height: 540px;

  padding:
    72px
    64px;

  border:
    1px solid
    rgba(
      17,
      17,
      17,
      0.13
    );

  background:
    linear-gradient(
      135deg,
      #f8f6f1 0%,
      #eeeae2 100%
    );

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: flex-start;
}


.idx-eyebrow {
  margin-bottom: 28px;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.22em;

  color:
    rgba(
      17,
      17,
      17,
      0.52
    );
}


.idx-placeholder h2 {
  max-width: 760px;

  margin: 0;

  font-family:
    "Playfair Display",
    serif;

  font-size:
    clamp(
      36px,
      4vw,
      66px
    );

  line-height: 0.98;

  font-weight: 500;

  letter-spacing: -0.035em;

  color: #111;
}


.idx-placeholder h2 em {
  display: block;

  margin-top: 8px;

  font-weight: 500;
}


.idx-placeholder p {
  max-width: 650px;

  margin:
    34px
    0
    0;

  font-size: 15px;

  line-height: 1.8;

  color:
    rgba(
      17,
      17,
      17,
      0.68
    );
}


.idx-placeholder-actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 38px;
}


.idx-primary-action,
.idx-secondary-action {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 52px;

  padding:
    0
    22px;

  text-decoration: none;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.15em;

  transition:
    background
    0.2s ease,
    color
    0.2s ease,
    border-color
    0.2s ease;
}


.idx-primary-action {
  background: #111;

  border:
    1px solid
    #111;

  color: #fff;
}


.idx-primary-action:hover {
  background: #2b2b2b;
}


.idx-secondary-action {
  border:
    1px solid
    rgba(
      17,
      17,
      17,
      0.25
    );

  color: #111;
}


.idx-secondary-action:hover {
  border-color: #111;
}


.idx-placeholder small {
  display: block;

  margin-top: 44px;

  max-width: 560px;

  font-size: 9px;

  line-height: 1.7;

  letter-spacing: 0.1em;

  color:
    rgba(
      17,
      17,
      17,
      0.42
    );
}


/* =========================================
   SAVE SEARCH MODAL
========================================= */

.save-search-modal {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 25px;

  background:
    rgba(
      0,
      0,
      0,
      0.68
    );

  opacity: 0;

  visibility: hidden;

  transition:
    opacity
    0.2s ease,
    visibility
    0.2s ease;
}


.save-search-modal.open {
  display: flex;

  opacity: 1;

  visibility: visible;
}


.save-search-modal-card {
  position: relative;

  width: 100%;

  max-width: 530px;

  padding: 45px;

  background: #f5f3ee;

  color: #111;

  box-shadow:
    0
    30px
    80px
    rgba(
      0,
      0,
      0,
      0.35
    );
}


.modal-close {
  position: absolute;

  top: 18px;

  right: 21px;

  width: 38px;

  height: 38px;

  display: grid;

  place-items: center;

  padding: 0;

  border: 0;

  background: transparent;

  color: #111;

  cursor: pointer;

  font-size: 25px;

  line-height: 1;
}


.modal-eyebrow {
  display: block;

  color: #777;

  font-size: 8px;

  letter-spacing: 0.18em;
}


.save-search-modal-card h2 {
  margin:
    18px
    0
    35px;

  font-size: 47px;

  font-weight: 300;

  line-height: 0.9;

  letter-spacing: -0.04em;
}


.save-search-modal-card h2 em {
  display: block;

  font-family:
    "Playfair Display",
    serif;

  font-weight: 500;
}


.save-search-modal-card >
label:not(.modal-alert-option) {
  display: flex;

  flex-direction: column;

  gap: 9px;

  color: #777;

  font-size: 8px;

  letter-spacing: 0.14em;
}


.save-search-modal-card
label
input[type="text"] {
  width: 100%;

  height: 54px;

  padding:
    0
    14px;

  border:
    1px solid
    #cbc7bf;

  background: white;

  color: #111;

  outline: none;

  font-size: 12px;
}


.save-search-modal-card
label
input[type="text"]:focus {
  border-color: #111;
}


.modal-alert-option {
  margin:
    20px
    0;

  display: flex;

  gap: 8px;

  align-items: flex-start;

  color: #555;

  font-size: 10px;

  line-height: 1.5;

  letter-spacing: 0;
}


.modal-alert-option input {
  margin-top: 2px;

  accent-color: #111;
}


.modal-save-button {
  width: 100%;

  height: 55px;

  border: 0;

  background: #111;

  color: white;

  cursor: pointer;

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.14em;

  transition:
    background
    0.2s ease,
    opacity
    0.2s ease;
}


.modal-save-button:hover {
  background: #292929;
}


.modal-save-button:disabled {
  cursor: default;

  opacity: 0.6;
}


#saveSearchMessage {
  min-height: 15px;

  margin:
    15px
    0
    0;

  color: #555;

  font-size: 10px;

  line-height: 1.5;
}


/* =========================================
   LISTING CARDS
========================================= */

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

.listing-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d0ccc5;
  background: #fff;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px
    rgba(
      0,
      0,
      0,
      0.08
    );
}


/* PHOTO */

.listing-photo {
  position: relative;

  display: block;

  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #e8e5de;
}


.listing-photo img {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  object-position: center;

  transition:
    transform
    0.35s ease;
}


.listing-card:hover
.listing-photo img {
  transform:
    scale(
      1.025
    );
}


/* MISSING PHOTO */

.listing-photo-placeholder {
  position: absolute;

  inset: 0;

  display: grid;

  place-items: center;

  background: #e8e5de;

  color: #777;

  font-size: 9px;

  font-weight: 500;

  letter-spacing: 0.18em;
}


/* STATUS */

.listing-status {
  position: absolute;

  left: 12px;

  bottom: 12px;

  z-index: 2;

  padding:
    7px
    9px;

  background:
    rgba(
      17,
      17,
      17,
      0.9
    );

  color: #fff;

  font-size: 7px;

  font-weight: 600;

  letter-spacing: 0.14em;
}


/* CONTENT */

.listing-content {
  padding:
    17px
    18px
    18px;
}


.listing-content > span {
  display: block;

  min-height: 14px;

  color: #777;

  font-size: 8px;

  line-height: 1.4;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* PRICE */

.listing-content h3 {
  margin:
    7px
    0
    4px;

  color: #111;

  font-family:
    "Playfair Display",
    serif;

  font-size: 25px;

  font-weight: 500;

  line-height: 1.1;
}


/* ADDRESS */

.listing-address {
  min-height: 38px;

  margin: 0;

  color: #222;

  font-size: 12px;

  font-weight: 500;

  line-height: 1.5;
}


/* BEDS / BATHS / SQFT */

.listing-meta {
  margin-top: 14px;

  padding-top: 13px;

  display: flex;

  align-items: center;

  gap: 12px;

  flex-wrap: wrap;

  border-top:
    1px solid
    #e1ddd6;

  color: #555;

  font-size: 8px;

  font-weight: 500;

  letter-spacing: 0.05em;
}


/* FOOTER */

.listing-footer {
  margin-top: 15px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;
}


.listing-footer a {
  padding-bottom: 3px;

  border-bottom:
    1px solid
    #111;

  color: #111;

  font-size: 8px;

  font-weight: 600;

  letter-spacing: 0.1em;
}


.listing-footer small {
  overflow: hidden;

  color: #999;

  font-size: 8px;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* OPTIONAL SAVE BUTTON */

.save-home-button {
  position: absolute;

  top: 12px;

  right: 12px;

  z-index: 3;

  width: 38px;

  height: 38px;

  display: grid;

  place-items: center;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background:
    rgba(
      255,
      255,
      255,
      0.94
    );

  color: #111;

  cursor: pointer;

  font-size: 20px;

  line-height: 1;

  box-shadow:
    0 4px 15px
    rgba(
      0,
      0,
      0,
      0.12
    );
}


.save-home-button.saved {
  background: #111;

  color: #fff;
}


.demo-listing-note {
  margin:
    20px
    0
    0;

  color: #999;

  font-size: 9px;

  line-height: 1.5;
}


/* =========================================
   LISTING CARD RESPONSIVE
========================================= */

@media (max-width: 1250px) {

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

}


@media (max-width: 900px) {

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

}


@media (max-width: 760px) {

  .listing-grid {
    gap: 18px;
  }


  .listing-content {
    padding:
      16px
      16px
      17px;
  }


  .listing-content h3 {
    font-size: 24px;
  }


  .listing-address {
    font-size: 12px;
  }

}


/* =========================================
   FOOTER
========================================= */

.search-footer {
  padding:
    45px
    4vw;

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  gap: 50px;

  align-items: start;

  border-top:
    1px solid
    #d0ccc5;

  background: #111;

  color: #fff;
}


.search-footer > div {
  display: flex;

  flex-direction: column;

  gap: 7px;
}


.search-footer > div:first-child strong {
  color: #fff;

  font-family:
    "DM Sans",
    sans-serif;

  font-size: 15px;

  font-weight: 600;

  letter-spacing: 0.12em;
}


.search-footer > div:first-child span {
  color:
    rgba(
      255,
      255,
      255,
      0.62
    );

  font-size: 8px;

  line-height: 1.45;

  letter-spacing: 0.1em;
}


.search-footer > div:nth-child(2) {
  min-width: 120px;
}


.search-footer > div:nth-child(2) a {
  color:
    rgba(
      255,
      255,
      255,
      0.62
    );

  font-size: 9px;

  line-height: 1.45;
}


.search-footer > div:nth-child(2) a:hover {
  color: #fff;
}


.search-footer-brokerage {
  justify-self: end;

  align-items: flex-end;

  text-align: right;
}


.search-footer-brokerage strong {
  color: #fff;

  font-family:
    "DM Sans",
    sans-serif;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.04em;
}


.search-footer-brokerage span,
.search-footer-brokerage a {
  color:
    rgba(
      255,
      255,
      255,
      0.62
    );

  font-size: 8px;

  line-height: 1.45;
}


.search-footer-brokerage a:hover {
  color: #fff;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

  .site-header {
    grid-template-columns:
      1fr
      auto;
  }


  .desktop-nav {
    display: none;
  }

}


@media (max-width: 1000px) {

  .search-workspace {
    grid-template-columns:
      320px
      1fr;
  }


  .search-hero-grid {
    grid-template-columns:
      1fr;
  }


  .stellar-brokerage-disclosure {
    grid-template-columns:
      auto
      1fr;

    gap: 16px;
  }


  .stellar-brokerage-contact {
    grid-column:
      1
      /
      -1;

    flex-direction: row;

    flex-wrap: wrap;

    align-items: flex-start;

    gap:
      6px
      18px;

    text-align: left;
  }


  .search-footer {
    grid-template-columns:
      1fr
      1fr;

    gap: 30px;
  }


  .search-footer-brokerage {
    grid-column:
      1
      /
      -1;

    justify-self: start;

    align-items: flex-start;

    text-align: left;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {

  .search-workspace {
    grid-template-columns:
      1fr;
  }


  .filters-panel {
    border-right: 0;

    border-bottom:
      1px solid
      #d0ccc5;
  }


  .results-panel {
    padding-left: 24px;

    padding-right: 24px;
  }


  .results-topbar {
    align-items: flex-start;

    flex-direction: column;
  }

}


@media (max-width: 700px) {

  .site-header {
    height: 82px;

    padding:
      0
      20px;

    background: #0a0a0a;
  }


  .brand .brokerage-name {
    font-size: 7px;

    letter-spacing: 0.055em;
  }


  .brand .agent-name {
    font-size: 6px;

    letter-spacing: 0.045em;
  }


  .header-signin {
    display: none;
  }


  .header-contact {
    padding:
      10px
      12px;

    font-size: 8px;
  }


  .stellar-brokerage-disclosure {
    margin-top: 82px;

    grid-template-columns:
      1fr;

    align-items: start;

    gap: 10px;

    padding:
      14px
      20px;

    background: #fff;

    color: #111;
  }


  .stellar-brokerage-logo {
    width: 125px;
  }


  .stellar-brokerage-identity strong {
    color: #111;

    font-size: 11px;
  }


  .stellar-brokerage-identity span {
    color:
      rgba(
        17,
        17,
        17,
        0.68
      );

    font-size: 8px;
  }


  .stellar-brokerage-contact {
    grid-column: auto;

    flex-direction: column;

    align-items: flex-start;

    gap: 3px;

    text-align: left;
  }


  .stellar-brokerage-contact a,
  .stellar-brokerage-contact span {
    color: #111;

    font-size: 8px;
  }


  .search-hero {
    padding:
      55px
      24px
      55px;
  }


  .search-hero h1 {
    font-size:
      clamp(
        55px,
        17vw,
        90px
      );
  }


  .search-hero-grid > p {
    font-size: 16px;
  }


  .filters-panel {
    padding:
      35px
      24px
      50px;
  }


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


  .idx-placeholder {
    min-height: 440px;

    padding:
      48px
      24px;
  }


  .idx-placeholder h2 {
    font-size: 38px;
  }


  .idx-placeholder p {
    font-size: 14px;
  }


  .idx-placeholder-actions {
    width: 100%;

    flex-direction: column;

    align-items: stretch;
  }


  .idx-primary-action,
  .idx-secondary-action {
    width: 100%;
  }


  .save-search-modal {
    padding: 15px;
  }


  .save-search-modal-card {
    padding:
      38px
      24px
      28px;
  }


  .save-search-modal-card h2 {
    font-size: 39px;
  }


  .search-footer {
    grid-template-columns:
      1fr;

    gap: 28px;

    padding:
      40px
      24px;
  }


  .search-footer-brokerage {
    grid-column: auto;

    justify-self: start;

    align-items: flex-start;

    text-align: left;
  }

}
/* =========================================================
   INTERACTIVE LISTING MAP
========================================================= */
.listing-map-panel { margin: 0 0 28px; border: 1px solid rgba(17,17,17,.14); background:#fff; }
.listing-map-heading { min-height:72px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid rgba(17,17,17,.12); }
.listing-map-heading div { display:flex; flex-direction:column; gap:5px; }
.listing-map-heading span { font-size:8px; letter-spacing:.16em; color:#8b6d36; font-weight:600; }
.listing-map-heading strong { font-size:13px; font-weight:500; }
.listing-map-heading button { border:1px solid #111; background:transparent; padding:10px 13px; font:600 8px/1 "DM Sans",sans-serif; letter-spacing:.12em; cursor:pointer; }
.listing-map { width:100%; height:500px; background:#e8e5de; }
.listing-map-note { margin:0; padding:10px 18px 13px; color:rgba(17,17,17,.62); font-size:9px; line-height:1.45; }
.map-price-marker { background:#111; color:#fff; border:2px solid #fff; border-radius:999px; box-shadow:0 2px 9px rgba(0,0,0,.28); padding:6px 9px; width:max-content!important; height:auto!important; font:600 10px/1 "DM Sans",sans-serif; white-space:nowrap; }
.map-price-marker:hover { transform:scale(1.06); background:#a97d32; }
.listing-map-popup { width:220px; font-family:"DM Sans",sans-serif; }
.listing-map-popup img { width:100%; height:120px; object-fit:cover; display:block; margin:0 0 9px; background:#ddd; }
.listing-map-popup strong { display:block; font-size:17px; margin-bottom:4px; }
.listing-map-popup p { margin:0 0 8px; font-size:11px; line-height:1.4; }
.listing-map-popup a { font-size:9px; font-weight:600; letter-spacing:.1em; }
@media (max-width: 900px) { .listing-map{height:390px}.listing-map-heading{align-items:flex-start}.listing-map-heading button{white-space:nowrap} }


/* LOCAL LIVE SEARCH UX */
.transaction-switch{display:grid;grid-template-columns:1fr 1fr;border:1px solid #bdb8ae;margin-bottom:22px}
.transaction-button{appearance:none;border:0;background:transparent;padding:13px 10px;font:600 12px/1 "DM Sans",sans-serif;letter-spacing:.11em;cursor:pointer}
.transaction-button+ .transaction-button{border-left:1px solid #bdb8ae}
.transaction-button.active{background:#111;color:#fff}
.live-filter-note{display:block;margin-top:10px;color:#777;font-size:11px;letter-spacing:.05em}
.listing-card-click{display:block;color:inherit;text-decoration:none;height:100%}
.listing-card-click:focus-visible{outline:2px solid #111;outline-offset:3px}
.listing-card:hover{transform:translateY(-2px);box-shadow:0 8px 26px rgba(0,0,0,.08)}
.listing-card{transition:transform .18s ease,box-shadow .18s ease}


.search-ai-finder-bar{background:#b99a5d;color:#111;padding:11px 4vw;display:flex;align-items:center;justify-content:center;gap:22px;font-size:12px;letter-spacing:.03em}.search-ai-finder-bar a{font-weight:700;letter-spacing:.1em;text-decoration:underline}@media(max-width:700px){.search-ai-finder-bar{justify-content:space-between;font-size:10px;padding:10px 16px}}

/* V5 Tampa Bay search autocomplete */
.local-autocomplete-menu{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:10000;background:#fff;color:#111;border:1px solid rgba(17,17,17,.18);box-shadow:0 16px 38px rgba(0,0,0,.16);max-height:340px;overflow:auto;text-align:left}
.local-autocomplete-menu[hidden]{display:none}
.local-autocomplete-menu button{width:100%;border:0;border-bottom:1px solid rgba(17,17,17,.09);background:#fff;color:#111;padding:12px 14px;text-align:left;cursor:pointer;display:block}
.local-autocomplete-menu button:hover,.local-autocomplete-menu button.active{background:#f0ece3}
.local-autocomplete-menu strong{display:block;font-size:12px;line-height:1.35}.local-autocomplete-menu small{display:block;margin-top:3px;color:#777;font-size:9px}


/* =========================================================
   V6 MOBILE ZILLOW-STYLE MAP + DRAGGABLE RESULTS SHEET
========================================================= */
.mobile-sheet-handle,.mobile-app-nav{display:none}
@media(max-width:760px){
 html,body{overscroll-behavior-y:none}
 body.search-sheet-active{overflow:hidden}
 .search-ai-finder-bar,.search-hero,.filters-panel{display:none!important}
 .search-workspace{display:block!important;min-height:calc(100dvh - 92px)!important;background:#e6e3dc!important}
 .listing-map-panel{position:fixed!important;z-index:20!important;left:0!important;right:0!important;top:92px!important;bottom:76px!important;margin:0!important;border:0!important;background:#e6e3dc!important}
 .listing-map-heading,.listing-map-note{display:none!important}
 .listing-map{height:100%!important;min-height:0!important}
 .results-panel{position:fixed!important;z-index:80!important;left:0!important;right:0!important;bottom:76px!important;height:min(64dvh,680px)!important;max-height:calc(100dvh - 112px)!important;padding:0 18px 24px!important;margin:0!important;background:#fff!important;border-radius:28px 28px 0 0!important;box-shadow:0 -10px 36px rgba(0,0,0,.18)!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;transition:height .28s cubic-bezier(.2,.8,.2,1)!important}
 .results-panel.sheet-collapsed{height:190px!important;overflow:hidden!important}
 .results-panel.sheet-expanded{height:calc(100dvh - 118px)!important}
 .mobile-sheet-handle{position:sticky!important;top:0!important;z-index:20!important;width:100%!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;background:linear-gradient(#fff 78%,rgba(255,255,255,.95))!important;display:flex!important;align-items:center!important;justify-content:center!important;touch-action:none!important;cursor:grab!important}
 .mobile-sheet-handle:active{cursor:grabbing!important}
 .mobile-sheet-handle span{display:block!important;width:78px!important;height:7px!important;border-radius:999px!important;background:#b9b9b9!important}
 .results-topbar{min-height:84px!important;padding:6px 8px 14px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;border-bottom:1px solid #e6e6e6!important;background:#fff!important}
 .results-topbar>div:first-child{display:flex!important;flex-direction:column!important;gap:4px!important}
 #resultsLabel{display:none!important}
 #resultCount{font-size:25px!important;line-height:1.05!important;letter-spacing:-.02em!important;text-transform:none!important}
 .results-actions{margin:0!important}.save-search-button{min-height:42px!important;border:1px solid #111!important;border-radius:999px!important;padding:0 16px!important;background:#fff!important;color:#111!important;font-size:10px!important;font-weight:600!important;letter-spacing:.08em!important;white-space:nowrap!important}
 .active-filters{padding:10px 0!important;margin:0!important;overflow-x:auto!important;white-space:nowrap!important;flex-wrap:nowrap!important}
 .listing-grid{display:grid!important;grid-template-columns:1fr!important;gap:16px!important;padding-bottom:16px!important}
 .listing-card{border-radius:20px!important;overflow:hidden!important;border:1px solid #dedede!important;background:#fff!important;box-shadow:none!important}
 .listing-content{padding:16px!important}
 .mobile-app-nav{position:fixed!important;z-index:120!important;left:0!important;right:0!important;bottom:0!important;height:76px!important;padding:8px 9px max(8px,env(safe-area-inset-bottom))!important;background:#090909!important;display:grid!important;grid-template-columns:repeat(5,1fr)!important;align-items:center!important;border-top:1px solid rgba(255,255,255,.08)!important}
 .mobile-app-nav a{height:60px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;color:#fff!important;text-decoration:none!important;font-family:"DM Sans",sans-serif!important}
 .mobile-app-nav a>span{font-size:23px!important;line-height:1!important}.mobile-app-nav small{font-size:8px!important;letter-spacing:.13em!important}
 .mobile-app-nav .mobile-app-ai{width:60px!important;height:60px!important;margin:auto!important;border-radius:50%!important;background:#d8ad5a!important;color:#090909!important}
 .mobile-app-nav .active:not(.mobile-app-ai){color:#d8ad5a!important}
 .leaflet-control-zoom{margin-top:12px!important}
}

/* =========================================================
   V7 DESKTOP SEARCH — ZILLOW-LIKE SPLIT MAP + RESULTS
   Desktop: persistent map left, independently scrolling homes right.
   Mobile: retains draggable bottom sheet.
========================================================= */
@media (min-width: 761px) {
  body { overflow: hidden; }
  .search-ai-finder-bar,
  .search-hero { display:none !important; }

  .search-workspace {
    height: calc(100dvh - 88px) !important;
    min-height: 620px !important;
    display: grid !important;
    grid-template-rows: auto minmax(0,1fr) !important;
    grid-template-columns: 1fr !important;
    background:#f4f3ef !important;
  }

  .filters-panel {
    grid-row:1 !important;
    width:100% !important;
    padding:12px clamp(22px,2.6vw,42px) 13px !important;
    border:0 !important;
    border-bottom:1px solid rgba(255,255,255,.12) !important;
    background:#101214 !important;
    color:#fff !important;
    overflow:visible !important;
    z-index:70 !important;
  }
  .filters-heading { display:none !important; }
  #propertySearchForm {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:9px !important;
    flex-wrap:nowrap !important;
  }
  .transaction-switch {
    flex:0 0 176px !important;
    margin:0 !important;
    border:1px solid rgba(255,255,255,.28) !important;
    border-radius:999px !important;
    overflow:hidden !important;
  }
  .transaction-button {
    min-height:42px !important;
    padding:0 13px !important;
    color:#fff !important;
    font-size:9px !important;
  }
  .transaction-button + .transaction-button { border-left:1px solid rgba(255,255,255,.22) !important; }
  .transaction-button.active { background:#d8ad5a !important; color:#080808 !important; }

  .filter-group {
    position:relative !important;
    flex:0 0 auto !important;
    gap:0 !important;
  }
  .filter-group > span { display:none !important; }
  .filter-group input,
  .filter-group select {
    min-height:42px !important;
    height:42px !important;
    padding:0 14px !important;
    border:1px solid rgba(255,255,255,.25) !important;
    border-radius:999px !important;
    background:#171a1e !important;
    color:#fff !important;
    font-size:10px !important;
  }
  #locationInput {
    width:clamp(220px,24vw,390px) !important;
    background:#fff !important;
    color:#111 !important;
    border-color:#fff !important;
  }
  .two-column-filter {
    display:flex !important;
    gap:9px !important;
  }
  .two-column-filter .filter-group select { width:118px !important; }
  #beds,#baths { width:96px !important; }
  #propertyType { width:138px !important; }
  #listingStatus { width:126px !important; }
  #keywords { width:130px !important; }
  .checkbox-row { display:none !important; }
  .search-button-row { margin:0 0 0 auto !important; display:flex !important; gap:8px !important; }
  .search-button-row button,
  #propertySearchForm > button[type="submit"] {
    min-height:42px !important;
    border-radius:999px !important;
  }

  .results-panel {
    grid-row:2 !important;
    min-height:0 !important;
    height:100% !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,58%) minmax(390px,42%) !important;
    grid-template-rows:auto auto minmax(0,1fr) !important;
    overflow:hidden !important;
    background:#fff !important;
  }
  .mobile-sheet-handle { display:none !important; }

  .listing-map-panel {
    grid-column:1 !important;
    grid-row:1 / 4 !important;
    min-width:0 !important;
    height:100% !important;
    margin:0 !important;
    border:0 !important;
    border-right:1px solid rgba(17,17,17,.12) !important;
    background:#e5e5e1 !important;
    position:relative !important;
  }
  .listing-map-heading {
    position:absolute !important;
    top:16px !important;
    left:16px !important;
    right:auto !important;
    z-index:500 !important;
    min-height:auto !important;
    padding:10px 12px !important;
    border:0 !important;
    border-radius:12px !important;
    background:rgba(8,10,12,.9) !important;
    color:#fff !important;
    box-shadow:0 8px 24px rgba(0,0,0,.2) !important;
  }
  .listing-map-heading div { gap:2px !important; }
  .listing-map-heading span { color:#e5bd6a !important; }
  .listing-map-heading strong { color:#fff !important; font-size:10px !important; }
  .listing-map-heading button { display:none !important; }
  .listing-map { height:100% !important; min-height:0 !important; }
  .listing-map-note { display:none !important; }

  .results-topbar {
    grid-column:2 !important;
    grid-row:1 !important;
    min-height:76px !important;
    padding:16px 20px 13px !important;
    border-bottom:1px solid #e6e6e6 !important;
    background:#fff !important;
  }
  .results-topbar #resultsLabel {
    display:block !important;
    margin-bottom:5px !important;
    color:#777 !important;
    font-size:9px !important;
    letter-spacing:.13em !important;
  }
  .results-topbar #resultCount {
    color:#111 !important;
    font-size:21px !important;
    font-weight:600 !important;
    letter-spacing:-.02em !important;
    text-transform:none !important;
  }
  .save-search-button {
    border-radius:999px !important;
    padding:11px 14px !important;
  }
  .active-filters {
    grid-column:2 !important;
    grid-row:2 !important;
    min-height:0 !important;
    padding:0 20px !important;
    background:#fff !important;
  }
  .active-filters:empty { display:none !important; }

  .listing-grid {
    grid-column:2 !important;
    grid-row:3 !important;
    min-height:0 !important;
    height:100% !important;
    padding:14px 16px 38px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    align-content:start !important;
    background:#f7f7f5 !important;
  }
  .listing-card {
    min-height:190px !important;
    margin:0 !important;
    border:1px solid #dedede !important;
    border-radius:14px !important;
    overflow:hidden !important;
    background:#fff !important;
  }
  .listing-card-click {
    display:grid !important;
    grid-template-columns:44% 56% !important;
    min-height:190px !important;
  }
  .listing-photo { aspect-ratio:auto !important; min-height:190px !important; }
  .listing-content { padding:16px 17px !important; }
  .listing-content > span { font-size:7px !important; }
  .listing-content h3 { margin:7px 0 5px !important; font-size:24px !important; }
  .listing-address { font-size:11px !important; color:#333 !important; }
  .listing-meta { margin-top:13px !important; padding-top:11px !important; gap:12px !important; }
  .listing-footer { margin-top:12px !important; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  #keywords, #listingStatus { display:none !important; }
  .results-panel { grid-template-columns:minmax(0,54%) minmax(360px,46%) !important; }
}

/* V7 mobile nav sculpted around the raised AI action. */
@media (max-width:760px) {
  .mobile-app-nav {
    height:82px !important;
    padding-bottom:max(8px, env(safe-area-inset-bottom)) !important;
    overflow:visible !important;
  }
  .mobile-app-nav::before {
    content:"" !important;
    position:absolute !important;
    top:-12px !important;
    left:50% !important;
    width:92px !important;
    height:28px !important;
    transform:translateX(-50%) !important;
    border-radius:0 0 48px 48px !important;
    background:#090909 !important;
    z-index:-1 !important;
  }
  .mobile-app-nav .mobile-app-ai {
    width:66px !important;
    height:66px !important;
    margin-top:-21px !important;
    box-shadow:0 8px 24px rgba(0,0,0,.3)!important;
    border:4px solid #090909 !important;
  }
}

/* =========================================================
   V11 MOBILE MAP / RESULTS ARCHITECTURE FIX
   The map is a sibling of the results sheet, never clipped by it.
========================================================= */
@media (max-width: 760px) {
  :root {
    --mobile-search-header-h: 78px;
    --mobile-search-nav-h: 82px;
  }

  body.search-sheet-active { overflow: hidden !important; }

  .search-workspace {
    display: block !important;
    min-height: calc(100dvh - var(--mobile-search-header-h)) !important;
    background: #e6e3dc !important;
  }

  .listing-map-panel {
    position: fixed !important;
    z-index: 20 !important;
    left: 0 !important;
    right: 0 !important;
    top: var(--mobile-search-header-h) !important;
    bottom: var(--mobile-search-nav-h) !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    background: #e6e3dc !important;
    overflow: hidden !important;
  }

  .listing-map-panel .listing-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .results-panel {
    position: fixed !important;
    z-index: 80 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--mobile-search-nav-h) !important;
    height: min(52dvh, 560px) !important;
    max-height: calc(100dvh - var(--mobile-search-header-h) - 10px) !important;
    padding: 0 18px 22px !important;
    margin: 0 !important;
    background: #fff !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -10px 36px rgba(0,0,0,.20) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .results-panel.sheet-collapsed {
    height: 44px !important;
    overflow: hidden !important;
  }

  .results-panel.sheet-expanded {
    height: calc(100dvh - var(--mobile-search-header-h) - var(--mobile-search-nav-h)) !important;
  }

  .mobile-sheet-handle {
    touch-action: none !important;
  }

  .mobile-app-nav {
    bottom: 0 !important;
    min-height: var(--mobile-search-nav-h) !important;
  }

  .map-price-marker {
    padding: 5px 8px !important;
    border-width: 2px !important;
    font-size: 9px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.30) !important;
  }
}

/* Desktop search is a true sibling split: map left, results right. */
@media (min-width: 761px) {
  .search-workspace {
    height: calc(100dvh - 88px) !important;
    min-height: 620px !important;
    display: grid !important;
    grid-template-columns: minmax(0,58%) minmax(390px,42%) !important;
    grid-template-rows: auto minmax(0,1fr) !important;
  }

  .filters-panel {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }

  .listing-map-panel {
    grid-column: 1 !important;
    grid-row: 2 !important;
    position: relative !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-right: 1px solid rgba(17,17,17,.12) !important;
    overflow: hidden !important;
  }

  .results-panel {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto minmax(0,1fr) !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .results-topbar,
  .active-filters,
  .listing-grid {
    grid-column: 1 !important;
  }

  .results-topbar { grid-row: 1 !important; }
  .active-filters { grid-row: 2 !important; }
  .listing-grid { grid-row: 3 !important; }
}


/* =========================================================
   V12 MOBILE SEARCH SHEET — START LOW / TRUE TWO-WAY DRAG
========================================================= */
@media (max-width: 760px) {
  .results-panel {
    transition: height .28s cubic-bezier(.2,.8,.2,1) !important;
  }
  .results-panel.sheet-collapsed {
    height: 44px !important;
    overflow: hidden !important;
  }
  .results-topbar {
    touch-action: none !important;
  }
  .save-search-button {
    color: #111 !important;
    background: #fff !important;
    min-width: 118px !important;
    font-weight: 600 !important;
  }
  .listing-card.map-selected {
    outline: 3px solid #d8ad5a !important;
    outline-offset: -3px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.14) !important;
  }
  .leaflet-popup-pane { z-index: 95 !important; }
  .leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.28) !important;
  }
  .listing-map-popup img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
  }
  .listing-map-popup a {
    display: inline-block !important;
    margin-top: 8px !important;
    font-weight: 700 !important;
    color: #111 !important;
  }
}


/* =========================================================
   V14 MOBILE MAP SEARCH + FULL FILTER DRAWER
========================================================= */
.mobile-map-searchbar,
.mobile-filters-modal { display:none; }

@media (max-width:760px) {
  .mobile-map-searchbar {
    position:fixed;
    display:flex;
    z-index:70;
    top:calc(var(--mobile-search-header-h) + 14px);
    left:16px;
    right:16px;
    gap:10px;
    align-items:center;
    pointer-events:auto;
  }
  .mobile-map-location {
    height:54px;
    flex:1;
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 16px;
    border-radius:28px;
    background:#fff;
    box-shadow:0 5px 22px rgba(0,0,0,.18);
  }
  .mobile-map-location > span { font-size:24px; line-height:1; color:#333; }
  .mobile-map-location input {
    width:100%;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
    color:#111;
    font-size:15px;
  }
  .mobile-filter-trigger {
    position:relative;
    width:54px;
    height:54px;
    flex:0 0 54px;
    border:0;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#fff;
    box-shadow:0 5px 22px rgba(0,0,0,.18);
  }
  .mobile-filter-icon { width:24px; height:22px; display:flex; flex-direction:column; justify-content:space-between; }
  .mobile-filter-icon i { display:block; height:2px; background:#111; position:relative; }
  .mobile-filter-icon i:nth-child(1)::after,
  .mobile-filter-icon i:nth-child(2)::after,
  .mobile-filter-icon i:nth-child(3)::after {
    content:""; position:absolute; width:6px; height:6px; border:2px solid #111; border-radius:50%; background:#fff; top:50%; transform:translateY(-50%);
  }
  .mobile-filter-icon i:nth-child(1)::after { left:4px; }
  .mobile-filter-icon i:nth-child(2)::after { right:3px; }
  .mobile-filter-icon i:nth-child(3)::after { left:10px; }
  .mobile-filter-badge {
    position:absolute; right:-3px; top:-3px; min-width:20px; height:20px; padding:0 5px;
    border-radius:12px; display:grid; place-items:center; background:#d8ad5a; color:#111; border:2px solid #fff;
    font-size:10px; font-weight:800;
  }

  .mobile-filters-modal {
    position:fixed;
    inset:0;
    z-index:4000;
    background:#fff;
  }
  .mobile-filters-modal.open { display:block; }
  body.mobile-filters-open { overflow:hidden !important; }
  .mobile-filters-shell { height:100dvh; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; background:#fff; }
  .mobile-filters-header {
    min-height:74px;
    display:grid;
    grid-template-columns:70px 1fr 70px;
    align-items:center;
    border-bottom:1px solid #e8e8e8;
    padding-top:max(8px, env(safe-area-inset-top));
  }
  .mobile-filters-header strong { text-align:center; font-size:22px; }
  .mobile-filters-back,.mobile-filters-reset {
    border:0; background:transparent; color:#111; height:58px;
  }
  .mobile-filters-back { font-size:50px; font-weight:300; line-height:.8; }
  .mobile-filters-reset { font-size:15px; color:#a47b2e; font-weight:700; }
  .mobile-filters-save-row {
    min-height:72px; padding:0 22px; display:flex; justify-content:space-between; align-items:center;
    background:#f4f2ed; border-bottom:1px solid #e5e2dc; font-size:15px;
  }
  .mobile-filters-save-row button { border:0; background:transparent; color:#a47b2e; font-weight:800; font-size:15px; }
  .mobile-filters-scroll { overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding-bottom:22px; }
  .mf-section { padding:26px 22px; border-bottom:1px solid #e9e9e9; }
  .mf-section h3 { margin:0 0 16px; font-size:21px; }
  .mf-section h3:not(:first-child) { margin-top:26px; }
  .mf-section h3 small { font-size:11px; font-weight:500; color:#777; }
  .mf-segmented { display:grid; grid-template-columns:repeat(3,1fr); padding:3px; border-radius:24px; background:#eee; }
  .mf-segmented button { height:42px; border:0; background:transparent; border-radius:21px; font-size:13px; }
  .mf-segmented button.active { background:#d8ad5a; color:#111; font-weight:800; }
  .mf-two { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  .mf-two label { display:flex; flex-direction:column; gap:8px; }
  .mf-two label span { font-size:13px; font-weight:700; }
  .mf-two input,.mf-two select,.mf-full-select,.mf-keywords {
    width:100%; height:56px; border:1.5px solid #9b9b9b; border-radius:16px; background:#fff; padding:0 16px; font:inherit; color:#111;
  }
  .mf-home-types { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
  .mf-home-types button {
    min-height:96px; padding:11px 6px; border:1.5px solid #9b9b9b; border-radius:17px; background:#fff;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; font-size:12px; font-weight:700;
  }
  .mf-home-types button > span { font-size:25px; }
  .mf-home-types button.active { border:2px solid #d8ad5a; background:#fff8e9; }
  .mf-details { border-bottom:1px solid #eee; margin:0 0 26px; padding-bottom:18px; }
  .mf-details summary { list-style:none; font-size:20px; font-weight:800; padding:8px 0 18px; display:flex; justify-content:space-between; }
  .mf-details summary::-webkit-details-marker { display:none; }
  .mf-details summary::after { content:"⌄"; }
  .mf-details[open] summary::after { content:"⌃"; }
  .mf-check-list { display:flex; flex-direction:column; gap:18px; }
  .mf-check-list label { display:flex; align-items:center; gap:12px; font-size:17px; }
  .mf-check-list input[type=checkbox] { width:24px; height:24px; accent-color:#d8ad5a; }
  .mobile-filters-footer {
    padding:12px 18px max(14px, env(safe-area-inset-bottom));
    background:rgba(255,255,255,.96);
    border-top:1px solid #e4e4e4;
    box-shadow:0 -10px 25px rgba(0,0,0,.07);
  }
  .mobile-filters-footer button {
    width:100%; height:58px; border:0; border-radius:29px; background:#d8ad5a; color:#111; font-size:18px; font-weight:800;
  }

  /* Make room for the floating search/filter bar without hiding the map. */
  .leaflet-control-zoom { margin-top:78px !important; }
}



/* =========================================================
   V16 MOBILE MAP VISIBILITY + LIVE MLS AUTOCOMPLETE
========================================================= */
@media (max-width:760px) {
  .results-panel.sheet-collapsed {
    height: 44px !important;
  }
  .results-panel.sheet-collapsed .results-topbar {
    min-height: 48px !important;
    padding-top: 2px !important;
    padding-bottom: 4px !important;
  }
  .results-panel.sheet-collapsed .results-topbar h2,
  .results-panel.sheet-collapsed .results-topbar h3 {
    font-size: 18px !important;
    line-height: 1.05 !important;
  }
  .results-panel.sheet-collapsed .save-search-button {
    transform: scale(.86);
    transform-origin: right center;
  }

  .mobile-map-location .local-autocomplete-menu {
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:calc(100% + 8px) !important;
    z-index:5000 !important;
    max-height:min(48dvh,420px) !important;
    overflow:auto !important;
    border-radius:18px !important;
    background:#fff !important;
    box-shadow:0 14px 40px rgba(0,0,0,.26) !important;
    border:1px solid rgba(0,0,0,.08) !important;
  }
  .mobile-map-location .local-autocomplete-menu button {
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    gap:3px !important;
    padding:13px 15px !important;
    border:0 !important;
    border-bottom:1px solid #eee !important;
    text-align:left !important;
    background:#fff !important;
  }
  .mobile-map-location .local-autocomplete-menu button.is-listing::before {
    content:"HOME";
    color:#a47b2e;
    font-size:9px;
    font-weight:800;
    letter-spacing:.14em;
  }
  .mobile-map-location .local-autocomplete-menu strong {
    color:#111 !important;
    font-size:13px !important;
    line-height:1.25 !important;
  }
  .mobile-map-location .local-autocomplete-menu small {
    color:#777 !important;
    font-size:11px !important;
  }
}

/* Desktop/home autocomplete: real MLS listing suggestions are visually distinct. */
.local-autocomplete-menu button.is-listing::before {
  content:"HOME";
  display:block;
  margin-bottom:2px;
  color:#a47b2e;
  font-size:8px;
  font-weight:800;
  letter-spacing:.14em;
}


/* =========================================================
   V17 HANDLE-ONLY COLLAPSED SHEET + MULTI HOME TYPES
========================================================= */
@media(max-width:760px){
  .results-panel.sheet-collapsed{height:44px!important;padding-bottom:0!important;overflow:hidden!important;}
  .results-panel.sheet-collapsed .results-topbar,
  .results-panel.sheet-collapsed .active-filters,
  .results-panel.sheet-collapsed .listing-grid{display:none!important;}
  .results-panel.sheet-collapsed .mobile-sheet-handle{height:44px!important;}
  .results-panel.sheet-collapsed .mobile-sheet-handle span{width:82px!important;height:6px!important;}
  .mf-home-types button.active{border:2px solid #d8ad5a!important;background:#fff4dc!important;box-shadow:inset 0 0 0 1px rgba(216,173,90,.18)}
  .mf-home-types .mf-type-any.active{background:#f3f0e9!important;}
  .mf-section h3 small{display:block;margin-top:4px;color:#777;font-size:11px;font-weight:500;}
}



/* V24 progressive search performance */
.search-load-more-wrap {
  grid-column: 1 / -1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:20px 12px 34px;
}
.search-load-more {
  min-width:210px;
  height:48px;
  border:1px solid #111;
  border-radius:24px;
  background:#111;
  color:#fff;
  font-weight:700;
  letter-spacing:.08em;
}
.search-load-more-wrap small { color:#777; font-size:11px; }


/* V30 native map: no external map library dependency */
.native-map-tiles,.native-map-markers{position:absolute;inset:0;overflow:hidden}.native-map-tiles img{position:absolute;width:256px;height:256px;max-width:none;user-select:none;-webkit-user-drag:none}.native-map-markers{pointer-events:none}.native-map-pin,.native-map-dot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;cursor:pointer;border:0;z-index:3}.native-map-pin{min-width:52px;padding:7px 8px;border-radius:18px;background:#111;color:#fff;font:700 10px/1 "DM Sans",sans-serif;box-shadow:0 1px 5px rgba(0,0,0,.3)}.native-map-dot{width:9px;height:9px;border-radius:50%;background:#111;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}.native-map-controls{position:absolute;right:12px;top:12px;z-index:6;display:flex;flex-direction:column;box-shadow:0 1px 6px rgba(0,0,0,.2)}.native-map-controls button{width:34px;height:34px;border:0;border-bottom:1px solid #ddd;background:#fff;font-size:20px;cursor:pointer}.native-map-popup{position:absolute;z-index:8;width:230px;max-height:205px;overflow:auto;background:#fff;padding:10px;box-shadow:0 8px 30px rgba(0,0,0,.28);font-family:"DM Sans",sans-serif}.native-map-popup img{width:100%;height:90px;object-fit:cover}.native-map-popup strong{display:block;font-size:16px;margin:6px 0}.native-map-popup p{font-size:10px;margin:3px 0}.native-map-popup a{display:inline-block;margin-top:5px;font-size:9px;font-weight:700;letter-spacing:.08em}.listing-map{cursor:grab}.listing-map:active{cursor:grabbing}

/* V53 smooth map interaction + clustering */
.native-map-tiles,.native-map-markers{will-change:transform;transform:translate3d(0,0,0)}
.listing-map.is-dragging .native-map-tiles,.listing-map.is-dragging .native-map-markers{transition:none!important}
.native-map-cluster{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;cursor:pointer;z-index:4;min-width:34px;height:34px;padding:0 8px;border-radius:999px;border:2px solid #fff;background:#111;color:#fff;font:700 10px/1 "DM Sans",sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.28)}


/* V57 iPhone map gestures */
.listing-map { -webkit-user-select:none; user-select:none; touch-action:none; overscroll-behavior:contain; }
.native-map-tiles,.native-map-markers { backface-visibility:hidden; -webkit-backface-visibility:hidden; }
@media (max-width:760px){
  .native-map-controls{right:14px!important;top:74px!important;gap:1px!important;border-radius:12px!important;overflow:hidden!important;box-shadow:0 5px 22px rgba(0,0,0,.24)!important}
  .native-map-controls button{width:48px!important;height:48px!important;font-size:27px!important;font-weight:500!important;background:rgba(255,255,255,.96)!important;-webkit-tap-highlight-color:transparent!important}
  .native-map-cluster{min-width:40px!important;height:40px!important;font-size:11px!important}
}

/* =========================================================
   V60 MOBILE SEARCH — MAP FIRST + SLIDING PROPERTY PREVIEW
========================================================= */
@media (max-width:760px){
  .search-ai-finder-bar,.search-hero,.filters-panel,.listing-map-head,.listing-map-note{display:none!important}
  .global-site-header{min-height:72px!important}
  .listing-map-panel{top:var(--mobile-search-header-h)!important}
  .mobile-map-searchbar{display:flex!important;position:fixed!important;z-index:110!important;top:calc(var(--mobile-search-header-h) + 14px)!important;left:18px!important;right:18px!important;gap:10px!important;align-items:center!important;pointer-events:auto!important}
  .mobile-map-location{height:56px!important;flex:1!important;border:0!important;border-radius:28px!important;background:#fff!important;box-shadow:0 3px 18px rgba(0,0,0,.18)!important;padding:0 18px!important;display:flex!important;align-items:center!important;gap:10px!important}
  .mobile-map-location input{border:0!important;outline:0!important;width:100%!important;background:transparent!important;font-size:17px!important;color:#222!important}
  .mobile-filter-trigger{width:56px!important;height:56px!important;border-radius:50%!important;border:1px solid #d8d8d8!important;background:#fff!important;box-shadow:0 3px 18px rgba(0,0,0,.18)!important}
  .native-map-controls{display:none!important}
  .native-map-pin{min-width:54px!important;padding:7px 9px!important;border-radius:999px!important;background:#111!important;color:#fff!important;border:2px solid #fff!important;font-size:11px!important;box-shadow:0 2px 7px rgba(0,0,0,.32)!important}
  .native-map-dot{width:12px!important;height:12px!important}
  .native-map-cluster{background:#111!important;border:3px solid #fff!important;min-width:42px!important;height:42px!important;font-size:12px!important}
  .results-panel.sheet-collapsed{height:58px!important;border-radius:22px 22px 0 0!important;background:#fff!important;box-shadow:0 -3px 16px rgba(0,0,0,.16)!important;padding:0!important}
  .results-panel.sheet-collapsed .mobile-sheet-handle{height:58px!important;background:#fff!important;flex-direction:column!important;gap:5px!important}
  .results-panel.sheet-collapsed .mobile-sheet-handle span{width:68px!important;height:5px!important;background:#b7b7b7!important}
  .results-panel.sheet-collapsed .mobile-sheet-handle:after{content:attr(data-results-label);font:700 14px/1.1 "DM Sans",sans-serif;color:#111;letter-spacing:0!important}

  .mobile-map-property-preview{position:fixed;z-index:105;left:14px;right:14px;bottom:calc(var(--mobile-search-nav-h) + 66px);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.30);animation:mmpSlide .22s ease-out both}
  .mobile-map-property-preview[hidden]{display:none!important}
  .mmp-link{display:block;color:inherit;text-decoration:none}
  .mmp-photo{height:230px;position:relative;background:#e8e8e8;overflow:hidden}
  .mmp-image{width:100%;height:100%;object-fit:cover;display:block}
  .mmp-placeholder{display:flex;align-items:center;justify-content:center;font:700 12px "DM Sans",sans-serif;color:#777}
  .mmp-status{position:absolute;left:14px;top:14px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.94);font:700 11px "DM Sans",sans-serif;text-transform:uppercase}
  .mmp-close{position:absolute;left:12px;top:12px;z-index:3;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.94);font-size:26px;line-height:1;box-shadow:0 2px 8px rgba(0,0,0,.14)}
  .mmp-heart{position:absolute;right:12px;top:12px;z-index:4;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.95);font:400 31px/1 Arial;color:#111;box-shadow:0 2px 8px rgba(0,0,0,.14)}
  .mmp-body{padding:15px 18px 17px}
  .mmp-body strong{display:block;font:800 32px/1.05 "DM Sans",sans-serif;color:#111}
  .mmp-meta{margin:7px 0 5px;font:600 14px/1.25 "DM Sans",sans-serif;color:#222}
  .mmp-address{margin:0;font:500 14px/1.35 "DM Sans",sans-serif;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mmp-brokerage{margin:5px 0 0;font:500 11px/1.2 "DM Sans",sans-serif;color:#777;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  @keyframes mmpSlide{from{transform:translateY(24px);opacity:.2}to{transform:translateY(0);opacity:1}}
}

/* =========================================================
   V63 MOBILE LIST-FIRST HOME SEARCH
   Mobile defaults to a fast, scrollable listing feed. Map is optional.
========================================================= */
.mobile-search-controls{display:none}
@media (max-width:760px){
  body.mobile-list-first{background:#f6f6f4!important;overscroll-behavior-y:auto!important}
  body.mobile-list-first:not(.mobile-map-mode),
  body.mobile-list-first.search-sheet-active:not(.mobile-map-mode){overflow-x:hidden!important;overflow-y:auto!important}
  body.mobile-list-first:not(.mobile-map-mode) .search-workspace{
    display:flex!important;flex-direction:column!important;min-height:calc(100dvh - var(--mobile-search-header-h,78px))!important;
    background:#f6f6f4!important;padding:0 0 calc(var(--mobile-search-nav-h,82px) + 18px)!important
  }
  body.mobile-list-first:not(.mobile-map-mode) .listing-map-panel{display:none!important}
  body.mobile-list-first:not(.mobile-map-mode) .mobile-map-property-preview{display:none!important}
  body.mobile-list-first:not(.mobile-map-mode) .mobile-map-searchbar{
    order:1!important;position:relative!important;z-index:5!important;top:auto!important;
    left:auto!important;right:auto!important;width:auto!important;margin:0!important;padding:12px 14px 8px!important;
    background:rgba(246,246,244,.97)!important;backdrop-filter:blur(14px)!important;box-shadow:none!important;gap:9px!important
  }
  body.mobile-list-first:not(.mobile-map-mode) .mobile-map-location{
    height:52px!important;border:1px solid #d9d9d5!important;border-radius:16px!important;box-shadow:0 2px 10px rgba(0,0,0,.06)!important;
    padding:0 14px!important;background:#fff!important
  }
  body.mobile-list-first:not(.mobile-map-mode) .mobile-map-location>span{font-size:22px!important}
  body.mobile-list-first:not(.mobile-map-mode) .mobile-map-location input{font-size:15px!important;font-weight:500!important}
  body.mobile-list-first:not(.mobile-map-mode) .mobile-filter-trigger{
    width:52px!important;height:52px!important;border-radius:16px!important;box-shadow:0 2px 10px rgba(0,0,0,.06)!important
  }
  .mobile-search-controls{
    display:flex!important;order:2!important;position:relative!important;z-index:4!important;top:auto!important;
    flex-direction:column!important;gap:9px!important;padding:0 14px 10px!important;background:rgba(246,246,244,.97)!important;backdrop-filter:blur(14px)!important;
    border-bottom:1px solid #e4e4df!important
  }
  .mobile-view-switch{display:grid!important;grid-template-columns:1fr 1fr!important;background:#e7e7e2!important;border-radius:12px!important;padding:3px!important}
  .mobile-view-switch button{height:38px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#555!important;font:800 11px/1 "DM Sans",sans-serif!important;letter-spacing:.08em!important}
  .mobile-view-switch button.active{background:#111!important;color:#fff!important;box-shadow:0 2px 8px rgba(0,0,0,.14)!important}
  .mobile-quick-filters{display:flex!important;gap:8px!important;overflow-x:auto!important;scrollbar-width:none!important;padding:0 0 1px!important}
  .mobile-quick-filters::-webkit-scrollbar{display:none!important}
  .mobile-quick-filters button{flex:0 0 auto!important;height:36px!important;padding:0 13px!important;border:1px solid #d2d2ce!important;border-radius:999px!important;background:#fff!important;color:#222!important;font:700 9px/1 "DM Sans",sans-serif!important;letter-spacing:.06em!important;white-space:nowrap!important}
  .mobile-quick-filters button.has-filter{border-color:#111!important;background:#111!important;color:#fff!important}

  body.mobile-list-first:not(.mobile-map-mode) .results-panel{
    order:3!important;position:relative!important;z-index:1!important;left:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:12px 14px 28px!important;
    overflow:visible!important;border-radius:0!important;background:#f6f6f4!important;box-shadow:none!important;transition:none!important
  }
  body.mobile-list-first:not(.mobile-map-mode) .results-panel.sheet-collapsed,
  body.mobile-list-first:not(.mobile-map-mode) .results-panel.sheet-expanded{height:auto!important;max-height:none!important;overflow:visible!important}
  body.mobile-list-first:not(.mobile-map-mode) .mobile-sheet-handle{display:none!important}
  body.mobile-list-first:not(.mobile-map-mode) .results-topbar{
    position:relative!important;min-height:64px!important;padding:9px 2px 12px!important;border:0!important;background:transparent!important
  }
  body.mobile-list-first:not(.mobile-map-mode) #resultCount{font-size:22px!important;font-weight:750!important;line-height:1.1!important}
  body.mobile-list-first:not(.mobile-map-mode) .save-search-button{height:38px!important;min-height:38px!important;padding:0 14px!important;border-radius:999px!important;background:#fff!important;color:#111!important}
  body.mobile-list-first:not(.mobile-map-mode) .active-filters{min-height:0!important;padding:0 0 10px!important;background:transparent!important}
  body.mobile-list-first:not(.mobile-map-mode) .active-filters:empty{display:none!important}
  body.mobile-list-first:not(.mobile-map-mode) .listing-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;padding:0!important;overflow:visible!important;background:transparent!important}
  body.mobile-list-first:not(.mobile-map-mode) .listing-card{
    border:1px solid #dfdfdb!important;border-radius:18px!important;background:#fff!important;box-shadow:0 3px 16px rgba(0,0,0,.055)!important;overflow:hidden!important
  }
  body.mobile-list-first:not(.mobile-map-mode) .listing-card-click{display:block!important;min-height:0!important}
  body.mobile-list-first:not(.mobile-map-mode) .listing-photo{aspect-ratio:16/10!important;min-height:0!important;background:#e9e9e5!important}
  body.mobile-list-first:not(.mobile-map-mode) .listing-content{padding:14px 15px 15px!important}
  body.mobile-list-first:not(.mobile-map-mode) .listing-content h3{margin:6px 0 4px!important;font-size:25px!important;line-height:1!important}
  body.mobile-list-first:not(.mobile-map-mode) .listing-address{font-size:12px!important;line-height:1.35!important;color:#222!important}
  body.mobile-list-first:not(.mobile-map-mode) .listing-meta{margin-top:11px!important;padding-top:10px!important}
  body.mobile-list-first:not(.mobile-map-mode) .listing-status{left:10px!important;bottom:10px!important;border-radius:999px!important;padding:7px 9px!important}
  body.mobile-list-first:not(.mobile-map-mode) .search-footer{display:none!important}

  /* Optional map mode keeps the established full-screen map, with an explicit way back to List. */
  body.mobile-list-first.mobile-map-mode{overflow:hidden!important}
  body.mobile-list-first.mobile-map-mode .mobile-search-controls{
    position:fixed!important;z-index:111!important;left:14px!important;right:14px!important;top:calc(var(--mobile-search-header-h,78px) + 80px)!important;
    padding:0!important;background:transparent!important;backdrop-filter:none!important;border:0!important;pointer-events:auto!important
  }
  body.mobile-list-first.mobile-map-mode .mobile-quick-filters{display:none!important}
  body.mobile-list-first.mobile-map-mode .mobile-view-switch{max-width:180px!important;margin:0 auto!important;background:rgba(255,255,255,.96)!important;box-shadow:0 4px 18px rgba(0,0,0,.18)!important}
  body.mobile-list-first.mobile-map-mode .mobile-view-switch button.active{background:#111!important;color:#fff!important}
  body.mobile-list-first.mobile-map-mode .results-panel{display:none!important}
}

/* V64 lightweight loading state — cards appear immediately while the first indexed page arrives. */
.listing-skeleton{pointer-events:none;overflow:hidden;background:#fff;}
.skeleton-photo,.skeleton-body span,.skeleton-body strong,.skeleton-body i{
  display:block;background:linear-gradient(90deg,#ecece8 25%,#f7f7f4 38%,#ecece8 63%);background-size:400% 100%;animation:v64Shimmer 1.05s ease infinite;
}
.skeleton-photo{aspect-ratio:16/10;}
.skeleton-body{padding:14px 15px 18px;}
.skeleton-body span{width:38%;height:10px;border-radius:6px;margin-bottom:11px;}
.skeleton-body strong{width:48%;height:25px;border-radius:7px;margin-bottom:11px;}
.skeleton-body i{width:88%;height:10px;border-radius:6px;margin-top:8px;}
.skeleton-body i:last-child{width:66%;}
@keyframes v64Shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.skeleton-photo,.skeleton-body span,.skeleton-body strong,.skeleton-body i{animation:none;}}


/* =========================================================
   V68 MOBILE MAP INTERACTION POLISH
========================================================= */
@media (max-width:760px){
  .native-map-pin{min-height:44px!important;min-width:58px!important;padding:0 12px!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important}
  .native-map-dot{width:38px!important;height:38px!important;background:transparent!important;border:0!important;box-shadow:none!important;touch-action:manipulation!important}
  .native-map-dot::after{content:"";position:absolute;left:50%;top:50%;width:13px;height:13px;transform:translate(-50%,-50%);border-radius:50%;background:#111;border:2px solid #fff;box-shadow:0 2px 7px rgba(0,0,0,.3)}
  .native-map-cluster{min-width:48px!important;height:48px!important;touch-action:manipulation!important}
  .listing-map{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important}

  .mobile-map-property-preview{left:10px!important;right:10px!important;bottom:calc(var(--mobile-search-nav-h) + 18px)!important;border-radius:20px!important;box-shadow:0 16px 44px rgba(0,0,0,.28)!important;overflow:hidden!important;touch-action:pan-y!important}
  .mmp-close{display:none!important}
  .mmp-photo-rail{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none;background:#e9e9e6;position:relative;touch-action:pan-x}
  .mmp-photo-rail::-webkit-scrollbar{display:none}
  .mmp-slide{position:relative;flex:0 0 100%;height:220px;scroll-snap-align:start;background:#e9e9e6}
  .mmp-slide.is-unavailable::after{content:"PHOTO UNAVAILABLE";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#e9e9e6;color:#777;font:700 12px "DM Sans",sans-serif;letter-spacing:.06em}
  .mmp-photo-count{position:absolute;right:12px;bottom:10px;z-index:2;padding:6px 9px;border-radius:999px;background:rgba(0,0,0,.72);color:#fff;font:700 11px/1 "DM Sans",sans-serif}
  .mmp-status{left:12px!important;top:12px!important}
  .mmp-heart{right:12px!important;top:12px!important;width:46px!important;height:46px!important}
  .mmp-body{padding:14px 17px 16px!important;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  .mmp-body:active{background:#f7f7f5}
  .mmp-body strong{font-size:30px!important}
}

/* V69 property sharing */
.listing-share-button,.mmp-share{position:absolute;z-index:8;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:999px;background:rgba(255,255,255,.94);color:#111;box-shadow:0 2px 10px rgba(0,0,0,.18);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.listing-card{position:relative}.listing-share-button{right:12px;top:12px}.listing-share-button svg,.mmp-share svg,.property-page-share-button svg{width:19px;height:19px}
.listing-share-button:active,.mmp-share:active{transform:scale(.95)}
.mmp-share{right:66px;top:12px;width:46px;height:46px}
.property-share-sheet{position:fixed;inset:0;z-index:10000}.property-share-sheet[hidden]{display:none}.property-share-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.46)}.property-share-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);background:#fff;border-radius:24px 24px 0 0;padding:12px 20px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -20px 50px rgba(0,0,0,.2)}.property-share-handle{width:42px;height:5px;border-radius:999px;background:#d4d4d4;margin:0 auto 16px}.property-share-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.property-share-heading span{display:block;font:700 9px/1.2 sans-serif;letter-spacing:.14em;color:#777}.property-share-heading strong{display:block;margin-top:5px;font:800 23px/1.1 sans-serif}.property-share-close{border:0;background:#f1f1ef;border-radius:999px;width:38px;height:38px;font-size:25px;line-height:1;cursor:pointer}.property-share-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.property-share-option{border:1px solid #ddd;background:#fff;color:#111;text-decoration:none;min-height:82px;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font:700 11px/1 sans-serif;cursor:pointer}.property-share-option b{font-size:21px}.property-share-note{font:500 11px/1.45 sans-serif;color:#777;margin:17px 3px 0}
@media(max-width:760px){.listing-share-button{width:46px;height:46px;right:10px;top:10px}.property-share-grid{grid-template-columns:repeat(3,1fr)}}


/* V71 MAP TAP / PINCH / FULL-BLEED MOBILE POLISH */
@media (max-width:760px){
  .mobile-app-nav{grid-template-columns:repeat(4,1fr)!important;height:74px!important;min-height:74px!important;overflow:hidden!important}
  .mobile-app-nav::before{display:none!important}
  :root{--mobile-search-nav-h:74px!important}
  .listing-map-panel{top:var(--mobile-search-header-h)!important;bottom:var(--mobile-search-nav-h)!important;background:#d9d9d4!important}
  .listing-map-panel .listing-map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background:#d9d9d4!important}
  .native-map-pin{z-index:9!important;min-width:64px!important;min-height:48px!important;padding:0 13px!important;font-size:12px!important}
  .native-map-dot{z-index:9!important;width:44px!important;height:44px!important}
  .mmp-share{right:70px!important;top:12px!important}
  .mmp-heart{right:12px!important;top:12px!important}
  .mmp-share,.mmp-heart{width:46px!important;height:46px!important}
  .mmp-photo-rail{touch-action:pan-x!important}
  .mobile-search-controls{background:transparent!important}
}

/* V73 SHARE ICON POLISH */
.listing-share-button svg,.mmp-share svg,.property-page-share-button svg,.saved-home-share svg{width:21px!important;height:21px!important;display:block;overflow:visible}.listing-share-button,.mmp-share,.property-page-share-button{background:rgba(255,255,255,.97)!important;border:1px solid rgba(17,17,17,.12)!important;color:#111!important}.saved-home-share{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}.saved-home-share svg{flex:0 0 auto}.property-share-option b{font-family:Arial,sans-serif!important}

/* =========================================================
   V85 DESKTOP FILTER BAR — PREVENT RIGHT-SIDE CLIPPING
   Keep all controls visible at common laptop/desktop widths.
========================================================= */
@media (min-width: 761px) {
  .filters-panel {
    overflow: visible !important;
  }

  #propertySearchForm {
    flex-wrap: wrap !important;
    row-gap: 9px !important;
    align-content: center !important;
  }

  .filter-checks {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    gap: 10px !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 999px !important;
    background: #171a1e !important;
    white-space: nowrap !important;
  }

  .filter-checks label {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .filter-checks input {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    flex: 0 0 14px !important;
  }

  #propertySearchForm > .search-submit-button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 118px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
  }

  .live-filter-note {
    display: none !important;
  }
}

/* On laptop-size desktops, trim nonessential widths before wrapping. */
@media (min-width: 761px) and (max-width: 1600px) {
  #locationInput { width: clamp(245px, 22vw, 335px) !important; }
  .two-column-filter .filter-group select { width: 108px !important; }
  #beds, #baths { width: 88px !important; }
  #propertyType { width: 128px !important; }
  #listingStatus { width: 116px !important; }
  #keywords { width: 126px !important; }
}
