/* Scoped to the three map views on map4-ui-test5.php. */
#tabs-container > .tab {
    flex-shrink: 0;
}

#tabs-container > .tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

#googleMapPanel {
    position: fixed;
    inset: 55px 0 0 260px;
    z-index: 30;
    overflow: hidden;
    background: #e8eee6;
}

#googleMapPanel[hidden],
#googleMapPanel [hidden] {
    display: none !important;
}

#googleMapFrame {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

#googleMapStatus {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: #e8eee6;
    color: #24362a;
    text-align: center;
    font: 16px/1.5 Arial, sans-serif;
}

#googleMapStatus p {
    margin: 0;
    padding: 0;
}

#googleMapRetry {
    padding: 8px 16px;
    cursor: pointer;
}

body.google-map-view {
    overflow: hidden;
    --map-sidebar-edge: 0px !important;
}

/* Keep the editor's open/closed preference intact while this view is active. */
#sidebarContainer.google-map-sidebar-hidden,
body.google-map-view #unlockControls {
    display: none !important;
}

/* Restore each control's existing display style when leaving On Google. */
#walkthroughTrigger {
    display: flex;
}

body.google-map-view #walkthroughTrigger {
    display: none !important;
}

/* Retain the SVG and its dimensions so exports and returning to Design work. */
body.google-map-view #svg_data {
    opacity: 0;
    pointer-events: none;
}

#mapToolbar #findDiv { position: relative; }
#googleMapSearchFeedback {
    position: fixed;
    top: calc(var(--map-toolbar-bottom, 55px) + 8px);
    right: 12px;
    z-index: 2;
    width: max-content;
    max-width: min(360px, calc(100vw - 32px));
    padding: 8px 12px;
    border-radius: 4px;
    background: #ffffff;
    color: #24362a;
    box-shadow: 0 2px 8px #0003;
    font: 13px/1.4 Arial, sans-serif;
    pointer-events: none;
}
#googleMapSearchFeedback[hidden] { display: none; }
#googleMapSearchFeedback.search-error { color: #9b2424; }
body.google-map-view #findPostcode:disabled,
body.google-map-view #findNow:disabled,
body.google-map-view #deleteSearches:disabled {
    opacity: 0.5;
    cursor: wait;
}
