/* ================================================================= */
/* map-eccellenze.css                                                */
/* ================================================================= */

#map-panel svg .m,
#map-panel svg .m-arrow {
    fill: currentColor !important;
    transition: fill 0.2s ease;
}

#map-panel svg path.r {
    pointer-events: none !important;
    transition: fill 0.3s ease; 
}

#map-panel svg rect.cta-marker-rect {
    pointer-events: auto !important;
}

.title-container {
    max-width: 700px; 
    width: 90%;
    padding-left: 1rem;
    padding-right: 1rem;
}


#map-panel .marker-group:hover .icon .m,
#map-panel .marker-group:hover .icon .m-arrow {
    fill: #F06A38 !important;
}


#map-panel svg path.r.is-hovered {
    fill: #e0e0e0 !important;
  
}


#map-panel .marker-group .go-group {
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

#map-panel .marker-group:hover .go-group {
    opacity: 1;
}

#map-panel .marker-group .go-group .go-icon {
    fill: #F06A38 !important;
}

#map-panel .marker-group .go-group .go-label {
    fill: #F06A38 !important;
    letter-spacing: 0.5px;
}


.custom-map-tooltip {
    position: absolute;
    background: #FFFFFF;
    padding: 10px 18px 12px;
    border-radius: 2px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 9999 !important; 
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(calc(-100% - 15px), -50%);
    transition: opacity 0.18s cubic-bezier(0.25, 1, 0.5, 1), transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s linear 0.18s;
}

    .custom-map-tooltip.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translate(calc(-100% - 35px), -50%) scale(1);
        transition: opacity 0.18s cubic-bezier(0.25, 1, 0.5, 1), transform 0.18s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s linear 0s;
    }

    .custom-map-tooltip .tt-region {
        display: block;
        color: #F06A38;
        font-size: 1rem;

 
        text-transform: uppercase;
        margin-bottom: 1rem;
    }

    .custom-map-tooltip .tt-product {
        display: block;
        color: #F06A38;
        font-size: 1rem;

        line-height: 1.2;
    }


.map-tab-btn {
    background-color: transparent;
    border: none;
    font-size: 1rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 0.5rem 4rem;
}

    .map-tab-btn:hover {
        background-color: transparent !important;
        color: #182864 !important;
    }

    .map-tab-btn.active {
        background-color: transparent !important;
        border: none;
        font-weight: 600;
        border-bottom: 2px solid #182864;
        color: #182864 !important;
    }

#js-map-bounding-container {
    position: relative;
}


.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}


.map-cards-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    scrollbar-width: none;
}

    .map-cards-carousel::-webkit-scrollbar {
        display: none;
    }


.map-card-slide {
    flex: 0 0 100%; 
    scroll-snap-align: center;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding: 0 20px; 
    box-sizing: border-box;
}


.map-card-item {
    width: 100%;
    padding: 2rem 4rem;
    background: #ffffff;
    border: none;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;

}

    .map-card-item .inner {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex: 1; 
        width: 100%;
    }



    .map-card-item .inner img {
        width: 200px;
        height: auto;
        margin-bottom: 0;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }


.card-info {
    margin-top: 10px;
}

    .card-info h3 {
        color: #444;
        font-size: 1.2rem;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .card-info p {
        color: #444;
        font-size: 1.2rem;
        margin-bottom: 0;
    }


.card-cta-btn {
    margin-top: 2rem; 
    background-color: #182864;
    border: none !important;
    padding: .5rem 2rem;
    font-weight: bold;
    font-size: 1.3rem;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(240, 106, 56, 0.3);
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none !important;
    display: inline-block;
}

.nav-arrow {
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #182864;
    cursor: pointer;
    padding: 0 10px;
}

