/* VARIABLES */
:root {
--sidebar-width: 25rem;
--sidebar-high-mobile: 50rem;
/* --bg-color-menues: #f8f9fa; */
--bg-color-menues: #f8f9fa;
}


/* GENERAL */
body {
    /* padding: 0px;
    margin: 0px; */
    width: 100%;
    /* height: 100vh; */
    height: 100%;
    /* height: calc(100vh - 60px); Beispielwert: 60px für die Höhe der Adressleiste; */
    overflow: hidden;
    position: fixed;
}

/* Generally remove focus outline */
*:focus {
    outline: none;
}

/* CSS to disable website-zoom when double tapping on buttons (for example iPad) */
/* TODO Does not work 100% yet */
button { 
    touch-action: manipulation; 
}

button.btn-circle {
    border: solid 1px #cacaca;
    padding: 5px 10px;
    border-radius: 50%;
}

/* removing ugly black border around close-btn*/
button.close { 
    padding: 0;
    border: none;
    background: none;
}

/* Modal */
.modal-dialog {
    height: 90%; /* = 90% of the .modal-backdrop block = %90 of the screen */
}
.modal-content {
    height: 100%; /* = 100% of the .modal-dialog block */
}

.modal-content strong {
    font-size: 1.5rem;
    color: black;
}

.modal-body {
    overflow: auto;
}

#main {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    /* width: 100vw;
    height: 100vh; */
    transition: left .5s;
    /* background-color: white; */
    background: url(../assets/0008-blured-bg.jpg) no-repeat center center fixed; 
    /* background: url(../assets/0014-blured-bg.jpg) no-repeat center center fixed;  */
    /* background: url(../assets/0013.webp) no-repeat center center fixed;  */
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#main.open-menue {
    /* width: 80vw; */
    /* left: 20vw; */
    left: var(--sidebar-width);
}

object {
    visibility: hidden;
}

.display-none {
    display: none;
}

/* Prevents visible scrollbar when loading svgs and images */
#temp-data-storage {
    overflow: hidden;
    height: 0;
}

/* Custom scrollbars */
/* width */
::-webkit-scrollbar {
    width: 14px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent; 
    padding: 2px;
}


/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
    border-left: 8px transparent solid;
    background-clip: padding-box;
  }

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    /* background: rgb(146, 146, 146);  */
    border-left: 8px transparent solid;
    background-clip: padding-box;
}


/* Viewport */
#viewport,
#viewport-markers {
    position: absolute;
    /* display: flex;
    flex-direction: column;
    align-items: center; */

    /* height: 100%;
    width: 100%; */

    inset: 0 0 0 0;
    overflow: hidden;
}

/* temporary turn off elements */
/* #viewport-markers,
#sunposition-switch,
#availability-switch {
    display: none; 
} */

canvas,
#markers {
    position: absolute;
    height: 100%;
    width: Auto; /* Change this value ony to zoom in/out */
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    /* transition: all linear 0.05s; */
}

#markers {
    aspect-ratio: 1920/1080;
    /* height: 100vh; */
}

#loading-spinner {
    position: absolute;
    color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    display: flex;
    justify-content: center;
    /* align-content: center; */
    align-items: center;
    flex-direction: column;
}

#loading-spinner img {
    max-width: 5rem;
}



#brand, 
#navigation, 
#loading-status, 
#flat-infobox, 
#sidemenue-btn, 
#sunposition-switch,
#availability-switch,
#sunposition-hour, 
#contact-mobileview,
#zoom,
#footer,
#fullscreen {
    position: absolute;
}

#sunposition-hour p {
    margin-bottom: 0px;
}


/* UI */

.status-dot-green,
.status-dot-red,
.status-dot-orange {
    height: 6px;
    width: 6px;
    background-color: rgb(150, 204, 63);
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.4rem;
    margin-bottom: 1px;
  }

.status-dot-red {
    background-color: rgb(204, 63, 75);
  }

.status-dot-orange {
    background-color: rgb(230, 179, 13);
  }

#sidemenue-btn {
    overflow: hidden;
}

#sidemenue-btn .btn {
    margin:  1rem 1rem 1rem -0.3rem;
}

#brand {
    margin: 1rem;
    top: 0px;
    width: 8rem;
    right: 0px;
}

#brand .logo {
    width: 100%;
}

