.dd-bolig-shop {
    max-width: var(--dd-max-width);
    margin: auto;
    font-family: var(--dd-font-default, inherit);
}

.dd-bolig-shop * {
    box-sizing: border-box;
}

.dd-bolig-shop img {
    pointer-events: none; /* DISABLE EDGE VISUAL SEARCH */
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    max-width: 100%;
    vertical-align: middle;
}

.dd-bolig-shop a {
    font-size: inherit;
}

.dd-bolig-shop p {
    color: var(--dd-color-text);
    max-width: unset;
    width: unset;
}

.dd-bolig-shop.dd-loading::after {
    content: "";
    display: block;
    background: white;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: fixed;
    z-index: 5;
    opacity: 0.5;
    cursor: wait;
}

.dd-bolig-shop::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: var(--dd-color-background);
}

body .dd-bse-list-titlearea-heading {
    margin-block-end: 1em;
    margin-inline: 0;
    padding: 0;
    border: 0;
}


/* DON'T OVERFLOW */
.dd-bolig-shop-element {
    overflow: hidden;
}
.dd-bse-list.dd-bolig-shop-element {
    overflow: clip; /* Clips like hidden but doesn't create a scroll container, so position: sticky still works */
    isolation: isolate; /* keeps the filterbar's inner z-index from outranking the map */
}



/* NO SCROLL - Added to Body when scrolling is disabled (fx. on map). */
.dd-no-scroll {
    overflow: hidden;
}




/* FIXED ELEMENTS AND CONTENT */
.dd-bse-fixedelement {
    position: fixed;
    /* top: 0; */
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
}
.dd-bse-fixedcontent {
    position: fixed;
    /* top: 0; */
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
}

/* FIX LAYOUT ISSUES */
body .dd-bse-fixedelement,
body .dd-bse-fixedcontent,
body .dd-bse-map  {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
}



/* POINTER EVENTS */
.dd-bolig-shop-element {
    pointer-events: none;
}
.dd-bolig-shop-element.active .dd-interactive {
    pointer-events: auto;
}









/* MAP */
.dd-bse-map {
    z-index:2;
    top: 0;
    height: 100vh;
}

.dd-bse-map-content {
    position: fixed;
    top:0;
    bottom:0;
    /* height:100svh; */
}
.dd-bolig-shop .dd-bse-map.dd-bse-fixedelement .dd-bse-fixedcontent {
    /* top:unset;
    bottom:0; */
}

.dd-bolig-shop .dd-bse-map {
    /* top: 0;
    height: 100vh; */
}

.dd-bolig-shop .dd-bse-map .dd-bse-fixedcontent {
    /* top: 0;
    height: 100vh; */
}

.dd-bolig-shop .dd-bse-map .dd-statemachine-controlbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--dd-bottom-controlbar-height);
    /* max-width: 500px;
    margin: auto; */
    align-items: center;
    justify-content: center;
    /* Align no matter word wrapping */
    align-items: baseline;
    padding-top: 10px;
}

.dd-bse-map .dd-bse-content {
    background: white;
    background-color: var(--dd-color-background);
}






@media screen AND (min-width:768px) AND (orientation:landscape) {

    .dd-bse-map .dd-bse-content {
        /* position: relative; */
    }

    .dd-bolig-shop:not(.dd-inline).is-showing-bolig .dd-bse-map .dd-bse-content {
        max-width: 50%;
        max-width: min( 50% , calc(var(--dd-max-width) / 2) );
        transform: translate(-50%, 0px);
    }

    .dd-bse-biw .dd-bse-content {
        max-width: 50%;
        margin-left: auto;
        margin-right: 0;
        position: relative;
    }

    .dd-bolig-shop .dd-bse-biw .sape-biw-viewport {
        height: 60lvh;
        min-height: unset;
    }
}




.dd-bolig-shop:not(.dd-is-filtering) .dd-display-if-filtering {
    display: none;
}




/* LIST */
.dd-bse-list .dd-bse-content {
    background: white;
    background-color: var(--dd-color-background);
}
.dd-bse-list-counter-wrap {
    text-align: right;
}
.dd-bse-list-counter {
    display: inline-block;
    font-size: var(--dd-font-small);
    color: var(--dd-color-text);
}

