.map-landmark-controls { position:absolute;top:84px;left:29px;right:26px;z-index:800;display:flex;align-items:center;flex-wrap:wrap;gap:6px;pointer-events:none; }
.map-landmark-controls button { display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;background:#061b2ff2;border:1px solid #72899a;border-radius:4px;color:#becbd7;font-size:11px;pointer-events:auto; }
.map-landmark-controls button[aria-pressed='true'] { color:#e6f7ff;border-color:#78c5e1;background:#0a2b40f5; }
.map-landmark-controls button[data-landmark='guards'][aria-pressed='true'] { color:#f6e3bd;border-color:#b29b70;background:#302b25f0; }
.map-landmark-controls button small { font-size:10px;color:#b7c6d2; }
.landmark-save-status { background:#081b2e;color:#ffd7a4;font-size:10px; }
.landmark-save-status:empty { display:none; }
.map-section .map-help { top:128px; }
.map-section .leaflet-control-zoom { margin-top:174px!important; }
.landmark-icon { display:grid!important;place-items:center;background:none;border:0; }
.kibelisk-art { display:block;object-fit:contain;width:32px;height:32px;flex:none;filter:drop-shadow(0 1px 1px #03101e); }
.map-landmark-controls .kibelisk-art { width:18px;height:20px; }
.landmark-popup-content h3 .kibelisk-art { width:28px;height:30px; }
.kibelisk-neutral { display:inline-block;color:#d7dfef;font-size:20px;line-height:1;flex:none; }
.landmark-kibelisks { align-items:start; }
.guard-symbol { display:inline-grid;place-items:center;width:17px;height:17px;border:1px solid #ffb09b;background:#7d2830;border-radius:4px 4px 8px 8px;color:#fff5df;font:700 12px/1 sans-serif;box-shadow:0 1px 3px #000b;flex:none; }
.guard-group-count { position:absolute;top:-1px;right:-3px;border:1px solid #e4a591;border-radius:7px;min-width:14px;padding:1px 3px;background:#5a1e29;color:#fff1dd;font:9px/1.2 sans-serif;text-align:center; }
.landmark-icon:focus-visible { outline:2px solid #fff;outline-offset:1px;border-radius:5px; }
.landmark-popup .leaflet-popup-content-wrapper,.landmark-popup .leaflet-popup-tip { background:#081e30;color:#eef1e9;border:1px solid #b79c71; }
.landmark-popup .leaflet-popup-content { margin:15px;line-height:1.6; }
.landmark-popup-content h3 { display:flex;align-items:center;gap:7px;font-size:14px;margin:0 14px 8px 0; }
.landmark-popup-content p { margin:6px 0;font-size:12px; }
.landmark-popup-content .guard-warning { color:#ffc8ad; }
.landmark-popup-content .landmark-note { color:#b4c5d1;font-size:11px; }
.landmark-popup-content a { font-size:11px;color:#e5c990; }
.nm-badge { display:inline-block;margin-left:6px;padding:0 5px;vertical-align:1px;border:1px solid #c69260;border-radius:3px;background:#39281d;color:#ffdaa3;font-size:10px;line-height:1.6;white-space:nowrap;font-weight:500; }
.row-title { display:flex;align-items:center;flex-wrap:wrap; }
.nm-source-note { border-left:2px solid #cc9c60;padding:5px 8px;background:#35291b66;color:#f4d6a4!important;font-size:11px;line-height:1.65; }
@media(max-width:1000px) { .map-landmark-controls { top:124px;left:25px;right:22px; }.map-section .map-help { top:168px; }.map-section .leaflet-control-zoom { margin-top:212px!important; } }
@media(max-width:760px) { .map-landmark-controls { top:116px;left:25px;right:22px;gap:5px; }.map-landmark-controls button { padding:5px 7px;font-size:10px;gap:5px; }.map-landmark-controls button small { font-size:9px; }.map-section .map-help { top:160px;max-width:calc(100% - 48px); }.map-section .leaflet-control-zoom { margin-top:204px!important; } }
@media(max-width:360px) { .map-landmark-controls button { gap:4px;padding:5px;font-size:9px; }.map-landmark-controls button small { font-size:8px; } }

.mobile-map-header,.mobile-map-canvas,.mobile-map-footer,.mobile-map-toggle { display:none; }
@media(max-width:760px) {
  .map-section.mobile-map-layout { height:auto;min-height:0;padding:26px; }
  .map-section.mobile-map-layout::after { border-width:20px; }
  .mobile-map-layout .mobile-map-header,.mobile-map-layout .mobile-map-canvas,.mobile-map-layout .mobile-map-footer { display:block; }
  .mobile-map-layout .map-top { position:static;inset:auto;flex-wrap:wrap;gap:8px;margin:0 0 10px; }
  .mobile-map-layout .map-switch a { height:44px;font-size:12px; }
  .mobile-map-layout .map-toolbar { display:flex;gap:8px;width:100%;margin:0; }
  .mobile-map-layout .map-toolbar button { flex:1;min-width:0;min-height:44px;padding:8px;font-size:12px; }
  .mobile-map-layout .mobile-map-toggle { display:block; }
  .mobile-map-toggle[aria-expanded='true'] { border-color:#8ed9fa;background:#123a50; }
  .mobile-map-layout .mobile-map-canvas { position:relative;height:clamp(320px,55dvh,560px);overflow:hidden;border:1px solid #8a9aab66;border-radius:3px; }
  .map-section.mobile-map-layout #map { position:absolute;inset:0; }
  .map-section.mobile-map-layout .leaflet-control-zoom { margin-top:12px!important;margin-left:12px!important; }
  .mobile-map-layout .mobile-map-settings { margin:0 0 10px;padding:12px;background:#071c2e;border:1px solid #859aaa77;border-radius:4px; }
  .mobile-map-settings:not([hidden]) { display:grid;gap:14px; }
  .mobile-map-settings button { min-height:44px;font-size:11px; }
  .mobile-map-settings button:focus-visible,.mobile-map-toggle:focus-visible { outline:2px solid #9be0ff;outline-offset:2px; }
  .mobile-map-settings .map-landmark-controls { position:static;inset:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;pointer-events:auto; }
  .mobile-map-settings .map-landmark-controls button { gap:7px;flex-wrap:wrap;padding:8px;font-size:11px; }
  .mobile-map-settings .map-landmark-controls button small { margin-left:auto;font-size:10px; }
  .mobile-map-settings .map-landmark-controls button::after { content:'非表示';color:#b7c6d2; }
  .mobile-map-settings .map-landmark-controls button[aria-pressed='true']::after { content:'表示中';color:#b7ebde; }
  .mobile-map-settings .map-point-legend { position:static;inset:auto;max-width:none;gap:8px 14px;padding:0;border:0;background:none;box-shadow:none;font-size:11px; }
  .map-section .mobile-map-settings .map-help { position:static;inset:auto;max-width:none;padding:0;border:0;background:none;font-size:11px;line-height:1.6; }
  .mobile-map-footer { margin-top:6px; }
  .mobile-map-footer .map-bottom { position:static;inset:auto;display:flex;flex-wrap:wrap;gap:4px 10px;padding:4px 0 6px;border:0;background:none; }
  .mobile-map-footer .map-bottom>span:not(#tile-status) { display:none; }
  .mobile-map-footer .map-bottom .map-status,.mobile-map-footer #tile-status { font-size:10px; }
  .mobile-map-footer #tile-status { margin-left:auto; }
  .mobile-map-footer .leaflet-control-attribution { position:static;inset:auto!important;float:none;margin:0;padding:6px 0 0;border-top:1px solid #839bad44;background:none;font-size:10px;line-height:1.5; }
  .mobile-map-canvas .map-empty,.mobile-map-canvas .map-error { top:50%;left:12px;right:12px;max-height:calc(100% - 24px);overflow:auto;transform:translateY(-50%);font-size:12px; }
}
