/*!
 * weeBIG search upgrade — premium filters, open-house spotlight, map, saved search
 * Brand: navy #001F5B · red #B3092C · loaded after weebig-sharp.css
 */
:root {
  --wb-navy: #001F5B;
  --wb-navy-deep: #00143D;
  --wb-red: #B3092C;
  --wb-red-deep: #8C0722;
  --wb-ink: #141414;
  --wb-mute: #5b6472;
  --wb-line: #e6e8ee;
  --wb-soft: #f4f6fa;
  --wb-radius: 14px;
  --wb-shadow: 0 10px 28px rgba(0, 31, 91, 0.10);
  --wb-shadow-sm: 0 4px 14px rgba(0, 31, 91, 0.08);
}

/* ---- Sticky premium filter bar ---- */
html section.price_sec {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wb-line);
  box-shadow: 0 1px 0 rgba(0,31,91,0.04);
  padding: 12px 0 10px !important;
  margin: 0 !important;
}
html .price_sec .drop_menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}
html .price_sec .formIn .insearch,
html .price_sec select,
html .price_sec .fake-select {
  height: 42px !important;
  border: 1px solid var(--wb-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--wb-ink) !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  box-shadow: none !important;
  transition: border-color .15s, box-shadow .15s;
}
html .price_sec .formIn .insearch:focus,
html .price_sec select:focus {
  border-color: var(--wb-navy) !important;
  box-shadow: 0 0 0 3px rgba(0,31,91,0.12) !important;
  outline: none !important;
}
html .price_sec .min01 { margin: 0 !important; }

/* Chip row: open house + save search */
.wb-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 4px;
}
.wb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--wb-line);
  background: #fff;
  color: var(--wb-navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.wb-chip:hover { border-color: var(--wb-navy); color: var(--wb-navy); }
.wb-chip.is-on {
  background: var(--wb-navy);
  border-color: var(--wb-navy);
  color: #fff;
}
.wb-chip.is-on:hover { background: var(--wb-navy-deep); color: #fff; }
.wb-chip--red {
  background: var(--wb-red);
  border-color: var(--wb-red);
  color: #fff;
}
.wb-chip--red:hover { background: var(--wb-red-deep); color: #fff; }
.wb-chip--ghost { background: var(--wb-soft); }
.wb-chip i { font-size: 13px; }
.wb-chip input[type="checkbox"] { display: none; }

/* ---- Open house spotlight ---- */
.wb-oh-wrap {
  background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%);
  border-bottom: 1px solid var(--wb-line);
  padding: 22px 0 8px;
}
.wb-oh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 4px;
}
.wb-oh-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--wb-navy);
  letter-spacing: -0.02em;
}
.wb-oh-head h2 span {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wb-red);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(179,9,44,0.15);
}
.wb-oh-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--wb-red) !important;
}
.wb-oh-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.wb-oh-track::-webkit-scrollbar { height: 6px; }
.wb-oh-track::-webkit-scrollbar-thumb { background: #cfd5e0; border-radius: 99px; }
.wb-oh-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--wb-line);
  border-radius: var(--wb-radius);
  overflow: hidden;
  box-shadow: var(--wb-shadow-sm);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none !important;
  color: inherit !important;
}
.wb-oh-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--wb-shadow);
}
.wb-oh-card .ph {
  position: relative;
  height: 150px;
  background: var(--wb-soft);
  overflow: hidden;
}
.wb-oh-card .ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.wb-oh-badge {
  position: absolute;
  left: 10px; top: 10px;
  background: var(--wb-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(179,9,44,.35);
}
.wb-oh-body { padding: 12px 14px 14px; }
.wb-oh-body .price {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--wb-navy);
}
.wb-oh-body .title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb-oh-body .meta {
  margin: 0;
  font-size: 12px;
  color: var(--wb-mute);
}
.wb-oh-body .when {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--wb-red);
}

/* ---- Listing card open-house badge (server-rendered) ---- */
html .box_1 { position: relative; }
.wb-card-oh {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 2;
  background: var(--wb-red);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(179,9,44,.3);
  pointer-events: none;
}
html .box_1 .Inimg { position: relative; }