.dd-bse-map .dd-bse-list-counter {
    cursor: pointer;
}

.dd-bse-list-counter-wrap.dd-hidden,
.dd-back-to-biw.dd-hidden {
    display: none;
}





.dd-bolig-shop .dd-bse-biw.dd-bse-fixedelement .dd-bse-fixedcontent {
    /* top:0;
    bottom:unset; */
}
.dd-bse-biw .dd-bse-content {
    /* background: white; */
}
.dd-bse-biw,
.dd-bse-biw .dd-bse-content  {
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100lvh; */
    /* bottom: 0; */
}
.dd-bse-biw .dd-bse-content {

}





/* FILTER MENU */
.dd-bse-filtermenu {
    z-index: 100;
}

.dd-bse-filtermenu .dd-bse-content {
    height: 85vh;
    height: 85svh;
    max-width: 560px;
}

.dd-bse-filtermenu .dd-scroll-area {
    overscroll-behavior: contain;
}





.dd-bolig-shop-element:not(.active) .dd-interactive * {
    pointer-events: none!important;
}

.non-interactive {
    pointer-events: none!important;
}






/* TOGGLEBUTTON */
.dd-bse-togglebutton {
    /* position: fixed;
    left: 50%;
    bottom: 100px;
    bottom: calc(var(--dd-bottom-controlbar-height) + var(--dd-margin-narrow));
    transform: translate(-50%, 0);
    z-index: 2; */


    
    position: fixed;
    left: 0;
    bottom: 80px;
    /* bottom: calc(var(--dd-bottom-controlbar-height) + var(--dd-margin-narrow)); */
    bottom: calc(var(--dd-bottom-controlbar-height) + var(--dd-button-height-small) / 4);
    z-index: 2;
    right: 0;
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
    max-width: var(--dd-max-width);
}

.dd-bse-togglebutton-anchor {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.dd-bolig-shop:not(.dd-inline).is-showing-bolig .dd-bse-togglebutton-anchor {
    margin-right: 50%;
}


.dd-bse-togglebutton .dd-button {
    display: none;
}
.dd-bse-togglebutton .dd-button.active {
    display: flex;
    pointer-events: all;
}

/* pick-from-list is relocated into the map's .dd-smc-ui-bottom (stacked under the hotspot category toggle); re-establish its order + view-visibility there */
.dd-smc-ui-bottom .dd-button-wrapper:has(.dd-button-pick-from-list) {
    order: 1;
}
.dd-smc-ui-bottom .dd-button-pick-from-list {
    display: none;
}
.dd-smc-ui-bottom .dd-button-pick-from-list.active {
    display: flex;
}








/* ELEMENTS ANIMATE IN */
.dd-bse-animate-in-left .dd-bse-content  {
    transform: translate(-100%,0);
    transition: transform var(--dd-animation-time) var(--dd-animation-easing);
}
.dd-bse-animate-in-left.active .dd-bse-content  {
    transform: translate(0,0);
}

.dd-bse-animate-in-right .dd-bse-content  {
    transform: translate(100%,0);
    transition: all var(--dd-animation-time) var(--dd-animation-easing);
}
.dd-bse-animate-in-right.active .dd-bse-content  {
    transform: translate(0,0);
}

.dd-bse-animate-in-bottom .dd-bse-content {
    opacity: 0;
    transform: translate(0,100vh);
    pointer-events: none;
    opacity: 0;
    transition: transform var(--dd-animation-time) var(--dd-animation-easing), opacity 0.2s ease-out;
}
.dd-bse-animate-in-bottom.active .dd-bse-content {
    opacity: 1;
    transform: translate(0,0);
    pointer-events: auto;
    opacity: 1;
}

.dd-bse-animate-in-fade .dd-bse-content  {
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--dd-animation-time) var(--dd-animation-easing);
}
.dd-bse-animate-in-fade.active .dd-bse-content  {
    pointer-events: auto;
    opacity: 1;
}

.dd-secondary-animation.active .dd-bse-content {
    transition-delay: var(--dd-animation-time);
}








/* THE LIST */
.dd-bse-list-titlearea{
    padding: 0 var(--dd-margin-narrow);
}

.dd-bse-list-titlearea-heading {
    font-size: 1.4em;
    margin-top: 1.2em;
    color: var(--dd-color-text);
}

