/* Shared controls for MosaicEarth Cesium viewers and placement screens. */
.mosaic-map-shell {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mosaic-map-shell .cesium-viewer,
.mosaic-map-shell .cesium-viewer-cesiumWidgetContainer,
.mosaic-map-shell .cesium-widget,
.mosaic-map-shell .cesium-widget canvas {
    width: 100% !important;
    height: 100% !important;
}

.mosaic-map-shell .cesium-widget canvas {
    display: block;
    touch-action: none;
}

@supports (height: 100dvh) {
    .asset-detail-page.viewer-only .asset-viewer {
        height: calc(100dvh - 66px) !important;
    }
}

.mosaic-map-style-switch {
    position: absolute !important;
    z-index: 8 !important;
    top: auto !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    display: flex !important;
    gap: 2px;
    padding: 4px !important;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px !important;
    background: rgba(10, 14, 12, .92) !important;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .34) !important;
    backdrop-filter: blur(7px);
}

.mosaic-map-style-switch button {
    min-width: 76px;
    min-height: 36px;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: #111713 !important;
    color: #f2f5f3 !important;
    font-family: OpenSans, Arial, sans-serif;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .16s, color .16s;
}

.mosaic-map-style-switch button:hover {
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

.mosaic-map-style-switch button.active {
    background: #a8d833 !important;
    color: #11170f !important;
    font-weight: 600 !important;
}

/* Legacy full-screen viewers use .shared-viewer-controls instead of the
   component class above. Keep the exact same contrast and typography. */
.shared-viewer-controls button{
    background:rgba(9,13,11,.92)!important;
    color:#e8ece9!important;
    font-weight:700!important;
    line-height:1!important;
    transform:none!important;
}
.shared-viewer-controls button:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}
.shared-viewer-controls button.is-active{border-color:#a8d833!important;background:#a8d833!important;color:#11170f!important;font-weight:700!important}

.mosaic-map-locate {
    position: absolute !important;
    z-index: 9 !important;
    top: auto !important;
    right: 14px !important;
    bottom: 66px !important;
    left: auto !important;
    display: grid !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid #72bd8a !important;
    border-radius: 50% !important;
    background: #183524 !important;
    color: #e3f8ea !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .34) !important;
    cursor: pointer;
    transform: none !important;
    transition: border-color .16s, background-color .16s !important;
}

.mosaic-map-locate:hover,
.mosaic-map-locate:focus-visible {
    border-color: #9bd8ae !important;
    background: #245436 !important;
    color: #fff !important;
    outline: none;
}

.mosaic-map-locate svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    overflow: visible;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mosaic-map-locate::before,
.mosaic-map-locate::after { display: none !important; content: none !important; }

/* Same crisp locate symbol for full-screen/shared viewers whose layout is
   controlled by their own toolbar rather than by .mosaic-map-shell. */
.mosaic-locate-visual {
    display: grid !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 1px solid #72bd8a !important;
    border-radius: 50% !important;
    background: #183524 !important;
    color: #e3f8ea !important;
    line-height: 1 !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .34) !important;
}

.mosaic-locate-visual:hover,
.mosaic-locate-visual:focus-visible {
    border-color: #9bd8ae !important;
    background: #245436 !important;
    color: #fff !important;
    outline: none;
}

.mosaic-locate-visual svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {
    .mosaic-map-style-switch {
        right: 10px !important;
        bottom: 10px !important;
    }
    .mosaic-map-style-switch button {
        min-width: 66px;
        min-height: 34px;
        padding-inline: 9px !important;
    }
    .mosaic-map-locate {
        right: 10px !important;
        bottom: 60px !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
    }
}
