/* Search page: filter bar, list left, sticky map right (Airbnb split). Phones: list with a map toggle. */
body.is-search { overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
.hdr { border-bottom-color: var(--line); }
#hdrSearch { min-width: 0; width: min(620px, 46vw); }
.pill-search.compact { grid-template-columns: max-content minmax(150px, 1fr) max-content max-content auto; padding: 4px; box-shadow: var(--lift); }
.pill-search.compact .tsel { flex: none; }
.pill-search.compact .tsel-pop { top: calc(100% + 14px); }
.pill-search.compact .ps-field { min-height: 40px; padding: 0 10px; }
.pill-search.compact .ps-field input, .pill-search.compact .tsel-btn { font-size: 14px; }
.pill-search.compact .ps-go { height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 899px) { #hdrSearch { grid-column: 1 / -1; grid-row: 2; width: 100%; padding-bottom: 10px; } .pill-search.compact { grid-template-columns: 1fr 1fr; } .pill-search.compact .ps-go, .pill-search.compact .ps-gow { grid-column: 1 / -1; } }

.filters { position: sticky; top: 80px; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
@media (max-width: 899px) { .filters { position: static; } }
.filters-row { display: flex; gap: 10px; align-items: center; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.filters-row::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 20px; padding: 4px; flex: none; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg-btn img { width: 22px; height: 22px; }
.seg-btn.is-on { background: var(--card); color: var(--ink); box-shadow: var(--ring); }
.pop { position: fixed; top: 150px; z-index: 50; width: 320px; max-width: calc(100vw - 16px); background: var(--card); border-radius: 18px; box-shadow: var(--lift-lg); padding: 18px; }
.pop h4 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.pop h4 + .opt, .pop .opt + h4 { margin-top: 4px; }
.pop .opt + h4 { margin-top: 16px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-weight: 600; cursor: pointer; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two label { font-size: 12px; font-weight: 700; display: grid; gap: 4px; }
.two input { height: 44px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 12px; font: 400 15px var(--font); background: var(--card); color: var(--ink); outline: none; }
.two input:focus { border-color: var(--pink); }
.pop-foot { margin-top: 16px; display: flex; justify-content: flex-end; }
.pop-foot .btn { height: 42px; }

.split-view { display: grid; grid-template-columns: minmax(0, var(--list-w, 1.25fr)) 16px minmax(0, 1fr); gap: 4px; max-width: 1800px; margin: 0 auto; padding: 0 24px 0 40px; }
.list-pane { padding: 20px 0 60px; min-width: 0; }
.list-head h1 { font-size: 20px; font-weight: 700; margin: 0; }
.muted { color: var(--muted); }
.list-head p { margin: 4px 0 16px; }
.blk { font-size: 16px; font-weight: 700; margin: 8px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 18px; margin-bottom: 28px; }
.lcard { text-decoration: none; cursor: pointer; min-width: 0; display: block; }
.lcard .card-img { position: relative; aspect-ratio: 20 / 19; border-radius: var(--r-card); overflow: hidden; background: var(--bg2); }
.lcard .card-img img { width: 100%; height: 100%; object-fit: cover; }
.lcard .badge { position: absolute; top: 12px; left: 12px; }
.lcard .b-owner { background: var(--ok-soft); color: var(--ok); }
.lcard .b-ghosla { background: var(--pink); color: var(--on-pink); }
.lcard .count { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 20px; }
.lcard:hover .card-title { text-decoration: underline; }
.empty { grid-column: 1 / -1; padding: 28px; border-radius: var(--r-card); background: var(--bg2); color: var(--muted); }
.relax-t { margin: 12px 0 8px; color: var(--ink); }
.relax { display: flex; flex-wrap: wrap; }
.relax .fchip { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.relax .fchip small { color: var(--muted); }
.list-foot { display: flex; justify-content: center; }

.map-pane { position: sticky; top: 150px; height: calc(100vh - 166px); padding: 16px 0; }
#map { width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: var(--bg2); }
.map-note { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); background: var(--card); padding: 8px 14px; border-radius: 20px; box-shadow: var(--lift); font-weight: 700; font-size: 14px; white-space: nowrap; }
.view-toggle { display: none; }

@media (max-width: 899px) {
  .split-view { grid-template-columns: 1fr; padding: 0 16px; }
  .split-handle { display: none; }
  .map-pane { display: none; position: relative; top: 0; height: calc(100vh - 210px); }
  .split-view.show-map .map-pane { display: block; }
  .split-view.show-map .list-pane { display: none; }
  .grid { grid-template-columns: 1fr; }
  .view-toggle { display: block; position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 45; border: 0; border-radius: 20px; background: var(--ink); color: var(--bg); font-weight: 700; padding: 12px 22px; box-shadow: var(--lift-lg); }
}

/* listing drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(10, 4, 20, .55); display: grid; place-items: center; padding: 24px; }
.d-panel { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--bg); border-radius: 24px; box-shadow: var(--lift-lg); }
.d-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--lift); cursor: pointer; z-index: 2; }
.d-body { padding: 24px 32px 32px; }
.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 8px; border-radius: 18px; overflow: hidden; margin-bottom: 24px; }
.gal img { width: 100%; height: 100%; object-fit: cover; background: var(--bg2); }
.gal img:first-child { grid-row: span 2; }
.d-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.d-cols h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.d-cols h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 700; }
.warn { background: var(--warn-soft); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 20px; margin: 20px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.desc { white-space: pre-line; }
.d-card { position: sticky; top: 20px; background: var(--card); border-radius: 18px; box-shadow: var(--lift-lg); padding: 22px; display: grid; gap: 14px; }
.d-rent { font-size: 22px; }
.d-rent b { font-weight: 700; }
.d-side { position: sticky; top: 20px; align-self: start; display: grid; gap: 14px; }
.d-side .d-card { position: static; }
.d-links { display: grid; gap: 10px; padding: 18px 22px; background: var(--card); border-radius: 18px; box-shadow: var(--lift); }
.d-links .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.d-links .fine { margin: 0; }
@media (max-width: 899px) { .d-side { position: static; } }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .drawer { padding: 0; }
  .d-panel { border-radius: 0; max-height: 100vh; height: 100vh; }
  .d-body { padding: 16px; }
  .gal { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 100px; }
  .gal img:nth-child(n+4) { display: none; }
  .d-cols { grid-template-columns: 1fr; gap: 20px; }
}
.limit, .limit-banner { background: var(--warn-soft); border-radius: 16px; padding: 18px 20px; }
.limit-banner { margin-bottom: 16px; }
.limit h3 { margin: 0 0 6px; }
.limit p { margin: 0 0 8px; }

/* draggable divider between list and map (width kept per browser) */
.split-handle { position: sticky; top: 150px; height: calc(100vh - 166px); margin-top: 16px; display: grid; place-items: center; cursor: col-resize; touch-action: none; border-radius: 8px; }
.split-handle span { width: 4px; height: 44px; border-radius: 4px; background: var(--line); transition: background .15s, height .15s; }
.split-handle:hover span, .split-handle.is-drag span, .split-handle:focus-visible span { background: var(--pink); height: 64px; }
.split-handle:focus-visible { outline: none; }
body.is-resizing { cursor: col-resize; user-select: none; }
body.is-resizing #map { pointer-events: none; }

.place-slot { display: contents; }
.place-slot .ps-chips { margin: 0; justify-content: flex-start; flex-wrap: nowrap; }

/* ---------- Filters panel (app sheet look: card surface, 20px chips, amber = selected) ---------- */
.fx-open svg { margin-right: 2px; }
.fx-open.is-on { background: var(--amber); color: var(--on-amber); }
.fx-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; margin-left: 4px; }
body.fx-locked { overflow: hidden; }
.fx-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(10, 4, 20, .5); display: grid; place-items: center; padding: 24px; }
.fx { width: min(760px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 24px; box-shadow: var(--lift-lg); overflow: hidden; }
.fx-head { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fx-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.fx-x { position: absolute; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.fx-x:hover { background: var(--bg2); }
.fx-body { overflow-y: auto; padding: 4px 24px 8px; overscroll-behavior: contain; }
.fx-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fx-group:last-child { border-bottom: 0; }
.fx-group h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.fx-sub { flex-basis: 100%; font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.fx-group > .fchip, .fx-group > .fx-sub { display: inline-flex; }
.fx-group > .fx-sub { display: block; }
.fx-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.fx-link { border: 0; background: none; color: var(--pink-ink); font: 600 13px var(--font); cursor: pointer; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; margin: 0 8px 8px 0; padding: 0 14px; border-radius: 20px; border: 0; background: var(--bg2); color: var(--ink); font: 400 13px var(--font); cursor: pointer; white-space: nowrap; }
.fchip:hover { box-shadow: inset 0 0 0 1px var(--line); }
.fchip.is-on { background: var(--amber); color: var(--on-amber); font-weight: 600; }
.fchip small { font-size: 11px; opacity: .7; }
.fx-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.fx-clear { border: 0; background: none; color: var(--ink); font: 600 14px var(--font); text-decoration: underline; cursor: pointer; padding: 8px 4px; }
/* dual-handle range: two stacked native ranges, amber fill between them */
.fx-range { position: relative; height: 28px; margin: 4px 10px 0; }
.fx-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); }
.fx-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--amber); }
.fx-range input { position: absolute; left: -10px; right: -10px; width: calc(100% + 20px); top: 0; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.fx-range input::-webkit-slider-runnable-track { background: none; height: 28px; }
.fx-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--amber); border: 2px solid var(--card); box-shadow: 0 1px 5px rgba(26, 10, 50, .35); cursor: grab; }
.fx-range input::-moz-range-track { background: none; }
.fx-range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); border: 2px solid var(--card); box-shadow: 0 1px 5px rgba(26, 10, 50, .35); cursor: grab; }
.fx-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(255, 184, 44, .35); }
.fx-vals { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; font-weight: 600; }
@media (max-width: 760px) {
  .fx-wrap { padding: 0; align-items: end; }
  .fx { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .fx-body { padding: 4px 18px 8px; }
}

/* hovered pin: its card in the list is outlined; the map shows a small preview card */
.lcard { border-radius: 18px; transition: box-shadow .15s; }
.lcard.is-hot { box-shadow: 0 0 0 2px var(--pink), 0 0 0 8px var(--pink-soft); }
.pv-pop .maplibregl-popup-content { padding: 0; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--lift-lg); }
.pv-pop.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--card); }
.pv-pop.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--card); }
.pv-pop.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--card); }
.pv-pop.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--card); }
.pv { width: 240px; font-family: var(--font); color: var(--ink); }
.pv-img { aspect-ratio: 16 / 10; background: var(--bg2); }
.pv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-b { padding: 8px 12px 10px; }
.pv .app-title { font-size: 14px; -webkit-line-clamp: 1; }
.pv .app-type { font-size: 12px; }
.pv .app-price { font-size: 14px; margin: 2px 0 0; }
.lcard[data-temp] { animation: pv-in .15s ease-out; }
@keyframes pv-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lcard[data-temp] { animation: none; } }
/* phones: the search folds into a summary pill; the Map/List button sits above the tab bar */
.ps-sum { display: none; }
@media (max-width: 760px) {
  #hdrSearch.is-folded .pill-search { display: none; }
  #hdrSearch.is-folded .ps-sum { display: flex; }
  .ps-sum { align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 16px; border: 0; border-radius: 28px; background: var(--card); box-shadow: var(--lift-lg); color: var(--ink); text-align: left; cursor: pointer; }
  .ps-sum-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: var(--on-pink); display: grid; place-items: center; }
  .ps-sum-t { min-width: 0; display: grid; }
  .ps-sum-t b, .ps-sum-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ps-sum-t b { font-size: 15px; font-weight: 700; }
  .ps-sum-t small { font-size: 13px; color: var(--muted); }
  .view-toggle { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
  .map-pane { height: calc(100dvh - 230px) !important; }
  .filters-row { gap: 8px; }
  .seg-btn { padding: 6px 10px; font-size: 13px; gap: 4px; }
  .seg-btn img { width: 20px; height: 20px; }
}