#navigation {
    margin: 1rem;
    bottom: 20px;
    right: 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#north-indicator {
    margin: 0 .5rem;
    padding: 0;
    height: 37px;
    width: 37px;
    display: flex;
    flex-direction: column;
    align-items: center;;
    background-color: red;
    background: url(../assets/north-white.png) no-repeat center center fixed; 
}

.icon-img {
    width: auto;
    height: 100%;
}

/* Bootstrap overrides and adds */
img.img-fluid {
    max-width: 7rem;
}

.popover {
    z-index: 990;
}

.toast-container {
    z-index: 10001;
}

Button.btn-down i.bi,
Button.btn-up i.bi {
    color: #6c757d;
}

.no-hyphenation {
    white-space: nowrap;
  }

.btn-close:focus {
    outline: 0;
    box-shadow: none;
    opacity: 1;
}

/* Hintergrundfarbe des Switches */
/* ***************************** */
.form-switch .form-check-input:checked {
    background-color: #5c636a;
    border-color: #5c636a;
}

/* Die Focus-Color */
.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(196, 196, 196, 0.5);
}

/* Outline Switch deaktiviert aber fokus */
.form-switch .form-check-input:focus:not(:checked) {
    border-color: #5c636a !important;
}

/* Hintergrund eenn Switch gedrückt gehalten */
.form-switch .form-check-input:not(:disabled):active {
    background-color: #5c636a!important;
    border-color: #5c636a !important;
  }

/* Ändere die Farbe des Checkbox-Knopfes*/
/* Neutraler Zustand */
.form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgb(196, 196, 196)'/%3e%3c/svg%3e");
  }

/* Gedrückter Zustand */
.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(218, 218, 218, 1)'/%3e%3c/svg%3e");
  }


#contact-mobileview {
    top: 1rem;
    left: 1rem;
    display: none;
}

#sunposition-switch {
    bottom: 70px;
    left: 0px;
}

#sunposition-switch input {
    margin-right: .5rem;
    margin-top: 0px;
    left: 0px;
}

#availability-switch {
    bottom: 20px;
    left: 0px;
}

#sunposition-hour {
    bottom: 121px;
    left: 0px; 
    visibility: hidden;
}

#zoom {
    bottom: 88px;
    right: 1rem; 
}

#fullscreen {
    bottom: 177px;
    right: 1rem; 
}

#footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    bottom: 0;
    right: 0;
    left: 0;
    height: 20px;
    background-color: #00000034;
}

a.footer {
    color: white;
    font-size: 10px;
    margin: 0;
    text-decoration: none;
}

.ui-wrapper {
    margin: 1rem;
    padding: 0.32rem 0.9rem 0.45rem 0.7rem;
    background-color: #f9fafb;
    border-radius: 4px;
    width: 11rem;
}

.ui-wrapper-small {
    width: 5.3rem;
}

.ui-wrapper.btn-height {
    max-height: 37px;
}

.input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-grow: 1;
}

/* Range Slider */
.custom-thumb-color::-webkit-slider-thumb {
    background: #6c757d;
  }

.slider-handle { 
    background-image: linear-gradient(to bottom, #6d757c, #6d757c); /* Overrides default color */
}

.slider.slider-horizontal {
    width: 290px;
}

#availability-switch .form-switch,
#sunposition-switch .form-switch,
#availability-switch .form-switch .form-check-input,
#sunposition-switch .form-switch .form-check-input {
    padding-left: 0;
    margin-left: 0;
}

.form-check-switcher {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#availability input,
#sunposition input {
    margin-left: 0;
    margin-right: 0.7rem;
}

#sidemenue-flat-list,
#flat-detail-sheet,
#contact-detail-sheet {
    position: absolute;
    width: var(--sidebar-width);
    left: calc(var(--sidebar-width) *-1);
    /* left: 0; */
    /* height: 100vh; */
    height: 100%;
    padding: 1rem;
    background-color: var(--bg-color-menues);
    transition: all .5s, background-color 4s;
}

#sidemenue-flat-list.open-menue,
#flat-detail-sheet.open-menue, 
#contact-detail-sheet.open-menue {
    left: 0;
    display: flex;
    flex-direction: column;
}

/* #sidemenue-flat-list.open-menue {
    position: relative;
} */

/* öffner-lasche für mobile */
.opener-lug {
    flex: 0 0 auto;
    display: none;
    width: 40px;
    height: 4px;
    border-radius: 15px;
    background-color: #6c757d70;
    margin: 0 auto;
    margin-bottom: 1rem;
}

