/* Full-scene exploration map. Keep these overrides separate from the engine.
   Restore the original map coordinate frame, not individual location offsets. */
#game-container.exploration-map-mode #choice-container.eve-location-map-panel {
    position: absolute !important;
    top: 226px !important;
    right: 24px !important;
    bottom: 18px !important;
    left: 24px !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: none !important;
    border: 0 !important;
    pointer-events: none !important;
}
#game-container.exploration-map-mode .eve-location-map-shell {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
}
#game-container.exploration-map-mode .eve-location-map-shell::before,
#game-container.exploration-map-mode .eve-location-map-shell::after { content: none; }
#game-container.exploration-map-mode .eve-location-map-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    pointer-events: none;
}

/* Region readout sits below the HUD; notices use the adjacent space. */
#game-container.exploration-map-mode .eve-location-map-shell > .eve-exploration-header {
    --map-accent: #78ddfa;
    --map-surface: #102a3f;
    position: absolute;
    isolation: isolate;
    top: 0;
    left: 0;
    z-index: 5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 400px;
    min-height: 80px;
    margin: 0;
    padding: 14px 22px;
    color: #edfaff;
    background: linear-gradient(120deg, #c7f6ff, #2597c1 55%, #71d5f0);
    border: 0;
    border-radius: 0;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: auto;
}
#game-container.exploration-map-mode .eve-location-map-shell > .eve-exploration-header::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: linear-gradient(120deg, #173c55, #0b1b2c);
    clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
    box-shadow: inset 0 0 16px #5dccf01a;
    pointer-events: none;
}
#game-container.exploration-map-mode .eve-location-map-shell .eve-exploration-kicker {
    display: block;
    color: #8ac7df;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
}
#game-container.exploration-map-mode .eve-location-map-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 6px 0 0;
    color: #effaff;
    font-size: 25px;
    line-height: 1.2;
}
#game-container.exploration-map-mode .eve-location-map-title em {
    color: #a8c7da;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
}
#game-container.exploration-map-mode .eve-location-map-shell > .eve-exploration-flash {
    position: absolute;
    top: 8px;
    left: 420px;
    z-index: 5;
    box-sizing: border-box;
    min-height: 52px;
    max-height: 72px;
    max-width: 700px;
    padding: 14px 20px;
    margin: 0;
    overflow: auto;
    color: #c6e0ee;
    background: linear-gradient(110deg, #112b40f5, #0a192bea);
    border: 1px solid #6dacc43d;
    border-left: 3px solid #77c5df;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
    backdrop-filter: none;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: #559fbd #091625;
}

/* Original percentage coordinates remain relative to the restored map frame. */
#game-container.exploration-map-mode .eve-location-hotspot {
    --map-accent: #74d8f4;
    --map-surface: #102b40;
    --map-secondary: #aacbde;
    position: absolute;
    isolation: isolate;
    box-sizing: border-box;
    z-index: 3;
    left: var(--map-x);
    top: var(--map-y);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 216px;
    min-width: 216px;
    min-height: 116px;
    padding: 14px 18px;
    margin: 0;
    color: #edfaff;
    border: 0;
    border-radius: 0;
    background: linear-gradient(125deg, var(--map-accent), #294960 55%, var(--map-accent));
    clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 11px 100%, 0 calc(100% - 11px), 0 11px);
    box-shadow: none;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: none;
    opacity: 1;
    filter: none;
    backdrop-filter: none;
    pointer-events: auto;
    transition: filter .15s ease;
}
#game-container.exploration-map-mode .eve-location-hotspot::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    background: linear-gradient(140deg, var(--map-surface), #091625 90%);
    box-shadow: inset 0 0 18px #6bc7e018;
    pointer-events: none;
}
#game-container.exploration-map-mode .eve-location-hotspot::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 7px;
    height: 1px;
    opacity: .35;
    background: var(--map-accent);
    pointer-events: none;
}
#game-container.exploration-map-mode .eve-location-hotspot strong {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    word-break: keep-all;
}
#game-container.exploration-map-mode .eve-location-hotspot small {
    margin: 7px 0 0;
    color: var(--map-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
#game-container.exploration-map-mode .eve-location-link-summary {
    display: grid;
    gap: 3px;
}
#game-container.exploration-map-mode .eve-location-state-label {
    margin-top: 6px;
    color: var(--map-accent);
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
    opacity: 1;
}
#game-container.exploration-map-mode .eve-location-hotspot.is-locked {
    --map-accent: #63839b;
    --map-surface: #152536;
    --map-secondary: #859fb2;
    color: #a2bdce;
}
#game-container.exploration-map-mode .eve-location-hotspot.is-cleared {
    --map-accent: #7ccdb3;
    --map-surface: #12352f;
    --map-secondary: #9ec9bc;
    color: #d8f5e9;
}
#game-container.exploration-map-mode .eve-location-boss {
    --map-accent: #f18fa1;
    --map-surface: #382237;
    --map-secondary: #e3b4c2;
    width: 228px;
    min-width: 228px;
    min-height: 104px;
    color: #ffe1e8;
}
#game-container.exploration-map-mode .eve-location-boss.is-locked {
    --map-accent: #a0788e;
    --map-surface: #2a2333;
    --map-secondary: #b79eae;
    color: #ceb7c7;
}
#game-container.exploration-map-mode .eve-location-hotspot:hover:not(:disabled) {
    z-index: 4;
    background: linear-gradient(125deg, #d9f9ff, var(--map-accent), #d9f9ff);
    transform: translate(-50%, -50%);
    filter: brightness(1.13);
}
#game-container.exploration-map-mode .eve-location-hotspot:focus-visible {
    outline: 2px solid #edfcff;
    outline-offset: -6px;
    filter: brightness(1.13);
}

/* Fixed return control with the same cut-corner cyan treatment. */
#game-container.exploration-map-mode .eve-location-map-shell > .eve-exploration-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    pointer-events: auto;
}
#game-container.exploration-map-mode .eve-location-map-shell .eve-exploration-return-btn {
    position: static !important;
    width: 270px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    border: 1px solid #8adcf8 !important;
    border-radius: 0 !important;
    background: linear-gradient(120deg, #235774, #132e44) !important;
    box-shadow: inset 0 -2px 0 #76dfff !important;
    clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
    color: #edfaff;
    font-size: 17px !important;
    line-height: 1.4;
    text-shadow: none;
    transform: none !important;
}
#game-container.exploration-map-mode .eve-location-map-shell .eve-exploration-return-btn::before,
#game-container.exploration-map-mode .eve-location-map-shell .eve-exploration-return-btn::after { content: none !important; }
#game-container.exploration-map-mode .eve-location-map-shell .eve-exploration-return-btn:hover:not(:disabled) { filter: brightness(1.16); }
#game-container.exploration-map-mode .eve-location-map-shell .eve-exploration-return-btn:focus-visible { outline: 2px solid #edfcff; outline-offset: -5px; }
#game-container.exploration-map-mode .eve-location-map-shell .eve-exploration-return-btn:disabled { color: #91a9bc; border-color: #64859d80 !important; background: #122438 !important; box-shadow: none !important; opacity: .8; }
