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

/* ======= Offerte Section ======= */
.offerte-section {
    position: relative;
}

/* ======= Box Card Style (base) ======= */
.offerte-section a.box_cat_rooms {
    display: block;
    margin-bottom: var(--spacing-lg, 24px);
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-grey-light, #f5f5f5);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,0.1));
}

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

@media (max-width: 575px) {
    .offerte-section a.box_cat_rooms {
        height: 350px;
    }
}

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

.offerte-section a.box_cat_rooms .background-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

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

.offerte-section a.box_cat_rooms .info {
    position: absolute;
    width: 100%;
    z-index: 9;
    display: block;
    padding: 25% 30px 0 30px;
    color: var(--color-white, #fff);
    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, rgba(0,0,0,0.8));
}

.offerte-section a.box_cat_rooms .info small {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold, 600);
    letter-spacing: var(--letter-spacing-wide, 2px);
    color: var(--color-white, #fff);
    display: block;
    margin-bottom: 0;
    font-size: var(--font-size-tiny, 11px);
}

.offerte-section a.box_cat_rooms .info h3 {
    font-family: var(--font-heading);
    color: var(--color-white, #fff);
    font-size: var(--font-size-h4, 24px);
    font-weight: var(--font-weight-bold, 700);
    margin-bottom: var(--spacing-sm, 8px);
}

.offerte-section a.box_cat_rooms .info span {
    font-family: var(--font-body);
    font-size: var(--font-size-small, 14px);
    font-weight: var(--font-weight-semibold, 600);
    display: inline-flex;
    align-items: center;
    opacity: 0;
    position: relative;
    color: var(--color-white, #fff);
}

.offerte-section 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, #fff);
}

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

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

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

/* ======= Badge Offerta ======= */
.offerte-section .box_cat_rooms .offer-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--color-cta-primary, #D4A86A);
    color: var(--color-white, #fff);
    display: inline-block;
    z-index: 3;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.offerte-section .box_cat_rooms .offer-badge span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 575px) {
    .offerte-section .box_cat_rooms .offer-badge {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
    }
    
    .offerte-section .box_cat_rooms .offer-badge span {
        font-size: 10px;
    }
}
