.location-profile {
  margin-top: 30px;
  padding: 22px;
  background: linear-gradient(180deg, #eef8fe 0%, #f8fcff 100%);
  border: 1px solid #c7e2f1;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(5,64,114,.08);
}
.location-profile__toggle {
  display: none;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  color: #075f9f;
  background: #fff;
  border: 1px solid #a9d4eb;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(5,64,114,.08);
}
.location-profile__toggle-icon { font-size: 1.35rem; line-height: 1; transition: transform .18s ease; }
.location-profile.is-open .location-profile__toggle-icon { transform: rotate(180deg); }
.location-profile__heading,
.location-profile__map-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.location-profile__heading h2,
.location-profile__map-heading h3 { margin: 3px 0 0; color: var(--blue-950); letter-spacing: -.025em; }
.location-profile__heading h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.location-profile__map-heading { margin-top: 24px; }
.location-profile__map-heading h3 { font-size: 1.2rem; }
.location-profile__summary { max-width: 1020px; margin: 16px 0 0; color: #36566a; font-size: .96rem; line-height: 1.7; }
.location-profile__facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.location-profile__facts > div { min-width: 0; padding: 13px 12px; background: rgba(255,255,255,.9); border: 1px solid #d4e7f1; border-radius: 14px; }
.location-profile__facts dt { margin: 0; color: #6b8290; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.location-profile__facts dd { margin: 5px 0 0; color: #173f57; font-size: .88rem; font-weight: 900; overflow-wrap: anywhere; }
.location-profile__sources { margin: 13px 0 0; color: #6a7f8b; font-size: .76rem; line-height: 1.5; }
.location-profile__sources a { color: #0879d9; font-weight: 800; text-decoration: none; }
.location-profile__sources a:hover { text-decoration: underline; }
.location-profile__collapse { display: none; margin: 16px auto 0; min-height: 42px; padding: 0 16px; color: #075f9f; background: #fff; border: 1px solid #b8d9ea; border-radius: 12px; font: inherit; font-size: .82rem; font-weight: 900; cursor: pointer; }

.location-map-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(320px, 43vw, 500px);
  margin-top: 12px;
  overflow: hidden;
  background: #dcecf4;
  border: 1px solid #b8d6e5;
  border-radius: 18px;
}
.location-map { width: 100%; height: 100%; min-height: 320px; }
.location-map__cover { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #31586d; background: #f6fbfe; transition: opacity .22s ease, visibility .22s ease; }
.location-map__cover.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.location-map__cover strong { font-size: .9rem; }
.location-map__cover small { color: #718795; font-size: .72rem; }
.location-map__spinner { width: 28px; height: 28px; border: 3px solid #d5e8f2; border-top-color: #0b7fd2; border-radius: 50%; animation: location-map-spin .8s linear infinite; }
@keyframes location-map-spin { to { transform: rotate(360deg); } }
.location-map__fullscreen { position: absolute; z-index: 30; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 11px; color: #274f64; background: rgba(255,255,255,.95); border: 1px solid rgba(207,224,234,.98); border-radius: 11px; box-shadow: 0 3px 12px rgba(18,48,65,.14); backdrop-filter: blur(6px); font: inherit; font-size: .75rem; font-weight: 900; cursor: pointer; }
.location-map__fullscreen:hover { background: #fff; }
.location-map__unavailable { margin-top: 12px; padding: 22px; color: #617987; background: #fff; border: 1px dashed #bed8e6; border-radius: 16px; text-align: center; }
.location-map-marker { width: 22px; height: 22px; background: #0879d9; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 3px 12px rgba(4,58,102,.35); }
.location-map-stage.is-mobile-page-scroll .maplibregl-canvas { touch-action: pan-y !important; }
.location-map-stage:fullscreen,
.location-map-stage.is-pseudo-fullscreen { width: 100vw; height: 100vh; max-width: none; margin: 0; border: 0; border-radius: 0; background: #dcecf4; }
.location-map-stage:fullscreen .location-map,
.location-map-stage.is-pseudo-fullscreen .location-map { width: 100vw; height: 100vh; min-height: 100vh; }
.location-map-stage.is-pseudo-fullscreen { position: fixed; inset: 0; z-index: 100000; }
.location-map-fullscreen-lock { overflow: hidden !important; }
.location-map-stage:fullscreen .location-map__fullscreen,
.location-map-stage.is-pseudo-fullscreen .location-map__fullscreen { left: 16px; top: 16px; }

.nowmeteo-pwa-standalone .location-profile { padding: 0; background: transparent; border: 0; box-shadow: none; }
.nowmeteo-pwa-standalone .location-profile__toggle { display: flex; }
.nowmeteo-pwa-standalone .location-profile__content { display: none; margin-top: 12px; padding: 18px 14px; background: linear-gradient(180deg, #eef8fe 0%, #f8fcff 100%); border: 1px solid #c7e2f1; border-radius: 18px; box-shadow: 0 8px 22px rgba(5,64,114,.07); }
.nowmeteo-pwa-standalone .location-profile.is-open .location-profile__content { display: block; }
.nowmeteo-pwa-standalone .location-profile.is-open .location-profile__collapse { display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 980px) {
  .location-profile__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .location-profile { margin-top: 24px; padding: 16px 14px; border-radius: 18px; }
  .nowmeteo-pwa-standalone .location-profile { padding: 0; }
  .location-profile__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .location-profile__facts > div { padding: 11px 10px; border-radius: 12px; }
  .location-profile__summary { font-size: .9rem; line-height: 1.62; }
  .location-map-stage { height: 340px; border-radius: 15px; }
  .location-map { min-height: 340px; }
  .location-map__fullscreen { left: 8px; top: 8px; min-height: 38px; padding: 0 9px; }
  .location-map__fullscreen-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .location-profile__toggle-icon, .location-map__cover { transition: none; }
  .location-map__spinner { animation-duration: 1.6s; }
}
