.canet-events-map-wrapper {
    position: relative;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Filtres */
.canet-filters {
    margin-bottom: 20px;
    padding: 20px;
    background: #f0f6fa;
    border: 1px solid #b3e5fc;
    border-radius: 8px;
}

.canet-filters h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #0073aa;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.filter-select,
.filter-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    color: #333;
    font-family: inherit;
}

.filter-select:focus,
.filter-date:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.filter-button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-button:hover {
    background: #005a87;
}

.filter-button:active {
    background: #004569;
}

.filter-results {
    grid-column: 1 / -1;
    padding-top: 10px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.filter-results #results-count {
    font-weight: 600;
    color: #0073aa;
}

.canet-map {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.canet-events-legend {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.canet-events-legend h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.legend-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 8px;
    font-size: 13px;
}

.legend-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    text-align: center;
    line-height: 20px;
}

/* Popup personnalisée */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.leaflet-popup-content {
    font-family: inherit;
    margin: 15px 12px;
}

.canet-event-popup {
    min-width: 240px;
    overflow-wrap: anywhere;
}

.canet-event-popup .event-image {
    display: block;
    width: calc(100% + 24px);
    max-width: calc(100% + 24px);
    margin: -15px -12px 10px -12px;
    max-height: 130px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.canet-event-popup h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.canet-event-popup .event-date {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.canet-event-popup .event-address {
    color: #555;
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.canet-event-popup .event-address::before {
    content: "📍";
    margin-right: 6px;
}

.canet-event-popup .event-type {
    display: inline-block;
    padding: 3px 8px;
    background: #e8f4f8;
    color: #006a7e;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.canet-event-popup .event-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    max-height: 100px;
    overflow: hidden;
}

.canet-event-popup a {
    display: inline-block;
    padding: 6px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
}

.canet-event-popup a:hover {
    background: #005a87;
}

/* Icônes des événements */
.leaflet-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Responsive */
@media (max-width: 768px) {
    .canet-events-legend {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .legend-item {
        margin-right: 10px;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .filter-results {
        grid-column: 1;
    }
}
