/**
 * Rooms Widget - Styles
 * 
 * @package BBAdria
 */

/* ======= Rooms Section ======= */
.rooms_section {
    position: relative;
    padding: 0;
    margin: var(--section-margin-desktop) 0;
}

@media (max-width: 991px) {
    .rooms_section {
        margin: var(--section-margin-tablet) 0;
    }
}

@media (max-width: 767px) {
    .rooms_section {
        margin: var(--section-margin-mobile) 0;
    }
}

a.box_cat_rooms {
    display: block;
    margin-bottom: var(--spacing-lg);
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-grey-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 991px) {
    a.box_cat_rooms {
        height: 400px;
    }
}

a.box_cat_rooms .info {
    position: absolute;
    width: 100%;
    z-index: 9;
    display: block;
    padding: 25% 30px 0 30px;
    color: var(--color-white);
    left: 0;
    bottom: -75px;
    padding-bottom: 60px;
    backface-visibility: hidden;
    transform: translate(0, 0);
    transition: all 0.4s ease;
    background: transparent;
    background: linear-gradient(to bottom, transparent, var(--color-black));
}

a.box_cat_rooms .info small {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-white);
    display: block;
    margin-bottom: 0;
    font-size: var(--font-size-tiny);
}

a.box_cat_rooms .info h3 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
}

a.box_cat_rooms .info span {
    font-family: var(--font-body);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    opacity: 0;
    position: relative;
}

a.box_cat_rooms .info span:before {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 10px;
    height: 2px;
    content: "";
    transition: width 500ms ease;
    background-color: var(--color-white);
}

a.box_cat_rooms .info span:hover {
    background-color: var(--color-text-main);
    border-color: transparent;
}

a.box_cat_rooms figure {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

a.box_cat_rooms:hover .info {
    transform: translate(0, -65px);
}

a.box_cat_rooms:hover .info span {
    opacity: 1;
}

a.box_cat_rooms:hover .info span:before {
    width: 100%;
}

a.box_cat_rooms:hover .background-image {
    transform: scale(1.1);
}

/* Background image utility */
.background-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

/* ======= Rooms Alternate Layout ======= */
.room-alternate-box {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.room-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.room-details-content {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.room-features-list div {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-size: 15px;
}

.room-features-list div i {
    margin-right: 10px;
    color: var(--color-primary);
    width: 20px;
    flex-shrink: 0;
}

.room-price-book {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border, #e0e0e0);
}

.room-price-book .price {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.room-price-book .price span {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: var(--font-weight-normal);
}

@media (max-width: 991px) {
    .room-image {
        min-height: 300px;
    }
    
    .room-details-content {
        padding: 30px;
    }
    
    .room-features-list {
        grid-template-columns: 1fr;
    }
    
    .room-price-book {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .rooms_section .text-end {
        text-align: center !important;
    }
}



