.dungeons-map-section.section { padding-block: 40px; border-bottom: 1px solid var(--line); }
.dungeons-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.dungeons-map-heading h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: -0.055em; line-height: 1.25; }
.dungeons-map-page-nav { padding: 24px clamp(24px, 7vw, 134px) 0; }
.dungeons-map-page-nav a { display: inline-flex; align-items: center; gap: 8px; color: #a8f5ff; font-size: 13px; text-decoration: none; }
.dungeons-map-page-nav a:hover { color: #fff; }
.dungeons-map-page-nav svg { width: 16px; height: 16px; }
.dungeons-map-page .dungeons-map-section { padding-top: 24px; }
.dungeons-map-heading .eyebrow { margin-bottom: 12px; }
.dungeons-map-heading > p { margin: 0; color: var(--muted); font-size: 14px; }
.dungeons-map-intro { margin: -12px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.dungeons-map-directory.section { padding-block: 32px 48px; }
.dungeons-map-directory h2 { font-size: clamp(22px, 2.5vw, 30px); }
.dungeons-map-directory > p { margin: 14px 0 22px; color: var(--muted); font-size: 14px; }
.dungeons-map-directory details { border-top: 1px solid var(--line); }
.dungeons-map-directory summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 15px; color: #a8f5ff; }
.dungeons-map-directory summary span { font-size: 12px; color: var(--muted); margin-left: auto; }
.dungeons-map-directory-toggle { width: 16px; height: 16px; flex: 0 0 auto; }
.dungeons-map-directory details[open] .dungeons-map-directory-toggle { transform: rotate(180deg); }
.dungeons-map-directory ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; list-style: none; padding: 0 0 24px; margin: 0; }
.dungeons-map-directory li { min-width: 0; overflow-wrap: anywhere; }
.dungeons-map-directory li a { color: #eefcff; font-size: 13px; text-decoration: none; }
.dungeons-map-directory li a:hover { color: #55e8ff; }
.dungeons-map-directory li span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.dungeons-map { --point-color: #55e8ff; border: 1px solid #28425b; background: #0a1627; border-radius: 10px; overflow: hidden; isolation: isolate; }
.dungeons-map [hidden] { display: none !important; }
.dungeons-map button, .dungeons-map input { font: inherit; }
.dungeons-map button { cursor: pointer; }
.dungeons-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid #253d53; }
.dungeons-map-worlds { display: flex; padding: 3px; gap: 3px; border: 1px solid #2b4158; border-radius: 7px; background: #06101e; }
.dungeons-map-worlds button { padding: 9px 15px; border: 0; border-radius: 4px; color: #a9c0d4; background: transparent; font-size: 13px; }
.dungeons-map-worlds button[aria-pressed="true"] { background: #1b414c; color: #83f2ff; font-weight: 700; }
.dungeons-map-search { display: flex; align-items: center; flex: 1; min-width: 180px; max-width: 360px; gap: 10px; padding: 9px 12px; border: 1px solid #2b4158; border-radius: 6px; background: #06101e; color: #a9c0d4; }
.dungeons-map-search svg { width: 18px; height: 18px; flex: 0 0 auto; }
.dungeons-map-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #eefcff; font-size: 13px; }
.dungeons-map-search input::placeholder { color: #91a9bd; }
.dungeons-map-search:focus-within { border-color: #55e8ff; }
.dungeons-map-actions { margin-left: auto; display: flex; gap: 8px; }
.dungeons-map-actions button { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid #2b4158; border-radius: 6px; background: #0d2034; color: #e3f2fb; font-size: 12px; }
.dungeons-map-actions svg { width: 16px; height: 16px; }
.dungeons-map-actions button:hover { border-color: #55e8ff; }
.dungeons-map-layers { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #253d53; }
.dungeons-map .dungeons-map-layer { display: inline-flex; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid #2b4158; border-radius: 5px; background: #12243a; color: #eefcff; font-size: 12px; }
.dungeons-map-layer::before, .dungeons-map-point::before, .dungeons-map-detail-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--point-color); flex: 0 0 auto; }
.dungeons-map-layer b { color: #b1c5d7; font-weight: 400; font-size: 11px; }
.dungeons-map-layer[aria-pressed="false"] { background: transparent; color: #7e94a7; }
.dungeons-map-layer[aria-pressed="false"]::before { background: #506276; }
.dungeons-map-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.dungeons-map-stage { position: relative; min-width: 0; background: #10100f; }
.dungeons-map-canvas { width: 100%; height: clamp(480px, 60vh, 760px); background: #10100f; font-family: inherit; }
.dungeons-map-stage .leaflet-container { background: #10100f; }
.dungeons-map-stage .leaflet-container:focus-visible { outline: 2px solid #55e8ff; outline-offset: -3px; }
.dungeons-map-pin { width: 17px; height: 17px; border: 2px solid #10100f; border-radius: 50%; background: var(--point-color); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.dungeons-map-pin--region { box-shadow: 0 0 0 2px rgba(255,169,40,.28); }
.dungeons-map-pin:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dungeons-map .dungeons-map-tooltip { background: #0b1c2d; color: #eefcff; border: 1px solid #456378; padding: 9px 12px; border-radius: 6px; box-shadow: 0 3px 15px #0006; font-size: 12px; line-height: 1.6; }
.dungeons-map .dungeons-map-tooltip::before { border-top-color: #456378; }
.dungeons-map .dungeons-map-tooltip strong { font-size: 13px; }
.dungeons-map .leaflet-control-zoom { border: 1px solid #38556b; box-shadow: 0 2px 8px #0007; }
.dungeons-map .leaflet-control-zoom a { background: #10263a; color: #eefcff; border-color: #38556b; font-family: Arial, sans-serif; }
.dungeons-map .leaflet-control-zoom a:hover { background: #1c3a51; }
.dungeons-map .leaflet-control-zoom a.leaflet-disabled { background: #112134; color: #677e91; }
.dungeons-map-status { position: absolute; left: 16px; bottom: 14px; z-index: 800; max-width: calc(100% - 85px); margin: 0; padding: 9px 12px; background: #0b1c2deb; border: 1px solid #38556b; border-radius: 6px; color: #d4e8f4; font-size: 13px; pointer-events: none; }
.dungeons-map-retry { position: absolute; top: 18px; left: 18px; z-index: 800; background: #183f51; color: #eefcff; border: 1px solid #55e8ff; border-radius: 5px; padding: 9px 14px; }
.dungeons-map-sidebar { min-width: 0; border-left: 1px solid #253d53; display: flex; flex-direction: column; height: clamp(480px, 60vh, 760px); overflow: hidden; }
.dungeons-map-selection { padding: 18px; border-bottom: 1px solid #345067; background: #10263a; flex-shrink: 0; max-height: 45%; overflow-y: auto; }
.dungeons-map-detail-kind { display: flex; align-items: center; gap: 8px; color: #b8d4e8; margin: 0 0 8px; font-size: 12px; }
.dungeons-map-selection h3 { color: #fff; margin: 0 0 7px; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.dungeons-map-detail-area { color: #aad0e1; margin: 0; font-size: 13px; }
.dungeons-map-detail-description { font-size: 13px; line-height: 1.7; color: #cbdfeb; }
.dungeons-map-selection h4 { font-size: 13px; color: #83f2ff; margin: 16px 0 7px; }
.dungeons-map-selection ul { padding-left: 18px; margin: 0; font-size: 13px; line-height: 1.8; color: #cbdfeb; }
.dungeons-map-selection a { color: #83f2ff; }
.dungeons-map-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #20364b; }
.dungeons-map-list-heading h3 { margin: 0; color: #eefcff; font-size: 14px; }
.dungeons-map-list-heading span { color: #a7bdcf; font-size: 12px; }
.dungeons-map-point-list { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #34516c #0a1627; }
.dungeons-map-point { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; width: 100%; border: 0; border-bottom: 1px solid #1e3348; padding: 13px 16px; text-align: left; background: transparent; color: #eefcff; }
.dungeons-map-point::before { grid-row: 1 / 3; align-self: center; }
.dungeons-map-point strong { font-size: 13px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.dungeons-map-point span { font-size: 11px; color: #a7bdcf; line-height: 1.6; }
.dungeons-map-point:hover, .dungeons-map-point[aria-current] { background: #163148; }
.dungeons-map-empty { color: #a7bdcf; font-size: 13px; padding: 20px 16px; margin: 0; }
.dungeons-map-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid #253d53; color: #94aec2; font-size: 11px; line-height: 1.7; }
.dungeons-map-footer a { color: #b7e5f2; }
.dungeons-map-noscript { padding: 16px; margin: 0; color: #b8d4e8; font-size: 13px; }
.dungeons-map-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.dungeons-map:fullscreen, .dungeons-map.is-fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; display: flex; flex-direction: column; background: #0a1627; color: #eefcff; }
.dungeons-map.is-fullscreen { position: fixed; inset: 0; z-index: 10000; }
.dungeons-map:fullscreen .dungeons-map-body, .dungeons-map.is-fullscreen .dungeons-map-body { flex: 1; min-height: 0; }
.dungeons-map:fullscreen .dungeons-map-canvas, .dungeons-map.is-fullscreen .dungeons-map-canvas, .dungeons-map:fullscreen .dungeons-map-sidebar, .dungeons-map.is-fullscreen .dungeons-map-sidebar { height: 100%; }
.dungeons-map:fullscreen button, .dungeons-map.is-fullscreen button { color: #eefcff; }
@media (max-width: 1050px) {
    .dungeons-map-body { grid-template-columns: minmax(0, 1fr) 250px; }
    .dungeons-map-search { max-width: none; }
}
@media (max-width: 760px) {
    .dungeons-map-directory ul { grid-template-columns: minmax(0, 1fr); }
    .dungeons-map-page-nav { padding-inline: 16px; }
    .dungeons-map-section.section { padding: 32px 16px; }
    .dungeons-map-heading { display: block; margin-bottom: 20px; }
    .dungeons-map-heading > p { margin-top: 12px; line-height: 1.6; }
    .dungeons-map-toolbar { padding: 12px; gap: 10px; }
    .dungeons-map-search { order: 3; flex-basis: 100%; }
    .dungeons-map-actions { gap: 6px; }
    .dungeons-map-actions button { padding: 9px 8px; gap: 5px; }
    .dungeons-map-worlds button { padding: 9px 10px; }
    .dungeons-map-layers { padding: 10px 12px; gap: 6px; }
    .dungeons-map .dungeons-map-layer { padding: 7px 8px; min-height: 34px; }
    .dungeons-map-body { grid-template-columns: minmax(0, 1fr); }
    .dungeons-map-canvas { height: 450px; max-height: 62vh; min-height: 320px; }
    .dungeons-map-sidebar { height: 280px; border-left: 0; border-top: 1px solid #253d53; }
    .dungeons-map-selection { padding: 14px 16px; max-height: 55%; }
    .dungeons-map-footer { padding: 10px 12px; }
    .dungeons-map:fullscreen .dungeons-map-body, .dungeons-map.is-fullscreen .dungeons-map-body { display: flex; flex-direction: column; }
    .dungeons-map:fullscreen .dungeons-map-stage, .dungeons-map.is-fullscreen .dungeons-map-stage { flex: 1; min-height: 0; }
    .dungeons-map:fullscreen .dungeons-map-canvas, .dungeons-map.is-fullscreen .dungeons-map-canvas { height: 100%; min-height: 0; max-height: none; }
    .dungeons-map:fullscreen .dungeons-map-sidebar, .dungeons-map.is-fullscreen .dungeons-map-sidebar { height: 180px; flex-shrink: 0; }
}
@media (max-width: 360px) {
    .dungeons-map-actions button { font-size: 11px; padding-inline: 6px; }
    .dungeons-map-worlds button { padding-inline: 7px; }
}
