/* ==========================================================================
   Our own listing search (idx-search.js): bar, cards, map, listing view,
   pop ups. "Modern Brokerage" tokens from site.css (navy gradients, gold
   fills with navy text, --accent-text for gold on light).
   .fx--feed     list + map beside it (homes-for-sale, town pages)
   .fx--explore  full screen map page (/map-search)
   ========================================================================== */
.fx .vh, .fx-dialogs .vh{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.fx{ position:relative; }
.fx button{ font:inherit; }

/* ---------- search bar ---------- */
.fx-top{ position:relative; z-index:6; }
.fx-bar{ display:flex; align-items:center; gap:8px; padding:8px; background:#fff; border:1px solid var(--line); border-radius:999px; box-shadow:0 22px 44px -32px rgba(7,25,49,.45); }
.fx-where{ position:relative; flex:1 1 260px; min-width:0; display:flex; align-items:center; gap:10px; height:52px; padding:0 6px 0 18px; border-radius:999px; background:var(--panel); color:var(--accent-text); transition:box-shadow .2s ease, background-color .2s ease; }
.fx-where:focus-within{ background:#fff; box-shadow:0 0 0 2px var(--accent), 0 0 0 6px rgba(201,164,92,.22); }
.fx-where > svg{ flex:none; }
.fx-where input{ flex:1; min-width:0; height:100%; border:0; background:transparent; font:inherit; font-size:16px; color:var(--ink); outline:0; -webkit-appearance:none; appearance:none; }
.fx-where input::placeholder{ color:#6B7585; }
.fx-where input::-webkit-search-cancel-button{ -webkit-appearance:none; }
.fx-go{ flex:none; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:var(--navy-grad); color:#fff; transition:transform .3s var(--ease); }
.fx-go:hover{ transform:scale(1.06); }
.fx-sug{ position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:30; margin:0; padding:6px; list-style:none; background:#fff; border-radius:20px; box-shadow:0 30px 60px -24px rgba(7,25,49,.45), 0 0 0 1px var(--line); max-height:340px; overflow-y:auto; }
.fx-sug li{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:11px 14px; border-radius:14px; cursor:pointer; color:var(--ink); }
.fx-sug li b{ font-weight:500; font-size:15.5px; }
.fx-sug li span{ font-size:13px; color:var(--muted); white-space:nowrap; }
.fx-sug li:hover, .fx-sug li.on{ background:var(--panel); }
.fx-picks{ display:flex; gap:6px; flex:none; }
.fx-pick{ position:relative; display:inline-flex; align-items:center; flex:none; }
.fx-pick select{ height:52px; padding:0 34px 0 18px; border-radius:999px; border:1px solid var(--line-2); background:#fff; font:inherit; font-size:14.5px; font-weight:500; color:var(--ink); cursor:pointer; -webkit-appearance:none; appearance:none; transition:border-color .2s ease, background-color .2s ease; }
.fx-pick select:hover{ border-color:var(--ink); }
.fx-pick select:focus-visible{ outline:2px solid var(--accent-text); outline-offset:2px; }
.fx-pick .fx-caret{ position:absolute; right:15px; pointer-events:none; color:var(--ink); }
.fx-pick.set select{ background:var(--accent-soft); border-color:var(--accent); }
.fx-save{ flex:none; display:inline-flex; align-items:center; gap:8px; height:52px; padding:0 20px 0 16px; border-radius:999px; background:var(--navy-grad); color:#fff; font-size:14.5px; font-weight:500; white-space:nowrap; transition:filter .2s ease, transform .2s var(--ease); }
.fx-save svg{ color:var(--accent-tint); }
.fx-save:hover{ filter:brightness(1.15); }
.fx-save:active{ transform:scale(.98); }
.fx-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.fx-chips button{ height:40px; padding:0 16px; border-radius:999px; border:1px solid var(--line-2); background:#fff; font-size:14px; font-weight:500; color:var(--ink); transition:background-color .2s ease, color .2s ease, border-color .2s ease; }
.fx-chips button:hover{ border-color:var(--ink); }
.fx-chips button[aria-pressed="true"]{ background:var(--navy-grad); color:#fff; border-color:var(--ink); }

/* ---------- list + map ---------- */
.fx-app{ margin-top:22px; }
.fx--feed .fx-app{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, .86fr); gap:24px; align-items:start; }
.fx-head{ display:flex; align-items:center; justify-content:space-between; gap:12px 16px; flex-wrap:wrap; margin-bottom:16px; }
.fx-h1{ flex:1 1 100%; font-size:clamp(22px, 1.8vw, 28px); font-weight:500; letter-spacing:-0.025em; line-height:1.15; }
.fx-count{ font-size:16px; color:var(--ink-2); }
.fx-count b{ font-weight:600; color:var(--ink); }
.fx-head-r{ display:flex; align-items:center; gap:8px; }
.fx-head .fx-pick select{ height:44px; font-size:14px; }
.fx-view{ display:none; padding:4px; border-radius:999px; background:var(--panel); }
.fx-view button{ display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 14px; border-radius:999px; font-size:14px; font-weight:500; color:var(--ink-2); }
.fx-view button[aria-pressed="true"]{ background:#fff; color:var(--ink); box-shadow:0 4px 14px -8px rgba(7,25,49,.4); }
.fx-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; }

/* cards */
@keyframes fxIn{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
.fx-card{ position:relative; display:flex; flex-direction:column; min-width:0; padding:8px; border-radius:var(--r-card); background:#fff; box-shadow:0 0 0 1px var(--line); transition:transform .5s var(--ease), box-shadow .5s ease; animation:fxIn .6s var(--ease) both; animation-delay:calc(min(var(--i, 0), 10) * 45ms); }
.fx-card:not(.fx-skel):hover, .fx-card.is-hot{ transform:translateY(-4px); box-shadow:0 26px 50px -30px rgba(7,25,49,.5), 0 0 0 1px var(--line-2); }
.fx-card.is-hot{ box-shadow:0 26px 50px -30px rgba(7,25,49,.5), 0 0 0 2px var(--accent); }
.fx-ph{ position:relative; aspect-ratio:4 / 3; border-radius:var(--r-img); overflow:hidden; background:var(--panel-2); }
.fx-track{ display:flex; height:100%; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.fx-track::-webkit-scrollbar{ display:none; }
.fx-track img{ flex:0 0 100%; width:100%; height:100%; object-fit:cover; scroll-snap-align:start; transition:transform .9s var(--ease); }
.fx-card:hover .fx-track img{ transform:scale(1.03); }
.fx-nophoto{ display:grid; place-items:center; width:100%; height:100%; font-size:14px; color:var(--muted); }
.fx-tags{ position:absolute; top:12px; left:12px; display:flex; gap:6px; pointer-events:none; }
.fx-tag{ display:inline-flex; align-items:center; height:26px; padding:0 11px; border-radius:999px; background:rgba(255,255,255,.94); color:var(--ink); font-size:12.5px; font-weight:600; letter-spacing:-0.005em; }
.fx-tag--new{ background:var(--accent); color:var(--ink); }
.fx-heart{ position:absolute; top:10px; right:10px; z-index:2; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.95); color:var(--ink); box-shadow:0 6px 16px -8px rgba(7,25,49,.5); transition:transform .25s var(--ease); }
.fx-heart:hover{ transform:scale(1.08); }
.fx-heart.on svg, .fx-chip.on svg{ fill:var(--accent); stroke:var(--accent-text); }
@keyframes fxPop{ 0%{ transform:scale(1); } 40%{ transform:scale(1.28); } 100%{ transform:scale(1); } }
.fx-heart.pop, .fx-chip.pop{ animation:fxPop .45s var(--ease); }
.fx-nav{ position:absolute; top:50%; z-index:2; width:34px; height:34px; margin-top:-17px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.94); color:var(--ink); opacity:0; transition:opacity .2s ease; }
.fx-prev{ left:10px; } .fx-next{ right:10px; }
.fx-card:hover .fx-nav, .fx-nav:focus-visible{ opacity:1; }
@media (hover:none){ .fx-nav{ display:none; } }
.fx-dots{ position:absolute; left:0; right:0; bottom:10px; display:flex; justify-content:center; gap:5px; pointer-events:none; }
.fx-dots i{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); transition:background-color .2s ease, transform .2s ease; }
.fx-dots i.on{ background:#fff; transform:scale(1.15); }
.fx-count-ph{ position:absolute; right:10px; bottom:10px; display:inline-flex; align-items:center; gap:5px; height:24px; padding:0 9px; border-radius:999px; background:rgba(7,25,49,.62); color:#fff; font-size:12px; font-weight:500; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); pointer-events:none; }
.fx-body{ display:flex; flex-direction:column; flex:1; padding:14px 10px 6px; color:inherit; text-decoration:none; }
.fx-body:focus-visible{ outline:2px solid var(--accent-text); outline-offset:2px; border-radius:12px; }
.fx-price{ font-size:22px; font-weight:600; letter-spacing:-0.025em; line-height:1.1; color:var(--ink); }
.fx-facts{ display:flex; flex-wrap:wrap; gap:2px 14px; margin-top:8px; font-size:14px; color:var(--ink-2); }
.fx-facts b{ font-weight:600; color:var(--ink); }
.fx-addr{ margin-top:10px; font-size:16px; font-weight:500; letter-spacing:-0.01em; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fx-place{ margin-top:2px; font-size:14px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fx-place span::before{ content:" · "; }
.fx-court{ margin-top:auto; padding-top:10px; font-size:11.5px; line-height:1.4; color:var(--muted-dim); }
.fx-court:empty{ display:none; }
.fx-place + .fx-court{ margin-top:10px; border-top:1px solid var(--line); }

/* loading cards */
.fx-skel{ animation:none; }
.fx-skel .fx-ph, .fx-skel .fx-body i{ background:linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size:200% 100%; animation:shimmer 1.4s linear infinite; }
.fx-skel .fx-body{ gap:10px; padding:16px 10px 12px; }
.fx-skel .fx-body i{ display:block; height:14px; border-radius:8px; }
.fx-skel .fx-body i:first-child{ width:46%; height:22px; }
.fx-skel .fx-body i:nth-child(2){ width:70%; }
.fx-skel .fx-body i:nth-child(3){ width:88%; }

/* a tile in the grid */
.fx-promo{ position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; gap:10px; min-height:100%; padding:28px 26px; border-radius:var(--r-card); background:var(--navy-grad); color:#fff; overflow:hidden; isolation:isolate; animation:fxIn .6s var(--ease) both; }
.fx-promo::before{ content:""; position:absolute; right:-80px; top:-80px; z-index:-1; width:240px; height:240px; border-radius:50%; background:radial-gradient(circle, rgba(201,164,92,.35), transparent 70%); }
.fx-promo-ic{ width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.12); color:var(--accent-tint); margin-bottom:auto; }
.fx-promo-faces{ display:flex; margin-bottom:auto; }
.fx-promo-faces img{ width:56px; height:56px; border-radius:50%; object-fit:cover; object-position:50% 20%; border:2px solid var(--accent); }
.fx-promo-faces img + img{ margin-left:-14px; }
.fx-promo-k{ margin-top:18px; font-size:13px; font-weight:600; color:var(--accent-tint); }
.fx-promo h3{ font-size:clamp(20px, 1.6vw, 24px); font-weight:500; letter-spacing:-0.02em; line-height:1.2; }
.fx-promo p{ font-size:15px; line-height:1.55; color:rgba(255,255,255,.8); }
.fx-promo .pill{ margin-top:8px; }

.fx-note{ padding:36px 28px; border-radius:var(--r-card); background:var(--panel); text-align:center; font-size:16px; line-height:1.6; color:var(--ink-2); }
.fx-note b{ display:block; margin-bottom:4px; font-size:19px; font-weight:500; color:var(--ink); }
.fx-note a, .fx-note button{ color:var(--accent-text); text-decoration:underline; text-underline-offset:3px; font-weight:500; }
.fx-more-wrap{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:28px; }
.fx-shown{ font-size:13.5px; color:var(--muted); }
.fx-legal{ margin-top:22px; font-size:12px; line-height:1.55; color:var(--muted); max-width:92ch; }

/* map */
.fx-map{ position:relative; min-height:320px; border-radius:var(--r-sec); background:var(--panel-2); overflow:hidden; isolation:isolate; }
.fx--feed .fx-map{ position:sticky; top:calc(var(--hd-h) + 32px); height:calc(100svh - var(--hd-h) - 56px); max-height:860px; }
.fx-map .fx-map-in{ position:absolute; inset:0; }
.fx-map-in .maplibregl-canvas{ outline:0; }
.fx-map .maplibregl-ctrl-group{ border-radius:14px; overflow:hidden; box-shadow:0 10px 24px -14px rgba(7,25,49,.5); }
.fx-here{ position:absolute; top:14px; left:50%; z-index:3; transform:translateX(-50%); display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 18px; border-radius:999px; background:#fff; color:var(--ink); font-size:14.5px; font-weight:500; box-shadow:0 14px 30px -14px rgba(7,25,49,.55); animation:fxIn .35s var(--ease) both; }
.fx-here[hidden]{ display:none; }
.fx-map-cap{ position:absolute; left:12px; top:12px; z-index:3; max-width:min(300px, calc(50% - 90px)); padding:8px 12px; border-radius:12px; background:rgba(255,255,255,.94); font-size:12.5px; line-height:1.4; color:var(--ink-2); box-shadow:0 8px 20px -12px rgba(7,25,49,.4); }
.fx-map-cap[hidden]{ display:none; }
.fx-map-fail{ display:none; position:absolute; inset:0; place-items:center; padding:24px; text-align:center; font-size:15px; color:var(--muted); }
.fx-map.failed .fx-map-fail{ display:grid; }
.fx-pin{ display:block; padding:0 0 7px; background:none; border:0; cursor:pointer; }
.fx-pin > span{ position:relative; display:block; padding:5px 9px; border-radius:999px; background:var(--navy-grad); color:#fff; font-size:12.5px; font-weight:600; letter-spacing:-0.01em; line-height:1.2; white-space:nowrap; box-shadow:0 6px 14px -6px rgba(7,25,49,.6), 0 0 0 1.5px #fff; transition:transform .2s var(--ease), background-color .2s ease; transform-origin:50% 100%; }
.fx-pin > span::after{ content:""; position:absolute; left:50%; bottom:-5px; width:8px; height:8px; margin-left:-4px; background:#0B2446; transform:rotate(45deg); border-radius:1px; box-shadow:1.5px 1.5px 0 0 #fff; }
.fx-pin:hover, .fx-pin.hot{ z-index:5; }
.fx-pin:hover > span, .fx-pin.hot > span{ background:var(--accent); color:var(--ink); transform:scale(1.12); }
.fx-pin:hover > span::after, .fx-pin.hot > span::after{ background:var(--accent); }
.fx-pin.saved > span{ box-shadow:0 6px 14px -6px rgba(7,25,49,.6), 0 0 0 2px var(--accent); }
.fx-pin--home > span{ display:grid; place-items:center; width:38px; height:38px; padding:0; background:var(--accent); color:var(--ink); }
.fx-pin--home > span::after{ background:var(--accent); }

/* ---------- pop ups ---------- */
.fx-dialogs dialog{ padding:0; border:0; margin:auto; max-width:none; max-height:none; color:var(--ink); background:transparent; }
.fx-dialogs dialog::backdrop{ background:rgba(4,13,27,.58); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
@keyframes fxRise{ from{ opacity:0; transform:translateY(24px) scale(.98); } to{ opacity:1; transform:none; } }
.fx-x{ width:44px; height:44px; flex:none; border-radius:50%; display:grid; place-items:center; background:#fff; color:var(--ink); box-shadow:0 8px 20px -10px rgba(7,25,49,.5); transition:transform .25s var(--ease); }
.fx-x:hover{ transform:rotate(90deg); }
.fx-chip{ display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 18px 0 14px; border-radius:999px; background:#fff; color:var(--ink); font-size:14.5px; font-weight:500; box-shadow:0 8px 20px -10px rgba(7,25,49,.5); }

/* listing view */
.fx-dt[open]{ width:min(1180px, calc(100vw - 40px)); height:calc(100dvh - 40px); border-radius:var(--r-sec); background:#fff; overflow:hidden; animation:fxRise .45s var(--ease) both; box-shadow:0 40px 90px -30px rgba(4,13,27,.6); }
.fx-dt-scroll{ height:100%; overflow-y:auto; overscroll-behavior:contain; }
.fx-dt-bar{ position:sticky; top:0; z-index:4; display:flex; justify-content:space-between; align-items:center; padding:14px; pointer-events:none; }
.fx-dt-bar > *{ pointer-events:auto; }
.fx-dt-gal{ position:relative; display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:1fr 1fr; gap:6px; height:min(56vh, 520px); margin-top:-72px; padding:6px 6px 0; }
.fx-dt-gal > button[data-ph]{ position:relative; overflow:hidden; border-radius:10px; background:var(--panel-2); }
.fx-dt-gal > button[data-ph]:first-child{ grid-row:1 / 3; border-radius:22px 10px 10px 22px; }
.fx-dt-gal > button:nth-child(3){ border-top-right-radius:22px; }
.fx-dt-gal img{ width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease); }
.fx-dt-gal > button[data-ph]:hover img{ transform:scale(1.04); }
.fx-dt-gal[data-n="1"]{ grid-template-columns:1fr; grid-template-rows:1fr; }
.fx-dt-gal[data-n="1"] > button:first-child{ border-radius:22px; }
.fx-dt-gal[data-n="2"]{ grid-template-columns:2fr 1fr; }
.fx-dt-gal[data-n="2"] > button:nth-child(2){ grid-row:1 / 3; border-radius:10px 22px 22px 10px; }
.fx-dt-gal[data-n="3"]{ grid-template-columns:2fr 1fr; }
.fx-dt-gal[data-n="4"] > button:nth-child(2){ grid-column:2 / 4; }
.fx-dt-gal .fx-nophoto{ grid-column:1 / -1; grid-row:1 / -1; border-radius:22px; background:var(--panel); }
.fx-dt-all{ position:absolute; right:18px; bottom:14px; z-index:2; display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 16px; border-radius:999px; background:#fff; color:var(--ink); font-size:14px; font-weight:500; box-shadow:0 10px 22px -12px rgba(7,25,49,.6); }
.fx-dt-main{ display:grid; grid-template-columns:minmax(0, 1fr) 380px; gap:clamp(28px, 4vw, 56px); padding:clamp(24px, 3vw, 36px) clamp(20px, 3.4vw, 44px) 48px; }
.fx-dt-kicker{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:500; color:var(--accent-text); }
.fx-dt-price{ margin-top:10px; font-size:clamp(30px, 3vw, 40px); font-weight:500; letter-spacing:-0.035em; line-height:1; }
.fx-dt-addr{ margin-top:12px; font-size:clamp(18px, 1.5vw, 21px); font-weight:500; letter-spacing:-0.015em; line-height:1.3; }
.fx-dt-facts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.fx-dt-facts span{ display:inline-flex; align-items:center; gap:5px; height:38px; padding:0 14px; border-radius:999px; background:var(--panel); font-size:14.5px; color:var(--ink-2); }
.fx-dt-facts b{ font-weight:600; color:var(--ink); }
.fx-dt-when{ margin-top:14px; font-size:14px; color:var(--muted); }
.fx-dt-cta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.fx-dt-cta .pill-line{ gap:8px; padding:0 22px; }
.fx-dt-h{ margin-top:34px; padding-top:28px; border-top:1px solid var(--line); font-size:20px; font-weight:500; letter-spacing:-0.02em; }
.fx-dt-desc{ margin-top:12px; font-size:16px; line-height:1.72; color:var(--ink-2); white-space:pre-line; }
.fx-dt-desc.long:not(.open){ max-height:11.6em; overflow:hidden; -webkit-mask-image:linear-gradient(180deg, #000 60%, transparent); mask-image:linear-gradient(180deg, #000 60%, transparent); }
.fx-dt-more{ margin-top:8px; font-size:15px; font-weight:500; color:var(--accent-text); text-decoration:underline; text-underline-offset:3px; }
.fx-dt-table{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 28px; margin:12px 0 0; }
.fx-dt-table div{ display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); font-size:15px; }
.fx-dt-table dt{ color:var(--muted); }
.fx-dt-table dd{ margin:0; font-weight:500; text-align:right; }
.fx-dt-pay{ margin-top:26px; }
.fx-dt-pay:empty{ display:none; }
.fx-dt-pay{ padding:22px 24px; border-radius:var(--r-card); background:var(--navy-grad); color:#fff; }
.fx-pay-k{ font-size:13px; font-weight:600; color:var(--accent-tint); }
.fx-pay-n{ margin-top:6px; font-size:16px; color:rgba(255,255,255,.85); }
.fx-pay-n b{ font-size:30px; font-weight:500; letter-spacing:-0.03em; color:#fff; }
.fx-pay-s{ margin-top:8px; font-size:13.5px; line-height:1.55; color:rgba(255,255,255,.75); }
.fx-pay-s a{ color:var(--accent-tint); text-decoration:underline; text-underline-offset:3px; }
.fx-dt-map{ position:relative; height:280px; margin-top:14px; border-radius:var(--r-card); overflow:hidden; background:var(--panel-2); }
.fx-dt-map[hidden]{ display:none; }
.fx-dt-map .fx-dt-map-in{ position:absolute; inset:0; }
.fx-dt-maplink{ margin-top:10px; font-size:14.5px; }
.fx-dt-maplink a{ display:inline-flex; align-items:center; gap:6px; font-weight:500; color:var(--accent-text); }
.fx-dt-court{ margin-top:22px; font-size:12.5px; color:var(--muted); }
.fx-dt-side{ min-width:0; }
.fx-dt-card{ position:sticky; top:72px; padding:24px; border-radius:24px; background:var(--panel); }
@keyframes fxFlash{ 0%{ box-shadow:0 0 0 0 rgba(201,164,92,.75); } 100%{ box-shadow:0 0 0 18px rgba(201,164,92,0); } }
.fx-dt-card.flash{ animation:fxFlash .9s ease-out; }
.fx-dt-who{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.fx-faces{ display:flex; flex:none; }
.fx-faces img{ width:48px; height:48px; border-radius:50%; object-fit:cover; object-position:50% 20%; border:2px solid var(--accent); }
.fx-faces img + img{ margin-left:-14px; }
.fx-dt-who p{ font-size:14px; line-height:1.45; color:var(--muted); }
.fx-dt-who b{ display:block; font-size:17px; font-weight:500; color:var(--ink); }

/* forms (showing, save) */
.fx-form{ display:grid; gap:12px; }
.fx-form .fld label{ margin-bottom:6px; font-size:13.5px; }
.fx-form .fld em{ font-style:normal; font-weight:400; color:var(--muted); }
.fx-form .field{ height:50px; }
.fx-form textarea.field{ height:auto; min-height:88px; }
.fx-form .btn{ width:100%; margin-top:4px; }
.fx-form .field.fx-bad{ border-color:#B4412F; box-shadow:0 0 0 4px rgba(180,65,47,.16); }
.fx-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.fx-fine{ font-size:12.5px; color:var(--muted); text-align:center; }
.fx-err{ font-size:13.5px; line-height:1.5; color:#9E3426; }
.fx-err a{ color:inherit; font-weight:600; }
.fx-done{ display:grid; justify-items:center; gap:8px; padding:10px 0 4px; text-align:center; animation:fxIn .45s var(--ease) both; }
.fx-done-ic{ width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:var(--ink); }
.fx-done h3{ margin-top:6px; font-size:20px; font-weight:500; letter-spacing:-0.02em; }
.fx-done p{ font-size:15px; line-height:1.55; color:var(--muted); max-width:34ch; }
.fx-done .pill{ margin-top:8px; }

/* save pop up (hearts and Save search) */
.fx-ask[open]{ position:fixed; width:min(470px, calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow-y:auto; padding:34px 30px 22px; border-radius:var(--r-sec); background:#fff; text-align:center; animation:fxRise .4s var(--ease) both; box-shadow:0 40px 90px -30px rgba(4,13,27,.6); }
.fx-ask > .fx-x{ position:absolute; top:14px; right:14px; background:var(--panel); box-shadow:none; }
.fx-ask-art{ display:flex; justify-content:center; min-height:84px; }
.fx-ask-art > img{ width:96px; height:96px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.fx-ask-ic{ width:72px; height:72px; border-radius:50%; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent-text); }
.fx-ask-ic svg{ width:30px; height:30px; }
.fx-ask-stack{ position:relative; width:180px; height:96px; }
.fx-ask-stack img{ position:absolute; top:6px; left:50%; width:104px; height:78px; margin-left:-52px; border-radius:14px; object-fit:cover; box-shadow:0 0 0 3px #fff, 0 14px 26px -14px rgba(7,25,49,.6); }
.fx-ask-stack img[style*="--k:1"]{ transform:translateX(-46px) rotate(-8deg) scale(.88); z-index:-1; }
.fx-ask-stack img[style*="--k:2"]{ transform:translateX(46px) rotate(8deg) scale(.88); z-index:-1; }
.fx-ask-stack{ isolation:isolate; }
.fx-ask-h{ margin-top:16px; font-size:clamp(22px, 2vw, 26px); font-weight:500; letter-spacing:-0.025em; line-height:1.2; }
.fx-ask-h b{ font-weight:600; color:var(--accent-text); }
.fx-ask-p{ margin-top:10px; font-size:15.5px; line-height:1.55; color:var(--muted); }
.fx-ask-crit{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:14px; }
.fx-ask-crit:empty{ display:none; }
.fx-ask-crit span{ height:30px; display:inline-flex; align-items:center; padding:0 12px; border-radius:999px; background:var(--panel); font-size:13px; font-weight:500; color:var(--ink-2); }
.fx-ask .fx-form{ margin-top:20px; text-align:left; }
.fx-skip{ margin-top:12px; font-size:14px; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }

/* photos */
.fx-lb[open]{ width:100vw; height:100dvh; margin:0; background:#050B16; }
.fx-lb-track{ display:flex; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.fx-lb-track::-webkit-scrollbar{ display:none; }
.fx-lb-track figure{ flex:0 0 100%; height:100%; margin:0; display:grid; place-items:center; padding:64px 72px; scroll-snap-align:start; }
.fx-lb-track img{ max-width:100%; max-height:100%; object-fit:contain; border-radius:10px; }
.fx-lb-x{ position:absolute; top:16px; right:16px; }
.fx-lb-nav{ position:absolute; top:50%; width:48px; height:48px; margin-top:-24px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.14); color:#fff; transition:background-color .2s ease; }
.fx-lb-nav:hover{ background:rgba(255,255,255,.26); }
.fx-lb-prev{ left:16px; } .fx-lb-next{ right:16px; }
.fx-lb-n{ position:absolute; left:50%; bottom:20px; transform:translateX(-50%); padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.12); color:#fff; font-size:13.5px; }

.fx-toast{ position:fixed; left:50%; bottom:28px; z-index:1000; display:inline-flex; align-items:center; gap:8px; max-width:calc(100vw - 32px); padding:12px 20px; border-radius:999px; background:var(--navy-grad); color:#fff; font-size:14.5px; font-weight:500; box-shadow:0 18px 40px -18px rgba(4,13,27,.7); opacity:0; transform:translate(-50%, 16px); transition:opacity .3s ease, transform .4s var(--ease); pointer-events:none; }
.fx-toast.on{ opacity:1; transform:translate(-50%, 0); }

/* ---------- the map page (/map-search) ---------- */
.fx--explore{ height:100svh; min-height:560px; display:grid; grid-template-columns:clamp(400px, 36vw, 640px) minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr); gap:12px 14px; padding:calc(var(--hd-h) + 26px) clamp(12px, 1.4vw, 20px) clamp(12px, 1.4vw, 20px); background:var(--panel); }
.fx--explore .fx-top{ grid-column:1 / -1; }
.fx--explore .fx-app{ display:contents; }
.fx--explore .fx-list{ grid-column:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:20px 18px 24px; border-radius:var(--r-sec); background:#fff; scrollbar-width:thin; }
.fx--explore .fx-map{ grid-column:2; min-height:0; }
.fx--explore .fx-grid{ grid-template-columns:repeat(auto-fill, minmax(232px, 1fr)); gap:12px; }
.fx--explore .fx-price{ font-size:20px; }
.fx--explore .fx-legal{ font-size:11.5px; }
.fx--explore .fx-bar{ border-radius:24px; }

/* ---------- responsive ---------- */
@media (max-width:1320px){
  .fx--feed .fx-bar{ flex-wrap:wrap; border-radius:28px; }
  .fx--feed .fx-where{ flex:1 1 100%; }
  .fx--feed .fx-picks{ flex:1 1 auto; }
  .fx--feed .fx-pick{ flex:1 1 auto; }
  .fx--feed .fx-pick select{ width:100%; }
}
@media (max-width:1240px){
  .fx--explore .fx-bar{ flex-wrap:wrap; }
  .fx--explore .fx-where{ flex:1 1 100%; }
  .fx--explore .fx-picks{ flex:1 1 auto; }
  .fx--explore .fx-pick{ flex:1 1 auto; }
  .fx--explore .fx-pick select{ width:100%; }
}
@media (max-width:1099px){
  .fx--feed .fx-app{ display:block; }
  .fx--feed .fx-view{ display:inline-flex; }
  .fx--feed .fx-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .fx--feed .fx-map{ display:none; position:relative; top:auto; height:72svh; }
  .fx--feed.show-map .fx-map{ display:block; }
  .fx--feed.show-map .fx-grid, .fx--feed.show-map .fx-more-wrap, .fx--feed.show-map .fx-note{ display:none; }
  .fx--feed.show-map .fx-legal{ margin-top:14px; }
  .fx--feed.show-map .fx-app{ display:flex; flex-direction:column; align-items:stretch; }
  .fx--feed.show-map .fx-list{ display:contents; }
  .fx--feed.show-map .fx-map{ order:1; }
  .fx--feed.show-map .fx-legal{ order:2; }
  .fx--explore{ grid-template-columns:minmax(340px, 44vw) minmax(0, 1fr); }
  .fx--explore .fx-grid{ grid-template-columns:1fr; }
  .fx-dt-main{ grid-template-columns:minmax(0, 1fr); }
  .fx-dt-card{ position:static; }
}
@media (max-width:900px){
  .fx--feed .fx-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:760px){
  .fx-bar{ flex-wrap:wrap; gap:8px; padding:8px; border-radius:24px; }
  .fx-where{ flex:1 1 100%; height:50px; }
  .fx-picks{ flex:1 1 100%; overflow-x:auto; scrollbar-width:none; margin:0 -8px; padding:0 8px; }
  .fx-picks::-webkit-scrollbar{ display:none; }
  .fx .fx-pick{ flex:none; }
  .fx .fx-pick select{ width:auto; height:44px; padding:0 30px 0 14px; font-size:14px; }
  .fx-pick .fx-caret{ right:12px; }
  .fx-save{ flex:1 1 100%; justify-content:center; height:46px; }
  .fx-chips{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:12px calc(var(--gut, 16px) * -1) 0; padding:0 var(--gut, 16px); }
  .fx-chips::-webkit-scrollbar{ display:none; }
  .fx-chips button{ flex:none; }
  .fx--feed .fx-grid{ grid-template-columns:minmax(0, 1fr); gap:14px; }
  .fx-head{ margin-bottom:12px; }
  .fx-count{ font-size:15px; flex:1 1 100%; }
  .fx-head-r{ flex:1 1 100%; justify-content:space-between; }
  .fx-promo{ min-height:0; padding:24px 22px; }
  .fx--feed .fx-map{ height:68svh; border-radius:22px; }

  .fx-dt[open]{ width:100vw; height:100dvh; border-radius:0; }
  .fx-dt-gal{ display:block; height:auto; margin-top:-72px; padding:0; }
  .fx-dt-gal > button[data-ph]{ display:none; }
  .fx-dt-gal > button[data-ph]:first-child{ display:block; width:100%; aspect-ratio:4 / 3; border-radius:0; }
  .fx-dt-gal > .fx-dt-all{ display:inline-flex; right:12px; bottom:12px; }
  .fx-dt-main{ padding:22px 18px 40px; gap:28px; }
  .fx-dt-cta .pill{ flex:1 1 100%; justify-content:space-between; }
  .fx-dt-cta .pill-line{ justify-content:center; }
  .fx-dt-table{ grid-template-columns:1fr; }
  .fx-dt-map{ height:220px; }
  .fx-dt-card{ padding:20px 18px; }
  .fx-row{ grid-template-columns:1fr; }
  .fx-ask[open]{ padding:30px 20px 18px; }
  .fx-lb-track figure{ padding:56px 0; }
  .fx-lb-nav{ display:none; }

  /* the map page on phones: the map fills the screen, the search floats on top,
     a strip of cards along the bottom; "List" turns the strip into a full list */
  .fx--explore{ display:block; position:relative; height:100svh; padding:0; background:var(--panel-2); overflow:hidden; }
  .fx--explore .fx-map{ position:absolute; inset:0; border-radius:0; }
  .fx--explore .fx-top{ position:absolute; top:calc(var(--hd-h) + 22px); left:10px; right:10px; z-index:8; }
  .fx--explore .fx-bar{ box-shadow:0 18px 40px -20px rgba(7,25,49,.5); }
  .fx--explore .fx-save{ display:none; }
  .fx--explore .fx-list{ position:absolute; left:0; right:0; bottom:0; z-index:7; padding:0 0 calc(10px + env(safe-area-inset-bottom)); background:none; border-radius:0; overflow:visible; }
  .fx--explore .fx-head{ margin:0 10px 10px; padding:6px 6px 6px 14px; border-radius:999px; background:rgba(255,255,255,.96); box-shadow:0 10px 24px -14px rgba(7,25,49,.5); flex-wrap:nowrap; }
  .fx--explore .fx-h1{ display:none; }
  .fx--explore .fx-count{ flex:1 1 auto; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .fx--explore .fx-head-r{ flex:none; }
  .fx--explore .fx-view{ display:inline-flex; }
  .fx--explore .fx-view button{ height:34px; padding:0 12px; }
  .fx--explore .fx-grid{ display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding:0 10px; scroll-padding:0 10px; }
  .fx--explore .fx-grid::-webkit-scrollbar{ display:none; }
  .fx--explore .fx-card{ flex:0 0 86%; flex-direction:row; gap:12px; padding:8px; scroll-snap-align:center; box-shadow:0 14px 30px -18px rgba(7,25,49,.55); }
  .fx--explore .fx-card:hover{ transform:none; }
  .fx--explore .fx-card .fx-ph{ flex:0 0 42%; aspect-ratio:auto; height:132px; }
  .fx--explore .fx-card .fx-body{ padding:4px 4px 2px 0; min-width:0; }
  .fx--explore .fx-card .fx-price{ font-size:19px; }
  .fx--explore .fx-card .fx-facts{ font-size:13px; margin-top:6px; }
  .fx--explore .fx-card .fx-facts{ gap:2px 10px; }
  .fx--explore .fx-card .fx-addr{ font-size:14.5px; margin-top:6px; }
  .fx--explore .fx-card .fx-court, .fx--explore .fx-card .fx-dots, .fx--explore .fx-card .fx-count-ph, .fx--explore .fx-card .fx-tags{ display:none; }
  .fx--explore .fx-card .fx-heart{ width:34px; height:34px; top:6px; right:6px; }
  .fx--explore .fx-card .fx-heart svg{ width:17px; height:17px; }
  .fx--explore.show-list .fx-card .fx-tags{ display:flex; }
  .fx--explore .fx-card .fx-track{ overflow:hidden; }
  .fx--explore .fx-more-wrap, .fx--explore .fx-legal{ display:none; }
  .fx--explore .fx-note{ margin:0 10px; padding:18px; text-align:left; }
  .fx--explore .fx-map-cap{ display:none; }
  .fx--explore .fx-here{ top:calc(var(--hd-h) + var(--fx-top-h, 120px) + 32px); }
  .fx--explore .maplibregl-ctrl-top-right{ top:calc(var(--hd-h) + var(--fx-top-h, 120px) + 26px); }
  .fx--explore.show-list .fx-list{ top:0; z-index:7; overflow-y:auto; padding:calc(var(--hd-h) + var(--fx-top-h, 120px) + 34px) 0 24px; background:var(--panel); }
  .fx--explore.show-list .fx-grid{ display:grid; grid-template-columns:1fr; gap:12px; overflow:visible; }
  .fx--explore.show-list .fx-card{ flex-direction:column; }
  .fx--explore.show-list .fx-card .fx-ph{ flex:none; height:auto; aspect-ratio:4 / 3; }
  .fx--explore.show-list .fx-card .fx-court, .fx--explore.show-list .fx-card .fx-dots, .fx--explore.show-list .fx-card .fx-count-ph{ display:revert; }
  .fx--explore.show-list .fx-card .fx-track{ overflow-x:auto; }
  .fx--explore.show-list .fx-card .fx-body{ padding:12px 6px 4px; }
  .fx--explore.show-list .fx-more-wrap{ display:flex; }
  .fx--explore.show-list .fx-legal{ display:block; margin:18px 12px 0; }
}
@media (prefers-reduced-motion:reduce){
  .fx-card, .fx-promo, .fx-done, .fx-here, .fx-dt[open], .fx-ask[open]{ animation:none; }
  .fx-card, .fx-track img, .fx-dt-gal img, .fx-pin > span, .fx-toast{ transition:none; }
  .fx-card:hover{ transform:none; }
}

/* ---------- /map-search page: the short guide under the map ---------- */
.ms-guide{ padding:clamp(56px, 6vw, 88px) 0 0; }
.ms-guide .sec-head p{ margin-top:14px; font-size:17px; line-height:1.6; color:var(--ink-2); max-width:58ch; }
.ms-steps{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; margin:0; padding:0; list-style:none; }
.ms-steps li{ padding:26px 24px; border-radius:var(--r-card); background:var(--panel); }
.ms-steps b{ display:block; margin-bottom:8px; font-size:19px; font-weight:500; letter-spacing:-0.02em; }
.ms-steps span{ font-size:15.5px; line-height:1.6; color:var(--muted); }
.ms-steps .ms-n{ display:grid; place-items:center; width:40px; height:40px; margin-bottom:18px; border-radius:50%; background:var(--accent); color:var(--ink); font-size:15px; font-weight:600; }
.ms-ctas{ display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
@media (max-width:760px){
  .ms-steps{ grid-template-columns:1fr; }
  .ms-ctas .pill{ width:100%; justify-content:space-between; }
}

/* Grid only (data-fs-idx map:false): no map, the homes use the full width */
.fx--grid .fx-map{ display:none !important; }
.fx--feed.fx--grid .fx-app{ display:block; }
.fx--feed.fx--grid .fx-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
@media (max-width:1280px){ .fx--feed.fx--grid .fx-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width:900px){ .fx--feed.fx--grid .fx-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px){ .fx--feed.fx--grid .fx-grid{ grid-template-columns:minmax(0, 1fr); } }