/* ---- Save search modal ---- */
.wb-modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,20,61,0.45);
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wb-modal-backdrop.is-open { display: flex; }
.wb-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,31,91,0.25);
  overflow: hidden;
  animation: wbPop .2s ease;
}
@keyframes wbPop {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.wb-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.wb-modal__head h3 {
  margin: 0; font-size: 18px; color: var(--wb-navy); font-weight: 700;
}
.wb-modal__close {
  border: 0; background: transparent; font-size: 22px;
  line-height: 1; color: var(--wb-mute); cursor: pointer;
}
.wb-modal__body { padding: 6px 20px 8px; }
.wb-modal__summary {
  background: var(--wb-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--wb-navy);
  font-weight: 600;
  margin-bottom: 14px;
}
.wb-field { margin-bottom: 12px; }
.wb-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--wb-mute); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em;
}
.wb-field input, .wb-field select {
  width: 100%; height: 44px; border: 1px solid var(--wb-line);
  border-radius: 10px; padding: 0 12px; font-size: 14px;
  box-sizing: border-box;
}
.wb-field input:focus, .wb-field select:focus {
  border-color: var(--wb-navy); outline: none;
  box-shadow: 0 0 0 3px rgba(0,31,91,0.12);
}
.wb-modal__foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 10px 20px 20px;
}
.wb-btn {
  height: 42px; padding: 0 18px; border-radius: 10px;
  border: 0; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.wb-btn--ghost { background: transparent; color: var(--wb-navy); }
.wb-btn--primary { background: var(--wb-navy); color: #fff; }
.wb-btn--primary:hover { background: var(--wb-red); }
.wb-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--wb-navy); color: #fff; padding: 12px 18px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--wb-shadow); z-index: 10060; display: none;
}
.wb-toast.is-on { display: block; animation: wbPop .2s ease; }

/* ---- Premium map split view ---- */
.wb-map-page { background: #fff; }
.wb-map-toolbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--wb-line);
  padding: 12px 0;
  backdrop-filter: blur(8px);
}
.wb-map-toolbar .inner {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.wb-map-toolbar input[type="text"],
.wb-map-toolbar select {
  height: 42px; border: 1px solid var(--wb-line); border-radius: 10px;
  padding: 0 12px; font-size: 14px; background: #fff;
}
.wb-map-toolbar input[type="text"] { flex: 1 1 220px; min-width: 180px; }
.wb-map-split {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  min-height: calc(100vh - 160px);
}
.wb-map-list {
  border-right: 1px solid var(--wb-line);
  overflow-y: auto;
  max-height: calc(100vh - 160px);
  background: #fff;
}
.wb-map-list__head {
  position: sticky; top: 0; background: #fff;
  padding: 14px 16px; border-bottom: 1px solid var(--wb-line);
  z-index: 2;
}
.wb-map-list__head h2 {
  margin: 0; font-size: 16px; color: var(--wb-navy); font-weight: 700;
}
.wb-map-list__head p { margin: 4px 0 0; font-size: 12px; color: var(--wb-mute); }
.wb-map-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--wb-line);
  cursor: pointer; transition: background .12s;
  text-decoration: none !important; color: inherit !important;
}
.wb-map-item:hover, .wb-map-item.is-active { background: var(--wb-soft); }
.wb-map-item .thumb {
  width: 110px; height: 84px; border-radius: 10px; overflow: hidden;
  background: var(--wb-soft);
}
.wb-map-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-map-item .price { margin: 0; font-size: 16px; font-weight: 700; color: var(--wb-navy); }
.wb-map-item .title { margin: 2px 0; font-size: 13px; font-weight: 600; color: var(--wb-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-map-item .meta { margin: 0; font-size: 12px; color: var(--wb-mute); }
.wb-map-item .oh { margin: 4px 0 0; font-size: 11px; font-weight: 700; color: var(--wb-red); }
.wb-map-canvas-wrap { position: relative; min-height: 420px; }
#wbMapCanvas, #mapCanvas {
  width: 100% !important;
  height: 100% !important;
  min-height: calc(100vh - 160px);
}
.wb-price-pin {
  background: #fff;
  color: var(--wb-navy);
  border: 2px solid var(--wb-navy);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,31,91,.2);
  white-space: nowrap;
  cursor: pointer;
  transform: translate(-50%, -100%);
}
.wb-price-pin.is-active, .wb-price-pin:hover {
  background: var(--wb-navy); color: #fff; border-color: var(--wb-navy);
}
.wb-map-empty {
  padding: 40px 20px; text-align: center; color: var(--wb-mute);
}
.wb-map-empty h3 { color: var(--wb-navy); margin: 0 0 8px; }

/* Leaflet popup polish */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: var(--wb-shadow) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; min-width: 200px; }
.wb-popup { padding: 10px 12px; }
.wb-popup a { color: var(--wb-navy); font-weight: 700; text-decoration: none; }
.wb-popup .meta { font-size: 12px; color: var(--wb-mute); margin-top: 4px; }

@media (max-width: 991px) {
  .wb-map-split { grid-template-columns: 1fr; }
  .wb-map-list { max-height: 42vh; order: 2; border-right: 0; border-top: 1px solid var(--wb-line); }
  .wb-map-canvas-wrap { order: 1; }
  #wbMapCanvas, #mapCanvas { min-height: 48vh; }
  html section.price_sec { position: relative; }
}
@media (max-width: 575px) {
  .wb-oh-card { flex-basis: 78vw; }
  .wb-chip-row { padding-left: 10px; padding-right: 10px; }
}
