/* || General styles */

html {
    font-size: 16px;
	--ui-mainColor: #e10f21;
	--ui-defaultColor: #4b3e48;
    --ui-bgColor: rgba(255, 255, 255, 0.89);
    --ui-inverseColor: white;
}

body {
    background-color: white;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    overflow: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: var(--ui-defaultColor);
    
}

*:focus {
    outline:none;
}

@media screen and (max-width: 1024px),
       screen and (max-height: 768px) {
    html {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px),
       screen and (max-height: 479px) {
    html {
        font-size: 12px;
    }
}

/* || General styles */

#fullContent {
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: 70px calc(100vh - 70px);
    grid-template-rows: 70px calc(100dvh - 70px);
}

#fullContent.noHeader {
    grid-template-rows: 100%;
}

@media screen and (orientation: portrait),
       screen and (max-height: 768px) {
    #fullContent, #fullContent.noHeader {
        grid-template-rows: 50px calc(100vh - 50px);
        grid-template-rows: 50px calc(100dvh - 50px);
    }
}

#content {
    position: relative;
}

/* || Header styles */

#header {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid Gainsboro;
    background-color: white;
    padding: 5px;
    z-index: 2;
}

#header.noHeader {
    display: none;
}

#header .navButton {
    position: relative;
    visibility: hidden;
}

#header h1 {
    font-weight: normal;
    margin-block-start: 0;
    margin-block-end: 0;
}

.headerLogo {
    box-sizing: border-box;
    text-align: right;
    height: 100%;
}

#header img {
    height: 100%;
}

.headerNav:hover {
    color: var(--ui-mainColor);
    font-weight: bold;
}

.headerNav .icon {
    font-size: 2.5rem;
}

@media screen and (orientation: portrait) {
        #header.noHeader {
            display: flex;
            visibility: hidden;
        }
    }

/* || Nav styles */

.navButton {
    position: absolute;
    z-index: 51;
    height: 70px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.navButton:hover {
    color: var(--ui-mainColor);
    font-weight: bold;
}

#nav {
    position: absolute;
    padding-top: 70px;
    height: 100vh;
    height: 100dvh;
    z-index: 50;
    width: 350px;
    background-color: var(--ui-bgColor);
    border-right: 1px solid Gainsboro;
    transition: 0.5s;
    font-size: 16px;
}

#nav.closed {
    left: -350px;
}

#nav.open {
    left: 0;
}

#nav .close {
    position: absolute;
    font-weight: bold;
    top: 1px;
    right: 5px;
    cursor: pointer;
}

#nav .close:hover {
    color: var(--ui-mainColor);
}

#nav li {
    list-style: square;
    margin-block: 10px;
}

#nav a {
    text-decoration: none;
    color: var(--ui-defaultColor);
}

#nav a:hover {
    color: var(--ui-mainColor);
    font-weight: bold;
}

#nav .logo {
    position: absolute;
    width: 100%;
    bottom: 10px;
    text-align: center;
}

#nav .logo img {
    height: 3rem;
}

@media screen and (max-height: 768px) {
    .navButton {
        height: 50px;
    }

    #nav {
        padding-top: 50px;
    }
}

@media screen and (orientation: portrait) {
    .navButton {
        height: 50px;
    }

    #nav {
        padding-top: 50px;
        width: 100%;
        border-right: none;
    }
    
    #nav.closed {
        left: -100%;
    }
    
    #nav.open {
        left: 0;
    }
}

/* || Tooltip styles */

#tooltip {
    display: inline-block;
    text-align: center;
    position: absolute;
    padding: 5px 10px 5px 10px;
    font-size: 0.85rem;
    z-index: 1500;
    border: 1px solid var(--ui-defaultColor);
    border-radius: 0.3rem;
    background-color: var(--ui-bgColor);
    margin-block-start: 0px;
    margin-block-end: 0px;
}

/* || tool styles */

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: content-box;
    width: 56px;
    height: 24px;
    opacity: 1;
    transform: scale(1);
    transition-delay: 1s;
    transition: 0.5s;
    background-color: var(--ui-bgColor);
    border-radius: 3px;
    margin: 10px auto;
}

.loader.hide {
    opacity: 0;
    transform: scale(0);
}

.loader div {
    position: absolute;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ui-mainColor);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loader div:nth-child(1) {
    left: 8px;
    animation: loader1 0.6s infinite;
}

.loader div:nth-child(2) {
    left: 8px;
    animation: loader2 0.6s infinite;
}

.loader div:nth-child(3) {
    left: 24px;
    animation: loader2 0.6s infinite;
}

.loader div:nth-child(4) {
    left: 40px;
    animation: loader3 0.6s infinite;
}

@keyframes loader1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loader3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes loader2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(16px, 0);
    }
}

/* || tool styles */

.tool {
    color: white;
    pointer-events: all;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.tool:hover {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 8);
}

/* || checkbox styles */

.immoCheckbox {
    display: block;
    position: relative;
    padding-left: 1.8rem;
    padding-bottom: 0.3rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.immoCheckbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.immoCheckbox .checkmark {
    position: absolute;
    box-sizing: border-box;
    top: 0.05rem;
    left: 0;
    height: 1.2rem;
    width: 1.2rem;
    background-color: white;
    border: 1px solid var(--ui-mainColor);
    border-radius: 0.2rem;
}

.immoCheckbox:hover input ~ .checkmark {
    background-color: #eeeeee;
}

.immoCheckbox input:checked ~ .checkmark {
    background-color: var(--ui-mainColor);
}

.immoCheckbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.immoCheckbox input:checked ~ .checkmark:after {
    display: block;
}

.immoCheckbox .checkmark:after {
    left: 0.3rem;
    top: 0rem;
    width: 0.3rem;
    height: 0.6rem;
    border: solid white;
    border-width: 0 0.2rem 0.2rem 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.immoCheckbox.allCheck {
    font-weight: bold;
}

/* || selectbox styles */

.immoSelect {
    background: var(--ui-bgColor);
    border-radius: 5px;
    color: var(--ui-defaultColor);
    height: 30px;
    width: max-content;
}

/* || toolBox */

.mainToolBox {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mainToolBox.hidden {
    display: none;
}

.mainToolBox>* {
    display: flex;
    gap: 10px;
}

.mainToolBox>div>div {
    display: flex;
    gap: 3px;
}

.mainToolBox .tool {
    font-size: 1.7rem;
}

/* || double range slider */

.doubleRangeSlider {
    padding-top: 10px;
}

.doubleRangeSlider .range-slider {
    height: 5px;
    position: relative;
    background-color: gainsboro;
    border-radius: 2px;
}

.doubleRangeSlider .range-selected {
    height: 100%;
    left: 0%;
    right: 0%;
    position: absolute;
    border-radius: 5px;
    background-color: var(--ui-mainColor);
}

.doubleRangeSlider .range-input {
    position: relative;
}

.doubleRangeSlider .range-input input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: -7px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.doubleRangeSlider .range-input input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 3px solid var(--ui-mainColor);
    transform: translateX(-2px);
    background-color: white;
    pointer-events: auto;
    -webkit-appearance: none;
}

.doubleRangeSlider .range-input input::-moz-range-thumb {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: 3px solid var(--ui-mainColor);
    background-color: white;
    pointer-events: auto;
    -moz-appearance: none;
}

.doubleRangeSlider .range-price {
    margin: 20px 0 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doubleRangeSlider .range-price label {
    margin-right: 5px;
}

.doubleRangeSlider .range-price input {
    width: 7em;
    padding: 5px;
}

.doubleRangeSlider .range-price input:first-of-type {
    margin-right: 15px;
}
