.location-page { color: #332c42; }
.location-page .device-heading-row { margin-bottom: 18px; }
.location-status { display: flex; align-items: flex-start; gap: 11px; padding: 15px 16px; border: 1px solid #e7e5f0; border-radius: 17px; background: #f5f7ff; margin-bottom: 17px; }
.location-status strong { font-size: 15px; line-height: 1.4; }
.location-status p { font-size: 13px; line-height: 1.65; margin: 4px 0 0; color: #615b74; }
.location-status-dot { width: 9px; height: 9px; flex: 0 0 9px; background: #8a8194; border-radius: 50%; margin-top: 6px; }
.location-status[data-phase=live] { background: #eef7f3; border-color: #d8ece2; }
.location-status[data-phase=live] .location-status-dot { background: #238463; box-shadow: 0 0 0 4px #23846315; }
.location-status[data-phase=locating] .location-status-dot { background: #2359cf; animation: location-pulse 1.3s ease-in-out infinite; }
.location-status[data-phase=error],.location-status[data-phase=stale],.location-status[data-phase=waiting] { background: #fff5e6; border-color: #f2e3c8; }
.location-map-card { border-radius: 22px; border: 1px solid #e6dce8; overflow: hidden; box-shadow: 0 12px 30px -25px #76204b44; background: #fff; }
.location-map { height: clamp(295px,43vh,435px); width: 100%; background: #e9eef2; z-index: 0; isolation: isolate; }
.location-map.leaflet-container { font-family: inherit; font-size: 12px; }
.location-map .leaflet-control-attribution { font-size: 10px; padding: 2px 6px; background: #ffffffed; }
.location-map .leaflet-control-attribution a { color: #284b9a; }
.location-map .leaflet-bar { border: 1px solid #d8dae6; box-shadow: 0 3px 14px #2831581a; border-radius: 12px; overflow: hidden; }
.location-map .leaflet-bar a { width: 42px; height: 42px; line-height: 42px; color: #3e3b54; }
.location-map .leaflet-tooltip { color: #2f3651; border: 1px solid #e0e3ee; padding: 7px 11px; font-size: 12px; border-radius: 10px; }
.location-map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; padding: 7px 12px; }
.location-map-toolbar > span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #655872; }
.location-map-toolbar button { min-height: 42px; padding: 8px 11px; display: flex; align-items: center; gap: 6px; border-radius: 12px; background: #eef2ff; color: #2359cf; font-size: 12px; font-weight: 750; }
.location-primary { margin-top: 18px; }
.location-primary .btn { min-height: 49px; font-size: 15px; }
.location-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 17px 0; }
.location-facts > div { padding: 16px; background: white; border: 1px solid #efdde8; border-radius: 17px; }
.location-facts dt { color: #756278; font-size: 12px; }
.location-facts dd { margin: 5px 0 0; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.location-external { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #2359cf; background: #f0f3ff; border: 1px solid #dce4fd; border-radius: 13px; font-size: 14px; font-weight: 750; transition: background .2s; }
.location-external:hover { background: #e6edff; }
.location-source-note,.location-map-notice { font-size: 13px; line-height: 1.65; margin: 14px 0 20px; color: #766578; }
.location-map-notice { padding: 12px 14px; background: #fff5e6; border-radius: 12px; color: #75551d; margin-bottom: 0; }
.location-entry { display: flex; gap: 14px; background: #fff; border: 1px solid #e5ddf0; border-radius: 20px; padding: 18px; margin-top: 18px; }
.location-entry-icon { display: grid; place-items: center; color: #2359cf; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 15px; background: #edf2ff; }
.location-entry h2 { font-size: 19px; }
.location-entry p { color: #756278; font-size: 13px; line-height: 1.65; margin: 5px 0 10px; }
.location-entry .btn { min-height: 44px; font-size: 13px; }
@keyframes location-pulse { 50% { opacity: .4; } }
@media(max-width:380px) { .location-map-toolbar { padding: 6px 9px; }.location-map-toolbar > span { font-size: 12px; }.location-map-toolbar button { font-size: 11px; padding: 8px; }.location-facts > div { padding: 13px; }.location-facts dd { font-size: 18px; } }
@media(prefers-reduced-motion:reduce) { .location-status-dot { animation: none !important; }.location-external { transition: none; } }
