/* ==========================================================
   Project Location Map Shortcode Overrides
   ========================================================== */

.project-location-map {
    margin: 56px 0 !important;
    background: transparent !important;
}

.project-location-map > div {
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    text-align: left !important;
}

/* Title */
.project-location-map h3 {
    margin: 0 0 12px !important;
    color: #AA0202 !important;
    font-size: 32px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;

}

/* Description */
.project-location-map p {
    max-width: 720px !important;
    margin: 0 0 22px !important;
    color: #434343 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.project-location-map p strong {
    color: #434343 !important;
    font-weight: 700 !important;
}

/* Map wrapper: override inline border-radius/shadow */
.project-location-map iframe {
    display: block !important;
    width: 100% !important;
    height: 420px !important;
    border: 0 !important;
}

/* This targets the div wrapping the iframe */
.project-location-map iframe {
    border-radius: 0 !important;
}

.project-location-map iframe[style] {
    border: 0 !important;
}

/* Parent map container generated by the shortcode */
.project-location-map div:has(> iframe) {
    width: 100% !important;
    max-width: 100% !important;
    height: 420px !important;
    border: 1px solid #F4F4F4 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    background: #F4F4F4 !important;
}

/* Button row */
.project-location-map div:has(> a) {
    margin-top: 18px !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Buttons */
.project-location-map a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 11px 18px !important;
    border: 1px solid #AA0202 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #AA0202 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}

.project-location-map a:hover,
.project-location-map a:focus {
    background: #AA0202 !important;
    border-color: #AA0202 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Keyboard focus */
.project-location-map a:focus-visible {
    outline: 2px solid #AA0202 !important;
    outline-offset: 3px !important;
}

/* Mobile */
@media (max-width: 768px) {
    .project-location-map {
        margin: 40px 0 !important;
    }

    .project-location-map > div {
        padding: 0 16px !important;
    }

    .project-location-map h3 {
        font-size: 26px !important;
    }

    .project-location-map div:has(> iframe),
    .project-location-map iframe {
        height: 340px !important;
    }

    .project-location-map div:has(> a) {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .project-location-map a {
        width: 100% !important;
    }
}
