/* ImotPortal.bg: wine and gold, using the WebTrust.bg reference palette. */
html[data-theme="light"]{
 color-scheme:dark;
 --bg:#501426;--white:#631d34;--pale:#70233c;--ink:#fff2df;--muted:#ebd3b5;
 --green:#f6db8a;--green-dark:#ffe8a8;--gold:#d9aa42;--line:#ad8139;
 --wine-deep:#300a17;--wine-input:#451020;--wine-hover:#842944;--wine-bright:#9d1734;
 --gold-text:#ffe8a8;--gold-line:#bd9148;--gold-strong:#f6db8a;
 --panel-shadow:0 12px 36px rgba(24,2,9,.18);
}
html[data-theme="dark"]{
 color-scheme:dark;
 --bg:#21050d;--white:#2b0711;--pale:#390b19;--ink:#f8edd8;--muted:#d9c3a1;
 --green:#f6db8a;--green-dark:#ffe8a8;--gold:#d9aa42;--line:#936d32;
 --wine-deep:#120207;--wine-input:#1c040c;--wine-hover:#5c1227;--wine-bright:#9d1734;
 --gold-text:#f6db8a;--gold-line:#a47a35;--gold-strong:#ffe8a8;
 --panel-shadow:0 18px 46px rgba(0,0,0,.24);
}
html[data-theme] body{
 color:var(--ink);background:radial-gradient(ellipse at 80% 0%,rgba(157,23,52,.2),transparent 48%),linear-gradient(180deg,var(--bg),var(--wine-deep));
}
html[data-theme] :is(h1,h2,h3,h4,h5,h6,.brand,.price,.listing-heading>strong,.eyebrow,.stats strong){color:var(--gold-text)}
html[data-theme] :is(a,.steps b){color:var(--gold-text)}
html[data-theme] :is(a:hover,.header nav a:hover){color:var(--gold-strong)}
html[data-theme] :is(header,footer){background:var(--wine-deep);border-color:var(--gold-line)}
html[data-theme] :is(.panel,.search-panel,.property-card,.empty,.manage-row,.facts>div,.tabs>a,.secondary,.saved-search-dialog){background:var(--white);border-color:var(--gold-line);color:var(--ink)}
html[data-theme] :is(.panel,.search-panel,.property-card){box-shadow:var(--panel-shadow)}
html[data-theme] :is(button,.button){background:linear-gradient(140deg,var(--wine-bright),var(--wine-deep));color:var(--gold-text);border:1px solid var(--gold);box-shadow:0 2px 7px rgba(18,2,7,.15)}
html[data-theme] :is(button:hover,.button:hover){background:var(--wine-hover);color:var(--gold-strong);border-color:var(--gold-strong)}
html[data-theme] :is(.secondary,.tabs>a){background:var(--white);color:var(--gold-text);border-color:var(--gold-line)}
html[data-theme] :is(.secondary:hover,.tabs>a:hover){background:var(--pale);color:var(--gold-strong);border-color:var(--gold-strong)}
html[data-theme] :is(.tabs .selected,.pagination .selected){background:var(--gold);color:#21050d;border-color:var(--gold-strong)}
html[data-theme] :is(.tabs .admin-link,.property-card.vip){border-color:var(--gold-strong)}
html[data-theme] :is(input,select,textarea){background:var(--wine-input);color:var(--ink);border-color:var(--gold-line);accent-color:var(--gold)}
html[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme] option{background:var(--wine-input);color:var(--ink)}
html[data-theme] :is(input,select,textarea):focus{border-color:var(--gold-strong);outline:2px solid var(--gold);outline-offset:2px;box-shadow:none}
html[data-theme] :is(a,button,summary):focus-visible{outline:2px solid var(--gold-strong);outline-offset:4px}
html[data-theme] .brand-icon{background:linear-gradient(145deg,var(--wine-bright),var(--wine-deep));border:1px solid var(--gold);color:var(--gold-text)}
html[data-theme] .hero-house{background:radial-gradient(circle at 50% 35%,rgba(217,170,66,.1),transparent 65%),linear-gradient(140deg,var(--pale),var(--wine-deep));border-color:var(--gold);color:var(--gold-text)}
html[data-theme] :is(.publish-callout,.notice,.badge,.avatar){background:var(--pale);border-color:var(--gold-line);color:var(--gold-text)}
html[data-theme] .notice.error{background:#591021;border-color:#e3a080;color:#ffe0d0}
html[data-theme] :is(.cover,.gallery,.banner img){background:var(--wine-deep);border-color:var(--gold-line)}
html[data-theme] :is(.specs,.card-body>p,.card-foot,.manage-row p,.lead,.muted,footer p,.copyright){color:var(--muted)}
html[data-theme] :is(.card-foot,.specs span+span,.copyright,.totals>div,.saved-search-row){border-color:var(--gold-line)}
html[data-theme] .deal{background:var(--wine-deep);color:var(--gold-text);border:1px solid var(--gold)}
html[data-theme] .vip-label{background:var(--gold);color:#21050d;border:1px solid var(--gold-strong)}
html[data-theme] .demo-bar{background:var(--pale);color:var(--gold-text);border-color:var(--gold-line)}
html[data-theme] .empty{border-style:dashed}
html[data-theme] .saved-search-dialog::backdrop{background:rgba(18,2,7,.78)}
html[data-theme] :is(.api-doc pre,.api-token){color:var(--ink);background:var(--wine-input);border:1px solid var(--gold-line);border-radius:8px;padding:18px}
html[data-theme] .geo-picker{background:var(--white);border-color:var(--gold-line)}
html[data-theme] .geo-country path{fill:var(--pale);stroke:var(--gold-line)}
html[data-theme] .geo-country path:hover,html[data-theme] .geo-country path:focus{fill:var(--wine-hover);stroke:var(--gold-strong)}
html[data-theme] .geo-country path.selected{fill:#9d1734;stroke:var(--gold-strong);stroke-width:3}
html[data-theme] .geo-country text{fill:var(--gold-text);stroke:var(--wine-deep)}
html[data-theme] .geo-country circle{fill:var(--gold-text);stroke:var(--wine-deep)}
html[data-theme] .geo-selection{color:var(--gold-text)}
html[data-theme] .geo-city-map{background:var(--wine-deep);border:1px solid var(--gold-line)}
html[data-theme] .geo-city-map a{color:var(--gold-text)}
html[data-theme] .geo-city-map .leaflet-control-zoom a{background:var(--white);color:var(--gold-text);border-color:var(--gold-line)}
html[data-theme] :is(.geo-city-map .leaflet-control-attribution,.geo-city-map .leaflet-tooltip){background:var(--wine-deep);color:var(--ink);border-color:var(--gold-line)}
html[data-theme] .geo-city-map .leaflet-control-attribution a{color:var(--gold-text)}
html[data-theme] .skip{background:var(--wine-deep);color:var(--gold-text);border:1px solid var(--gold)}
/* Flat neighbourhood diagrams remain bright in both portal themes. */
html[data-theme] .geo-city-map{height:560px;background:#f0f0ee;border:1px solid #c8b99f;border-radius:14px}
html[data-theme] .geo-neighborhood-layout{grid-template-columns:minmax(0,2fr) minmax(250px,1fr);align-items:start;gap:20px}
html[data-theme] .geo-native-quarter{display:none}
.geo-map-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.geo-map-tools p{flex:1;min-width:230px;font-size:.92rem;margin:0;line-height:1.5}
.geo-map-tools button{font-size:.82rem;padding:9px 12px;min-height:40px}
.geo-map-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:.78rem;margin:0 0 12px}
.geo-map-legend span{display:inline-flex;align-items:center;gap:7px}
.geo-map-legend i{display:inline-block;width:17px;height:13px;border:1px solid #fff;border-radius:3px;background:#dfc9ad}
.geo-map-legend .chosen{background:#8c2444;border-color:#d9aa42}
.geo-map-legend .point{width:10px;height:10px;border-radius:50%;background:#dfc9ad;outline:1px solid #a7865c}
.geo-quarter-chips{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}
.geo-quarter-chips:empty{display:none}
html[data-theme] .geo-quarter-chip{font-size:.82rem;padding:7px 11px;min-height:36px;background:#8c2444;color:#fff3d4;border-color:#d9aa42}
.geo-quarter-query{margin:8px 0 0}
.geo-quarter-count{font-size:.84rem;font-weight:700;margin:10px 0}
.geo-quarter-choices{height:442px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--gold-line);border-radius:10px;padding:5px;scrollbar-color:var(--gold) var(--wine-input)}
html[data-theme] .geo-quarter-choice{width:100%;display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;font-size:.85rem;line-height:1.35;padding:10px 8px;min-height:44px;background:transparent;box-shadow:none;border:1px solid transparent;border-radius:6px;color:var(--ink)}
html[data-theme] .geo-quarter-choice:hover{background:var(--pale);border-color:var(--gold-line)}
html[data-theme] .geo-quarter-choice[aria-pressed=true]{background:#8c2444;border-color:var(--gold);color:#fff3d4}
.geo-choice-check{width:16px;height:16px;border:1px solid #d9aa42;border-radius:3px;display:grid;place-items:center;color:#21050d}
[aria-pressed=true]>.geo-choice-check{background:#f6db8a}
[aria-pressed=true]>.geo-choice-check:after{content:'✓';font-size:13px;font-weight:800}
.geo-quarter-choice small{font-size:.65rem;color:var(--muted);white-space:nowrap}
.geo-city-map .leaflet-overlay-pane path{transition:fill .12s,stroke .12s;outline:none}
.geo-city-map .leaflet-overlay-pane path:focus-visible{stroke:#6f1230;stroke-width:4}
html[data-theme] .geo-city-map .leaflet-tooltip{background:#fffaf0;color:#3c2830;border:1px solid #b58b44;font-weight:650;box-shadow:0 2px 8px #0002}
html[data-theme] .geo-city-map .leaflet-control-attribution{background:#fffffff0;color:#3c2830;font-size:10px;padding:3px 7px}
html[data-theme] .geo-city-map .leaflet-control-attribution a{color:#6f1230}
html[data-theme] .geo-city-map .leaflet-control-zoom a{background:#fffaf0;color:#5f1730;border-color:#c8b99f}
.geo-map-label{color:#493e34;font:650 10px/12px system-ui,sans-serif;display:flex;align-items:center;justify-content:center;text-align:center;text-shadow:0 0 3px #fff,1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff;pointer-events:none}
.geo-map-label span{max-height:25px;overflow:hidden;display:block}
.geo-map-label.is-selected{color:#fff7e4;text-shadow:0 1px 3px #360816,1px 0 #360816,-1px 0 #360816;font-weight:800}
.geo-city-panel [hidden]{display:none!important}
@media(max-width:1000px){html[data-theme] .geo-city-map{height:500px}.geo-quarter-choices{height:382px}}
@media(max-width:850px){html[data-theme] .geo-neighborhood-layout{grid-template-columns:1fr}html[data-theme] .geo-city-map{height:500px}.geo-quarter-choices{height:260px}.geo-map-tools p{flex-basis:100%}.geo-map-label{font-size:10px}.geo-map-legend{gap:10px}}
@media(max-width:480px){html[data-theme] .geo-city-map{height:430px}.geo-map-legend{font-size:.7rem}.geo-quarter-choice small{font-size:.65rem}}
