/* Home Search — Spikes / Luxury Presence HST (same-to-same) */
:root {
  --hs-blue: #52789c;
  --hs-blue-soft: rgba(82, 120, 156, 0.12);
  --hs-ink: #111827;
  --hs-muted: #6b7280;
  --hs-line: #e5e7eb;
  --hs-surface: #fff;
  --hs-header-h: 56px;
  --hs-toolbar-h: 56px;
  --hs-dark: #111827;
}
.hs-app-body {
  margin: 0;
  background: #f3f4f6;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--hs-ink);
  overflow: hidden;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* —— Top nav ——
   producer.css sets bare `nav { position:fixed; top:0; left:0; right:0 }` —
   must reset .hs-topnav__links or the bar collapses / overlaps. */
.hs-topnav {
  position: relative;
  z-index: 80;
  height: var(--hs-header-h);
  min-height: var(--hs-header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  background: var(--hs-blue) !important;
  color: #fff;
  box-sizing: border-box;
  flex-shrink: 0;
}
.hs-topnav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.hs-topnav__logo img {
  display: block;
  max-height: 42px;
  width: auto;
  height: auto;
}
.hs-topnav__links {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hs-topnav__links a {
  color: #fff !important;
  text-decoration: none;
  opacity: 0.95;
  white-space: nowrap;
}
.hs-topnav__links a:hover { text-decoration: underline; }
.hs-topnav__auth {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.hs-linkbtn {
  border: 0;
  background: transparent;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-transform: none;
}
.hs-linkbtn:hover { text-decoration: underline; }

.hs-page {
  height: calc(100dvh - var(--hs-header-h));
  display: flex; flex-direction: column;
}

/* —— Toolbar —— */
.hs-toolbar { z-index: 50; background: #f9fafb; border-bottom: 1px solid var(--hs-line); }
.hs-toolbar__inner {
  min-height: var(--hs-toolbar-h);
  padding: 8px 14px;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
}
.hs-search {
  display: flex; align-items: center; gap: 8px;
  height: 40px; min-width: min(280px, 100%);
  padding: 0 12px;
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  background: #fff;
  color: var(--hs-muted);
  flex: 0 1 280px;
}
.hs-search input {
  border: 0; outline: 0; flex: 1; min-width: 0;
  font: inherit; font-size: 14px; color: var(--hs-ink); background: transparent;
}
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; }
.hs-chip {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 12px 0 14px;
  border: 1px solid var(--hs-line); border-radius: 8px; background: #fff;
}
.hs-chip select {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--hs-ink);
  padding-right: 16px; outline: none; cursor: pointer; max-width: 170px;
}
.hs-chip::after {
  content: ''; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--hs-muted); margin-left: -10px; pointer-events: none;
}
.hs-toolbar__right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.hs-btn {
  height: 40px; padding: 0 14px;
  border: 1px solid var(--hs-blue); border-radius: 8px;
  background: var(--hs-blue); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
}
.hs-btn--ghost { background: #fff; color: var(--hs-ink); border-color: var(--hs-line); }
.hs-btn--ghost:hover { background: #f3f4f6; }
.hs-btn--dark { background: var(--hs-dark); border-color: var(--hs-dark); color: #fff; }
.hs-btn--dark:hover { filter: brightness(1.1); color: #fff; }
.hs-btn--block { width: 100%; }
.hs-toggle {
  display: inline-flex; border: 1px solid var(--hs-line); border-radius: 8px;
  overflow: hidden; background: #fff;
}
.hs-toggle button {
  height: 40px; padding: 0 14px; border: 0; background: transparent;
  color: var(--hs-muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.hs-toggle button + button { border-left: 1px solid var(--hs-line); }
.hs-toggle button.is-active { background: #fff; color: var(--hs-ink); box-shadow: inset 0 -2px 0 var(--hs-ink); }

.hs-advanced { border-top: 1px solid var(--hs-line); background: #fff; }
.hs-advanced__inner {
  padding: 14px 16px; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 12px; align-items: end;
}
.hs-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--hs-muted); }
.hs-field input {
  height: 40px; border: 1px solid var(--hs-line); border-radius: 8px;
  padding: 0 12px; font: inherit; font-size: 14px; color: var(--hs-ink);
}
.hs-advanced__actions { display: flex; gap: 8px; }

/* —— Body split —— */
.hs-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(380px, 42%) 1fr;
}
.hs-body.is-list-only { grid-template-columns: 1fr; }
.hs-body.is-list-only .hs-map { display: none; }
.hs-body.is-map-only { grid-template-columns: 1fr; }
.hs-body.is-map-only .hs-list { display: none; }

.hs-list {
  min-height: 0; overflow: auto; background: #fff; border-right: 1px solid var(--hs-line);
}
.hs-list__head {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--hs-line);
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.hs-list__head h1 {
  margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--hs-ink);
}
.hs-list__count { margin-top: 4px; color: var(--hs-muted); font-size: 14px; }
.hs-sort select {
  height: 36px; border: 1px solid var(--hs-line); border-radius: 8px;
  padding: 0 28px 0 12px; font: inherit; font-size: 14px; font-weight: 500;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; cursor: pointer;
}
.hs-draw-banner {
  margin: 12px 16px 0; padding: 10px 12px; border-radius: 8px;
  background: var(--hs-blue-soft); color: var(--hs-blue); font-size: 13px;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.hs-draw-banner button {
  border: 0; background: transparent; color: var(--hs-blue);
  font-weight: 700; cursor: pointer; text-decoration: underline;
}

/* —— Listing cards (Spikes) —— */
.hs-grid {
  list-style: none; margin: 0; padding: 14px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.hs-card {
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid transparent;
  transition: box-shadow .15s ease;
}
.hs-card:hover { box-shadow: 0 8px 24px rgba(17,24,39,.1); }
.hs-card.is-active { outline: 2px solid var(--hs-blue); outline-offset: 1px; }
.hs-card__link { color: inherit; text-decoration: none; display: block; }
.hs-card__img {
  position: relative; aspect-ratio: 4/3; background: #d1d5db; overflow: hidden;
}
.hs-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #1f2937; color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
}
.hs-card__badge.is-active { background: #1f2937; }
.hs-card__actions {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; gap: 6px;
}
.hs-iconbtn {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #111;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.hs-iconbtn.is-liked { color: #e11d48; }
.hs-card__body { padding: 12px 4px 4px; position: relative; }
.hs-card__price-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.hs-card__price {
  margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.hs-card__more {
  border: 0; background: transparent; color: var(--hs-muted);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.hs-card__stats {
  margin: 6px 0 4px; font-size: 14px; color: var(--hs-ink); font-weight: 500;
}
.hs-card__addr {
  margin: 0 0 4px; font-size: 13px; color: var(--hs-ink);
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.35;
}
.hs-card__mls {
  margin: 0; font-size: 12px; color: var(--hs-muted);
}
.hs-empty { padding: 48px 24px; text-align: center; color: var(--hs-muted); }
.hs-empty h2 { margin: 0 0 8px; font-size: 24px; color: var(--hs-ink); }
.hs-pager {
  display: flex; justify-content: center; gap: 6px; padding: 4px 16px 24px; flex-wrap: wrap;
}
.hs-pager button {
  min-width: 36px; height: 36px; border: 1px solid var(--hs-line); border-radius: 8px;
  background: #fff; color: var(--hs-ink); font-weight: 600; cursor: pointer;
}
.hs-pager button.is-active, .hs-pager button:hover {
  background: var(--hs-dark); border-color: var(--hs-dark); color: #fff;
}

/* —— Map —— */
.hs-map { position: relative; min-height: 0; background: #e5e7eb; }
.hs-map #hs-map { width: 100%; height: 100%; }
.hs-draw-fab {
  position: absolute; top: 14px; left: 14px; z-index: 500;
  height: 40px; padding: 0 14px 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 8px;
  background: #fff; color: var(--hs-ink);
  font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.hs-draw-fab.is-active { background: var(--hs-blue); color: #fff; }
.hs-draw-panel {
  position: absolute; top: 14px; left: 110px; right: 14px; z-index: 500;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.97); border: 1px solid var(--hs-line);
  box-shadow: 0 6px 20px rgba(0,0,0,.1); font-size: 13px; color: var(--hs-muted);
}
.hs-draw-panel span { flex: 1; min-width: 160px; }
.hs-basemap {
  position: absolute; top: 14px; right: 14px; z-index: 500;
  display: inline-flex; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.15); background: #fff;
}
.hs-basemap button {
  height: 36px; padding: 0 12px; border: 0; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--hs-muted); cursor: pointer;
}
.hs-basemap button + button { border-left: 1px solid var(--hs-line); }
.hs-basemap button.is-active { color: var(--hs-ink); background: #f3f4f6; }
.hs-fab-phone {
  position: absolute; right: 18px; bottom: 18px; z-index: 500;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--hs-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(82,120,156,.45); text-decoration: none;
}

/* Price pin / dot markers */
.hs-pin {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transform: translateY(-4px);
}
.hs-pin__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #111; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.hs-pin__label {
  background: #fff; color: #111;
  border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 3px 7px; font-size: 12px; font-weight: 700;
  white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.18);
  display: inline-flex; align-items: center; gap: 4px;
}
.hs-pin__label svg { flex-shrink: 0; }
.hs-pin.is-selected .hs-pin__label {
  background: #111; color: #fff; border-color: #111;
}
.hs-pin.is-selected .hs-pin__dot { background: var(--hs-blue); }

/* Map popup card — opens below pin; dark text (not link blue) */
.leaflet-popup.hs-popup {
  margin-bottom: 0;
}
.leaflet-popup.hs-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #111827;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.leaflet-popup.hs-popup .leaflet-popup-content {
  margin: 0;
  width: 280px !important;
  color: #111827;
}
.leaflet-popup.hs-popup a.leaflet-popup-close-button {
  color: #111827 !important;
  z-index: 3;
  top: 8px !important;
  right: 8px !important;
  width: 28px;
  height: 28px;
  line-height: 28px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 20px !important;
  padding: 0 !important;
  text-align: center;
}
/* Tip on TOP of card (popup sits below marker) */
.leaflet-popup.hs-popup .leaflet-popup-tip-container {
  top: -20px;
  bottom: auto;
  margin-left: -20px;
  width: 40px;
  height: 20px;
}
.leaflet-popup.hs-popup .leaflet-popup-tip {
  background: #fff;
  width: 16px;
  height: 16px;
  margin: 12px auto 0;
  box-shadow: none;
}
.hs-mapcard,
.hs-mapcard:link,
.hs-mapcard:visited,
.hs-mapcard:hover,
.hs-mapcard:active {
  display: block;
  color: #111827 !important;
  text-decoration: none !important;
}
.hs-mapcard__img {
  position: relative;
  height: 160px;
  background: #d1d5db;
}
.hs-mapcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hs-mapcard__body {
  padding: 12px 14px 14px;
  background: #fff;
  color: #111827;
}
.hs-mapcard__price {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111827 !important;
}
.hs-mapcard__stats {
  margin: 6px 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #111827 !important;
}
.hs-mapcard__addr {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #111827 !important;
}
.hs-mapcard__mls {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280 !important;
}

.leaflet-draw-toolbar { display: none !important; }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,.15) !important; }
.leaflet-control-zoom a {
  width: 36px !important; height: 36px !important; line-height: 36px !important;
  font-size: 18px !important; color: #111 !important;
}

/* —— Auth modals —— */
.hs-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hs-modal[hidden] { display: none !important; }
.hs-modal__backdrop {
  position: absolute; inset: 0; background: rgba(17,24,39,.55);
}
.hs-modal__panel {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: #fff; border-radius: 16px; padding: 28px 24px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.hs-modal__x {
  position: absolute; top: 12px; right: 14px;
  border: 0; background: transparent; font-size: 28px; line-height: 1;
  color: var(--hs-muted); cursor: pointer;
}
.hs-modal__panel h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; }
.hs-modal__sub { margin: 0 0 18px; color: var(--hs-muted); font-size: 14px; }
.hs-modal__form { display: flex; flex-direction: column; gap: 12px; }
.hs-modal__form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--hs-ink);
}
.hs-modal__form input[type="email"],
.hs-modal__form input[type="password"],
.hs-modal__form input[type="tel"] {
  height: 44px; border: 0; border-radius: 8px;
  background: #f3f4f6; padding: 0 12px;
  font: inherit; font-size: 15px; font-weight: 500;
}
.hs-check {
  flex-direction: row !important; align-items: flex-start; gap: 10px !important;
  font-weight: 400 !important; font-size: 12px !important; color: var(--hs-muted) !important;
}
.hs-check input { margin-top: 2px; }
.hs-check a { color: var(--hs-ink); }
.hs-textlink {
  border: 0; background: transparent; color: var(--hs-ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; padding: 0;
}
.hs-modal__switch {
  margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--hs-muted);
}
.hs-modal__switch button {
  border: 0; background: transparent; color: var(--hs-ink);
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline;
}
.hs-modal__or {
  margin: 16px 0; text-align: center; position: relative; color: var(--hs-muted); font-size: 12px;
}
.hs-modal__or::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hs-line);
}
.hs-modal__or span { position: relative; background: #fff; padding: 0 10px; }
.hs-social {
  width: 100%; height: 44px; margin-top: 8px;
  border: 1px solid var(--hs-line); border-radius: 8px;
  background: #fff; color: var(--hs-ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.hs-social:hover { background: #f9fafb; }

@media (max-width: 1100px) {
  .hs-toggle__desktop { display: none; }
  .hs-body { grid-template-columns: 1fr; }
  .hs-map { min-height: 46vh; order: -1; }
  .hs-body.is-list-only .hs-map { display: none; }
  .hs-body.is-map-only .hs-list { display: none; }
  .hs-advanced__inner { grid-template-columns: 1fr 1fr; }
  .hs-topnav__links { display: none; }
}
@media (max-width: 700px) {
  .hs-grid { grid-template-columns: 1fr; }
  .hs-search { flex: 1 1 100%; }
  .hs-draw-panel span { display: none; }
  .hs-list__head h1 { font-size: 18px; }
}
