/* HOTELS — общие стили для отельных страниц (каталог, набор, карточка отеля) */
.hs-filters-container:before {
    left: -58px !important;
}
.hs-filters-container:after {
    right: -58px !important;
}

.hs-location-form input {
    background: #fff;
    border: 1px solid #e1e1e1 !important;
    color: #1b1a1a;
    display: inline-block;
    font-family: Onest, sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 11px 16px 12px;
}

/* HOTELS CARTS */
.hotel-cards-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.hotels-card {
    display: flex;
    flex-direction: column;
    position: relative;
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
    min-height: 400px;
    background: #fff;
    border-radius: 10px;
}

.hotels-card-img {
    aspect-ratio: 1.1 / 1;
    background: #e6e6e6;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.hotels-card-img a {
    display: block;
    height: 100%;
    width: 100%;
}

.hotels-card-img img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.hotels-card-info {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    padding-right: 10px;
    padding-left: 10px;
}

.hotels-card-title {
    color: #1b1a1a;
    display: block;
    font-size: 18px;
    font-weight: 600;
    height: auto;
    min-height: 2.2em;
    line-height: 1.1;
    margin-bottom: 10px;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
}

.hotels-card-address {
    display: block;
    font-size: 12px;
    margin-bottom: 10px;
}

.hotels-card-meta {
    margin-top: auto;
    margin-bottom: 19px;
}

.hotels-card-room {
    background: #fbad19;
    border-radius: 10px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    padding: 10px;
    text-decoration: none; 
}

.hotels-card-rating {
    align-items: center;
    display: flex;
    font-size: 17px;
    font-weight: 500;
    line-height: 18px;
    margin-bottom: 10px;
}

.hotels-card-rating .icon {
    height: 18px;
    margin-right: 10px;
    width: 18px;
    display: inline-block;
}