.dd-bse-list-filterbar {
    position: sticky;
    top: var(--dd-sticky-offset, 0px);
    z-index: 3;
    font-size: var(--dd-font-small);
    background: var(--dd-color-background);
    color: var(--dd-color-text);
    transition: top var(--dd-animation-time) var(--dd-animation-easing);
}

.dd-bse-list-filterbar-buttons {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    container: dd-filterbar / inline-size;
    padding: calc(var(--dd-margin-narrow) - 0.5em);
    padding-top: calc(var(--dd-margin-narrow) / 2);
    padding-bottom: calc(var(--dd-margin-narrow) / 2);
    border-bottom: 2px solid var(--dd-color-viewport);
}
.dd-bse-list-filterbar-buttons > :first-child {
    justify-self: start;
}
.dd-bse-list-filterbar-buttons > :last-child {
    justify-self: end;
}
@media screen AND (max-height:800px) AND (orientation:landscape) {
    .dd-bse-list-filterbar-buttons {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
.dd-bse-list-filterbar button {
    background: transparent;
    color: black;
    border: none;
}
.dd-bse-list-filterbar button.dd-button {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}
/* PRE-FILTER TUTORIAL */
.dd-prefilter-tutorial {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: calc(var(--dd-margin-narrow) - 0.5em);
    z-index: 3;
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    margin: 0;
    padding: 12px 40px 12px 14px;
    border: none;
    border-radius: 3px;
    background-color: var(--dd-tooltip-color);
    color: var(--dd-tooltip-text-color);
}
.dd-prefilter-tutorial.active {
    display: block;
}
.dd-prefilter-tutorial::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-bottom-color: var(--dd-tooltip-color);
}
.dd-prefilter-tutorial-text {
    margin: 0;
    padding: 0;
}
.dd-bse-list-filterbar .dd-prefilter-tutorial button {
    margin: 0;
    border: none;
    border-radius: 0;
    min-width: 0;
    min-height: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
.dd-bse-list-filterbar .dd-prefilter-tutorial .dd-prefilter-tutorial-clear {
    margin-top: 8px;
    padding: 0;
    text-decoration: underline;
}
.dd-bse-list-filterbar .dd-prefilter-tutorial .dd-prefilter-tutorial-close {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    padding: 4px;
}
.dd-prefilter-tutorial-close svg {
    width: 20px;
    height: 20px;
    max-width: 100%;
    vertical-align: middle;
    fill: currentColor;
}
/* CATEGORY SWITCHER */
@media screen AND (max-width: 1023.98px) {
    .dd-bse-list-filterbar-buttons {
        grid-template-columns: 1fr auto;
    }
    .dd-bse-list-filterbar-buttons > .dd-category-switcher,
    .dd-bse-list-filterbar-buttons > .dd-status-toggles,
    .dd-bse-list-filterbar-buttons > .dd-filterbar-spacer {
        display: none;
    }
}
.dd-category-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    justify-self: center;
}
.dd-category-button {
    background: transparent;
    border: 1px solid var(--dd-color-viewport);
    border-radius: var(--dd-button-radius, 4px);
    padding: 0.3em 0.8em;
    cursor: pointer;
    color: var(--dd-color-text);
    transition: background-color 0.15s, border-color 0.15s;
}
.dd-category-button:hover {
    border-color: var(--dd-color-text);
}
.dd-category-button.active {
    background: var(--dd-color-text);
    color: var(--dd-color-background);
    border-color: var(--dd-color-text);
}
.dd-filtermenu-section-category-switcher {
    display: flex;
    justify-content: center;
}
/* STATUS TOGGLES */
.dd-status-toggles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: center;
}
.dd-status-toggles.dd-empty {
    display: none;
}
@container dd-filterbar (max-width: 819.98px) {
    .dd-status-toggles {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 8px 16px;
        justify-items: start;
    }
}
.dd-filtermenu-section-status-toggles .dd-status-toggles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px 16px;
    width: 100%;
    max-width: 480px;
    justify-items: start;
}
.dd-status-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.dd-status-toggle input {
    display: none;
}
.dd-status-toggle-track {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
    border: 1px solid lightgray;
}
.dd-status-toggle input:not(:checked) + .dd-status-toggle-track::before {
    opacity: 0;
}
.dd-status-toggle-track::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 99px;
    background: var(--dd-status-color);
    opacity: 0.5;
    transition: opacity 0.2s;
}
.dd-status-toggle-track::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--dd-status-color);
    transition: transform 0.2s;
}
.dd-status-toggle input:checked + .dd-status-toggle-track::after {
    transform: translateX(16px);
}
.dd-status-toggle-label {
    color: var(--dd-color-text);
}
.dd-filtermenu-section-status-toggles {
    display: flex;
    justify-content: center;
}

