.map-page{background:#e7e5da;color:#151a16;min-height:100vh;padding:0 max(24px,calc((100vw - 1600px)/2)) 110px}.map-heading{display:flex;align-items:end;justify-content:space-between;gap:40px;padding:70px 0 48px}.map-heading h1{font-size:clamp(58px,6.2vw,112px);line-height:.88;margin:12px 0 0}.map-heading>p{max-width:370px;color:#536055;font-size:15px;margin:0}.map-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.8fr);gap:12px;align-items:start}.map-panel{background:#18211a;color:#eae7db;border:1px solid #485245;box-shadow:0 20px 45px #161c1433}.map-toolbar,.map-coordinate-bar{min-height:47px;padding:8px 17px;display:flex;align-items:center;justify-content:space-between;gap:14px;font:700 10px 'Courier New',monospace;letter-spacing:.1em;color:#f4c63f}.map-toolbar{border-bottom:1px solid #485245}.map-toolbar>div{display:flex;gap:5px}.map-toolbar button{border:1px solid #677064;background:#202c21;color:#f4c63f;min-width:30px;min-height:28px;font:700 14px 'Courier New',monospace;cursor:pointer}.map-toolbar .map-reset{font-size:10px;padding:0 9px;text-transform:uppercase}.map-toolbar button:hover{background:#394633}.map-viewport{height:min(61vw,670px);min-height:440px;overflow:hidden;position:relative;touch-action:none;cursor:grab}.map-viewport:active{cursor:grabbing}.map-canvas{position:relative;width:100%;height:100%;transform-origin:center center;will-change:transform}.map-terrain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-watermark{font:900 220px Impact,sans-serif;fill:#f4c63f;opacity:.055;letter-spacing:-.05em}.map-marker{position:absolute;z-index:2;display:flex;align-items:center;gap:8px;transform:translate(-13px,-13px);color:#fff;font:700 11px 'Courier New',monospace;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;text-shadow:0 2px 5px #000}.map-marker-pin{height:26px;width:26px;border:4px solid #19241d;background:#f4c63f;box-shadow:0 0 0 1px #f4c63f,0 0 16px #f4c63f66;transform:rotate(45deg);flex:none}.map-marker.is-active .map-marker-pin,.map-marker:hover .map-marker-pin{background:#fff;box-shadow:0 0 0 2px #f4c63f,0 0 24px #f4c63faa}.map-marker-label{background:#17201bdd;border:1px solid #66715a;padding:7px 9px}.map-coordinate-bar{border-top:1px solid #485245;color:#9eaa98;font-size:9px}.map-sidebar{background:#1c241e;color:#eee9da;border:1px solid #485245;min-height:720px}.map-sidebar-head{padding:17px 22px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #485245;color:#f4c63f;font:700 10px 'Courier New',monospace;letter-spacing:.1em}.map-empty{padding:60px 28px}.map-empty>span,.map-detail-kind,.map-updated{font:700 10px 'Courier New',monospace;letter-spacing:.14em;color:#f4c63f}.map-empty h2,.map-detail h2{font-size:clamp(40px,4vw,66px);margin:15px 0 20px;overflow-wrap:anywhere}.map-empty p{color:#b8c0b3;line-height:1.7}.map-empty a{display:inline-block;color:#f4c63f;border-bottom:1px solid currentColor;font:700 11px 'Courier New',monospace;margin-top:20px}.map-detail{padding:30px 28px 36px}.map-detail[hidden]{display:none}.map-summary{font-size:17px;line-height:1.55;color:#d1d4ca;padding-bottom:26px;border-bottom:1px solid #4a5547}.map-detail-body h3,.map-location-list h3{font:700 11px 'Courier New',monospace;letter-spacing:.12em;color:#f4c63f;margin:28px 0 12px}.map-detail-body h3:not(:first-child){border-top:1px solid #4a5547;padding-top:22px}.map-detail-body p,.map-detail-body li{font-size:14px;color:#bdc6b8;line-height:1.7}.map-detail-body p{margin:0 0 12px}.map-detail-body strong{color:#fff}.map-detail-body a{color:#f4c63f;text-decoration:underline}.map-detail-body ul{padding-left:22px}.map-detail-body blockquote{border-left:2px solid #f4c63f;padding-left:12px;color:#fff}.map-updated{margin:28px 0 0;color:#aab3a4}.map-location-list{border-top:1px solid #4a5547;padding:20px 28px 28px}.map-location-list h3{display:flex;justify-content:space-between;margin:0 0 16px}.map-filter{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.map-filter button{background:transparent;color:#c4cabe;border:1px solid #586553;font:700 10px 'Courier New',monospace;padding:7px 9px;cursor:pointer}.map-filter button[aria-pressed=true]{background:#f4c63f;color:#18211a;border-color:#f4c63f}.map-location-list>a{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #404c3e;padding:12px 0;color:#eee9da;font-size:14px}.map-location-list>a:hover{color:#f4c63f}.map-location-list>a[hidden]{display:none}.map-location-list small{color:#a6b2a1;font:10px 'Courier New',monospace}.map-picker{position:relative;width:100%;aspect-ratio:16/9;background:repeating-linear-gradient(0deg,transparent 0 29px,#ffffff16 30px),repeating-linear-gradient(90deg,transparent 0 29px,#ffffff16 30px),radial-gradient(ellipse at 45% 38%,#394533,#172019);border:1px solid #637060;cursor:crosshair;margin:0 0 10px}.map-picker::after{content:'CLICK TO PLACE LOCATION';position:absolute;left:15px;bottom:12px;color:#c5d0bd;font:700 10px 'Courier New',monospace;pointer-events:none}.map-picker-point{position:absolute;width:18px;height:18px;background:#f4c63f;border:3px solid #171d16;box-shadow:0 0 0 1px #f4c63f;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}.map-admin-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:12px}.map-admin-note{font-size:12px;color:#aeb9a9;margin:-10px 0 18px}@media(max-width:1050px){.map-layout{grid-template-columns:1fr}.map-sidebar{min-height:0}.map-viewport{height:60vw;min-height:430px}}@media(max-width:700px){.map-heading{display:block;padding:56px 0 35px}.map-heading>p{margin-top:20px}.map-page{padding-left:16px;padding-right:16px}.map-viewport{height:500px;min-height:0}.map-coordinate-bar{font-size:8px}.map-marker-label{font-size:9px;max-width:150px;overflow:hidden;text-overflow:ellipsis}.map-marker-pin{width:20px;height:20px}}@media(prefers-reduced-motion:reduce){.map-canvas{will-change:auto}}
.map-marker[hidden]{display:none}

/* The supplied survey is displayed north-up; markers use its corrected coordinates. */
.map-viewport{height:auto;min-height:0;aspect-ratio:904/882;background:#332d20}
.map-canvas{height:100%;aspect-ratio:904/882}
.map-terrain{width:100%;height:100%;object-fit:fill;transform:rotate(180deg);user-select:none}
.map-orientation{position:absolute;z-index:8;padding:7px 10px;background:#111a17de;border:1px solid #d0ad56;color:#f4d467;font:700 10px 'Courier New',monospace;letter-spacing:.1em;pointer-events:none}
.map-orientation-north{top:12px;left:12px}.map-orientation-south{right:12px;bottom:12px}
.map-hazard{position:absolute;z-index:1;bottom:0;height:30%;pointer-events:none;mix-blend-mode:screen;opacity:.35;background:radial-gradient(ellipse at center,#a9b70d88 0,#6e7b09aa 45%,transparent 72%)}
.map-hazard-west{left:0;width:34%}.map-hazard-center{left:38%;width:38%}
.map-marker{width:20px;height:20px;display:block;transform:translate(-50%,-50%);z-index:3}
.map-marker-pin{display:block;width:16px;height:16px;border:3px solid #152017;border-radius:50%;transform:none;box-shadow:0 0 0 2px #f4c63f,0 0 12px #111a17}
.map-marker-label{position:absolute;left:24px;top:-7px;max-width:195px;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s;box-shadow:0 5px 18px #0009}
.map-marker:hover,.map-marker:focus-visible,.map-marker.is-active{z-index:5}
.map-marker:hover .map-marker-label,.map-marker:focus-visible .map-marker-label,.map-marker.is-active .map-marker-label{opacity:1;visibility:visible}
.map-picker{aspect-ratio:904/882;background:#302a1e;overflow:hidden}
.map-picker::before{content:'';position:absolute;inset:0;background:url('/assets/worldmap-v78.png') center/100% 100% no-repeat;transform:rotate(180deg);pointer-events:none}
.map-picker-point{z-index:2}
@media(max-width:700px){.map-viewport{height:auto;min-height:0}.map-marker-label{font-size:9px;max-width:120px}.map-orientation{font-size:8px;padding:5px 7px}}

/* Compact control-room editor: details at left, the survey at the top right. */
.map-editor{background:#202524;border:1px solid var(--line);padding:30px;margin-top:20px}
.map-editor-layout{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:34px;align-items:start}
.map-editor-side,.map-editor-main{min-width:0}
.map-editor-side h2{margin:0 0 12px}
.map-editor-help{color:var(--muted);font-size:13px;line-height:1.55;margin:0}
.map-editor-side .inline-link{margin-top:16px}
.map-editor-fields{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.map-editor label,.map-location-tools label{display:block;color:var(--text);font:800 11px Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;margin:0 0 9px}
.map-editor input,.map-editor select,.map-editor textarea,.map-location-tools input,.map-location-tools select{width:100%;min-width:0;background:#111615;color:var(--text);border:1px solid #5d655b;border-radius:0;padding:12px 13px;font:15px/1.4 Arial,sans-serif}
.map-editor input,.map-editor select,.map-editor textarea{margin:0 0 18px}
.map-editor textarea{resize:vertical}
.map-editor :is(input,select,textarea):focus,.map-location-tools :is(input,select):focus{outline:2px solid var(--yellow);outline-offset:1px}
.map-editor-main .map-position-label{margin:0 0 10px}
.map-editor-main .map-picker{margin-bottom:8px}
.map-editor-main .map-admin-note{margin:0 0 26px;color:var(--muted)}
.map-admin-coordinates{grid-template-columns:repeat(2,minmax(0,120px));gap:12px;margin:0 0 4px}
.map-admin-coordinates input{max-width:120px}
.map-editor-side .action{width:100%;margin-top:2px}
.map-loot-field{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.map-loot-field textarea{min-height:116px}
.map-loot-field small{display:block;color:var(--muted);font-size:12px;line-height:1.5}
.map-editor-main small{display:block;color:var(--muted);font-size:12px;line-height:1.5}
.map-location-section{margin-top:56px}
.map-location-heading h2{margin:0 0 24px}
.map-location-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.map-location-tools label:first-child{flex:1 1 240px;max-width:400px}
.map-location-tools label:nth-child(2){flex:0 1 190px}
.map-location-tools input,.map-location-tools select{display:block;margin-top:9px;height:46px}
.map-location-tools [data-map-count]{margin-left:auto;padding-bottom:14px;color:var(--yellow);font:700 11px 'Courier New',monospace;text-transform:uppercase;white-space:nowrap}
.map-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.map-location-card{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:165px;padding:19px 18px;background:#202524;border:1px solid var(--line)}
.map-location-card[hidden],.map-list-empty[hidden]{display:none}
.map-location-type{color:var(--yellow);font:700 10px 'Courier New',monospace;letter-spacing:.08em}
.map-location-card h3{font-size:19px;line-height:1.2;margin:10px 0 7px;overflow-wrap:anywhere}
.map-location-card small{color:var(--muted);font:11px 'Courier New',monospace}
.map-location-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:17px}
.map-location-actions form{margin:0 0 0 auto}
.map-location-actions a,.map-location-actions button{display:inline-block;border:1px solid #697268;background:transparent;color:var(--yellow);font:700 10px 'Courier New',monospace;text-transform:uppercase;text-decoration:none;padding:9px 11px;cursor:pointer}
.map-location-actions a:hover,.map-location-actions button:hover{border-color:var(--yellow);background:#30362e}
.map-location-actions button{color:#dfaaa0}
.map-list-empty{border:1px solid var(--line);padding:20px;color:var(--muted)}
@media(max-width:1050px){.map-editor-layout{grid-template-columns:minmax(240px,290px) minmax(0,1fr);gap:24px}.map-location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.map-editor{padding:20px}.map-editor-layout{grid-template-columns:1fr}.map-editor-fields{margin-top:20px}.map-location-grid{grid-template-columns:1fr}}

/* Shared map actions, including controls outside the map toolbar. */
.map-view-switch{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.map-view-switch a,.map-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 18px;border:1px solid #68715e;background:transparent;color:#18211a;text-decoration:none;font:700 13px Arial,sans-serif;cursor:pointer}.map-view-switch a:hover,.map-view-switch a:focus-visible{background:#d2d1be;border-color:#18211a}.map-sidebar .map-action{color:#f4c63f;border:1px solid #bd9c34;background:#263126;font:700 13px Arial,sans-serif;min-height:44px;padding:12px 18px;text-decoration:none}.map-sidebar .map-action:hover{background:#f4c63f;color:#18211a}.map-action:focus-visible,.map-view-switch a:focus-visible{outline:2px solid #997507;outline-offset:3px}.map-sidebar:has(.map-empty){min-height:0}
