/* ===== Общий контейнер ===== */
.hrw-rooms-widget {
    margin: 0 auto;
    padding: 20px 20px;
    font-family: inherit;
}

/* ===== Табы ===== */
.hrw-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    justify-content: start;
}

.hrw-tab {
    padding: 12px 28px;
    border: 2px solid #EAE1D0;
    border-radius: 30px;
    background: #EAE1D0;
    color: #3a3a3a;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Lora;
}


.hrw-tab:hover , .hrw-tab--active {
    background: #3a3a3a;
    color: #fff;
    border-color: #3a3a3a;
}

/* ===== Ряд категории ===== */
.hrw-category-row {
    display: flex;
    align-items: start;
    gap: 40px;
    margin-bottom: 80px;
    transition: all 0.4s ease;
    align-items: stretch;
}

.hrw-category-row--reversed {
    flex-direction: row-reverse;
}

.hrw-category-row:last-child {
    margin-bottom: 40px;
}

/* При активном табе — все ряды обычные */
.hrw-rooms-widget.hrw-filtered .hrw-category-row--reversed {
    flex-direction: row;
}

.hrw-category-row.hrw-hidden {
    display: none;
}

/* ===== Информация о категории ===== */
.hrw-category-info {
    flex: 0 0 25%;
    min-width: 220px;
    border-top: 4px solid #757575;
    padding-top: 25px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: end;
}

.hrw-category-row--reversed .hrw-category-info {
    text-align: left;
    align-items: start;
}

.hrw-rooms-widget.hrw-filtered .hrw-category-row--reversed .hrw-category-info {
    text-align: right;
    align-items: end;
}

.hrw-category-title {
    font-size: clamp(36px, 3cqw, 72px);
    font-weight: 400;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1em;
}

.hrw-category-description {
    color: #fff;
    line-height: 1.5;
    margin: 0;
    font-size: clamp(18px, 1.5cqw, 32px);
    font-weight: 100;
    max-width: 400px;
}

/* ===== Карусель ===== */
.hrw-carousel-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

/* ===== Карточка номера ===== */
.hrw-room-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
}

.hrw-room-card__image {
    position: relative;
    width: 100%;
    /* padding-bottom: 130%; /* 9:16 = 16/9 * 100 = 177.78% */ 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 40px;
    overflow: hidden;
    max-height: 565px;
    height: 100%;
    aspect-ratio: 1 / 1;
}

.hrw-room-card__image_zoom {
    width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  z-index: 0;
  transition: transform 0.3s ease-in-out;
  background-position: center;
}

.hrw-room-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
    opacity: 1;
    transition: opacity 0.35s ease;
    border-radius: 16px;
}



.hrw-room-card .hrw-room-card__overlay .hrw-room-card__button {
    padding: 0.5cqw;
  border: 2px solid #fff;
  border-radius: 30px;
  color: #fff;
  text-align: center;
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.hrw-room-card:hover .hrw-room-card__image_zoom {
    transform: scale(1.03);
}

.hrw-room-card:hover .hrw-room-card__overlay .hrw-room-card__button {
    opacity: 1;
}

.hrw-room-card__title {
    font-size: clamp(18px,1.5cqw,20px) !important;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    font-family: 'Lora';
    line-height: 1;
}

.hrw-room-card__excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.hrw-room-card__price {
    font-size: 16px;
    font-weight: 600;
    color: #f0c040;
    margin: 0;
}

.hrw-room-card__link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* ===== Swiper навигация ===== */
.hrw-swiper-prev,
.hrw-swiper-next {
    color: #fff;
    width: 40px;
    height: 40px;
}

.hrw-swiper-prev::after,
.hrw-swiper-next::after {
    font-size: 18px;
    font-weight: bold;
}

.hrw-swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hrw-swiper-pagination-bullet-active {
    background: #fff;
}

/* ===== Одиночная карточка (без карусели) ===== */
.hrw-room-card--single {
    width: 100%;
}

.hrw-room-card--single .hrw-room-card__image {
    max-height: 430px;
}

/* ===== Кнопка бронирования ===== */
.hrw-booking-button {
    display: inline-block;
    margin-top: 20px;
    padding: 1cqw;
    background: transparent;
    border: 2px solid #d4c9a8;
    border-radius: 40px;
    color: #fff;
    font-size: clamp(18px, 1cqw, 32px);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Lora';
    max-width: 285px;
    line-height: 1em;
  text-align: center;
}

.hrw-booking-button:hover {
    background: #d4c9a8;
    color: #3a3a3a;
    border-color: #d4c9a8;
}


/* ===== Мобильная версия ===== */
@media (max-width: 768px) {
    .hrw-category-row,
    .hrw-category-row--reversed,
    .hrw-rooms-widget.hrw-filtered .hrw-category-row--reversed {
        flex-direction: column;
        gap: 20px;
    }

    .hrw-category-info, .hrw-category-row--reversed .hrw-category-info {
        flex: none;
        width: 100%;
        text-align: center;
        order: 1; /* название ниже карусели */
        align-items: center;
    }

    .hrw-carousel-wrapper {
        order: 2;
    }

    .hrw-category-title {
        font-size: 28px;
    }

    .hrw-tabs {
        gap: 8px;
        margin-bottom: 32px;
        justify-content: center;
    }

    .hrw-rooms-widget.hrw-filtered .hrw-category-row--reversed .hrw-category-info {
        text-align: center;
        align-items: center;
    }

    .hrw-tab {
        padding: 10px 20px;
        font-size: 13px;
    }

    .hrw-category-row {
        margin-bottom: 40px;
    }

    .hrw-room-card--single {
        max-width: 100%;
    }

    .hrw-booking-button {
        width: 100%;
        text-align: center;
        margin-top: 16px;
    }
    .hrw-rooms-widget {
        margin: 0 auto;
        padding: 10px 10px;
        font-family: inherit;
    }
    .hrw-booking-button {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
  .hrw-tab {
    padding: 8px 8px;
    font-size: 12px;
  }
   .hrw-tabs {
    gap: 3px;
  }
}

@media (max-width: 320px) {
  .hrw-tab {
    padding: 8px 4px;
    font-size: 11px;
    word-break: break-word;
  }
    .hrw-tabs {
    flex-wrap: wrap;
    }
}

