* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: #0a0e1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.classification-banner {
    background: #500000;
    color: #ff5252;
    text-align: center;
    padding: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    position: sticky;
    z-index: 1000;
}

.classification-banner.top {
    top: 0;
}

.classification-banner.bottom {
    bottom: 0;
    margin-top: auto;
}

header {
    background: #151b2d;
    border-bottom: 2px solid #2a3f5f;
    padding: 20px 40px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.seal {
    font-size: 48px;
    color: #b71c1c;
}

.header-text {
    flex: 1;
}

h1 {
    font-size: 24px;
    color: #d32f2f;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 12px;
    color: #808080;
    letter-spacing: 1px;
}

.access-info {
    text-align: right;
    font-size: 11px;
    color: #808080;
}

.access-time {
    margin-bottom: 5px;
    color: #ff9500;
}

.access-level {
    color: #d32f2f;
    font-weight: 700;
}

main {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #2a3f5f;
    padding-bottom: 5px;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    color: #808080;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-right: 15px;
    letter-spacing: 1px;
}

.tab-button:hover:not(.active) {
    color: #b0b0b0;
}

.tab-button.active {
    color: #ff5252;
    border-bottom: 3px solid #ff5252;
}

.supplementary-intel-container {
    margin-top: -10px; /* Pull it slightly up to look connected */
    margin-bottom: 30px;
}

.supplementary-intel-box {
    background: #1a1f2e;
    border-left: 4px solid #d32f2f;
    padding: 20px;
}

.supplementary-intel-box .warning-header {
    color: #d32f2f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.supplementary-intel-box .warning-text {
    font-size: 11px;
    line-height: 1.6;
    color: #b0b0b0;
}

.warning-box {
    background: #1a1f2e;
    border-left: 4px solid #ff9500;
    padding: 20px;
    margin-bottom: 30px;
}

.warning-header {
    color: #ff9500;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.warning-text {
    font-size: 11px;
    line-height: 1.6;
    color: #b0b0b0;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.map-wrapper {
    position: relative;
    border: 1px solid #2a3f5f;
    background: #1a1f2e;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

.map-controls {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #151b2d;
    border-bottom: 1px solid #2a3f5f;
    flex-wrap: wrap;
    z-index: 401; /* Above Leaflet controls */
}

.map-toggle-btn {
    background: #1a1f2e;
    border: 1px solid #2a3f5f;
    color: #808080;
    padding: 5px 15px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-toggle-btn:hover {
    color: #e0e0e0;
    border-color: #d32f2f;
}

.map-toggle-btn.active {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    border-color: #d32f2f;
}

.map-toggle-btn.active .dot {
    box-shadow: 0 0 5px currentColor;
}

.map-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #000;
}

/* Custom Marker Styles */
.custom-pin {
    background: transparent;
    border: none;
}

.pin-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    position: relative;
    box-shadow: 0 0 4px rgba(0,0,0,0.8);
}

.pin-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.type-facility .pin-inner { background: #ff5252; border-color: #ff5252; }
.type-vault .pin-inner { background: #4a90e2; border-color: #4a90e2; }
.type-tunnel .pin-inner { background: #ff9500; border-color: #ff9500; }
.type-cave .pin-inner { background: #4caf50; border-color: #4caf50; }
.type-rumor .pin-inner { background: #d500f9; border-color: #d500f9; }
.type-missile .pin-inner { background: #b71c1c; border-color: #b71c1c; }

.custom-popup .leaflet-popup-content-wrapper {
    background: rgba(21, 27, 45, 0.95);
    color: #e0e0e0;
    border: 1px solid #d32f2f;
    border-radius: 0;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
}

.custom-popup .leaflet-popup-tip {
    background: #151b2d;
    border-top: 1px solid #d32f2f;
    border-left: 1px solid #d32f2f;
}

.custom-popup strong {
    color: #d32f2f;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.leaflet-bar a {
    background-color: #151b2d !important;
    color: #4a90e2 !important;
    border-bottom: 1px solid #2a3f5f !important;
}

.leaflet-bar a:hover {
    background-color: #1a1f2e !important;
    color: #fff !important;
}

.tunnel-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tunnel-project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tunnel-project-card {
    background: #1a1f2e;
    border: 1px solid #2a3f5f;
    padding: 20px;
}

.tunnel-project-card h3 {
    font-size: 16px;
    color: #d32f2f;
    margin-bottom: 5px;
}

.tunnel-project-card .codename {
    font-size: 11px;
    color: #ff9500;
    margin-bottom: 10px;
}

.tunnel-project-card .detail-row {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.tunnel-project-card .detail-label {
    color: #808080;
    font-weight: 700;
    margin-right: 5px;
}

.tunnel-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #2a3f5f;
    font-size: 12px;
    line-height: 1.5;
    color: #b0b0b0;
}

.tunnel-status-active {
    color: #4caf50;
    font-weight: 700;
}

.tunnel-status-unverified {
    color: #ff9500;
    font-weight: 700;
}

.metro-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 12px;
}

.metro-table th, .metro-table td {
    border: 1px solid #2a3f5f;
    padding: 10px;
    text-align: left;
}

.metro-table th {
    background: #151b2d;
    color: #d32f2f;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
}

.metro-table td {
    color: #b0b0b0;
}

.metro-table tr:hover td {
    background: #1a1f2e;
}

.section-title {
    font-size: 18px;
    color: #ff9500;
    border-bottom: 2px solid #ff9500;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.facility-card {
    background: #151b2d;
    border: 1px solid #2a3f5f;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.facility-card:hover {
    border-color: #d32f2f;
    transform: translateY(-2px);
}

.facility-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a3f5f;
}

.facility-number {
    color: #ff9500;
    font-size: 12px;
    font-weight: 700;
}

.facility-status {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 2px;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.status-inactive {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5252;
    border: 1px solid #ff5252;
}

.status-standby {
    background: rgba(255, 153, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.facility-name {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.facility-location {
    font-size: 11px;
    color: #808080;
    margin-bottom: 15px;
}

.facility-info {
    font-size: 11px;
    line-height: 1.8;
    color: #b0b0b0;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    color: #ff5252;
    min-width: 120px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.modal-content {
    background: #151b2d;
    border: 2px solid #b71c1c;
    max-width: 800px;
    width: 100%;
    position: relative;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #808080;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff9500;
}

.modal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a3f5f;
}

.modal-title {
    font-size: 20px;
    color: #d32f2f;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 12px;
    color: #808080;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-label {
    color: #ff9500;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 13px;
    line-height: 1.8;
    color: #e0e0e0;
}

.intel-box {
    background: #1a1f2e;
    border-left: 3px solid #ff9500;
    padding: 20px;
    margin-top: 20px;
}

.intel-header {
    color: #ff9500;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.intel-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a3f5f;
}

.intel-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.intel-item-title {
    color: #ff5252;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.intel-item-text {
    font-size: 12px;
    line-height: 1.6;
    color: #b0b0b0;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .seal {
        font-size: 32px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    main {
        padding: 20px;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

