.ifm-map-wrap {
    width: 100%;
    margin: 0 auto;
}

.ifm-map {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}

.ifm-base-image {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter .35s ease, transform .35s ease;
}

.ifm-map:hover .ifm-base-image {
    filter: grayscale(100%) contrast(1.05);
}

.ifm-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.ifm-area-group {
    pointer-events: all;
    cursor: pointer;
    outline: none;
}

.ifm-color-reveal {
    pointer-events: none;
    opacity: 0;
    transition: opacity .28s ease;
}

.ifm-area-shape {
    pointer-events: all;
    fill: var(--ifm-area-color, #E30016);
    fill-opacity: 0;
    stroke: #fff;
    stroke-width: 4;
    stroke-opacity: 0;
    transition: fill-opacity .28s ease, stroke-opacity .28s ease, filter .28s ease;
}

.ifm-area-group:hover .ifm-color-reveal,
.ifm-area-group:focus .ifm-color-reveal {
    opacity: 1;
}

.ifm-area-group:hover .ifm-area-shape,
.ifm-area-group:focus .ifm-area-shape {
    fill-opacity: .18;
    stroke-opacity: .95;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .25));
}

.ifm-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .68);
}

.ifm-modal.is-open {
    display: flex;
}

.ifm-modal-content {
    position: relative;
    width: min(920px, 96vw);
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .32);
}

.ifm-modal-content h2 {
    margin: 0 46px 18px 0;
    color: #1d1d1f;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.1;
}

.ifm-modal-body {
    color: #333;
    font-size: 16px;
    line-height: 1.65;
}

.ifm-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.ifm-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f1f1f1;
    color: #222;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
}

.ifm-close:hover {
    background: #E30016;
    color: #fff;
}

@media (max-width: 767px) {
    .ifm-map {
        border-radius: 12px;
    }

    .ifm-modal {
        padding: 14px;
    }

    .ifm-modal-content {
        padding: 24px;
        border-radius: 14px;
    }
}

/* Camada extra de clique: mantém o SVG visual, mas garante clique/hover mesmo em temas/Elementor que tratam SVG de forma diferente. */
.ifm-map {
    line-height: 0;
}

.ifm-base-image {
    position: relative;
    z-index: 1;
}

.ifm-svg {
    z-index: 2;
}

.ifm-click-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.ifm-area-button {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--ifm-area-color, #E30016);
    background-image: var(--ifm-area-image);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: var(--ifm-area-clip);
    -webkit-clip-path: var(--ifm-area-clip);
    opacity: .01;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity .28s ease, filter .28s ease;
}

.ifm-area-button:hover,
.ifm-area-button:focus-visible {
    opacity: 1;
    filter: saturate(1.08) contrast(1.03);
    outline: 3px solid #fff;
    outline-offset: -3px;
}

.ifm-area-button:focus-visible {
    box-shadow: inset 0 0 0 4px var(--ifm-area-color, #E30016);
}
