/*
 * Richmond Showroom map styling
 * Version 2.5.5
 *
 * Intentionally loaded as a separate stylesheet so dynamic Google Maps /
 * FacetWP InfoWindow selectors remain available when WP Rocket Remove
 * Unused CSS is enabled.
 */

.ri-showroom-map,
        .ri-showroom-streetview {
            width: 100%;
            min-height: 200px;
        }

        .ri-showroom-map-placeholder {
            height: 100%;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 24px;
            background: #f3f1ec;
            color: #6c5941;
            font-size: 14px;
        }

        /*
         * De info windows gebruiken vanaf 2.5.0 de gedeelde .ri-map-card
         * classes. De oude .ri-showroom-info styles zijn vervallen.
         */

.ri-map-consent-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ri-map-consent-text {
    max-width: 520px;
}

.ri-map-consent-button {
    width: auto;
    min-width: 220px;
    margin-top: 16px;
}

.ri-map-consent-button:not(.button-atom--secondary) {
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
}

.facetwp-type-map .ri-facetwp-dealer-marker {
            display: block;
            max-width: none !important;
            object-fit: contain;
            user-select: none;
        }

        /*
         * Richmond info window shell.
         * Deze selectors raken zowel FacetWP als onze eigen Google Map.
         */
        .gm-style .gm-style-iw-c {
            padding: 0 !important;
            border-radius: 0 !important;
            box-shadow: 0 10px 35px rgba(36, 31, 26, .16) !important;
            background: #fff !important;
        }

        .gm-style .gm-style-iw-d {
            overflow: hidden !important;
            padding: 0 !important;
        }

        .gm-style .gm-style-iw-tc::after {
            background: #fff !important;
        }

        /*
         * Google's sluitknop wat dichter naar de Richmond popups trekken:
         * rustig, zwart, kleiner en zonder grijze knop-look.
         */
        .gm-style .gm-style-iw-chr {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 4;
            height: 28px;
        }

        .gm-style .gm-ui-hover-effect {
            width: 28px !important;
            height: 28px !important;
            margin: 0 !important;
            padding: 0 !important;
            background: transparent !important;
            border: 0 !important;
            opacity: 1 !important;
        }

        .gm-style .gm-ui-hover-effect > span {
            width: 16px !important;
            height: 16px !important;
            margin: 6px !important;
            background-color: #111 !important;
            opacity: .72;
        }

        .gm-style .gm-ui-hover-effect:hover > span {
            opacity: 1;
        }

        .ri-map-card {
            box-sizing: border-box;
            width: min(310px, calc(100vw - 56px));
            padding: 0;
            color: var(
                --bde-palette-color-1-84938cd7-31f8-49e6-8e87-b09a3494337c,
                #6C5941
            );
            background: #fff;
            overflow: hidden;
        }

        .ri-map-card__content {
            padding: 24px 26px 23px;
        }

        .ri-map-card__eyebrow {
            margin: 0 38px 8px 0;
            font-size: 10px;
            line-height: 1.3;
            font-weight: 600;
            letter-spacing: .12em;
            text-transform: uppercase;
            opacity: .68;
        }

        .ri-map-card__title {
            margin: 0 38px 12px 0;
            color: #111;
            font-family: "kudryashev-d-contrast-sans", serif;
            font-size: 19px;
            line-height: 1.16;
            font-weight: 400;
        }

        .ri-map-card__address {
            margin: 0 0 12px;
            font-size: 13px;
            line-height: 1.55;
            color: #5e5a55;
        }

        .ri-map-card__link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin: 0;
            color: var(
                --bde-palette-color-1-84938cd7-31f8-49e6-8e87-b09a3494337c,
                #6C5941
            );
            font-size: 11px;
            line-height: 1.2;
            font-weight: 600;
            letter-spacing: .08em;
            text-transform: uppercase;
            text-decoration: none;
            border-bottom: 1px solid currentColor;
            padding-bottom: 3px;
        }

        .ri-map-card__link:hover,
        .ri-map-card__link:focus-visible {
            opacity: .7;
        }

        /*
         * Street View bewust buiten de content-padding:
         * volledige breedte als afsluitend beeld.
         */
        .ri-map-card__streetview {
            width: 100%;
            height: 170px;
            margin: 0;
            overflow: hidden;
            background: #eeeae4;
        }

        /*
         * Op de resellerpagina is de kaart relatief laag.
         * Daarom Street View links en de gegevens rechts.
         */
        .ri-map-card--dealer {
            width: min(470px, calc(100vw - 56px));
            display: flex;
            align-items: stretch;
        }

        .ri-map-card--dealer .ri-map-card__streetview {
            flex: 0 0 190px;
            width: 190px;
            height: auto;
            min-height: 175px;
        }

        .ri-map-card--dealer .ri-map-card__content {
            flex: 1 1 auto;
            min-width: 0;
            padding: 24px 28px 23px 24px;
        }

        @media (max-width: 767px) {
            .ri-map-card__content {
                padding: 20px 22px 20px;
            }

            .ri-map-card--dealer {
                width: min(310px, calc(100vw - 40px));
                display: block;
            }

            .ri-map-card--dealer .ri-map-card__streetview {
                width: 100%;
                height: 145px;
                min-height: 145px;
            }

            .ri-map-card--dealer .ri-map-card__content {
                padding: 20px 22px 20px;
            }

            .ri-map-card__title {
                font-size: 17px;
            }

            .gm-style .gm-style-iw-chr {
                top: 9px;
                right: 9px;
            }
        }
