#events-map {
    height: 500px;
    width: 80%;
    margin: 40px auto;
    margin-top: 0px;
    z-index: 1;
    border-radius: 12px;
    border: 2px solid #eee;
}

#subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #5c5c5c;
    font-style: italic;
    margin-top: -20px;
    margin-bottom: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 300px !important;
    line-height: 1.5;
}

.popup-header {
    background-color: var(--dark-bg);
    padding: 20px 20px 15px 20px;
    position: relative;
    text-align: left;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.popup-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.popup-address {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 400;
}

.popup-body {
    padding: 0;
    background-color: var(--white);
}

.popup-shows-list {
    max-height: 180px;
    overflow-y: auto;
    padding: 10px 0;
}

.popup-shows-list::-webkit-scrollbar { width: 3px; }
.popup-shows-list::-webkit-scrollbar-track { background: transparent; }
.popup-shows-list::-webkit-scrollbar-thumb { background: #ddd; }

.show-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.show-item:last-child {
    border-bottom: none;
}

.show-item:hover {
    background-color: #f9f9f9;
}

.show-date {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.show-title {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #666 !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    background: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px !important;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--primary-color) !important;
}

.leaflet-popup-tip {
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}


.custom-div-icon {
    background: transparent;
    border: none;
}





/* Stile dell'SVG */
.marker-svg {
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4));
    transition: transform 0.2s ease-out;
    transform-origin: bottom center;
}

.pin-body {
    fill: var(--primary-color);
    stroke: var(--white);
    stroke-width: 1.5px;
}

.pin-center {
    fill: var(--dark-bg);
}

.custom-div-icon:hover .marker-svg {
    transform: scale(1.2) translateY(-5px);
    filter: drop-shadow(0 8px 6px rgba(0,0,0,0.3));
    z-index: 999;
}

.custom-div-icon:hover .pin-body {
    fill: var(--secondary-color);
}