.dd-sort-selector{
    position: relative;
}
.dd-sort-selected,
.dd-sort-option {
    font-weight: normal;
    opacity: 0.67;
}
.dd-sort-selected {
    min-width: 6em;
    display: inline-block;
    margin-left: 1em;
}
.dd-sort-options-wrapper {
    pointer-events: none;
    /* display: none; */
    position: absolute;
    left: -1em;
    top: 100%;
    width: max-content;
    overflow: hidden;
    padding: 0 1em 1em;
    z-index: 9;
}
.dd-sort-options {
    display: flex;
    flex-direction: column;
    /* gap: 1em; */
    padding: 1.2em 0.5em 1em;
    transition: all var(--dd-animation-time) var(--dd-animation-easing);
    transform: translate(0px, -100%);
    opacity: 0;
    background: white;
    background-color: var(--dd-color-background);
    z-index: 1;
    position: relative;
    box-shadow: 0 6px 6px #00000012;
    color:var(--dd-text-color);
}
.dd-sort-option {
    padding: 0.5em;
    border-radius: 99px;
}
@media screen AND (hover:hover){
    .not-touch-device .dd-sort-option:hover {
        text-decoration: underline;
    }
}
.dd-sort-option:focus-visible {
    outline: 2px solid black;
    outline-offset: 3px;
}
.dd-button.active .dd-sort-options-wrapper {
    pointer-events: auto;
}
.dd-button.active .dd-sort-options {
    pointer-events: auto;
    transform: translate(0px, 0px);
    opacity: 1;
}
.dd-action-flip-sort-direction[data-direction="1"] .dd-icon-wrapper {
    transform: scale(1,-1);
}




/* THE MAP */
.dd-bolig-shop .sape-sm-extrabuttons {  /* FORCE EXTRA BUTTONS TO TOP LEFT CORNER */
    position: fixed;
    top: calc( var(--dd-header-height) + var(--dd-list-controlbar-height) );
    left: 0;
    margin: 5px;
    max-width: 80vw;
    max-width: calc(100vw - 60px);
}






/* THE BIW - TODO: Move this into own file system */
.dd-biw-wrapper {
    position: relative;
    height: 100%;
}
/* .dd-biw-wrapper .dd-loadingscreen {
    bottom:10%;
} */
.dd-biw-content { 
    overflow: auto;
    height: 100%;
    position: relative;
    overscroll-behavior: contain;
    overflow-y: scroll;
    overflow-x: hidden;
}

.dd-biw-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    pointer-events: none;
    display: flex;
    justify-content: right;
    gap: var(--dd-biw-viewport-controls-button-gap);
}

.dd-biw-ui .dd-button {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.dd-biw-ui .dd-biw-closebutton {
    z-index: 3;
}

.dd-biw-view-on-map.dd-hidden {
    display: none;
}

.dd-bse-map-ui {
    position: absolute;
    top: 0;
    right: 0;
    padding: 20px;
    pointer-events: none;
    z-index: 2;
    display: flex;
    justify-content: right;
    opacity: 1;
    transition: transform 0.3s ease;
}

.dd-bse-map-ui.dd-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(0,-100%);
}

.dd-bse-map-ui .dd-button {
    pointer-events: auto;
}

.dd-bolig-shop .sidebox-data-container {
    position: relative;
    height: -webkit-fill-available;
}
.dd-bolig-shop .sidebox-data-container .sidebox-wrapper {
    margin:0;
}
.dd-bolig-shop .sape-sidebox-biw-v2 .sidebox-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
.dd-bolig-shop .sape-biw-menu {
    position: relative;
    top: unset;
    z-index: unset;
    padding: 15px 20px;
    gap:0;
    background-color: var(--dd-color-background);
}
.dd-bolig-shop .sape-biw-menu > .dd-button {
    margin-right:12px;
}
.dd-bolig-shop .sape-biw-viewport {
    min-height: 100vw;
}
.dd-bolig-shop .sape-biw-info {
    padding: 20px;
}







