@charset "UTF-8";
@font-face {
    font-family: 'Efra';
    src: url(https://static.tildacdn.com/tild6539-6666-4762-a162-356164663165/Efra-Regular.woff) format('woff');
    font-weight: 400;
    font-style: normal;
}
/* cyrillic-ext */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459WRhyyTh89ZNpQ.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  }
  /* cyrillic */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  /* vietnamese */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459WZhyyTh89ZNpQ.woff2) format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }


body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';
    font-style: normal;
    line-height: 1.3em;
}

a {
    text-decoration: none;
    color: #1d1d1b;
}

* {
    margin: 0;
    padding: 0;
}

ul{
    padding-left: 15px;
}

.preloader{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #efe2d2;
    visibility: visible;
    z-index: 100000;
}

.loading-notice {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 10001;
    padding: 10px 22px;
    border-radius: 10px;
    background: #ff6200;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: translateX(-50%) translateY(0);
    transition: transform 0.45s ease, opacity 0.35s ease;
    pointer-events: none;
    opacity: 1;
}

@media (max-width: 640px) {
    .loading-notice {
        top: 12px;
        max-width: calc(100% - 24px);
        white-space: normal;
        text-align: center;
        font-size: 13px;
        padding: 9px 16px;
    }
}

.preloader__logo {
    position: absolute;
    left: 50%;
    top: calc(50% + 150px - 52px);
    transform: translate(-50%, -100%);
    width: min(72%, 380px);
    height: auto;
    display: block;
    object-fit: contain;
}

.percent{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 150px;
    width: auto;
    height: auto;
    font-size: 20px;
    color: rgb(0, 0, 0);
}

.btn {
    background-color: white;
    color: red;
    padding: 5px 10px 5px 10px;
    text-align: center;
    border-radius: 10px;
}

.left-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0vh;
    width: 500px;
    bottom: 0;
    left: 0;
    background-color: #f4e7db;
    z-index: 500;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
    z-index: 10000;
}

.left-panel-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 10px;
    padding-bottom: 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(170, 128, 102, 0.45) transparent;
}

.left-panel-content-wrapper::-webkit-scrollbar {
    width: 5px;
}

.left-panel-content-wrapper::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}

.left-panel-content-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(170, 128, 102, 0.35);
    border-radius: 999px;
}

.left-panel-content-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(170, 128, 102, 0.6);
}

.left-panel-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
}

#left-panel-close-btn {
    cursor: pointer;
    padding-right: 5px;
}

.left-panel-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

#flat-image {
    display: block;
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0;
}

.flat-image-wrap {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    cursor: pointer;
}

.flat-image-zoom-icon {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6200;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.flat-image-zoom-icon svg {
    display: block;
}

.flat-plan-popup-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4e7db;
}

.flat-plan-popup-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.left-panel-background {
    color: #2d2d2d;
    padding-bottom: 10px;

}

.left-panel-title {
    color: rgb(170, 128, 102);
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.left-panel-info {
    line-height: 1.7;
    font-size: 1rem;

}

.left-panel-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.left-panel-logo{
    font-family: 'Efra';
    padding-left: 15px;
}


@media (max-width: 730px) {
    .left-panel {
        bottom: 0;
        transform: none;
        left: 0;
        width: 100%;
        top: 58vh;
        border-radius: 0;
        max-height: 100vh;
    }
    /* .left-panel-content-wrapper {
      flex-direction: column-reverse;
    } */
}

@media (max-height: 600px) {
    .left-panel {
        bottom: 0;
        transform: none;
        left: 0;
        width: 40%;
        height: auto;
        top: 0;
        border-radius: 0;
    }
    /* .left-panel-content-wrapper {
      flex-direction: column-reverse;
    } */
}

.top-right-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
}

.top-button {
    width: 50px;
    height: 50px;
    background-color: #ff6200;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-button:hover {
    background-color: #ff8235;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.top-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.top-button svg {
    width: 24px;
    height: 24px;
}

.theme-toggle-button {
    position: relative;
}

.theme-toggle-icon {
    display: none;
}

.theme-toggle-icon.is-active {
    display: block;
}

.map-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.map-popup-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.map-popup {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 90%;
    height: 90%;
    background: #f4e7db;
    border-radius: 14px;
    overflow: hidden;
    transform: translateX(110%);
    transition: transform 0.45s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 10000;
}

.map-popup-overlay.is-open .map-popup {
    transform: translateX(0);
}

.map-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background-color:#ff6200;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.map-popup-close:hover {
    background-color: #ff9a5c;
}

.map-popup-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Галерея слайдер */
.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10000;
}

