.atlas-map-section { max-width: 1120px; margin: 0 auto 56px; }
.atlas-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.atlas-map-heading h3 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.045em; }
.atlas-map-heading p { margin: 0; color: #777980; font-size: 14px; }
.atlas-map-heading > span { font-size: 11px; font-weight: 650; letter-spacing: .18em; color: #93949b; white-space: nowrap; }
.atlas-map-shell { position: relative; isolation: isolate; height: 580px; border: 1px solid #33343b; border-radius: 26px; overflow: hidden; color: #f1f1f3; background: #222228; box-shadow: 0 18px 50px #00000014; }
.atlas-map-shell::after { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg,#13131894,transparent 25%,transparent 64%,#16161da6); }
.atlas-map-canvas { position: absolute; inset: 0; }
.atlas-map-brand { position: absolute; z-index: 2; top: 25px; left: 27px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.atlas-map-brand strong { font-size: 15px; letter-spacing: .25em; font-weight: 650; }
.atlas-map-brand > span { border-left: 1px solid #ffffff26; padding-left: 12px; color: #b1b1bb; font-size: 11px; letter-spacing: .14em; }
.atlas-map-badge { position: absolute; top: 22px; right: 25px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #ffffff1a; border-radius: 20px; background: #23232ccc; backdrop-filter: blur(12px); font-size: 11px; color: #d6d6df; }
.atlas-map-badge i { width: 5px; height: 5px; background: #d5a064; border-radius: 50%; box-shadow: 0 0 10px #d5a06488; }
.atlas-map-hud { position: absolute; z-index: 2; left: 27px; top: 90px; display: grid; gap: 10px; width: 185px; pointer-events: none; }
.atlas-map-readout { padding: 13px 15px; border: 1px solid #7777824d; background: linear-gradient(130deg,#23232dbd,#23232d55); backdrop-filter: blur(12px); clip-path: polygon(0 0,calc(100% - 12px) 0,100% 12px,100% 100%,0 100%); }
.atlas-map-readout > span { display: block; color: #adadb7; font-size: 9px; letter-spacing: .14em; margin-bottom: 6px; }
.atlas-map-readout strong { display: block; font-size: 21px; line-height: 1.2; font-weight: 450; letter-spacing: -.035em; }
.atlas-map-readout small { display: block; color: #c1c1c9; font-size: 10px; margin-top: 6px; line-height: 1.45; }
.atlas-map-readout .atlas-map-car-label { font-size: 14px; line-height: 1.45; letter-spacing: -.01em; }
.atlas-map-controls { position: absolute; z-index: 3; top: 86px; right: 25px; display: grid; gap: 6px; }
.atlas-map-controls button { display: grid; place-items: center; border: 1px solid #ffffff24; border-radius: 9px; background: #262630e0; backdrop-filter: blur(10px); color: #dddde6; width: 39px; height: 39px; padding: 0; cursor: pointer; font: 500 12px/1 system-ui,sans-serif; transition: background .2s,border-color .2s; }
.atlas-map-controls button:hover { background: #3b3740; border-color: #d2a36980; }
.atlas-map-controls button[aria-pressed="true"] { color: #f3bd7f; border-color: #d2a36970; }
.atlas-map-controls button:focus-visible,.atlas-map-location-button:focus-visible { outline: 2px solid #eabc82; outline-offset: 3px; }
.atlas-map-controls svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.atlas-map-footer { position: absolute; z-index: 2; left: 27px; right: 27px; bottom: 35px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; pointer-events: none; }
.atlas-map-location > span { color: #a8a8b3; font-size: 9px; letter-spacing: .16em; }
.atlas-map-location strong { display: block; font-size: 18px; font-weight: 450; margin: 7px 0; letter-spacing: -.02em; }
.atlas-map-location small { font: 10px/1.4 ui-monospace,monospace; color: #b9b9c3; letter-spacing: .06em; }
.atlas-map-legend { display: flex; gap: 18px; font-size: 10px; color: #c0c0ca; padding-bottom: 3px; }
.atlas-map-legend span { display: flex; align-items: center; gap: 7px; }
.atlas-map-legend i { width: 22px; height: 2px; background: #deaa6a; box-shadow: 0 0 7px #deaa6a66; }
.atlas-map-legend span:last-child i { background: #ddac7566; box-shadow: none; border-bottom: 1px dashed #dfb37a; }
.atlas-map-note { color: #85858e; font-size: 12px; line-height: 1.6; margin: 12px 2px 0; }
.atlas-map-message { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; text-align: center; padding: 32px; background: #232329f5; }
.atlas-map-message[hidden] { display: none; }
.atlas-map-message strong { font-size: 20px; font-weight: 500; }
.atlas-map-message p { font-size: 13px; line-height: 1.6; color: #b3b3bf; max-width: 330px; }
.atlas-map-location-button { border: 0; padding: 0; width: 68px; height: 68px; background: transparent; border-radius: 50%; cursor: pointer; }
.atlas-map-location-button::after { content: ''; position: absolute; inset: 22px; border: 1px solid #e9b27499; border-radius: 50%; background: #e9b27412; box-shadow: 0 0 35px 16px #dd9c4924; }
.atlas-map-pin { width: 13px; height: 13px; border: 2px solid #ebebf0; border-radius: 50%; background: #29292f; box-shadow: 0 0 0 5px #ffffff12; }
.atlas-map-pin.atlas-map-destination { background: #e9b376; border-color: #f4d2a8; }
.atlas-map-shell .maplibregl-popup-content { color: #ededf2; background: #292931; border: 1px solid #ffffff22; padding: 14px 20px 14px 14px; border-radius: 12px; font: 12px/1.6 system-ui,sans-serif; box-shadow: 0 8px 30px #0006; }
.atlas-map-shell .maplibregl-popup-tip { border-top-color: #292931; }
.atlas-map-shell .maplibregl-popup-close-button { color: #ddd; padding: 0 4px; }
.atlas-map-shell .maplibregl-ctrl-attrib { background: #1f1f26db; color: #91919e; font-size: 9px; line-height: 18px; }
.atlas-map-shell .maplibregl-ctrl-attrib a { color: #b5b5bf; }
.atlas-map-shell .maplibregl-ctrl-scale { background: #24242bc9; border-color: #aaaab4; color: #bdbdc5; font: 9px/14px system-ui,sans-serif; }
.atlas-map-shell .maplibregl-canvas:focus-visible { outline: 2px solid #eabc82; outline-offset: -3px; }
@media (max-width: 700px) {
  .atlas-map-heading > span { display: none; }
  .atlas-map-shell { height: 540px; border-radius: 22px; }
  .atlas-map-brand { left: 18px; top: 20px; }
  .atlas-map-brand > span { display: none; }
  .atlas-map-badge { right: 18px; top: 17px; font-size: 10px; }
  .atlas-map-hud { left: 18px; top: 74px; width: 140px; }
  .atlas-map-readout { padding: 10px 12px; }
  .atlas-map-readout strong { font-size: 18px; }
  .atlas-map-controls { right: 18px; top: 74px; }
  .atlas-map-footer { left: 18px; right: 18px; bottom: 35px; display: block; }
  .atlas-map-legend { margin-top: 16px; }
  .atlas-map-location strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .atlas-map-controls button { transition: none; } }

/* Native fullscreen on supported browsers, viewport overlay on iPhone Safari. */
html.atlas-map-fullscreen-open { overflow:hidden; overscroll-behavior:none; }
.atlas-map-shell.atlas-map-expanded {
  position:fixed; z-index:2147483647; top:var(--atlas-fullscreen-top,0px); left:0;
  width:100%; height:var(--atlas-fullscreen-height,100dvh); max-width:none;
  margin:0; border:0; border-radius:0; box-shadow:none; overscroll-behavior:none;
}
.atlas-map-expanded .atlas-map-brand { top:calc(25px + env(safe-area-inset-top,0px)); left:calc(27px + env(safe-area-inset-left,0px)); }
.atlas-map-expanded .atlas-map-badge { top:calc(22px + env(safe-area-inset-top,0px)); right:calc(25px + env(safe-area-inset-right,0px)); }
.atlas-map-expanded .atlas-map-hud { top:calc(90px + env(safe-area-inset-top,0px)); left:calc(27px + env(safe-area-inset-left,0px)); }
.atlas-map-expanded .atlas-map-controls { top:calc(86px + env(safe-area-inset-top,0px)); right:calc(25px + env(safe-area-inset-right,0px)); }
.atlas-map-expanded .atlas-map-controls button { width:44px; height:44px; }
.atlas-map-expanded .atlas-map-footer { left:calc(27px + env(safe-area-inset-left,0px)); right:calc(27px + env(safe-area-inset-right,0px)); bottom:calc(35px + env(safe-area-inset-bottom,0px)); }
.atlas-map-expanded .maplibregl-ctrl-bottom-left { left:env(safe-area-inset-left,0px); bottom:env(safe-area-inset-bottom,0px); }
.atlas-map-expanded .maplibregl-ctrl-bottom-right { right:env(safe-area-inset-right,0px); bottom:env(safe-area-inset-bottom,0px); }
@media (max-width:700px) {
  .atlas-map-expanded .atlas-map-brand { left:calc(18px + env(safe-area-inset-left,0px)); top:calc(20px + env(safe-area-inset-top,0px)); }
  .atlas-map-expanded .atlas-map-badge { right:calc(18px + env(safe-area-inset-right,0px)); top:calc(17px + env(safe-area-inset-top,0px)); }
  .atlas-map-expanded .atlas-map-hud { left:calc(18px + env(safe-area-inset-left,0px)); top:calc(74px + env(safe-area-inset-top,0px)); }
  .atlas-map-expanded .atlas-map-controls { right:calc(18px + env(safe-area-inset-right,0px)); top:calc(74px + env(safe-area-inset-top,0px)); }
  .atlas-map-expanded .atlas-map-footer { left:calc(18px + env(safe-area-inset-left,0px)); right:calc(18px + env(safe-area-inset-right,0px)); }
}
@media (max-height:450px) {
  .atlas-map-expanded .atlas-map-controls { grid-template-columns:repeat(2,44px); }
  .atlas-map-expanded .atlas-map-readout + .atlas-map-readout,.atlas-map-expanded .atlas-map-legend { display:none; }
}
