/* === TOPOLOGY MAP PANEL === */
.map-view-container {
    height: calc(100vh - 190px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    position: relative;
    box-shadow: var(--shadow-premium);
}

#leaflet-map {
    width: 100%;
    height: 100%;
    background-color: #0d1117;
}

/* LEAFLET DARK MODE INVERSION TILES FILTER */
.leaflet-tile-container {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 16px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-premium);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

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

/* Leaflet Popup Styling Override */
.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass-active);
    color: var(--text-primary) !important;
    border-radius: 16px !important;
    padding: 0.5rem;
    box-shadow: var(--shadow-premium) !important;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid var(--border-glass-active);
}

.popup-details {
    padding: 0.25rem;
}

.popup-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.25rem;
}

.popup-info-row {
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    gap: 1rem;
}

.popup-info-label {
    color: var(--text-muted);
}

.popup-info-val {
    font-weight: 600;
}

.btn-gmaps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    border: none;
    border-radius: 10px;
    color: white !important;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-gmaps:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.4);
}