.gallery-slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.gallery-slider-container:active {
    cursor: grabbing;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f4e7db;
    user-select: none;
    pointer-events: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #ff6200;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

#apps_L1 {
    width: 80px;
    height: 30px;
    background-color: rgb(255, 219, 120);
    border: none;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info--btn:hover {
    background-color: #e8d5b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 730px) {
    .top-right-buttons {
        top: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .top-button {
        width: 45px;
        height: 45px;
    }
    
    .top-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Фильтры квартир */
.filter-section {
    margin-bottom: 10px;
    padding-top: 20px;
}

.filter-section-spaced {
    margin-top: 20px;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 7px;
    font-size: 16px;
}

.filter-rooms {
    display: flex;
    gap: 8px;
}

.filter-room-btn {
    padding: 7px 14px;
    border: none;
    border-radius: 7px;
    background: #ffe6ae;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.filter-room-btn.active,
.filter-room-btn:hover {
    background: #ffce58;
    color: #212121;
}

.filter-actions {
    margin-top: 24px;
}

.filter-reset-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #ffe6ae;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1b;
    transition: background 0.2s, transform 0.2s;
    font-family: 'Circe', sans-serif;
}

.filter-reset-btn:hover {
    background: #ffce58;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filter-reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-slider {
    display: flex;
    align-items: center;
    gap: 2px;
}

.filter-range-input {
    width: 100px;
    accent-color: #ffc74b;
    margin-right: 4px;
}

.filter-slider-separator {
    margin: 0 10px;
}

.filter-slider span {
    min-width: 22px;
    display: inline-block;
    text-align: center;
    font-size: 15px;
    background: #fff7e1;
    border-radius: 5px;
    padding: 1px 5px;
    margin-left: 2px;
}

/* Dual-range слайдер для цены */
.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-range-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.price-range-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffc74b;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.price-range-input::-webkit-slider-thumb:hover {
    background: #ffb020;
    transform: scale(1.1);
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffc74b;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.price-range-input::-moz-range-thumb:hover {
    background: #ffb020;
    transform: scale(1.1);
}

.price-range-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    z-index: 0;
}

.price-range-wrapper::after {
    content: '';
    position: absolute;
    left: var(--min-percent, 0%);
    right: calc(100% - var(--max-percent, 100%));
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: #ffc74b;
    border-radius: 3px;
    z-index: 1;
    transition: left 0.1s, right 0.1s;
}

.price-range-values {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-range-values span:first-child,
.price-range-values span:last-child {
    min-width: 30px;
    display: inline-block;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    background: #fff7e1;
    border-radius: 5px;
    padding: 4px 8px;
}

/* Single-range слайдер для цены */
.price-single-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

.price-single-input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
}

.price-single-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffc74b;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.price-single-input::-webkit-slider-thumb:hover {
    background: #ffb020;
    transform: scale(1.1);
}

.price-single-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffc74b;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}

.price-single-input::-moz-range-thumb:hover {
    background: #ffb020;
    transform: scale(1.1);
}

.price-single-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    z-index: 0;
}

.price-single-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: calc(100% - var(--max-percent, 100%));
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: #ffc74b;
    border-radius: 3px;
    z-index: 1;
    transition: right 0.1s;
}

/* Параметры квартиры */
.flat-params {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.flat-param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff7e1;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.flat-param-row:hover {
    background: #ffe6ae;
}

.flat-param-title {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.flat-param-value {
    font-size: 15px;
    color: #1d1d1b;
    font-weight: 600;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

#flat-price {
    color: #d97706;
    font-size: 16px;
}

/* Контейнер для кнопок квартиры */
.flat-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.flat-action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #ffe6ae;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1b;
    transition: background 0.2s, transform 0.2s;
    font-family: 'Circe', sans-serif;
}

.flat-action-btn:hover {
    background: #ffce58;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.flat-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Информация о квартире - скрыта по умолчанию */
#flat-info {
    display: none;
}

#flat-info.is-visible {
    display: block;
}

#flat-print-root {
    display: none;
}

@media print {
    body.is-printing-flat * {
        visibility: hidden;
    }

    body.is-printing-flat #flat-print-root,
    body.is-printing-flat #flat-print-root * {
        visibility: visible;
    }

    body.is-printing-flat #flat-print-root {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 24px;
        box-sizing: border-box;
        background: #f4e7db;
    }

    body.is-printing-flat #flat-print-root .flat-image-zoom-icon {
        display: none;
    }

    body.is-printing-flat #flat-print-root #flat-image {
        max-height: 420px;
    }

    body.is-printing-flat #flat-print-root .flat-param-row {
        break-inside: avoid;
    }
}

#filter-info {
    display: block;
}



