:root {
    --icon-font: 'Font Awesome 7 Free';
}

html {
    overflow-anchor: none;
}


/* helper styles */
 .uppercase {
    text-transform: uppercase;
 }

/* modules card styles */

.card {
border: none;
overflow: hidden;
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; /* можно 4/3 или 1/1 */
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* ВАЖНО */
    object-position: center;  /* центрируем */
    border-radius: 0;
}
.card-body {
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
}
span.card-city {
    position: absolute;
    top: 1em;
    left: 1em;
    background: #0000007a;
    padding: .2em 1em;
    border-radius: 25vh;
    color: white;
    font-size: small;
}

/* preloader */
.ajax-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.ajax-loader-overlay.hidden {
    display: none;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.is-loading select {
    opacity: 0.5;
    pointer-events: none;
}

.range-slider {
    position: relative;
    padding: 20px 0;
}

.range-track,
.range-progress {
    position: absolute;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.range-track {
    width: 100%;
    background: #ddd;
}

.range-progress {
    background: #0d6efd;
}

.range-input {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: none;
}

.range-input::-webkit-slider-thumb {
    pointer-events: all;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #0d6efd;
    border-radius: 50%;
    cursor: pointer;
}

.range-values {
    margin-top: 10px;
    font-size: 14px;
}

[data-pagination] {
    visibility: hidden !important;
}

/* flat plans */

.flatplan-card .row {
    border: 1px solid lab(0 0 0 / 0.7);
    border-radius: 1em;
    margin: 0;
    overflow: hidden;
}
.flatplan-card-image {
    aspect-ratio: 3 / 4;
}
.flatplan-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.flatplan-card-description {
    padding: 0;
}
.flatplan-card-description-squareline {
    background: lab(0 0 0 / 0.7);
    height: 100%;
}
span.flatplan-card-description-squareline-block-num {
    display: block;
    color: #e66e00;
    padding-top: 1.5em;
    padding-left: .2em;
    padding-right: .2em;
}
span.flatplan-card-description-squareline-block-hint {
    color: #ccc;
    font-size: small;
}
.flatplan-card-content {
    border-top: 1px dashed lab(0 0 0 / 0.7);
}
.flatplan-card li {
    border-bottom: 1px dotted #ccc;
    padding: .7em 1.5em .7em;
}
.flatplan-card li:last-child {
    border: none;
}
.flatplan-card li::before {
    content: '\f5bc';
    font-family: var(--icon-font);
    font-weight: 900;
    font-size: small;
    margin-left: -1.5em;
    padding-right: .5em;
    color: seagreen;
    
}
.flatplan-card button {
    display: block;
    width: 100%;
    margin-bottom: .8em;
    padding: .7em 1em;
    border: none;
    background: #e66e00;
    color: white;
    border-radius: 10px;
}

.rooms-content {

    overflow: hidden;

    max-height: 0;

    opacity: 0;

    transition:
        max-height 0.5s ease,
        opacity 0.5s ease;

}

.rooms-content.open {

    max-height: 5000px;
    overflow-y: auto;
    opacity: 1;

}