/* Homepage showroom map: lightweight trigger and lazy modal. */
.showroom-map-trigger {
    display: flex;
    width: fit-content;
    min-height: 44px;
    margin: -6px 0 10px;
    padding: 0;
    align-items: center;
    gap: 9px;
    border: 0;
    border-bottom: 1px solid rgba(31, 40, 45, .24);
    color: #303a3f;
    background: transparent;
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease;
}

.showroom-map-trigger svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: #b99b38;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.showroom-map-trigger:hover {
    color: #1f282d;
    border-color: rgba(185, 155, 56, .7);
}

.showroom-map-trigger:focus-visible,
.showroom-map-close:focus-visible,
.showroom-map-footer a:focus-visible {
    outline: 2px solid #d0b558;
    outline-offset: 4px;
}

html.showroom-map-open,
html.showroom-map-open body {
    overflow: hidden !important;
}

.showroom-map-dialog {
    width: min(1040px, calc(100vw - 48px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: #1f282d;
    background: #f4f4f1;
    box-shadow: 0 24px 70px rgba(12, 19, 23, .24);
}

.showroom-map-dialog:not([open]) {
    display: none;
}

.showroom-map-dialog::backdrop {
    background: rgba(16, 23, 27, .72);
    backdrop-filter: blur(3px);
}

.showroom-map-panel {
    display: flex;
    max-height: calc(100dvh - 48px);
    flex-direction: column;
}

.showroom-map-header {
    display: flex;
    padding: 26px 28px 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.showroom-map-header h2 {
    margin: 0 0 5px;
    color: #1f282d;
    font-family: 'TTNorms-Bold';
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.1;
}

.showroom-map-header p {
    margin: 0;
    color: #697277;
    font-size: 14px;
    line-height: 1.45;
}

.showroom-map-close {
    position: relative;
    width: 44px;
    height: 44px;
    margin: -8px -8px 0 0;
    padding: 0;
    flex: 0 0 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.showroom-map-close::before,
.showroom-map-close::after {
    content: '';
    position: absolute;
    top: 21px;
    left: 11px;
    width: 22px;
    height: 1px;
    background: #1f282d;
}

.showroom-map-close::before {
    transform: rotate(45deg);
}

.showroom-map-close::after {
    transform: rotate(-45deg);
}

.showroom-map-frame {
    position: relative;
    width: 100%;
    height: clamp(390px, 54dvh, 590px);
    min-height: 300px;
    overflow: hidden;
    background: #e5e6e2;
}

.showroom-map-frame iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.showroom-map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    margin: 0;
    align-items: center;
    justify-content: center;
    color: #697277;
    font-size: 14px;
}

.showroom-map-frame.is-loaded .showroom-map-loading {
    display: none;
}

.showroom-map-footer {
    display: flex;
    min-height: 68px;
    padding: 10px 28px;
    align-items: center;
    justify-content: flex-end;
}

.showroom-map-footer a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    color: #303a3f;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: underline;
    text-decoration-color: rgba(185, 155, 56, .56);
    text-underline-offset: 5px;
}

@media (max-width: 767.98px) {
    .showroom-map-trigger {
        margin-top: -4px;
        margin-bottom: 10px;
    }

    .showroom-map-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
    }

    .showroom-map-panel {
        max-height: calc(100dvh - 24px);
    }

    .showroom-map-header {
        padding: 20px 18px 17px;
        gap: 12px;
    }

    .showroom-map-header h2 {
        font-size: clamp(24px, 7vw, 28px);
    }

    .showroom-map-header p {
        max-width: 250px;
        font-size: 13px;
    }

    .showroom-map-close {
        margin: -7px -7px 0 0;
    }

    .showroom-map-frame {
        height: min(52dvh, 420px);
        min-height: 300px;
    }

    .showroom-map-footer {
        min-height: 62px;
        padding: 9px 18px;
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showroom-map-trigger {
        transition: none;
    }
}
