/* Estils per al mapa Leaflet integrat */

.mapa-contenidor {
    width: 100%;
    height: 60vh;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.mapa-contenidor.full-width {
    border: none;
    border-top: 4px solid var(--accent-primari);
    border-bottom: 4px solid var(--accent-primari);
    border-radius: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Popups personalitzats */
.leaflet-popup-content-wrapper {
    background: var(--fons-principal) !important;
    color: var(--text-principal) !important;
    border-radius: var(--vora-radius) !important;
    border: 2px solid var(--accent-primari);
    box-shadow: var(--ombra-suau) !important;
}

.leaflet-popup-tip {
    background: var(--fons-principal) !important;
    border-top: 1px solid var(--accent-primari);
    border-left: 1px solid var(--accent-primari);
}

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

.leaflet-popup-content h3 {
    margin: 0 0 5px 0 !important;
    color: var(--accent-primari) !important;
    font-size: 1.1rem;
    font-weight: bold;
}

.leaflet-popup-content p {
    margin: 0;
    color: var(--text-secundari);
    font-size: 0.95rem;
}

/* Control de zoom */
.leaflet-control-zoom a {
    background: var(--fons-principal) !important;
    color: var(--accent-primari) !important;
    border-color: rgba(77, 97, 53, 0.2) !important;
}
.leaflet-control-zoom a:hover {
    background: var(--accent-secundari) !important;
}

/* Markers personalitzats */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    left: -12px;
    top: -24px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.marker-pin::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.15);
    z-index: 1000;
}
