:root {
    --white: #FFFFFF;
    --orange: #FFD648;
    --green: #D3E334;
    --dark-blue: #0E54A1;
    --blue: #25B2C7;
    --red: #C6374B;
    --pink: #DC2560;
    --violet: #724997;
    --grey-100: #F0F0F0;
    --grey-200: #E6E6E6;
    --grey-300: #ABA9A9;
    --black:  #1E1E1E;
}

@font-face {
    font-family: 'Inter';
    font-weight: 500;
    src: url('./fonts/Inter_24pt-Medium.ttf');
}

@font-face {
    font-family: 'Inter';
    font-weight: 400;
    src: url('./fonts/Inter_24pt-Regular.ttf');
}

@font-face {
    font-family: 'Inter';
    font-weight: 700;
    src: url('./fonts/Inter_24pt-Bold.ttf');
}

* {
    box-sizing: border-box;
}

p, h1, h2, h3 {
    margin: 0;
}

.main-title {
    color: #0E54A1;
    text-wrap: nowrap;
}

.modal-container .main-title {
    padding: 20px;
    background-color: var(--white);
}

body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    font-family: 'Inter';
    -webkit-user-select: none; /* Chrome/Safari */ 
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none;
    background-color: var(--white);
}


.map-container {
    height: 100%;
    overflow: hidden;
}

.konvajs-content {
    height: 100% !important;
    width: 100% !important;
}

/* .modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-color: #f5e1e1;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
    z-index: 9999;
    box-sizing: border-box;
    height: 100vh;
    overflow: auto;
}

.modal.visible {
    visibility: visible;
    opacity: 1;
} */


.controls-container {
    position: fixed;
    bottom: 20px;
    right: 0;
    z-index: 11;
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.controls {
    display: flex;
    flex-direction: row;
    gap: 32px;
    touch-action: manipulation;
}

.zoom {
    display: flex;
}

.floor {
    display: flex;
}

.controls__button {
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: 500;
    font-size: 24px;
    cursor: pointer;
    background-color: var(--white);
    color: var(--black);
    transition: 0.35s;
    -webkit-tap-highlight-color: transparent;
    pointer-events: all;
    svg {
        width: 24px;
        height: 24px;
    }
}

.actions {
    display: flex;
    gap: 16px
}

.controls__button svg path {
    transition: 0.35s;
}

.controls__button.active {
    background-color: var(--dark-blue);
    color: var(--white);
    border: 1px solid var(--dark-blue)
}

@media (hover: hover) and (pointer: fine) { 
    .controls__button:hover {
        background-color: var(--dark-blue);
        color: var(--white);
        border: 1px solid var(--dark-blue);
        svg path {
            fill: var(--white)
        }
    }
}


.controls__button:first-child:not(:last-child) {
    border-radius: 8px 0 0 8px;
}

.controls__button:last-child:not(:first-child) {
    border-radius: 0 8px 8px 0;
}

.controls__button:last-child:not(:first-child) {
    border-left: 0px;
}

.logo {
    width: 104px;
    height: 40px;
}

.modal-container {
    height: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    z-index: 11;
    width: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.modal-container .logo {
    margin: 20px;
}

.modal__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding-right: 10px;
    padding-bottom: 30px;
}

.modal__search {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    height: 100%;
}

.modal__search .search-container {
    width: calc(100% - 10px);
}

.modal__search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-right: 10px;
}

.search-result__title {
    font-weight: 500;
    font-size: 18px;
}

.search-result {
    border-radius: 8px;
    border: 1px solid var(--grey-200);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.modal {
    padding: 40px 10px 20px 20px;
    border: 1px solid var(--grey-200);
    border-radius: 0 16px 16px 0;
    border-left: 0;
    background-color: var(--white);
    width: 375px;
    height: calc(100% - 79px);
    position: relative;
    transform: translateX(-100%);
    transition: 0.35s;
    pointer-events: all;
    overflow: hidden;
}

.modal.active {
    transform: translateX(0);
}

.modal__control {
    position: absolute;
    top: 40px;
    right: -24px;
    width: 24px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grey-100);
    border-radius: 0px 8px 8px 0;
    border: 1px solid var(--grey-200);
    border-left: 0;
    cursor: pointer;
}

