:root{color-scheme:light}
.theme-control{display:flex;align-items:center;flex-shrink:0;gap:8px;color:#d8e6e5;font-size:12px}
.theme-control select{font:inherit;font-size:14px;min-height:44px;width:96px;padding:8px 6px;background:#082e32;color:#fff;border:1px solid #698184;border-radius:0;color-scheme:dark;cursor:pointer}
.theme-control select:focus-visible{outline:2px solid #d8bd88;outline-offset:3px}
.portal-header>a:nth-child(2){margin-left:auto;font-size:14px}
@media(max-width:600px){.theme-control>span{display:none}.listings-page .masthead{gap:12px}.header-contact{margin-left:auto}.portal-header{gap:12px}.portal-brand span{display:none}.theme-control select{width:86px}.portal-header>a:nth-child(2){font-size:12px}}
@media screen{
html[data-theme=dark]{--ink:#e4eeed;--muted:#a8bab9;--line:#344749;--paper:#182c2f;--teal:#90ceca;--gold:#c7ad80;--deep:#0a2529;color-scheme:dark}
html[data-theme=dark] body{background:#0f1e21;color:var(--ink)}
html[data-theme=dark] :where(.card,.portal-panel,.inbox-row,.search-input-wrap,.search-input-wrap button,.filter-bar select,.portal-field input,.portal-field textarea,.portal-field select,.portal-code,.location-controls input,.location-tools button,.browse-toolbar button,.portal-button.secondary){background:#172a2d;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :where(.card-action,.property-facts strong,.application-link,.location-tools button){color:var(--ink)}
html[data-theme=dark] .card:hover{border-color:#80a7a5;box-shadow:0 8px 24px #0002}
html[data-theme=dark] :where(#filter-panel,.location-tools,.portal-banner){background:#192f32;color:var(--ink)}
html[data-theme=dark] #filter-panel .location-tools{background:#102326}
html[data-theme=dark] :where(.browse-toolbar button[aria-expanded=true],.browse-toolbar .view-toggle button[aria-pressed=true],#done-filters,.location-tools #use-location,#reset-search,.portal-steps [aria-current=step]){background:#90ceca;border-color:#90ceca;color:#0a2529}
html[data-theme=dark] :where(.portal-button,button.portal-button){background:#90ceca;border-color:#90ceca;color:#0a2529}
html[data-theme=dark] :where(.portal-button.secondary,button.portal-button.secondary){background:transparent;color:#c1e1de;border-color:#698582}
html[data-theme=dark] .portal-steps button{color:#c1d3d1}
html[data-theme=dark] .portal-steps [aria-current=step]{color:#0a2529}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#9aafae;opacity:1}
html[data-theme=dark] .portal-error{background:#3f2528;color:#ffd0c8;border-color:#e99d8f}
html[data-theme=dark] .application-primary{background:#dbeae7;color:#082e32}
html[data-theme=dark] .application-primary:hover{background:white}
html[data-theme=dark] .application-link:hover{background:#233d40}
html[data-theme=dark] .tag{background:#102c2e;color:#e9f1ee}
html[data-theme=dark] :where(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-bar a){background:#172a2d;color:var(--ink)}
html[data-theme=dark] .leaflet-container a.leaflet-popup-close-button{color:#e4eeed}
html[data-theme=dark] .leaflet-control-attribution{background:#172a2deb;color:#c1d3d1}
html[data-theme=dark] .leaflet-control-attribution a{color:#a6ddd8}
html[data-theme=dark] .leaflet-container{background:#182c2f}
/* Style only the street tiles: photos, pins, popups and controls keep their own colors. */
html[data-theme=dark] .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) saturate(.35) brightness(.78) contrast(.9)}
html[data-theme=dark] .property-map-pin span{background:#90ceca;color:#082e32;border-color:#d5e9e6;box-shadow:0 2px 8px #0008}
}
@media print{html{color-scheme:light!important}.theme-control{display:none!important}}
@media(max-width:360px){.header-contact span{display:none}.header-contact{font-size:13px}.listings-page .masthead{gap:9px}.theme-control select{width:80px}}
