#network-map {
    width: 100%;
    height: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.map-container {
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 30px;
}

.map-controls {
    background: rgba(20, 20, 20, 0.95);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.map-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-control-group label {
    color: #ddd;
    font-weight: bold;
}

.map-search {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    min-width: 200px;
}

.map-checkbox {
    accent-color: #d4af37;
    width: 18px;
    height: 18px;
}

.map-legend {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #aaa;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.loading-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d4af37;
    font-size: 1.5em;
    pointer-events: none;
    z-index: 10;
}

/* Vis.js Tooltip Styling */
div.vis-tooltip {
    background-color: rgba(15, 15, 20, 0.98) !important;
    border: 2px solid #d4af37 !important;
    color: #eee !important;
    border-radius: 6px !important;
    padding: 0 !important;
    z-index: 1000 !important;
    font-family: 'Segoe UI', sans-serif !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(5px);
    min-width: 280px;
}

.map-tooltip-content {
    padding: 15px;
}

.map-tooltip-header {
    font-size: 1.3em;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.map-tooltip-meta {
    font-size: 0.9em;
    color: #bbb;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.map-tooltip-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.5), transparent);
    margin: 12px 0;
}

.map-tooltip-section {
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    font-size: 1em;
}

.map-tooltip-portal {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-bullet {
    color: #d4af37;
    font-size: 1.2em;
    line-height: 0.5;
}

.portal-source {
    color: #fff;
    font-weight: 600;
}

.portal-arrow {
    color: #d4af37;
    font-weight: bold;
}

.portal-target {
    color: #ccc;
}

.map-tooltip-empty {
    font-style: italic;
    color: #777;
    padding: 10px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