#flat-list-top-menue {
    margin-bottom: 1rem;
    display: none;
}

#flat-list-container,
#flat-detail-sheet-container,
#contact-detail-sheet-container {
    height: 100%;
    padding: 5px;
    overflow-y: auto;
    overflow-x: hidden;
}

#flat-list-bottom-menue {
    position: absolute;
    width: 100%;
    /* height: 2rem; */

    bottom: 0px;
    left: 0px;
}

#flat-list-bottom-menue
 .filter-btn-container {
    background-color: var(--bg-color-menues);
    padding: 1rem;
}

.gradient {
    background: rgb(0,0,0, 0);
    background: linear-gradient(0deg, var(--bg-color-menues) 0%, rgba(0,0,0,0) 80%);
    /* background-image: url(../img/bg-gradient.png);
    background-repeat: repeat-x; */
    /* display: block; */
    width: 100%;
    height: 3rem;
}

/* Filter params */
#flat-list-bottom-menue .filter-params-container {
    height: 0;
    /* height: 80vh; */
    /* padding: 0; */
    padding: 0 1rem;
    background-color: var(--bg-color-menues);
    /* background-color: green; */
    overflow: hidden;
    transition: height .5s;
}

#flat-list-bottom-menue .filter-params-container.open-menue {
    height: 87vh;
    padding: 1rem;
    overflow-y: auto;
}

/* Infobox when clicking directly on the image of the building */
#flat-infobox {
    /* height: 100px; */
    /* width:  100px; */
    background-color: rgb(255, 255, 255);
    padding: 1rem;
    display: none;
    border-radius:0.3rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 10000;
}

#loading-status {
    bottom: 0px;
}

#loading-status p {
    padding: 0px 1rem 0px 1rem;
}

#loading-bar {
    position: absolute;
    bottom: 0px;
    height: 5px;
    /* width: 100%; */
    background-color: rgb(187, 187, 187);
    visibility: hidden;
}

/* Styling of the SVG markers */
#markers svg path {
    stroke: white;
    stroke-width: 3px;
    stroke-linejoin: round;
    opacity: 0;
}

#markers svg path.tooltip,
#markers svg path.bs-icon {
    /* display: block; */
    stroke-width: 1.2px;
    opacity: 1;
}


/* #markers svg path:focus, 
#markers svg path:active, */
#markers svg path.active {
    fill: rgba(243, 3, 135, 0.5) !important;
    opacity: 1;
    outline: none;
}

/*#markers svg g:not([id*="-t"]):not([id*="ISO"]) path.hover,
#markers svg g:not([id*="-t"]):not([id*="ISO"]) path:hover,*/
#markers svg g:not([id*="-t"]):not([id*="ISO"]) path:not(.tooltip).hover,
#markers svg g:not([id*="-t"]):not([id*="ISO"]) path:not(.tooltip):hover
 {
    fill: rgba(255, 255, 255, 0.5);
    opacity: 1;
    outline: none;
}

#markers svg path.free {
    fill: rgba(159, 243, 3, 0.5);
    opacity: 1;
    outline: none;
}

#markers svg path.sold {
    fill: rgba(177, 6, 6, 0.682);
    opacity: 1;
    outline: none;
}

#markers svg path.reserved {
    fill: rgba(243, 179, 3, 0.747);
    opacity: 1;
    outline: none;
}

#markers svg path.disabled,
#markers svg path.disabled:hover {
    fill: white !important;
    opacity: .6 !important;
    stroke: none;
}

/* Disables the default focus style */
/* #markers svg path:focus {
    display: none;
} */


/* FLAT LIST */

#flat-list {
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.flat-table-spacer {
    display: block;
    height: 4rem;
}

/* Detail sheet */
#flat-detail-sheet,
#contact-detail-sheet {
    height: auto;
    bottom: 1rem;
    top: 1rem;
    background-color: white; 
    border-radius: 1rem;
}

#flat-detail-sheet.open-menue, 
#contact-detail-sheet.open-menue {
    box-shadow: 2px 2px 9px 1px rgba(0,0,0,0.3);
    -webkit-box-shadow: 2px 2px 9px 1px rgba(0,0,0,0.3);
    -moz-box-shadow: 2px 2px 9px 1px rgba(0,0,0,0.3);
}

.detail-header {
    border-bottom: 1px solid rgb(223, 223, 223);;
    padding-bottom: 1rem;
}