/* THE BIW CTAS */
.dd-biw-cost-info {
    font-weight: bold;
}

.dd-biw-cta-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    color: var(--dd-color-text);
}

.dd-biw-cta-footer-top .dd-cta-info {
    line-height: normal;
}

.sape-biw-tab-main {
    padding-bottom: 220px;
}
.dd-biw-button-cta-buy{
    width: auto;
    width: -webkit-fill-available;
}

.dd-biw-cta-footer-bottom {
    display: flex;
    justify-content: stretch;
}
.dd-biw-cta-footer-bottom .dd-button {
    width: 100%;
}












/* THE TOGGLEBUTTON */
.dd-button-transparent {
    background: #000000bf;
    border: none;
    color: white;
    font-weight: normal;
}
.dd-button-transparent svg {
    fill: white;
}













/* POPUP MENU — moved to core: includes/core/css/public-popup-menu.css */






/* DEPRECATED - USING .dd-popup-menu instead */
/* THE FILTER MENU */
/* .dd-bse-filtermenu-wrapper {
    display:flex;
    flex-direction: column;
    border-radius: 40px 40px 0 0;
}

.dd-bse-filtermenu-header {
    text-align: center;
    padding: 25px 40px;
    box-sizing: border-box;
}

.dd-bse-filtermenu-closebutton {
    position: absolute;
    top: 15px;
    right: 15px;
}

.dd-bse-filtermenu-footer {
    padding: 15px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dd-bse-filtermenu-content {
    padding: 0px;
    box-sizing: border-box;
    flex: 1 1 auto;
    overflow-y: auto;
}

.dd-bse-filtermenu-section {
    padding: 40px;
}

.dd-bse-filtermenu-section,
.dd-bse-filtermenu-footer {
    border-top: 1px solid lightgray;
} */











/* HEADER SETTINGS */
.dd-header-padding {
    /* padding-top: var(--header-height, var(--dd-header-height));  */
    padding-top: var(--dd-header-height); 
    transition: all var(--dd-animation-time) var(--dd-animation-easing);
}
.dd-header-and-controlbar-padding {
    padding-top: calc( var(--dd-header-height) + var(--dd-list-controlbar-height) );
    transition: all var(--dd-animation-time) var(--dd-animation-easing);
}
body.dd-header-hidden:not(.dd-force-header) .dd-header-padding, 
body.dd-header-hidden:not(.dd-force-header) .dd-header-and-controlbar-padding {
    padding-top: 0;
}
body.dd-force-header .scroll-down {
    transform: translateY(0);
}

/* FOOTER  SETTINGS */
body > footer {
    transition: all .2s ease;
}
.dd-force-header > footer {
    opacity: 0;
    pointer-events: none;
}





/* TEST */
.dd-bse-testbuttons {
    display: flex;
}
.dd-bse-testbutton {
    padding: 0px 16px;
    background: black;
    color: white;
    border-radius: 99px;
    border: none;
    margin: 2px;
    display: inline-block;
}




/* INLINE MODE — the shop sits in the host page's scroll flow (embeds with
   data-dd-inline). Nothing may position against the host viewport: the fixed
   full-viewport surfaces (map, BIW) become viewport-tall sticky panes that
   follow the page scroll but never leave the shop's own box. */
.dd-bolig-shop.dd-inline {
    position: relative;
}

.dd-bolig-shop.dd-inline::before,
.dd-bolig-shop.dd-inline.dd-loading::after {
    position: absolute;
}

.dd-bolig-shop.dd-inline .dd-bse-fixedelement {
    position: absolute;
    top: 0;
    height: auto;
    overflow: clip; /* not hidden — a hidden ancestor would detach the sticky pane from the page scroll */
}

.dd-bolig-shop.dd-inline .dd-bse-fixedelement .dd-bse-fixedcontent {
    position: sticky;
    top: var(--dd-sticky-offset, 0px);
    bottom: auto;
    /* Viewport-tall, capped to the shop's own height so short shops don't clip the pane */
    height: min(calc(100dvh - var(--dd-sticky-offset, 0px)), 100%);
}