.modal.active .modal__control svg {
    transform: rotate(0deg);
}

.modal__control svg {
    transition: 0.35s;
    transform: rotate(180deg);
}

.modal__title {
    font-size: 24px;
    color: var(--black);
    font-weight: 700;
    line-height: 120%;
}

.modal__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.modal__subtitle {
    font-size: 16px;
    line-height: 140%;
    font-weight: 500;
}

.modal__data {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.modal__description {
    font-size: 14px;
    line-height: 120%;
    font-weight: 400;
    color: var(--grey-300)
}

.modal__contact {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.modal__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.modal__link {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    line-height: 120%;
    display: flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
}

.modal__contact-title {
    font-size: 14px;
    font-weight: 400px;
    list-style: 120%;
    color: var(--grey-300)
}

.modal__email {
    font-size: 16px;
    font-weight: 700;
    line-height: 120%;
    color: var(--dark-blue);
    text-decoration: none;
}

.modal__legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    height: 100%;
    padding-right: 10px;
}

.modal__legend-fixed {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.modal__legend-container {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.legend-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.legend-item__color {
    width: 50px;
    height: 10px;
    background-color: var(--white);
    border: 1px solid var(--grey-300);
}

.legend-item__label {
    font-weight: 400;
    font-size: 14px;
    color: var(--black)
}

.legend-item__icon {
    width: 50px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-item__icon img {
    width: 20px;
    height: 11px;
}

.legend-item__icon.signin img {
    width: 14px;
    height: 37px;
    transform: rotate(90deg);
} 

.bottom-sheet {
    height: calc(100% - 80px);
    bottom: 0;
    top: unset;
}

.bottom-sheet__bg {
    opacity: 0 !important;
}

.bottom-sheet__content {
    padding: 0;
    box-shadow: 4px 0px 40px 0px rgba(0, 0, 0, 0.15);
    border-radius: 16px 16px 0 0;
}

.bottom-sheet__content .frontleBottomSheetBar {
    padding: 16px 0;
}

.bottom-sheet__content .frontleBottomSheetHtml {
    padding: 16px 6px 16px 16px;
}

.hidden {
    display: none;
}

.header {
    position: fixed;
    top: 0;
    padding: 20px 15px;
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
    z-index: 1000;
    background-color: var(--white);
    gap: 20px
}

.search {
    padding: 16px 40px 16px 16px;
    border-radius: 8px;
    border: 1px solid var(--grey-200);
    outline: none;
    background-color: var(--grey-100);
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter';
    color: #767676;
    width: 100%;
}

.search:focus {
    border: 1px solid var(--grey-200);
}

.search-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    opacity: 0;
    top: 0;
    right: 16px;
    width: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: 0.35s;
    visibility: hidden;
    svg {
        cursor: pointer;
    }
}

.search-icon.visible {
    opacity: 1;
    visibility: visible;
}

.loader-bg {
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    z-index: 111;
}

.loader-bg.loader-search {
    position: relative;
} 

.loader-bg.visible {
    display: flex;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  --_c: no-repeat radial-gradient(farthest-side,var(--blue) 92%,#0000);
  background: 
    var(--_c) top,
    var(--_c) left,
    var(--_c) right,
    var(--_c) bottom;
  background-size: 12px 12px;
  animation: l7 1s infinite;
}
@keyframes l7 {to{transform: rotate(.5turn)}}

.modal__close {
    width: 30px;
    height: 30px;
    padding: 5px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    cursor: pointer;
    img {
        width: 100%;
        height: 100%;
    }
}


@media (max-width: 1365px) {
    .modal {
        padding-left: 40px;
    }
}

@media (max-width: 743px) {
    .modal-container {
        display: none;
    }

    .main-title {
        /* color: #0E54A1; */
        text-align: center;
        text-wrap: wrap;
    }

    .header {
        display: flex;
    }
}