﻿.house-wrapper {
    position: relative;
    height: max-content;
    display: flex;
    flex-direction: column;
    width: auto;
}

.house-left-col {
    margin: 0 -7rem 0 7rem;
}

.bietthu-carousel {
    position: relative;
    width: 100%;
    height: auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    min-height: 300px;
}

.bietthu-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.bietthu-img.active {
    opacity: 1;
    z-index: 2;
}

.button-group-inside {
    position: absolute;
    left: 11%;
    top: 18%;
    display: flex;
    flex-direction: column;
    z-index: 3;
}

.button-group-inside .btn {
    border-radius: 15px;
    background-color: transparent;
    color: black;
    position: relative;
    padding-right: 2rem;
    text-align: right;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
    font-size: 12px;
}

.button-group-inside .btn::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--text-title-color, orange);
    border-radius: 50%;
}

.button-group-inside .btn.active {
    background-color: var(--text-title-color, orange);
    color: white;
}

.right-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}

.inspiration-text {
    display: none;
    padding: 1rem 4rem;
    font-weight: 500;
}

.inspiration-text.active {
    display: block;
}

.title-img {
    width: 30rem;
    padding: 1rem 2.5rem
}

.full-height-row {
    height: auto;
    align-items: stretch;
}

.col-lg-7,
.col-lg-5 {
    display: flex;
    flex-direction: column;
}

.side-carousel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 1rem;
    justify-content: center;
    height: 100%;
    margin: 0 3rem;
}

.side-carousel-img {
    width: 13rem;
    height: auto;
    object-fit: scale-down;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    opacity: 0.7;
    position: relative;
    transform-origin: left center;
}

.side-carousel-img.selected {
    z-index: 2;
    opacity: 1;
    box-shadow: 0 8px 24px rgba(212, 161, 75, 0.18);
    transform: scale(1.2);
}

.top-right-img {
    position: relative;
}

.mid-right-img {
    position: relative;
}

.bot-right-img {
    position: relative;
}

.img-list-inspiration {
    display: none;
}

.img-list-inspiration.active {
    display: flex
}


.inspi-tree-left {
    position: absolute;
    top: 10%;
    left: 0;
    background-image: url('/assets/layout/designinspiration-component/tree_left.webp');
    background-repeat: no-repeat;
    width: 100vw;
    height: 100%;
    background-size: 20% auto;
    background-position: left top;
    z-index: -10;
    transition: 0.1s;
    pointer-events: none;
}



@media (max-width: 991px) {
    .house-left-col {
        margin: 0
    }

    .title-img {
        width: 20rem
    }

    .button-group-inside {
        position: absolute;
        left: 0;
        top: 12%;
        display: flex;
        flex-direction: column;
        z-index: 3;
        transform: scale(0.85)
    }

    .inspi-tree-left {
        top: 0%;
        left: 0;
        background-size: 20% auto;
    }

    /*  .inspi-tree-right {
        top: 10%;
        right: 0;
        background-size: 20% auto;
    }*/

    .side-carousel {
        margin: 0;
    }

    .inspiration-text {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .side-carousel {
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0
    }

    .side-carousel-img {
        height: auto;
        transform-origin: center center;
        width: 6rem;
    }

    .side-carousel-img.active {
        transform: scale(1.1);
        right: 0;
        bottom: 2rem
    }

    .top-right-img {
        right: 0;
        top: 0;
    }

    .mid-right-img {
        right: 0;
        top: 0;
    }

    .bot-right-img {
        right: 0;
        top: 0;
    }

    .inspiration-text {
        padding: 1rem;
    }

    .button-group-inside {
        top: 15%
    }

    .button-group-inside .btn {
        font-size: 10px;
    }

    .title-img {
        width: 18rem;
        padding: 1rem
    }

    .house-left-col {
        margin: 0
    }

    .inspi-tree-left {
        top: 10%;
        left: 0;
        background-size: 30% auto;
    }

    /*    .inspi-tree-right {
        top: 10%;
        right: 0;
        background-size: 27% auto;
    }*/
}