/* Imported from: bolig-public.css */
/* We have REPLACED ALL ".sape-" with ".dd-" */
/* TODO: Move all rules out in properly named seperate files and simplify where possible - while also renaming the corresponding names in JS and PHP */



.favourite-button-next-to-close {
    position: absolute;
    top: 18px;
    right: 57px;
    width: 32px;
    height: 32px;
    padding: 1px;
}

.dd-sidebox-biw-v1 .sidebox-content {
    max-width: 1300px;
    margin: auto;
}






/* GENERAL */
.dd-no-padding-right {
    padding-right:0;
}
/* END: GENERAL */







/* BOLIG INFO WINDOW v2 */
.dd-sidebox-biw-v2 {
    position:absolute !important;
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    right:0 !important;
    padding:0!important;
    transform: none !important;
}

.dd-sidebox-biw-v2 a:not(.dd-button):not(.dd-button) {
    color: inherit;
}
.dd-sidebox-biw-v2 a:not(.dd-button):not(.dd-button):focus,
.dd-sidebox-biw-v2 a:not(.dd-button):not(.dd-button):active {
    color: inherit;
    text-decoration: underline;
}
@media screen AND (hover:hover) {
    .dd-sidebox-biw-v2 a:not(.dd-button):not(.dd-button):hover {
        color: inherit;
        text-decoration: underline;
    }
}

.dd-sidebox-biw-v2 .sidebox-content {
    position:absolute;
    left: 0;
    right: 0;
}
.dd-sidebox-biw-v2 .boligoversigt-closebutton {
    left: 30px;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 99px;
    opacity: 1;
}
.dd-sidebox-biw-v2 .boligoversigt-closebutton:before,
.dd-sidebox-biw-v2 .boligoversigt-closebutton:after {
    display: none;
}
.dd-sidebox-biw-v2 .dd-biw-v2-back-button-icon {
    display:block;
}
.dd-sidebox-biw-v2 .favourite-button-wrapper {
    right: 30px;
}

.dd-biw-tab {
    display: none;
}




/* .dd-biw-viewport {
    background-color: #e2e1df;
} */
.dd-biw-viewport .dd-biw-viewport-2dplan-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
}
.dd-biw-viewport .dd-biw-viewport-2dplan-wrapper img {
    height: -webkit-fill-available;
    object-fit: scale-down;
}

.dd-biw-tab.active {
    display: block;
}

.dd-biw-menu,
.dd-biw-buttons-group {
    display: flex;
    align-items: center;
    overflow-x: overlay;
    gap:12px;
}
.dd-biw-buttons-group {
    margin-bottom: 10px;
}

.dd-biw-menu {
    padding:15px;
}

.dd-biw-menu::-webkit-scrollbar,
.dd-biw-buttons-group::-webkit-scrollbar{
    display: none;
}

.dd-biw-button-label {
    width:180px;
}

.dd-biw-menu {
    position: sticky;
    top: -1px;
    background: white;
    z-index: 1;
    border-bottom: 1px solid var(--dd-color-seperator);
}

@media screen AND (max-width:767px){
    .dd-biw-menu .dd-button {
        min-width: 60vw;
    }
}
.dd-button.dd-bordered-button {
    background: transparent;
}
.dd-button .ipe-boliginfo-button-icon{
    margin:0;
    margin-left:10px;
}
.dd-button .ipe-boliginfo-button-icon svg{
    width:100%;
    height: 100%;
    min-width: 20px;
}





/* BOLIG INFO LINE - BOLIGSTØTTEBEREGNER */
body .dd-infoline .dd-button {
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px;
    min-height: unset;
    padding: 0 15px;
}

.dd-boligstoette-beregner-controller .dd-value {
    display: flex;
    flex-direction: row-reverse;
}