.dd-bolig-shop.dd-inline .dd-bse-map .dd-statemachine-controlbar {
    position: absolute;
}

.dd-bolig-shop.dd-inline .sape-sm-extrabuttons {
    position: absolute;
    top: var(--dd-list-controlbar-height);
}

.dd-bolig-shop.dd-inline .dd-bse-togglebutton {
    position: sticky;
}

/* The full-page pagination margin reserves room for the floating toggle button,
   which sits in flow here. */
.dd-bolig-shop.dd-inline .dd-bse-list-pagination {
    margin-bottom: 0;
}

/* The panes' sticky top already clears the host header. */
.dd-bolig-shop.dd-inline .dd-header-padding {
    padding-top: 0;
}

/* Popup menus (filter drawer, level picker) are dd-bse-fixedelements too, so the
   pane rules above already box them in — only their viewport-fixed dim backdrop
   needs bringing into the shop's box. */
.dd-bolig-shop.dd-inline .dd-popup-menu-bg {
    position: absolute;
    height: 100%;
    background: var(--dd-color-background);
}

/* Map view: the list is hidden behind the map but stayed in flow at full height, so
   the shop was list-tall and the map pinned for a long dead scroll. Drop the list from
   the layout and let the map define the shop height: one box you scroll past, no
   dead scroll. The BIW modal opens on top without touching this box.
   --dd-inline-map-height comes from the embed loader's data-dd-min-height. */
.dd-bolig-shop.dd-inline.dd-map-active .dd-bse-list {
    display: none;
}
.dd-bolig-shop.dd-inline.dd-map-active .dd-bse-map {
    position: relative;
    height: var(--dd-inline-map-height, 75lvh);
}
.dd-bolig-shop.dd-inline.dd-map-active .dd-bse-map-content {
    position: absolute;
    inset: 0;
    height: 100%;
}

/* Keep the CTA footer put while switching residency. The base reveal gate is
   `.active:not(.dd-loading)`, so every reload (which toggles dd-loading) slid the
   footer down and back up. In an embed the footer stays overlaid whenever a residency
   is open — it only animates in on the first open (active flips), not on reloads. */
.dd-bolig-shop.dd-inline .dd-bse-biw.active .dd-biw-cta-footer {
    transform: translate( 0 , 0 );
}

/* Inside the modal panel the desktop footer mechanism (sticky within the internal
   scroller) is right on mobile too — the mobile fixed-to-viewport variant would
   escape the panel, and absolute would scroll away with the content. */
@media screen AND ((max-width:767.98px) OR (orientation:portrait)) {
    .dd-bolig-shop.dd-inline .dd-biw-cta-footer {
        position: sticky;
    }
    .dd-bolig-shop.dd-inline .dd-biw-info-wrapper {
        margin-bottom: 0;
    }
}

/* INLINE + a residency open: the BIW is a modal. The element is a <dialog> (top
   layer — immune to host-page transforms, overflow and z-index) that doubles as the
   backdrop; .dd-bse-biw-content is the centered panel and keeps the base model's
   internal scroller and sticky CTA footer. The host page's scroll is held by scroll
   chaining, not by hiding its overflow: the dialog is a scroll container
   (overflow:hidden — auto would grow a scrollbar while the panel is translated
   below it during the open animation) with overscroll-behavior:contain, so wheel,
   touch and keyboard scrolls over the backdrop stop there. Hiding the body's
   overflow would drop the host's scrollbar and re-lay out its fixed header/footer
   (and any page with a reserved scrollbar gutter); this way nothing on the host
   page moves. */
