/*.form-item.form-item--guests.form-item--label.rooms-guests-selector {
    margin: -1px;
}
*/
/* Blur the rooms results when loading search */
.rooms-results--loading .s-page-rooms__list,
.rooms-results--loading .show-more-btn {
    opacity: 0.5;
    pointer-events: none;
}

/* Иконка при плохих оценках */

/*.card-reviews__estimation.rating-icon-feedback {
    background-image: none;
}*/


/* Стили для индикаторов загрузки Livewire */

/* Общие стили для прелоадеров */
.catalog-loader,
.aside-filters__loader,
.search-loading-indicator {
    position: absolute;
    z-index: 10;
}

/* Стили для прелоадера каталога */
.catalog-loader {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.catalog-loader__spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.catalog-loader__spinner svg {
    animation: rotate 1.5s linear infinite;
    color: #007bff; /* Синий цвет, как в вашем дизайне */
}

.catalog-loader__spinner span {
    font-size: 14px;
    font-weight: 500;
}

/* Стили для затемнения списка санаториев при загрузке */
.catalog__list--loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Стили для прелоадера фильтров */
.aside-filters--loading {
    position: relative;
}

.aside-filters__loader {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    z-index: 999;
}

.aside-filters__spinner svg {
    animation: rotate 1.5s linear infinite;
    color: #007bff;
}

/* Стили для прелоадера поиска */
.catalog-search__form--loading {
    position: relative;
}

.search-loading-indicator {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.search-spinner {
    animation: rotate 1.5s linear infinite;
    color: #007bff;
}

.input--loading {
    background-color: #f8f9fa;
}

.btn--loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Анимация вращения для спиннеров */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.filters-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
    animation: fadeIn 0.2s ease-in-out;
}

.filters-loading {
    pointer-events: none;
    user-select: none;
}

.filters-loading .aside-filter input[type="checkbox"] {
    pointer-events: none;
}

.filters-loading .aside-filter button {
    pointer-events: none;
}

.filters-loading .aside-filter label {
    pointer-events: none;
    cursor: wait;
}

.filters-loading * {
    cursor: wait !important;
}



/*
 * Стили для неактивных фильтров
 * Применяются к элементам с классом .is-disabled,
 * который добавляется в filter-items-recursive.blade.php
 * для элементов с count=0 при активной фильтрации
 */

/* Уменьшаем прозрачность текста у неактивных фильтров */
.aside-filter__item.is-disabled label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Меняем цвет счетчика у неактивных фильтров */
.aside-filter__item.is-disabled .num {
    color: #999;
}

/* Меняем курсор на "not-allowed" у чекбоксов неактивных фильтров */
.aside-filter__item.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

/* Отключаем эффект hover для неактивных фильтров */
.aside-filter__item.is-disabled:hover label {
    background-color: transparent;
}

/* Меняем стиль чекбокса для неактивных фильтров */
.aside-filter__item.is-disabled label::before {
    border-color: #ccc !important;
    background-color: #f5f5f5 !important;
}

/*прелоадер новый*/
.catalog-loader--style2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: 100vw;
    height: 100vh;
    background-color: #DFE9F0;
}

@media (max-width: 767px) {
    .catalog-loader--style2 {
        border-radius: 0;
        z-index: 998;
        /*top: 62px;
        height: calc(100vh - 132px);*/
    }
}

.catalog-loader--style3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.85);
}

.catalog-loader--style2 .catalog-loader__spinner {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    background-color: inherit;
    padding: 40vh 0 0;
    -webkit-box-shadow: none;
            box-shadow: none;
}

.catalog-loader--style3 .catalog-loader__spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    background: transparent;
    box-shadow: none;
}

.catalog-loader__icon {
    -webkit-animation: rotate_y_animation 10s 0s ease-in-out forwards infinite;
            animation: rotate_y_animation 10s 0s ease-in-out forwards infinite;
}

.catalog-loader--style2 .catalog-loader__spinner span,
.catalog-loader--style3 .catalog-loader__spinner span {
    position: relative;
    display: inline-block;
    font-size: 16px;
    padding: 0 14px;
}

.catalog-loader--style2 .catalog-loader__spinner span:after,
.catalog-loader--style3 .catalog-loader__spinner span:after {
    position: absolute;
    left: calc(100% - 14px);
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    -webkit-animation: ellipsis steps(4, end) 2.5s infinite;
            animation: ellipsis steps(4, end) 2.5s infinite;
    content: "\2026";
    width: 0;
}

.catalog-loader--style2 .catalog-loader__images,
.catalog-loader--style3 .catalog-loader__images {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.catalog-loader--style2 .catalog-loader__icon,
.catalog-loader--style3 .catalog-loader__icon {
    margin-bottom: 10px;
}

.catalog-loader--style2 .catalog-loader__logo,
.catalog-loader--style3 .catalog-loader__logo {
    width: 200px;
    height: auto;
}

@-webkit-keyframes ellipsis {
    to {
        width: 14px;
    }
}

@keyframes ellipsis {
    to {
        width: 14px;
    }
}

/* Стили для прелоадера бесконечной прокрутки отзывов */
.infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.infinite-scroll-loader__spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.infinite-scroll-loader__text {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* Скрытие кнопки "Показать еще" на мобильных устройствах */
@media (max-width: 767px) {
    .modal-reviews .show-more-btn {
        display: none !important;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



@keyframes flyIn {
    0% {
        transform: translateX(-100px) scale(0.8);
        opacity: 0;
    }
    20% {
        transform: translateX(-50px) scale(1.1) scaleY(0.7);
        opacity: 0.7;
    }
    40% {
        transform: translateX(-20px) scale(0.9) scaleY(1.3);
        opacity: 1;
    }
    60% {
        transform: translateX(-5px) scale(1.05) scaleY(0.9);
    }
    80% {
        transform: translateX(0px) scale(0.95) scaleY(1);
    }
    100% {
        transform: translateX(0px) scale(1);
        opacity: 1;
    }
}

.js-bird-fiy-in {
    opacity: 0;
    transform: translateX(-100px) scale(0.8);
}

.js-bird-fiy-in.animate {
    animation: flyIn 1.5s ease-out forwards;
}