.dd-boligstoette-beregner-controller .calculate-button {
    flex: 1 1;
    margin: 0 0 0 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen AND (max-width:767px) {
    .dd-boligstoette-beregner-controller .dd-value {
        flex-direction: row;
    }

    .dd-boligstoette-beregner-controller .calculate-button {
        margin: 0 10px 0 0;
    }
}








.dd-biw-close {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dd-biw-tab {
    background: white;
}

.dd-biw-tab.dd-animated-activation {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
}
.dd-biw-tab.dd-animated-activation:not(.active){
    pointer-events: none;
    max-height: 89vh;
    overflow: hidden;
}
.dd-biw-tab.dd-animated-activation {
    transition-delay: 0.2s;
}
.dd-biw-tab.dd-animated-activation,
.dd-biw-tab.dd-animated-activation > * {
    opacity: 0;
    transition: opacity 0.2s linear;
}
.dd-biw-tab.dd-animated-activation.active,
.dd-biw-tab.dd-animated-activation.active > div {
    opacity: 1;
}




/* FAVOURITES SECTION */
.dd-favourites .ipe-boliginfo-button {
    justify-content: left;
    color: black;
    background-color: transparent;
    border: none;
}
.dd-favourites .ipe-boliginfo-button-label,
.dd-favourites .ipe-boliginfo-button-icon {
    margin-left: 0;
}

@media (hover: hover) {
    .dd-favourites .ipe-boliginfo-button:hover {
        background-color: transparent;
    }
}
/* END: FAVOURITES SECTION */







/* SCROLLBARS */
.dd-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.dd-scrollbar::-webkit-scrollbar-track {
    background: var(--dd-color-seperator); 
}
.dd-scrollbar::-webkit-scrollbar-thumb {
    background: #000; 
}
@media (hover: hover) {
    .dd-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #000; 
    }
}
/* Firefox */
.dd-scrollbar {
    scrollbar-color: #000 var(--dd-color-seperator);
}
/* END: SCROLLBARS */








/* CARDS */
.dd-cards {
    display: flex;
    overflow-x: scroll;
    padding-bottom: 16px;
}
.dd-cards.dd-scrollbar::-webkit-scrollbar-track {
    margin-right:30px;
}
.dd-card {
    flex: 0 0 auto;
    margin:5px;
}
.dd-card:first-of-type {
    margin-left:0px;
}
.dd-card:last-of-type {
    margin-right:30px;
}
.dd-cards .dd-card img {
    background-color: var(--dd-color-seperator);
    border-radius: 15px;
    overflow: hidden;
}
/* END: CARDS */






.dd-biw-nyhedsbrev {
    text-align: center;
}
.dd-biw-footer {
    background-color: #000;
    color:#FFF;
    margin-top:30px;
}

/* END: BOLIG INFO WINDOW v2 */





/* HELPERS */
/* USE:  <div style="--aspect-ratio:815/419;"> */
[style*="--aspect-ratio"] > :first-child {
    width: 100%;
  }
  [style*="--aspect-ratio"] > iframe {  
    height: auto;
  } 
  @supports (--custom:property) {
    [style*="--aspect-ratio"] {
      position: relative;
    }
    [style*="--aspect-ratio"]::before {
      content: "";
      display: block;
      padding-bottom: calc(100% / (var(--aspect-ratio)));
      pointer-events: none;
    }  
    [style*="--aspect-ratio"] > :first-child {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
    }  
}









/* VIEWPORT DISCLAIMER AND TUTORIAL */
.dd-biw-viewport-disclaimer,
.dd-biw-viewport-tutorial {
    background-color: #0004;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dd-biw-viewport-disclaimer-modal {
    background: white;
    padding: 40px 50px;
    border-radius: 30px;
    margin: 20px;
    max-width: 600px;
}

.dd-biw-viewport-tutorial-message {
    color: white;
    text-align: center;
}

.dd-bordered-button {
    border: 2px solid rgb(85, 85, 85);
    background-color: white;
}

@media screen AND (max-width:767px){
    .dd-biw-viewport-disclaimer-modal {
        padding: 20px 30px;
        border-radius: 10px;
    }
    .dd-biw-viewport-disclaimer-modal p {
        font-size: 0.85em;
    }
}
/* END: VIEWPORT DISCLAIMER */


.dd-flex-column {
    display:flex;
    flex-direction: column;
}
.dd-flex-column-reverse {
    display:flex;
    flex-direction: column-reverse;
}
.dd-flex-row {
    display:flex;
    flex-direction: row;
}
.dd-flex-row-reverse {
    display:flex;
    flex-direction: row-reverse;
}


/* VIEWPORTS (Multiple views) */
.dd-viewort-tab {
    display: none;
    z-index: -1;
}
.dd-viewort-tab.active {
    display: block;
    z-index: 0;
}


/* VIEWPORT -> CUSTOMIZER */
.dd-biw-viewport .dd-customizer-wrapper,
.dd-biw-viewport .dd-c-imagewrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
.dd-biw-viewport-tab .dd-customizer {
    height: 100%;
}

.dd-biw-viewport .dd-c-imagewrapper .dd-c-image {
    object-fit: cover;
    height: 100%;
}