/* Siag own css framework ... ? */
.siag-card {
    /* width: 100%; */
    background-color: white;
    border-radius: .3rem;
    border: 1px solid rgb(223, 223, 223);
    box-shadow: 0 1px 1px rgba(0,0,0,0.15);
    padding: .5rem .7rem;
    flex-grow: 1;
    transition: all .3s;
}

.siag-card-detail {
    background-color: white;
    border-radius: .3rem;
    border: 1px solid rgb(223, 223, 223);
    padding: 1rem;
    flex-grow: 1;
}

.siag-card-detail.detail-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.detail-grid-items {
    width: 50%;
    flex-grow: 1;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #E1E8EC;
    border-right: 1px solid #E1E8EC;
}

.detail-grid-items:nth-child(-n+2) {
    border-top: none;
}

.detail-grid-items:nth-child(even), 
.detail-grid-items:nth-last-child(1) {
    border-right: none;
}

.detail-grid-items:nth-child(even), 
.detail-grid-items:nth-last-child(1) {
    border-right: none;
}

.details-grid-item-caption {
    color: #7F8479;
    font-size: .8em;
    padding: 0 2px;
}

.siag-card:hover {
    box-shadow: 0 2px 2px rgba(0,0,0,0.15);
    background-color: rgb(252, 252, 252);
    transform: translateY(-2px);
}

.siag-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.siag-card-row.grid {
    display: grid;
    grid-template-rows: auto auto;
    /* grid-template-columns: auto auto auto; */
    /* grid-template-columns: 33% 33% 33%; */
    grid-template-columns: 50% 50%;
    gap: 3px;
}

.siag-card-row h6.price, 
strong {
    font-weight: 500;
    color: #808379;
}

.siag-card-row.grid.siag-card-cell:nth-child(n+2) {
    border-left: #5A6572 solid 1px;
}

.siag-card-cell.caption {
    display: flex;
    flex-direction: column;
}

.siag-card-cell.detail-sheet-use span {
    font-size: 12px;
    font-weight: 800;
    color: #5A6572;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 8px;
}

.siag-card-cell.flex-item-push-others {
    flex-grow: 1;
    flex-shrink: 1;
}

.siag-card-cell.detail-sheet-street {
    margin-top: 0.3rem;
    color: #80857a;
    font-size: .8em;
    line-height: 1.3;
}

.siag-card-cell.caption span.caption {
    color: #B5B9B2;
    font-size: .9em;
}

.siag-card-cell.detail-sheet-price-title {
    font-size: 1.3rem;
    /* font-weight: bold; */
}

.muted {
    color: #808379;
}

.siag-badge {
    padding: 3px 8px;
    background-color: #EDF1F4;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #83867C;
    text-transform: uppercase;
    text-align: right;
    letter-spacing: .9px;
    margin-left: 4px;
    width: max-content;
}

.siag-badge.txt-large {
    font-size: 16px;
}

.siag-badge.status-dot-green-badge {
    background-color: #deffa8;
    border-radius: 7px;
    border: solid 1px #709634;
    color: #709634;
}

.siag-badge.status-dot-orange-badge {
    background-color: #ffedb2;
    border-radius: 7px;
    border: solid 1px #e6b30d;
    color: #c99a00;
}

.siag-badge.status-dot-red-badge {
    background-color:#f4a6ac;
    border-radius: 7px;
    border: solid 1px #cc3f4b;
    color: #cc3f4b;
}




/* FILTER PARAMS */

.sort-asc-desc-label {

}

#sorting input[type=radio]:checked + label.asc::after {
    color: #6c757d;
    margin-left: 1rem;
    /* content: "\F57B Aufsteigend"; Asc */
    content: "⇡≡ Aufsteigend"; /* Asc */
    cursor: pointer;
    margin-top: 5px;
    padding-top: 5px;
} 

#sorting input[type=radio]:checked + label::after {
    color: #6c757d;
    margin-left: 1rem;
    /* content: "\F575 Absteigend"; Desc */
    content: "⇣≡ Absteigend"; /* Desc */
    cursor: pointer;
} 

#sorting input[type=radio]:not(:checked) + label.asc::after {
    color: lightgray;
    margin-left: 1rem;
    /* content: "\25B2 aufsteigend"; */
    /* content: "\F57B Aufsteigend"; Asc */
    content: "⇡≡ Aufsteigend"; /* Asc */
    cursor: pointer;
} 

