/* Container principale */
.mappa-hotspot-container {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mappa-hotspot-map {
    width: 100%;
    height: 100%;
}

/* Leaflet overrides */
.mappa-hotspot-map .leaflet-container {
    background: #f0f0f0;
    cursor: grab;
}

.mappa-hotspot-map .leaflet-container:active {
    cursor: grabbing;
}

/* Marker hotspot */
.mappa-hotspot-marker {
    background: transparent;
    border: none;
}

.mappa-hotspot-marker .marker-pin {
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.mappa-hotspot-marker .marker-pin:hover {
    transform: scale(1.2);
}

/* Tooltip personalizzato */
.mappa-hotspot-tooltip {
    position: absolute;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 90vw;
}

.mappa-hotspot-tooltip::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid;
    border-top-color: inherit;
}

.tooltip-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
    color: inherit;
}

.tooltip-close:hover {
    background: rgba(0,0,0,0.2);
}

.tooltip-content {
    padding: 20px;
    padding-top: 15px;
    line-height: 1.6;
}

.tooltip-content h1,
.tooltip-content h2,
.tooltip-content h3,
.tooltip-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.tooltip-content p:last-child {
    margin-bottom: 0;
}

.tooltip-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .mappa-hotspot-container {
        height: 400px;
    }
    
    .mappa-hotspot-tooltip {
        max-width: 95vw;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .mappa-hotspot-marker .marker-pin:hover {
        transform: none;
    }
    
    .mappa-hotspot-marker .marker-pin:active {
        transform: scale(1.2);
    }
}

/* Popup Leaflet personalizzato */
.mappa-hotspot-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow-y: auto;
}

.mappa-hotspot-popup .leaflet-popup-content {
    margin: 20px;
    line-height: 1.6;
    max-height: inherit;
}

.mappa-hotspot-popup .leaflet-popup-tip {
    background: white;
}