/* ============================================================
   trip-detail.css
   Kaart- en marker-stijlen voor de trip-detailpagina
   Bouwt voort op public-routes.css en route-detail.css
   ============================================================ */

/* ── 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;
}

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

.tooltip-start::before {
    border-top-color: #10b981 !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;
    }
}
/* ================================================
   AANMELDEN — hero-acties blok
   ================================================ */

.btn-aanmelden {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #7B2CBF, #9d4edd);
    color: #fff;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(123, 44, 191, 0.35);
}

.btn-aanmelden:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 44, 191, 0.45);
    color: #fff;
}

.btn-aanmelden--login {
    background: linear-gradient(135deg, #4a4a6a, #6a6a9a);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.aanmeld-deadline {
    margin-top: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.aanmeld-deadline i {
    margin-right: 4px;
}

.aanmeld-hint {
    margin-top: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.aanmeld-hint a {
    color: #f0abfc;
    text-decoration: none;
    font-weight: 600;
}

.aanmeld-hint a:hover {
    text-decoration: underline;
}

.aanmeld-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
}

.aanmeld-block i {
    font-size: 1.8rem;
}

.aanmeld-block p {
    margin: 0;
}

.aanmeld-block--ingeschreven {
    background: rgba(134, 239, 172, 0.2);
    border: 2px solid rgba(134, 239, 172, 0.5);
    color: #86efac;
}

.aanmeld-block--gesloten {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* ================================================
   AANMELDEN — sidebar blok
   ================================================ */

.sidebar-aanmelden .sidebar-deadline,
.sidebar-aanmelden .sidebar-deelnemers {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.sidebar-aanmelden .sidebar-deadline i,
.sidebar-aanmelden .sidebar-deelnemers i {
    color: #7B2CBF;
    width: 16px;
}

.sidebar-ingeschreven {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-ingeschreven i {
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
}
