/* ── Custom marker styling ── */
.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

/* Tooltip styling */
.custom-tooltip {
    background: rgba(0, 0, 0, 0.85) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
}

.custom-tooltip::before {
    border-top-color: rgba(0, 0, 0, 0.85) !important;
}

/* Start tooltip - Groen */
.tooltip-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.tooltip-start::before {
    border-top-color: #10b981 !important;
}

/* End tooltip - Rood */
.tooltip-end {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.tooltip-end::before {
    border-top-color: #ef4444 !important;
}

/* Popup styling */
.custom-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 220px;
}

.custom-popup h4 {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.custom-popup p {
    margin: 6px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.custom-popup .route-name {
    font-weight: 600;
    color: #7B2CBF;
    margin-top: 8px;
    font-size: 15px;
}

.custom-popup .route-stats {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Leaflet popup verbeteringen */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
    margin: 18px !important;
}

.leaflet-popup-tip {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Hover effect op markers */
.custom-div-icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Animatie voor tooltips */
.leaflet-tooltip {
    animation: tooltipFadeIn 0.3s ease-in;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terug naar overzicht */
.back-to-overview {
    padding: 32px 0 16px;
    text-align: center;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .custom-tooltip {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    .custom-popup {
        min-width: 180px;
    }

    .custom-popup h4 {
        font-size: 16px;
    }

    .custom-div-icon i {
        font-size: 24px !important;
    }
}
