/* Explorer : le terrain occupe l’écran, les outils ne quittent pas la carte. */
body.atlas-page { height:100vh; height:100dvh; overflow:hidden; }
.atlas-page [data-shell] { position:relative; z-index:1200; }
.atlas-page #main { position:relative; width:100%; max-width:none; height:calc(100vh - var(--shell-height,112px)); height:calc(100dvh - var(--shell-height,112px)); min-height:240px; margin:0; padding:0; overflow:hidden; isolation:isolate; background:var(--bg); }
.atlas-page #world-map { position:absolute; inset:0; z-index:0; width:100%; height:100%; background:#142b29; font-family:'DM Sans',Arial,sans-serif; }
.atlas-page button,.atlas-page summary,.atlas-page .button { min-height:44px; }
.atlas-page button { touch-action:manipulation; }
.atlas-page :focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.atlas-topbar { position:absolute; z-index:800; top:18px; left:20px; right:20px; display:flex; align-items:center; gap:12px; pointer-events:none; }
.atlas-topbar h1 { pointer-events:auto; margin:0; font-size:32px; display:flex; align-items:baseline; gap:14px; padding:10px 15px; background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:0 5px 16px #0002; }
.atlas-topbar h1 span { color:var(--muted); font:14px/1.4 'DM Sans',Arial,sans-serif; letter-spacing:normal; }
.atlas-topbar button { pointer-events:auto; margin-left:auto; background:var(--panel); color:var(--ink); border-color:var(--line); }
.atlas-search-panel { position:absolute; z-index:810; top:89px; bottom:112px; left:20px; width:304px; display:flex; flex-direction:column; overflow:auto; padding:16px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 10px 30px #0003; }
.atlas-panel-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.atlas-panel-head h2 { font-size:26px; margin:0; }
.atlas-page .atlas-close { padding:0; min-width:44px; width:44px; height:44px; color:var(--muted); background:transparent; border-color:transparent; display:grid; place-items:center; flex:none; }
.atlas-close svg { width:20px; height:20px; stroke:currentColor; stroke-width:1.5; fill:none; }
.atlas-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:3px; background:var(--bg); border-radius:9px; margin-bottom:14px; }
.atlas-page .atlas-modes button { font-size:13px; padding:8px 5px; border-color:transparent; background:transparent; color:var(--muted); }
.atlas-page .atlas-modes button[aria-pressed=true] { background:var(--surface); color:var(--ink); border-color:var(--line); }
.atlas-field { display:block; font-size:12px; line-height:1.4; color:var(--muted); margin:0 0 7px; }
.atlas-field select { width:100%; display:block; margin:5px 0 7px; }
.atlas-search-line { display:flex; align-items:center; gap:5px; }
.atlas-search-line input { min-width:0; width:100%; }
.atlas-page #search-clear { font-size:11px; padding:6px; color:var(--muted); background:transparent; border-color:transparent; }
.atlas-results-count { margin:14px 0 6px; font-size:12px; color:var(--muted); }
.atlas-results { flex:1 0 96px; overflow:auto; min-height:96px; overscroll-behavior:contain; scrollbar-color:var(--line) var(--panel); }
.atlas-page .atlas-result { width:100%; display:flex; justify-content:flex-start; gap:10px; min-height:64px; background:transparent; border:0; border-top:1px solid var(--line); border-radius:0; padding:8px 4px; color:var(--ink); text-align:left; font-weight:400; }
.atlas-page .atlas-result[aria-pressed=true] { background:var(--surface); border-radius:8px; }
.atlas-result img { object-fit:contain; width:44px; height:44px; flex:none; }
.atlas-result span { display:block; min-width:0; }
.atlas-result strong { display:block; font-size:14px; font-weight:500; }
.atlas-result small { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.atlas-inspector { position:absolute; z-index:790; width:330px; right:20px; bottom:84px; max-height:calc(100% - 164px); overflow:auto; overscroll-behavior:contain; padding:16px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 12px 30px #0004; }
.atlas-selection-head { display:flex; align-items:center; gap:9px; margin-bottom:10px; }
.atlas-selection-head>div { flex:1; min-width:0; }
.atlas-selection-head img { width:58px; height:58px; object-fit:contain; flex:none; }
.atlas-selection-head h2 { font-size:26px; margin:0; overflow-wrap:anywhere; }
.atlas-selection-kind { font-size:11px; color:var(--muted); margin:0 0 5px; }
.atlas-inspector p { font-size:12px; line-height:1.5; color:var(--muted); margin-bottom:10px; }
.atlas-inspector .atlas-coordinate { color:var(--ink); font-size:12px; font-variant-numeric:tabular-nums; }
.atlas-inspector details { border-top:1px solid var(--line); }
.atlas-inspector summary { font-size:12px; cursor:pointer; padding:12px 0; color:var(--accent); }
.atlas-location-list { max-height:200px; overflow:auto; scrollbar-color:var(--line) var(--panel); }
.atlas-page .atlas-location { width:100%; justify-content:flex-start; text-align:left; padding:10px 8px; border:0; border-top:1px solid var(--line); background:var(--bg); color:var(--ink); border-radius:0; font-size:12px; font-weight:400; font-variant-numeric:tabular-nums; }
.atlas-page .atlas-location[aria-pressed=true] { color:var(--accent); background:var(--surface); }
.atlas-selection-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.atlas-selection-actions>* { flex:1; font-size:12px; padding:9px 10px; }
.atlas-map-tools { position:absolute; z-index:820; right:20px; bottom:20px; display:flex; gap:6px; }
.atlas-page .atlas-map-tools button { background:var(--panel); color:var(--ink); border-color:var(--line); padding:9px 12px; font-size:12px; box-shadow:0 3px 10px #0002; }
.atlas-page #map-zoom-in,.atlas-page #map-zoom-out { font-size:22px; width:44px; padding:0; font-weight:400; }
.atlas-map-caption { position:absolute; bottom:14px; left:20px; z-index:830; color:var(--ink); font-size:10px; line-height:1.4; background:var(--panel); border:1px solid var(--line); padding:8px 12px; border-radius:8px; max-width:calc(100% - 330px); }
.atlas-map-caption p { margin:0 0 3px; }
.atlas-map-caption>p:nth-child(2) { color:var(--muted); }
.atlas-sources summary { cursor:pointer; min-height:44px; display:flex; align-items:center; color:var(--accent); }
.atlas-sources:not([open]) summary { min-height:44px; }
.atlas-sources summary::before { content:'+'; margin-right:7px; }
.atlas-sources[open] summary::before { content:'−'; }
.atlas-sources>div { position:absolute; bottom:100%; left:0; width:min(440px,calc(100vw - 40px)); max-height:calc(65dvh - 112px); overflow:auto; background:var(--panel); border:1px solid var(--line); padding:18px; border-radius:var(--radius); box-shadow:0 6px 24px #0004; font-size:12px; }
.atlas-sources h2 { font-size:24px; margin-bottom:12px; }
.atlas-sources>div p { margin-bottom:12px; }
.atlas-page .atlas-status { position:absolute; z-index:880; top:90px; right:20px; max-width:320px; background:var(--panel); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:12px; font-size:12px; }
.atlas-status:empty { display:none; }
.atlas-error { position:absolute; z-index:900; top:90px; right:20px; width:min(330px,calc(100% - 40px)); padding:18px; border:1px solid #b8a480; background:var(--panel); color:var(--ink); border-radius:var(--radius); box-shadow:0 6px 25px #0004; }
.atlas-error h2 { font-size:26px; }.atlas-error p { font-size:13px; }
.atlas-page .leaflet-control-attribution { background:var(--panel); color:var(--muted); font-size:9px; }
.atlas-page .leaflet-control-attribution a { color:var(--accent); }
.atlas-page .leaflet-tooltip { background:var(--panel); color:var(--ink); border:1px solid var(--line); box-shadow:none; font-size:12px; }
.atlas-page .leaflet-tooltip-top::before { border-top-color:var(--panel); }.atlas-page .leaflet-tooltip-bottom::before { border-bottom-color:var(--panel); }.atlas-page .leaflet-tooltip-left::before { border-left-color:var(--panel); }.atlas-page .leaflet-tooltip-right::before { border-right-color:var(--panel); }
.atlas-page .atlas-spot-marker,.atlas-page .atlas-boss-marker { display:grid; place-items:center; background:transparent; border:0; }
.atlas-page .atlas-spot-marker span { display:grid; place-items:center; width:30px; height:30px; background:var(--panel); color:var(--ink); border:1px solid var(--accent); border-radius:50%; font-size:13px; font-weight:600; box-shadow:0 2px 5px #0004; }
.atlas-page .atlas-spot-marker.is-selected span { background:var(--accent); color:var(--bg); }
.atlas-page .atlas-boss-marker span { display:block; width:14px; height:14px; transform:rotate(45deg); border:2px solid #f4d693; background:var(--panel); box-shadow:0 2px 5px #0005; }
@media (max-width:1000px) and (min-width:701px) { .atlas-search-panel { width:270px; }.atlas-inspector { width:290px; }.atlas-map-caption { max-width:calc(100% - 300px); } }
@media (max-width:700px) {
  .atlas-topbar { top:12px; left:12px; right:12px; gap:8px; }
  .atlas-topbar h1 { padding:10px 12px; font-size:27px; gap:9px; }
  .atlas-topbar h1 span { font-size:11px; }
  .atlas-topbar button { font-size:12px; padding:10px 12px; }
  .atlas-search-panel { top:75px; left:12px; right:12px; bottom:62px; width:auto; max-height:calc(100% - 137px); padding:14px; z-index:850; }
  .atlas-panel-head h2 { font-size:26px; }
  .atlas-inspector { left:12px; right:12px; bottom:66px; width:auto; max-height:44%; padding:12px; }
  .atlas-selection-head { margin-bottom:6px; gap:7px; }
  .atlas-selection-head img { width:46px; height:46px; }
  .atlas-selection-head h2 { font-size:25px; }
  .atlas-inspector p { font-size:11px; margin-bottom:6px; line-height:1.4; }
  .atlas-selection-kind { font-size:10px!important; }
  .atlas-location-list { max-height:140px; }
  .atlas-selection-actions { gap:6px; margin-top:6px; }
  .atlas-selection-actions>* { font-size:11px; }
  .atlas-map-tools { bottom:12px; right:12px; gap:4px; }
  .atlas-page .atlas-map-tools button { padding:8px; }
  .atlas-map-caption { left:12px; bottom:12px; max-width:calc(100% - 228px); padding:0; border:0; background:transparent; }
  .atlas-map-caption>p { display:none; }
  .atlas-sources:not([open]) summary,.atlas-sources summary { min-height:44px; font-size:10px; background:var(--panel); border:1px solid var(--line); padding:7px 9px; border-radius:8px; }
  .atlas-sources>div { bottom:52px; width:calc(100vw - 24px); max-height:calc(70dvh - var(--shell-height,150px)); }
  .atlas-workspace[data-search-open=true] .atlas-inspector { visibility:hidden; }
  .atlas-workspace[data-search-open=true] #selection-show { visibility:hidden; }
  .atlas-page .atlas-status,.atlas-error { top:75px; right:12px; max-width:calc(100% - 24px); }
}
@media (max-width:360px) { .atlas-topbar h1 { font-size:26px; gap:6px; }.atlas-topbar h1 span { font-size:10px; }.atlas-topbar button { font-size:11px; padding-inline:9px; }.atlas-map-caption { max-width:85px; }.atlas-page .atlas-map-tools button { font-size:11px; padding-inline:6px; } }
@media (max-height:650px) { .atlas-search-panel { top:75px; bottom:80px; }.atlas-panel-head { margin-bottom:4px; }.atlas-modes { margin-bottom:7px; }.atlas-field { margin-bottom:4px; }.atlas-field select { margin-bottom:2px; }.atlas-results-count { margin-top:7px; }.atlas-inspector { max-height:calc(100% - 150px); } }
@media (prefers-reduced-motion:reduce) { .atlas-page *, .atlas-page *::before, .atlas-page *::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; } }