.dd-bolig-shop.dd-inline dialog.dd-bse-biw {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background-color: transparent;
    /* Close side, swift like the popup menu: the backdrop fades out while the
       discrete display/overlay transitions hold the dialog rendered and in the top
       layer until it's done — close() alone would drop it from the screen at once. */
    transition: background-color var(--dd-animation-time) var(--dd-animation-easing),
                display var(--dd-animation-time) allow-discrete,
                overlay var(--dd-animation-time) allow-discrete;
    pointer-events: auto; /* the dialog is the backdrop — it must receive the click that closes */
}
.dd-bolig-shop.dd-inline dialog.dd-bse-biw[open] {
    display: flex;
    background-color: color-mix( in srgb , var(--dd-color-background) 75% , transparent );
}
.dd-bolig-shop.dd-inline dialog.dd-bse-biw::backdrop {
    background: transparent;
}
.dd-bolig-shop.dd-inline dialog.dd-bse-biw .dd-bse-biw-content {
    position: relative;
    top: auto;
    bottom: auto;
    width: min( 760px , 92vw );
    max-width: none;
    height: 92dvh;
    margin: 0;
    padding-top: 0;
    border-radius: var(--dd-window-radius) var(--dd-window-radius) 0 0;
    overflow: hidden;
    box-shadow: 0 0 40px #00000040;
    /* Close side: slides back down at the standard pace. */
    transform: translateY( 100% );
    transition: transform var(--dd-animation-time) var(--dd-animation-easing);
}
/* Open side: slower than the backdrop and slightly behind it — the content is still
   loading in there, and a calm, decelerating arrival reads less chaotic than a snap.
   `none`, not translateY(0): a resting transform would make the panel the containing
   block for any fixed descendant. */
.dd-bolig-shop.dd-inline dialog.dd-bse-biw[open] .dd-bse-biw-content {
    transform: none;
    transition: transform calc( var(--dd-animation-time) * 2 ) cubic-bezier( 0.16 , 1 , 0.3 , 1 ) calc( var(--dd-animation-time) / 2 );
}
/* Open animation: the backdrop fades in, the panel slides up from the bottom edge.
   showModal() takes the dialog from display:none straight to rendered, so the
   transitions need their first-frame values from @starting-style. */
@starting-style {
    .dd-bolig-shop.dd-inline dialog.dd-bse-biw[open] {
        background-color: transparent;
    }
    .dd-bolig-shop.dd-inline dialog.dd-bse-biw[open] .dd-bse-biw-content {
        transform: translateY( 100% );
    }
}
/* The base model pads .dd-biw-info-wrapper up to the scroller height so the sticky
   footer rests at the bottom under short content — but the viewport shares that
   scroller, so the pad lands below the last accordion as dead space. Grow the wrapper
   only when the content is actually shorter than the panel. */
.dd-bolig-shop.dd-inline dialog.dd-bse-biw .dd-bolig-info-window {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.dd-bolig-shop.dd-inline dialog.dd-bse-biw .dd-biw-info-wrapper {
    flex: 1 0 auto;
    min-height: 0;
}
@media screen AND ((max-width:767.98px) OR (orientation:portrait)) {
    .dd-bolig-shop.dd-inline dialog.dd-bse-biw .dd-bse-biw-content {
        width: 100%;
        height: 100dvh;
        border-radius: 0;
    }
}

/* INLINE popup menus (filters, levels, timeline info, load error) are <dialog>s too
   (HTML_Popup_Menu) — the inline pane rules above were written for the map and BIW
   panes and would make a popup viewport-tall and park it at the shop's top, where
   the focus trap then scrolls the page to it. Bottom sheet in the top layer, fitting
   its content; the popup's own .dd-popup-menu-bg is the backdrop. The base
   dd-bse-animate-in-bottom transitions run on open via @starting-style and on close
   while the discrete display/overlay transitions hold the dialog on screen. */
.dd-bolig-shop.dd-inline dialog.dd-popup-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    display: none;
    background: transparent;
    visibility: visible;
    transition: display var(--dd-animation-time) allow-discrete,
                overlay var(--dd-animation-time) allow-discrete;
}
.dd-bolig-shop.dd-inline dialog.dd-popup-menu[open] {
    display: block;
}
.dd-bolig-shop.dd-inline dialog.dd-popup-menu .dd-popup-menu-bg {
    position: absolute;
    inset: 0;
    height: auto;
}
.dd-bolig-shop.dd-inline dialog.dd-popup-menu .dd-bse-content {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: fit-content;
    max-height: 85dvh;
    margin: 0 auto;
}
@starting-style {
    .dd-bolig-shop.dd-inline dialog.dd-popup-menu[open] .dd-popup-menu-bg {
        opacity: 0;
    }
    .dd-bolig-shop.dd-inline dialog.dd-popup-menu[open] .dd-bse-content {
        opacity: 0;
        transform: translate( 0 , 100vh );
    }
}