/*
 * Sustenable Home Map UX v1
 *
 * Scope:
 * - Home EN / ES interactive world map only.
 * - No Interactive Geo Maps plugin files are modified.
 */

/*
 * Interactive Geo Maps renders:
 *
 *   height: 0;
 *   padding-top: 56%;
 *
 * for the map aspect-ratio box.
 *
 * Our current maps output data-padding-top-mobile="0%", which can
 * collapse the map height on phones. Preserve the 56% world-map
 * aspect ratio on mobile.
 */
@media (max-width: 767px) {
    .sustenable-home-map-wrapper-v1 .map_wrapper .map_aspect_ratio {
        padding-top: 56% !important;
    }
}

/*
 * Explicit close control for persistent "content below" map details.
 */
.sustenable-home-map-wrapper-v1 .igm-map-content .sustenable-map-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 14px auto;
    padding: 0;
    border: 1px solid #E61C1E;
    border-radius: 0;
    background: #E61C1E;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.sustenable-home-map-wrapper-v1 .igm-map-content .sustenable-map-close:hover,
.sustenable-home-map-wrapper-v1 .igm-map-content .sustenable-map-close:focus-visible {
    background: #FFFFFF;
    color: #E61C1E;
}

.sustenable-home-map-wrapper-v1 .igm-map-content .sustenable-map-close:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .sustenable-home-map-wrapper-v1 .igm-map-content .sustenable-map-close {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }
}
