/* Styles pour la page de carte des points de livraison */

.pan-delivery-map-page {
    padding: 2rem 0;
}

.pan-delivery-map-page .page-header {
    margin-bottom: 2rem;
}

.pan-delivery-map-page .page-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.pan-delivery-map-page .page-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.pan-delivery-map-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.pan-delivery-map-sidebar {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.pan-delivery-map-main {
    flex: 1 1 auto;
    min-width: 0;
}

#pan-delivery-full-map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pan-delivery-weekly-summary {
    height: 600px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: auto;
    padding: 1rem;
}

.pan-delivery-weekly-summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #222;
}

.pan-delivery-day {
    padding: 0.75rem 0;
    border-top: 1px solid #eee;
}

.pan-delivery-day:first-of-type {
    border-top: none;
    padding-top: 0;
}

.pan-delivery-day-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.pan-delivery-day-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.pan-delivery-day-point {
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    padding: 0.6rem 0.75rem;
}

.pan-delivery-point-name {
    font-weight: 700;
    color: #222;
    font-size: 0.95rem;
    line-height: 1.2;
}

.pan-delivery-point-times {
    color: #555;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.pan-delivery-day-empty,
.pan-delivery-weekly-summary-empty {
    color: #777;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

/* Styles pour les tooltips */
.pan-delivery-schedules-tooltip {
    font-size: 13px;
    line-height: 1.6;
    min-width: 200px;
}

.pan-delivery-schedules-tooltip .schedule-day {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.pan-delivery-schedules-tooltip .schedule-day:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pan-delivery-schedules-tooltip .schedule-day strong {
    display: inline-block;
    min-width: 80px;
    color: #333;
}

.pan-delivery-schedules-tooltip .schedule-day span {
    color: #666;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
}

/* Désactiver complètement les tooltips HTML natifs des marqueurs */
#pan-delivery-full-map .leaflet-marker-icon {
    pointer-events: auto;
}

/* Empêcher l'affichage des tooltips HTML natifs - méthode agressive */
#pan-delivery-full-map .leaflet-marker-icon[title],
#pan-delivery-full-map .leaflet-marker-icon[title]:hover,
#pan-delivery-full-map .leaflet-marker-icon[title]:focus {
    /* Désactiver les tooltips via une propriété CSS non standard si supportée */
    -webkit-tooltip: none;
    tooltip: none;
}

/* Alternative : masquer visuellement les tooltips si ils apparaissent */
#pan-delivery-full-map .leaflet-marker-icon::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

@media (max-width: 992px) {
    .pan-delivery-map-layout {
        flex-direction: column;
    }

    .pan-delivery-map-sidebar {
        flex: 0 0 auto;
        max-width: none;
    }

    .pan-delivery-weekly-summary {
        height: auto;
        max-height: 360px;
    }
}