/* Contact box in the listing drawer: shared numbers (migration 20261108000003, behind G.CONTACTS) */
.ct { display: grid; gap: 10px; }
.ct-phones { display: grid; gap: 8px; }
.ct-phone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.ct-phone > span:first-child { white-space: nowrap; }
.ct-phone a { font-size: 14px; font-weight: 700; color: var(--pink); text-decoration: none; letter-spacing: 0; }
.ct-free { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 20px; background: var(--amber-soft); color: var(--on-amber); font: 600 13px var(--font); cursor: help; }
.ct-free.is-social { background: var(--ok-soft); color: var(--ok); cursor: default; }
:root[data-theme="dark"] .ct-free:not(.is-social) { background: var(--bg2); color: var(--ink); }
.ct-tip { position: absolute; left: 0; top: calc(100% + 8px); z-index: 2; width: max-content; max-width: 240px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; box-shadow: var(--lift-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.ct-free:hover .ct-tip, .ct-free:focus-visible .ct-tip, .ct-free.is-tip .ct-tip { opacity: 1; visibility: visible; transform: none; }
.ct-tip a { color: inherit; }
.ct-note { margin: 0; font-size: 13px; color: var(--muted); }
.ct-note a { color: var(--pink); font-weight: 600; }
.ct-err { margin: 0; font-size: 13px; color: var(--pink); }
.ct .btn { width: 100%; }

.fx-warn { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--app-secondary) 22%, transparent); color: var(--app-primaryText); font-size: 13px; line-height: 1.45; }

/* recent and saved searches */
.ss-pop { position: fixed; z-index: 60; width: 380px; max-height: min(70vh, 560px); overflow-y: auto; background: var(--card); color: var(--ink); border-radius: 20px; box-shadow: var(--lift-lg); padding: 16px 18px 14px; }
.ss-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ss-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.ss-head .fx-x { position: static; }
.ss-cur { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px; border-radius: 14px; background: var(--bg); }
.ss-cur b, .ss-go b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ss-cur small, .ss-go small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.ss-savecur { height: 36px; padding: 0 14px; font-size: 13px; flex: none; }
.ss-savecur:disabled { opacity: .45; cursor: default; }
.ss-ok { flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.ss-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ss-item { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.ss-item:first-child { border-top: 0; }
.ss-go { flex: 1; min-width: 0; padding: 10px 0; color: inherit; text-decoration: none; }
.ss-go:hover b { text-decoration: underline; }
.ss-act { flex: none; height: 30px; min-width: 30px; padding: 0 10px; border: 0; border-radius: 15px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.ss-act:hover:not(:disabled) { box-shadow: var(--lift); }
.ss-act:disabled { opacity: .4; cursor: default; }
.ss-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .ss-pop { left: 8px; right: 8px; width: auto; } }
