/* Elementor Service Area Map */

.esam-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    line-height: 0;
}

.esam-map {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible; /* allow hover-grow to render past the viewBox */
}

/* Default state styling — Elementor controls override fill/stroke via selectors */
.esam-state {
    fill: #D9D9D9;
    stroke: #000000;
    stroke-width: 1px;
    stroke-linejoin: round;
    pointer-events: all;
    transition: fill 180ms ease-out, transform 200ms ease-out, filter 200ms ease-out;
    transform-origin: center;
    transform-box: fill-box; /* scale around each state's own center */
}

/* Highlighted (in-service-area) states */
.esam-state.is-highlighted {
    fill: #E11D1D;
    cursor: pointer;
}

.esam-state.is-highlighted:hover,
.esam-state.is-highlighted:focus {
    fill: #B30000;
    transform: scale(1.08);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    outline: none;
}

/* Make sure hovered state renders on top of its neighbors */
.esam-state.is-highlighted:hover,
.esam-state.is-highlighted:focus {
    z-index: 2;
}

/* Keyboard focus ring for accessibility */
.esam-state.is-highlighted:focus-visible {
    stroke: #ffffff;
    stroke-width: 2px;
}

/* Tooltip */
.esam-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    background-color: #111111;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -130%);
    transition: opacity 120ms ease-out;
    z-index: 5;
    font-family: inherit;
}

.esam-tooltip.is-visible {
    opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .esam-state {
        transition: fill 120ms ease-out;
    }
    .esam-state.is-highlighted:hover,
    .esam-state.is-highlighted:focus {
        transform: none;
        filter: none;
    }
}