.hotels-card-rating .icon svg {
    height: 100%;
    margin-bottom: 0;
    width: 100%;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .hotel-cards-list {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.8px) {
    .hotel-cards-list {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* HOTEL PAGE */
.hotel-gallery {
    border-radius: 10px;
    overflow: hidden;
    height: 625px;
}
.hotel-gallery .swiper-photos {
    height: 100%;
    position: relative;
}
.hotel-gallery .swiper-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.hotel-gallery .main-photo {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.hotel-gallery .swiper-button-next, 
.hotel-gallery .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.hotel-gallery .swiper-button-next::after, 
.hotel-gallery .swiper-button-prev::after {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}
.hs-info {
    box-shadow: 0 0 20px #42424233 !important;
    padding: 24px !important;
}

.hs-info .hs-h1 {
    font-size: 26px;
    font-weight: 600;
    padding-right: 10px;
}
.hs-summarys {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    justify-content: space-between;
}
.hs-summary-info {
    align-items: center;
    background: #ecf0ff;
    border-radius: 10px;
    display: inline-flex;
    font-size: 16px;
    justify-content: flex-start;
    padding: 10px;
    margin-bottom: 20px;
    margin-right: 20px;    
}

.hs-summary-info .icon {
    height: 24px;
    margin-right: 10px;
    width: 24px;
    display: inline-block;
}

.hs-summary-info svg {
    height: 100%;
    margin-bottom: .125em;
    vertical-align: middle;
    width: 100%;
}

.hs-summary-info a {
    color: #26b6ea;
    margin-left: 10px;
    text-decoration: underline;
}

.hs-summary-favorite {
    display: flex;
    justify-content: space-between;
    margin-left: -4px;
    margin-right: -4px;
}

.hs-summary-favorite .hs-btns-favorite {
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    margin: 0 4px 20px;
    padding: 14px 16px;
    text-transform: none;
    white-space: nowrap;
    background: #f8f8f8;
    border: 1px solid #f8f8f8;
    color: #1b1a1a;
    border-radius: 10px;
    display: inline-flex;
    font-family: Onest, sans-serif;
    text-decoration: none;
}

.hs-summary-favorite .hs-btns-favorite:hover {
    background: #e1e1e1;
    border: 1px solid #e1e1e1;
}

.hs-summary-favorite .hs-btns-favorite .favourite-text {
    margin-right: 10px;
}

.hs-summary-favorite .hs-btns-favorite .cycle-icon {
    background: #fff;
    border-radius: 50%;
    height: 24px;
    margin-left: auto;
    width: 24px;
    display: inline-block;
    text-align: center;
}

.hs-summary-favorite .hs-btns-favorite .cycle-icon svg {
    height: 15px;
    width: 15px;
    margin-top: 5px;
    margin-bottom: .125em;
    vertical-align: middle;
}

.hs-summary-favorite .hs-btns-favorite.active .cycle-icon svg path {
    fill: #e74c3c;
}

.hotel-set-cards {
    display: flex;
    flex-direction: column;
    position: relative;
    backface-visibility: hidden;
    perspective: 1000px;
    min-height: 400px;
    background-color: #fff;
    border-radius: 10px;
}

.hotel-cards-img {
    aspect-ratio: 1.1 / 1;
    background: #e6e6e6;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.hotel-cards-img a {
    display: block;
    height: 100%;
    width: 100%;
}

.hotel-set-cards .hotel-cards-img img {
    object-fit: contain;
    height: 100%;
    width: 100%;
    display: block;
    max-width: 100%;
    transition: opacity .3s ease;
}

.hotel-set-cards .tags {
    left: 20px;
    padding-right: 40px;
    position: absolute;
    top: 20px;
    will-change: contents;
}

.hotel-set-cards .tag {
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 5px;
    border-radius: 5px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px 7px;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
}

.hotel-cards-info {
    align-items: center;
    display: flex;
    height: 32px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.hotel-cards-info .price {
    font-size: 20px;
    font-weight: 700;
    margin-right: 10px;
    white-space: nowrap;
}

.hotel-cards-info .old-price {
    color: #6f7172;
    font-size: 17px;
    font-weight: 600;
    margin-right: 10px;
    position: relative;
    text-decoration: line-through;
    white-space: nowrap;
}

.hotel-cards-name {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
}

.hotel-cards-title {
    color: #1b1a1a;
    display: block;
    font-size: 18px;
    font-weight: 600;
    height: 40px;
    line-height: 1.1;
    margin-bottom: 10px;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
}

.hotel-cards-bottom a {
    border-radius: 10px;
    display: inline-flex;
    font-size: 17px;
    font-weight: 500;
    justify-content: center;
    line-height: 1.2;
    padding: 11px 14px 8px;
    text-align: center;
    width: 100%;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s 
    linear, color .2s 
    linear;
}

.hotel-desc {
    background-color: #fbad19 !important;
}

.hs-info-title {
    color: #fff !important;
}

.hs-info-text {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

.hotel-room {
    align-items: stretch !important;
}

.hotel-room-address {
    font-size: 13px;
    margin-bottom: 15px;
    width: 75%;
}

.w-cards-rows .hotel-cards-img,
.w-cards-rows .hotels-card-img {
    aspect-ratio: auto;
}

.w-cards-rows .hotel-cards-img img,
.w-cards-rows .hotels-card-img img {
    height: 255px;
}

.w-cards-rows .hotels-card-img {
    display: flex;
    justify-content: center;
}

.w-cards-rows .hotels-card-img a {
    width: auto;
}

@media (max-width: 991px) {
    .hs-info-container .hs-info-blocks {
        padding: 10px !important;
    }
    .hs-info-container .hs-info-blocks .hs-info-row:first-child .hs-info-block:first-child .hs-info-lists {
        flex-direction: column;
        gap: 0px !important;
    }
}

@media (max-width: 767.98px) {
    .hotel-set-cards {
        min-height: 350px;
    }
    .hotel-set-cards .tags {
        left: 10px;
        top:10px;
        font-size: 12px;
    }
    .hotel-cards-info .price,
    .hotel-cards-info .old-price {
        font-size: 14px;
    }
    .hotel-cards-title {
        font-size: 15px;
    }
    .hotel-room-image {
        aspect-ratio: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .hotel-gallery {
        height: auto;
        height: 400px;
    }
}

/* Пагинация галереи - по умолчанию скрыта */
.hotel-gallery .swiper-pagination {
    display: none;
}

@media (max-width: 431px) {
    .hs-summarys {
        display: block;
    }
    .hr-meta-list {
        display: flex;
        flex-wrap: wrap;
    }
    .hotel-room-info {
        height: 400px;
    }
    .hr-description {
        max-height: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 426px) {
    /* Скрываем миниатюры на мобильных */
    .hotel-gallery .swiper-thumbs {
        display: none;
    }
    .hotel-gallery .swiper-button-next, 
    .hotel-gallery .swiper-button-prev {
        display: none !important;
    }
    /* Показываем пагинацию */
    .hotel-gallery .swiper-pagination {
        display: block !important;
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: auto !important;
        z-index: 10;
        color: #fff;
        font-size: 14px;
        background: rgba(0, 0, 0, 0.5);
        padding: 4px 12px;
        border-radius: 12px;
    }
}