#sorting input[type=radio]:not(:checked) + label::after {
    color: lightgray;
    margin-left: 1rem;
    /* content: "\25BC absteigend"; */
    /* content: "\F575 Absteigend"; Desc */
    content: "⇣≡ Absteigend"; /* Desc */
    cursor: pointer;
} 

#room-checkboxes input[type=checkbox] {
    margin-right: 0.3rem;
}

#room-checkboxes input[type=checkbox] + label {
    margin-right: 1rem;
}

#room-checkboxes {
    display: flex;
    flex-wrap: wrap;
}

/* Boostrap multi range slider */
.slider-div {
    display: flex;
    flex-direction: row;
    margin-top: 30px;
}

.slider-div>div {
    margin: 8px;
}

.slider-label {
    position: absolute;
    background-color: #eee;
    padding: 4px;
    font-size: 0.75rem;
}

#slider-price-range, 
#slider-area-range {
    position: relative;
}

.slider-selection  {
    background-image: none;
    background-color: #dbdbdb;
}

/*Boostrap overrides*/
.bi-heart-fill::before {
    content: "\f415";
    color: rgb(204, 63, 75, 0.8);
}

.btn:focus {
    outline: none;
    box-shadow: none;
  }

/*reCAPTCHA*/
.grecaptcha-badge { 
    visibility: hidden;
}

button.btn-up,
button.btn-down {
    border: none;
    background-color: transparent;
    display: none;
}

/* BREAKPONTS */

/* iPad Pro Portrait */
@media only screen 
  and (max-width: 1024px) 
  and (max-height: 1366px) 

  and (-webkit-min-device-pixel-ratio: 1.5) {


#main {
    left: 0;
}

#main.open-menue {
    left: 0;
    bottom: 20%;
    width: 100%;
}

#flat-list {
    flex-direction: row;
    column-gap: 0.5rem;
}

/* temporary disable up- and down buttons */
#flat-detail-sheet-dragarea .siag-card-row:first-child button {
    display: none;
}

#sidemenue-flat-list.open-menue, #flat-detail-sheet.open-menue, #contact-detail-sheet.open-menue {
    left: 0;
    height: 20%;
    bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

#sidemenue-flat-list.padding-small {
    padding: 5px;
}

#sidemenue-btn,
#flat-list-top-menue,
.gradient,
.siag-card-row.row-nr-1 {
    display: none;
}

#flat-list-container, #flat-detail-sheet-container, #contact-detail-sheet-container {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    padding: 5px;
    /* padding-bottom: 5px; */
}

#flat-list-container {
    overflow-y: hidden;
    overflow-x: auto;
}

.siag-card-row {
    /* width: 15rem; */
    font-size: 13px;
}

.siag-badge {
    font-size: 8px;
}

#flat-detail-sheet .siag-card-row, 
#filter-form .siag-card-row,
#contact-detail-sheet .siag-card-row {
    width: 100%;
}

#flat-detail-sheet {
    height: auto;
    right: 1rem;
    left: 1rem;
    width: auto;
    top: 100%;
    z-index: 1000;
}

#flat-detail-sheet.open-menue {
    height: auto;
    width: auto;
    bottom: -10px;
    top: 80%;
    right: 1rem;
    left: 1rem;
}

#flat-detail-sheet.open-menue.open-menue-more {
    top: 20%;
}


#flat-detail-sheet button.btn-close {
    display: none;
}

button.btn-up,
button.btn-down {
    display: inline-block;
}

#contact-mobileview {
    /* display: block; */
    display: none;
}

#contact-detail-sheet {
    height: auto;
    top: 100vh;
    left: 1rem;
    right: 1rem;
    width: auto;
    z-index: 10100;
}

#contact-detail-sheet.open-menue {
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    height: auto;
    width: auto;
}

.opener-lug {
    display: block;
}

.siag-card-cell:nth-child(n+2) {
    margin-left: 1rem;
}

}


/* Mobile View */
@media screen and (max-width: 480px) {

#main.open-menue {
    bottom: 30%;
}

#sidemenue-flat-list.open-menue {
    height: 30%;
}

#flat-detail-sheet.open-menue {
    top: 70%;
}

#flat-detail-sheet.open-menue.open-menue-more {
    top: 1rem;
}

#flat-list-bottom-menue .filter-params-container.open-menue {
    height: 90vh;
}

}


