.mcw-lbs,
.mcw-lbs * {
    box-sizing: border-box;
}

.mcw-lbs {
    --mcw-lbs-height: 640px;
    --mcw-lbs-direction: 1;

    position: relative;
    width: 100%;
    height: var(--mcw-lbs-height);
    overflow: hidden;
    background: #08131f;
    color: #fff;
    isolation: isolate;
}

.mcw-lbs-ratio-16-9 { aspect-ratio: 16 / 9; height: auto; }
.mcw-lbs-ratio-9-16 { aspect-ratio: 9 / 16; height: auto; }
.mcw-lbs-ratio-4-3 { aspect-ratio: 4 / 3; height: auto; }
.mcw-lbs-ratio-1-1 { aspect-ratio: 1 / 1; height: auto; }
.mcw-lbs-ratio-full { height: 100vh; min-height: 640px; }
.mcw-lbs-ratio-custom { height: var(--mcw-lbs-height); }

.mcw-lbs-track,
.mcw-lbs-slide {
    position: absolute;
    inset: 0;
}

.mcw-lbs-slide {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* slide cũ đang rời đi */
.mcw-lbs-slide.is-leaving {
    opacity: 1;
    z-index: 2;
    pointer-events: none;
}

/* slide mới đang hiện */
.mcw-lbs-slide.is-active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
}

/* background */
.mcw-lbs-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: var(--mcw-lbs-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
}

/* overlay */
.mcw-lbs-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(5, 20, 32, 0.58);
}

/* TRANSITION GIỐNG MẪU: ảnh mới trượt vào, ảnh cũ kéo nhẹ ra */
.mcw-lbs-slide.is-entering {
    animation: mcwLbsSlideIn 1.05s cubic-bezier(.76, 0, .24, 1) both;
}

.mcw-lbs-slide.is-entering .mcw-lbs-bg {
    animation: mcwLbsBgIn 1.25s cubic-bezier(.76, 0, .24, 1) both;
}

.mcw-lbs-slide.is-leaving {
    animation: mcwLbsSlideOut 1.05s cubic-bezier(.76, 0, .24, 1) both;
}

.mcw-lbs-slide.is-leaving .mcw-lbs-bg {
    animation: mcwLbsBgOut 1.25s cubic-bezier(.76, 0, .24, 1) both;
}

@keyframes mcwLbsSlideIn {
    0% {
        clip-path: inset(0 0 0 100%);
        transform: translateX(calc(70px * var(--mcw-lbs-direction)));
        opacity: 1;
    }

    100% {
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes mcwLbsSlideOut {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        clip-path: inset(0 100% 0 0);
        transform: translateX(calc(-50px * var(--mcw-lbs-direction)));
        opacity: 1;
    }
}

@keyframes mcwLbsBgIn {
    0% {
        transform: scale(1.18) translateX(calc(80px * var(--mcw-lbs-direction)));
        filter: blur(6px);
    }

    100% {
        transform: scale(1.03) translateX(0);
        filter: blur(0);
    }
}

@keyframes mcwLbsBgOut {
    0% {
        transform: scale(1.03) translateX(0);
        filter: blur(0);
    }

    100% {
        transform: scale(1.1) translateX(calc(-70px * var(--mcw-lbs-direction)));
        filter: blur(5px);
    }
}

/* Ken Burns nhẹ sau khi active */
.mcw-lbs-slide.is-active:not(.is-entering) .mcw-lbs-bg {
    animation: mcwLbsKenBurns 7s ease forwards;
}

@keyframes mcwLbsKenBurns {
    0% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1.1);
    }
}

