/* =========================================
   GOV MAP — NEXUS CITY DISPATCH UI
========================================= */

.gov-map-window {
    background: #050810 !important;
    border-color: #ff00aa !important;
    box-shadow:
        0 0 50px rgba(255, 0, 170, 0.12),
        0 0 80px rgba(0, 240, 255, 0.08),
        inset 0 0 30px rgba(0, 255, 170, 0.03);
}

.gov-map-header {
    background: linear-gradient(90deg, #ff0077 0%, #8800ff 35%, #00ccff 70%, #00ffaa 100%) !important;
    color: #0a0010 !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.gov-map-body {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 0, 120, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 200, 255, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #101828 0%, #04060c 75%);
    padding: 0 !important;
}

.map-dept-legend {
    position: absolute;
    top: 48px;
    left: 10px;
    z-index: 22;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 168px;
    pointer-events: auto;
}

.map-dept-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    background: rgba(4, 12, 18, 0.88);
    border: 1px solid color-mix(in srgb, var(--dept-color) 55%, transparent);
    border-left: 3px solid var(--dept-color);
    cursor: pointer;
    transition: 0.2s ease;
    text-align: left;
    font-family: inherit;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.map-dept-chip:hover {
    background: color-mix(in srgb, var(--dept-color) 18%, rgba(4, 12, 18, 0.95));
    transform: translateX(4px);
    box-shadow: 0 0 12px color-mix(in srgb, var(--dept-color) 35%, transparent);
}

.map-dept-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.map-dept-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.map-dept-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: var(--dept-color);
    letter-spacing: 0.5px;
}

.map-dept-sector {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.45);
}

.map-ui-top {
    position: absolute;
    top: 10px;
    left: 188px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 20;
    align-items: center;
}

.map-ui-chip {
    background: rgba(0, 20, 30, 0.75);
    border: 1px solid rgba(0, 255, 170, 0.35);
    padding: 4px 10px;
    font-size: 9px;
    color: #8ad4c0;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.map-ui-chip--online {
    border-color: rgba(0, 255, 170, 0.6);
    color: #00ffaa;
}

.map-ui-chip--zoom {
    border-color: rgba(0, 170, 255, 0.4);
    color: #66ccff;
    font-family: 'JetBrains Mono', monospace;
}

.map-shop-btn {
    width: auto !important;
    height: 22px !important;
    line-height: 12px !important;
    padding: 0 12px !important;
    font-size: 9px !important;
    border-color: #00ffaa !important;
    color: #00ffaa !important;
    margin-left: auto;
}

.map-shop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.94);
    z-index: 30;
    flex-direction: column;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.map-shop-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #00ffaa;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #00ffaa;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 11px;
}

.map-shop-close {
    color: #fff;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
}

.map-shop-close:hover {
    color: #00ffaa;
}

.map-shop-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    overflow-y: auto;
    flex: 1;
}

.map-legend-bar {
    position: absolute;
    bottom: 92px;
    right: 10px;
    left: auto;
    background: rgba(0, 0, 0, 0.72) !important;
    padding: 6px 12px !important;
    font-size: 8px !important;
    border: 1px solid rgba(255, 0, 170, 0.35) !important;
    color: rgba(0, 240, 255, 0.8) !important;
    font-family: 'JetBrains Mono', monospace !important;
    letter-spacing: 0.5px;
    z-index: 18;
    pointer-events: none;
}

#gov-map-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
}

.gov-map-body .map-overlay,
.gov-map-body .map-scanline {
    pointer-events: none !important;
}

.gov-map-body .map-hud-container {
    padding-left: 12px;
    box-sizing: border-box;
}
