:root {
    --estate-z-map: 10;
    --estate-z-map-controls: 400;
    --estate-z-header: 1000;
    --estate-z-drawer-overlay: 1900;
    --estate-z-drawer: 2000;
    --estate-z-dialog: 2100;
}

html.estate-navigation-open,
body.estate-navigation-open {
    overscroll-behavior: none;
}

[data-estate-drawer-overlay],
.estate-drawer-overlay {
    z-index: var(--estate-z-drawer-overlay) !important;
}

[data-estate-drawer],
.estate-drawer,
#estate-drawer,
#estate-navigation-drawer {
    z-index: var(--estate-z-drawer) !important;
}

[data-estate-drawer] :focus-visible,
.estate-drawer :focus-visible {
    outline: 3px solid var(--estate-focus, var(--estate-primary));
    outline-offset: 3px;
}

.re-map-app,
.re-map-shell {
    isolation: isolate;
    z-index: var(--estate-z-map);
}

.re-map-app .maplibregl-control-container,
.re-map-app .leaflet-control-container,
.re-map-shell .maplibregl-control-container,
.re-map-shell .leaflet-control-container {
    z-index: var(--estate-z-map-controls);
}

@media (prefers-reduced-motion: reduce) {
    [data-estate-drawer],
    .estate-drawer,
    [data-estate-drawer-overlay],
    .estate-drawer-overlay {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Casa Moldova navigation artwork
   -------------------------------------------------------------------------- */

.estate-nav-panel[data-estate-panel="main"] {
    position: relative;
    min-height: 100%;
}

.estate-nav-panel[data-estate-panel="main"]::after {
    position: absolute;
    z-index: 0;
    top: 344px;
    bottom: 0;
    left: 0;
    width: 252px;
    min-height: 280px;
    content: "";
    pointer-events: none;
    background-image: url("/assets/img/navigationleft.svg?v=1.5.0.74");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
}

.estate-nav-panel[data-estate-panel="main"] > .estate-nav-primary {
    position: relative;
    z-index: 1;
}

@media (max-width: 760px) {
    .estate-nav-panel[data-estate-panel="main"]::after {
        top: 344px;
        width: 100%;
        background-size: min(252px, 100%) auto;
    }
}

@media (max-height: 720px) {
    .estate-nav-panel[data-estate-panel="main"]::after {
        opacity: 0.72;
        background-size: auto min(62vh, 420px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .estate-nav-panel[data-estate-panel="main"]::after {
        transition: none;
    }
}