/* TOP */
.mcw-lbs-top {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 7%;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

.mcw-lbs-logo {
    font-size: 22px;
}

.mcw-lbs-line {
    height: 1px;
    background: rgba(255,255,255,.32);
    transform-origin: left center;
}

.mcw-lbs-tools {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
}

/* CONTENT */
.mcw-lbs-content {
    position: absolute;
    z-index: 8;
    left: 7%;
    top: 20%;
    width: min(470px, 45%);
}

.mcw-lbs-content h2 {
    margin: 0;
    font-size: clamp(46px, 6vw, 92px);
    line-height: .9;
    font-weight: 1000;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.mcw-lbs-content p {
    width: 90%;
    margin: 42% 0 24px;
    font-size: 14px;
    line-height: 1.55;
    opacity: .9;
}

.mcw-lbs-btn {
    display: inline-flex;
    min-height: 42px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    background: #ff3b35;
    color: #fff;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

/* BOOKING */
.mcw-lbs-booking {
    position: absolute;
    z-index: 9;
    right: 13%;
    top: 18%;
    width: 310px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    color: #fff;
}

.mcw-lbs-row {
    min-width: 0;
}

.mcw-lbs-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    opacity: .9;
}

.mcw-lbs-row strong {
    display: flex;
    height: 36px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.35);
    font-size: 12px;
}

.mcw-lbs-wide {
    grid-column: 1 / -1;
}

.mcw-lbs-guests {
    display: flex;
}

.mcw-lbs-guests span {
    width: 38px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mcw-lbs-guests span.is-active {
    background: #fff;
    color: #111;
}

.mcw-lbs-range {
    position: relative;
    height: 3px;
    background: rgba(255,255,255,.35);
    margin-top: 18px;
}

.mcw-lbs-range span {
    position: absolute;
    left: 0;
    top: 0;
    width: 58%;
    height: 100%;
    background: #fff;
}

.mcw-lbs-range span::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transform: translateY(-50%);
}

.mcw-lbs-search {
    all: unset;
    grid-column: 1 / -1;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

/* COUNTER */
.mcw-lbs-counter {
    position: absolute;
    z-index: 10;
    left: 7%;
    bottom: 10%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mcw-lbs-counter strong {
    font-size: clamp(42px, 5vw, 76px);
    line-height: .8;
    font-weight: 1000;
}

.mcw-lbs-counter span {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 900;
}

/* PROGRESS */
.mcw-lbs-progress {
    position: absolute;
    z-index: 20;
    left: 23%;
    right: 24%;
    bottom: 11%;
    height: 4px;
    background: rgba(255,255,255,.55);
    overflow: hidden;
}

.mcw-lbs-progress-fill {
    width: 0%;
    height: 100%;
    background: #fff;
}

/* NAV */
.mcw-lbs-nav {
    position: absolute;
    z-index: 30;
    right: 7%;
    bottom: 9%;
    display: flex;
    gap: 16px;
}

.mcw-lbs-nav button {
    all: unset;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    transition: all .25s ease;
}

.mcw-lbs-nav button:hover {
    transform: translateY(-3px);
}

/* LAYER ANIMATION */
.mcw-lbs-slide .mcw-lbs-top,
.mcw-lbs-slide .mcw-lbs-content,
.mcw-lbs-slide .mcw-lbs-booking,
.mcw-lbs-slide .mcw-lbs-counter {
    opacity: 0;
}

.mcw-lbs-slide.is-active .mcw-lbs-top {
    animation: mcwLbsFadeDown .75s cubic-bezier(.22,.61,.36,1) .25s both;
}

.mcw-lbs-slide.is-active .mcw-lbs-line {
    animation: mcwLbsLine .85s cubic-bezier(.22,.61,.36,1) .35s both;
}

.mcw-lbs-slide.is-active .mcw-lbs-content h2 {
    animation: mcwLbsTitle .85s cubic-bezier(.22,.61,.36,1) .38s both;
}

.mcw-lbs-slide.is-active .mcw-lbs-content p {
    animation: mcwLbsFadeUp .75s cubic-bezier(.22,.61,.36,1) .55s both;
}

.mcw-lbs-slide.is-active .mcw-lbs-btn {
    animation: mcwLbsFadeUp .7s cubic-bezier(.22,.61,.36,1) .68s both;
}

.mcw-lbs-slide.is-active .mcw-lbs-content {
    opacity: 1;
}

.mcw-lbs-slide.is-active .mcw-lbs-booking {
    animation: mcwLbsFadeLeft .8s cubic-bezier(.22,.61,.36,1) .55s both;
}

.mcw-lbs-slide.is-active .mcw-lbs-counter {
    animation: mcwLbsFadeUp .75s cubic-bezier(.22,.61,.36,1) .68s both;
}

@keyframes mcwLbsFadeDown {
    0% {
        opacity: 0;
        transform: translateY(-24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mcwLbsFadeUp {
    0% {
        opacity: 0;
        transform: translateY(28px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mcwLbsFadeLeft {
    0% {
        opacity: 0;
        transform: translateX(42px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mcwLbsTitle {
    0% {
        opacity: 0;
        transform: translateY(45px) skewY(4deg);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) skewY(0);
        filter: blur(0);
    }
}

@keyframes mcwLbsLine {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }

    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .mcw-lbs-mobile-ratio-16-9 { aspect-ratio: 16 / 9; height: auto; min-height: auto; }
    .mcw-lbs-mobile-ratio-9-16 { aspect-ratio: 9 / 16; height: auto; min-height: auto; }
    .mcw-lbs-mobile-ratio-4-5 { aspect-ratio: 4 / 5; height: auto; min-height: auto; }
    .mcw-lbs-mobile-ratio-1-1 { aspect-ratio: 1 / 1; height: auto; min-height: auto; }
    .mcw-lbs-mobile-ratio-full { height: 100vh; min-height: 620px; aspect-ratio: auto; }
    .mcw-lbs-mobile-ratio-custom { height: var(--mcw-lbs-height); aspect-ratio: auto; }

    .mcw-lbs-bg {
        background-image: var(--mcw-lbs-mobile-bg);
    }

    .mcw-lbs-top {
        left: 24px;
        right: 24px;
        top: 24px;
    }

    .mcw-lbs-tools {
        display: none;
    }

    .mcw-lbs-content {
        left: 24px;
        top: 86px;
        width: calc(100% - 48px);
    }

    .mcw-lbs-content h2 {
        font-size: clamp(38px, 12vw, 64px);
    }

    .mcw-lbs-content p {
        width: 75%;
        margin: 150px 0 18px;
        font-size: 12px;
    }

    .mcw-lbs-booking {
        display: none;
    }

    .mcw-lbs-counter {
        left: 24px;
        bottom: 70px;
    }

    .mcw-lbs-progress {
        left: 110px;
        right: 92px;
        bottom: 84px;
    }

    .mcw-lbs-nav {
        right: 24px;
        bottom: 64px;
        gap: 10px;
    }

    .mcw-lbs-nav button {
        width: 36px;
        height: 36px;
    }

    @keyframes mcwLbsSlideIn {
        0% {
            clip-path: inset(0 0 0 100%);
            transform: translateX(calc(36px * var(--mcw-lbs-direction)));
            opacity: 1;
        }

        100% {
            clip-path: inset(0 0 0 0);
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes mcwLbsSlideOut {
        0% {
            clip-path: inset(0 0 0 0);
            transform: translateX(0);
            opacity: 1;
        }

        100% {
            clip-path: inset(0 100% 0 0);
            transform: translateX(calc(-28px * var(--mcw-lbs-direction)));
            opacity: 1;
        }
    }
}