/* Mobile-first toolbar; map and reading layouts adapt to available screen space. */
.map-home-page .map-home{width:100%;max-width:none;margin:0}
.map-home-page .map-home__top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:8px 10px;left:0;right:0;width:auto;max-width:none}
.map-home-page .map-home__brand,.map-home-page .map-search,.map-home-page .map-search-panel,.map-home-page .map-detail-filter{grid-column:1/-1;min-width:0}
.map-home-page .map-home__brand{margin:0}
.map-home-page .map-search{min-height:38px;margin:0}
.map-home-page .map-search__field,.map-home-page .map-search__filter{min-height:36px}
.map-home-page .pr-mode-tabs{grid-column:1;grid-row:3;margin:0;align-self:center;max-width:100%;width:auto;padding:2px}
.map-home-page .pr-mode-tabs button{flex:1;min-width:0;min-height:36px;padding:4px 6px;font-size:11px;line-height:1.25}
.map-home-page .map-radius{grid-column:2;grid-row:3;margin:0;padding:0;gap:3px;align-self:center;min-width:0;border:0}
.map-home-page .map-radius label span{padding:6px 7px;font-size:10px;min-height:32px;display:flex;align-items:center}
.map-home-page .map-radius legend{display:none}
.map-home-page .potalk-about-link{font-size:10px;margin-left:3px;max-width:64px;line-height:1.3}
.map-home-page .quick-filters{grid-column:1/-1;grid-row:4;margin:0;padding:0;gap:5px;overflow-x:auto;flex-wrap:nowrap}
.map-home-page .quick-filter{flex-shrink:0;min-height:32px;padding:5px 9px;font-size:10px}
.map-home-page .map-home__controls{top:auto;bottom:calc(86px + env(safe-area-inset-bottom));right:10px}
.map-home-page .gps-status{top:auto;bottom:calc(143px + env(safe-area-inset-bottom));left:10px;right:65px;max-width:420px;pointer-events:none;font-size:10px}
.pt-location-consent{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;border:0;border-radius:18px;padding:24px;color:#18303b;box-shadow:0 8px 40px #142d4260;font-family:inherit}
.pt-location-consent::backdrop{background:#122b3b80}
.pt-location-consent h2{font-size:20px;margin:0 0 12px}.pt-location-consent p{font-size:14px;line-height:1.8;margin:0 0 18px}.pt-location-consent .pr-actions{margin-bottom:0}.pt-location-consent button{flex:1;min-height:44px}
.pr-detail-links{margin:0}.pr-mode .map-home__controls{top:auto;bottom:calc(86px + env(safe-area-inset-bottom))}
@media(min-width:760px){
 .map-home-page .map-home__top{left:20px;right:auto;top:18px;width:420px;border-radius:16px;box-shadow:0 3px 20px #18303b25}
 .map-home-page .map-home__controls{top:24px;bottom:auto;right:24px}
 .map-home-page .bottom-sheet{left:20px;right:auto;width:380px;max-width:calc(100vw - 40px);bottom:88px;border-radius:18px;box-shadow:0 3px 20px #18303b25}
 .map-home-page .bottom-sheet[data-snap=large]{height:calc(100dvh - 290px);max-height:calc(100dvh - 290px)}
 .map-home-page .map-home__bottom-nav,.pt-nav{width:640px;max-width:calc(100vw - 40px);border-radius:16px 16px 0 0}
 .map-home-page .gps-status{bottom:94px;left:auto;right:24px;max-width:310px}
 .map-home-page .pr-panel{left:auto;right:20px;width:320px;bottom:94px}
 .spot-app{width:calc(100% - 40px);max-width:1100px;margin:auto}
 .spot-app__hero{height:330px}.spot-app__panel{padding:22px}.spot-app__identity{padding:22px}
 .pt-shell{max-width:1040px;padding:24px 32px 100px}.pt-shell form{max-width:760px}.pt-auth-card{max-width:560px;margin:auto}
}
@media(min-width:1100px){
 .spot-app{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
 .spot-app__hero,.spot-app__identity,.pt-detail-lock,.spot-app>footer,.spot-app>.pt-share{grid-column:1/-1}
 .spot-app__hero{height:400px}.spot-app__panel{margin:0}.spot-app__score,.spot-app__recommended,.spot-app>.pr-detail-links{grid-column:1/-1}
 .map-home-page .map-home__top{width:460px}
 .map-home-page .map-home__bottom-nav{left:auto;right:20px;transform:none;width:480px}
 .map-home-page .pr-panel{width:360px}
}
