/* Tablet keeps the 2.3.49 layout; mobile fixes stay below its original 700px breakpoint. */
.tcs-filter-close{display:none}
@media(max-width:700px){/* Touch controls remain discoverable independently of card layouts. */
#publicLogin{display:inline-flex!important;align-items:center;justify-content:center}#publicRegister{white-space:nowrap}.public-actions{display:flex!important;flex-wrap:wrap;gap:8px;min-width:0}
.construction-notice{padding:12px!important;align-items:center!important;overflow:hidden!important}.construction-card{max-height:calc(100dvh - 24px);max-height:min(90vh,calc(100dvh - 24px));overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:24px!important}.construction-card #constructionAccept{position:sticky;bottom:0;width:100%;min-height:48px;box-shadow:0 -12px 18px white;margin-top:16px}.construction-card h2{font-size:clamp(22px,4vw,30px)!important}.construction-icon{width:56px!important;height:56px!important;margin-bottom:12px!important}.construction-card p{font-size:14px!important;line-height:1.6!important}
}
.ph-split .ph-results-map{order:-1}.ph-split .ph-grid{order:1}.ph-split{display:grid!important}.ph-split .ph-results-map{min-width:0}
@media(min-width:1400px){.ph-split .ph-results-map{order:1}.ph-split .ph-grid{order:0}}
@media(max-width:1399px){.ph-split{grid-template-columns:minmax(0,1fr)!important}.ph-split .ph-results-map{position:static}.ph-split .ph-map{height:clamp(240px,40dvh,420px)}}
@media(max-width:700px){
.ph-filter-toggle,.sv-filter-toggle,.mk-filter-toggle{display:inline-flex!important;min-height:44px!important;align-items:center;justify-content:center;padding:10px 14px!important;background:white;border:1px solid #b8cdd9;border-radius:10px;color:#184361}
.ph-layout,.sv-layout,.mk-layout{display:block!important}.ph-filter,.sv-filters,.mk-filters{display:none!important}.ph-filter.show,.sv-filters.show,.mk-filters.show{display:block!important;position:fixed!important;inset:65px 12px calc(90px + env(safe-area-inset-bottom))!important;z-index:1900!important;overflow:auto!important;overscroll-behavior:contain;box-shadow:0 0 0 100vmax #142d4766;padding:20px!important;background:white;border-radius:16px;max-width:600px;margin:0 auto!important}.tcs-filter-close{display:block;position:sticky;top:0;z-index:2;width:100%;min-height:44px;background:#124c79;color:white;border:0;border-radius:9px;margin-bottom:12px}.ph-filter .ph-actions,.mk-filters>.mk-actions,.sv-filters>.sv-actions{position:relative;z-index:1}.ph-toolbar,.sv-result-head,.mk-results-bar{gap:8px;flex-wrap:wrap}.ph-toolbar select,.sv-result-head select,.mk-results-bar select{min-height:44px}.ph-search,.sv-search,.mk-search{flex-wrap:wrap}.ph-search input,.sv-search input,.mk-search input{min-width:0;flex:1 1 180px}.ph-hero,.sv-hero{padding:20px!important}.ph-hero h2,.sv-hero h2{font-size:28px!important}.ph-hero p,.sv-hero p{font-size:13px!important;margin:10px 0}.ph-art,.sv-illustration{display:none!important}.ph-tabs,.sv-tabs{flex-wrap:nowrap!important;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}.ph-tabs button,.sv-tabs button{flex:0 0 auto;white-space:nowrap}.ph-compare-bar{bottom:calc(85px + env(safe-area-inset-bottom))}.ph-split .ph-grid{grid-template-columns:1fr!important}#phRoot,#svRoot,#mkRoot{padding-bottom:16px}
}
@media(max-width:600px){.public-top{flex-wrap:wrap!important;gap:10px!important;padding:12px!important}.public-top .public-actions{width:100%;justify-content:flex-end}.public-actions button{min-height:44px!important;font-size:13px!important;padding:10px 12px!important}.public-brand img{max-width:160px!important}.ph-hero h2,.sv-hero h2{font-size:24px!important}.ph-hero .ph-eyebrow{font-size:9px!important;letter-spacing:1px}.ph-hero p{display:none}.ph-search select{flex:1}.ph-search button{flex:1}.ph-toolbar{align-items:flex-start}.ph-toolbar>.ph-actions{width:100%}.ph-toolbar select{flex:1;max-width:none}.ph-results-map .ph-actions button{flex:1}.ph-panel,.sv-panel{min-width:0}.construction-card{padding:18px!important}.construction-card .notice-warning{padding:12px!important}}
@media(max-width:700px){#mkFilterSummary{font-size:12px;line-height:1.5;color:#516b7e;margin:10px 0;overflow-wrap:anywhere}}
@media(min-width:1400px){.ph-split{grid-template-columns:minmax(0,1fr) minmax(280px,.9fr)!important}}
.tcs-restoring #appView,.tcs-restoring #publicView,.tcs-restoring #authView{pointer-events:none}
@media(max-width:700px){.tcs-filters-open #phRoot,.tcs-filters-open #svRoot,.tcs-filters-open #mkRoot{container-type:normal!important;contain:none!important}.ph-filter.show .ph-actions,.mk-filters.show>.mk-actions,.sv-filters.show>.sv-actions{position:sticky;bottom:0;background:white;padding:10px 0;box-shadow:0 -8px 12px white}}
@media(max-width:700px){#phFilters.show,#svFilters.show,#mkFilters.show{top:65px!important;left:12px!important;right:12px!important;bottom:auto!important;height:calc(100dvh - 165px)!important;max-height:calc(100dvh - 165px)!important;min-height:0!important;overflow-y:auto!important;width:auto!important}}

/* 2.3.52: direct mobile search; preserve tablet and desktop. */
@media(max-width:700px){
#svRoot{display:flex;flex-direction:column}#svRoot>.sv-hero{order:0}#svRoot>.sv-tabs{order:1}#svContent{order:2}#svRoot>.sv-scenarios{order:3}#svForm{order:4}
.sv-hero p{display:none}.sv-hero h2{margin:10px 0}.sv-hero .sv-actions{margin:10px 0 0}.sv-hero .sv-actions button{min-height:44px;flex:1 1 130px}
.ph-search,.sv-search,.mk-search{scroll-margin-top:80px}.sv-search input,.mk-search input{flex:1 1 140px}.sv-search button,.mk-search button{min-height:44px}
}
