/* Cà Ty Hotel - room detail experience */
.room-detail-page {
    --detail-navy: #21355a;
    --detail-orange: #f28a31;
    --detail-cream: #fbf8f2;
    background: linear-gradient(180deg, #fbf8f2 0, #fff 420px);
    padding-top: 40px;
}

    .room-detail-page .grid.wide {
        max-width: 1240px;
    }

.room-detail-breadcrumb {
    display: flex;
    font-size: 13px;
    gap: 10px;
    padding: 12px 0 18px;
    display: none;
}

    .room-detail-breadcrumb a {
        color: #778294;
        transition: color .2s ease;
    }

        .room-detail-breadcrumb a:hover {
            color: var(--detail-orange);
        }

    .room-detail-breadcrumb span {
        color: var(--detail-navy);
        max-width: 42%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.room-detail-hero {
    border: 1px solid rgba(33,53,90,.1);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(33,53,90,.13);
    overflow: hidden;
}

.room-gallery {
    background: #182743;
    height: 490px;
}

.room-gallery__main {
    aspect-ratio: auto;
    min-height: 490px;
}

    .room-gallery__main:before {
        background: linear-gradient(135deg, rgba(33,53,90,.2), transparent 45%);
        content: "";
        inset: 0;
        pointer-events: none;
        position: absolute;
        z-index: 1;
    }

    .room-gallery__main img {
        transition: transform .8s cubic-bezier(.2,.75,.25,1), opacity .25s ease;
        height: 490px;
    }

    .room-gallery__main:hover img {
        transform: scale(1.055);
    }

    .room-gallery__main > span {
        background: rgba(18,31,55,.78);
        border: 1px solid rgba(255,255,255,.24);
        border-radius: 99px;
        top: 14px;
        right: 106px;
        padding: 10px 15px;
        left: auto;
        bottom: auto;
    }

        .room-gallery__main > span i {
            color: #ffc16c;
        }

.room-gallery__count {
    background: var(--detail-orange);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    right: 18px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.room-gallery__thumbs {
    background: transparent;
    gap: 10px;
    padding: 12px 14px 14px;
    position: absolute;
    left: 0;
    bottom: 0;
}

    .room-gallery__thumbs button {
        border-radius: 10px;
        flex-basis: 92px;
        opacity: .62;
        transition: border-color .25s ease, opacity .25s ease, transform .25s ease;
    }

        .room-gallery__thumbs button:hover, .room-gallery__thumbs button.active {
            border-color: #ffc16c;
            opacity: 1;
            transform: translateY(-3px);
        }

.room-gallery__lightbox-source {
    display: none;
}

/* Gallery polish: a quiet luxury treatment on desktop, touch-friendly on mobile */
.room-gallery__main {
    isolation: isolate;
    cursor: zoom-in;
}

    .room-gallery__main:after {
        background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.22) 45%, transparent 64%);
        content: "";
        inset: 0;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        transform: translateX(-120%);
        transition: opacity .25s ease, transform .85s ease;
        z-index: 2;
    }

    .room-gallery__main:hover:after {
        opacity: 1;
        transform: translateX(120%);
    }

    .room-gallery__main > span {
        box-shadow: 0 8px 24px rgba(0,0,0,.2);
        transition: background .25s ease, transform .25s ease;
        z-index: 3;
    }

    .room-gallery__main:hover > span {
        background: var(--detail-orange);
        transform: translateY(-3px);
    }

.room-gallery__thumbs {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-color: rgba(255,255,255,.45) transparent;
    scrollbar-width: thin;
    z-index: 4;
}

    .room-gallery__thumbs button {
        box-shadow: 0 5px 14px rgba(0,0,0,.18);
        position: relative;
    }

        .room-gallery__thumbs button:after {
            background: linear-gradient(135deg, rgba(255,255,255,.4), transparent 52%);
            content: "";
            inset: 0;
            opacity: 0;
            pointer-events: none;
            position: absolute;
            transition: opacity .25s ease;
        }

        .room-gallery__thumbs button:hover:after,
        .room-gallery__thumbs button.active:after {
            opacity: 1;
        }

        .room-gallery__thumbs button.active {
            box-shadow: 0 0 0 2px var(--detail-orange), 0 7px 20px rgba(242,138,49,.3);
        }

@media (max-width: 600px) {
    .room-gallery__main:hover img {
        transform: none;
    }

    .room-gallery__main:after {
        display: none;
    }

    .room-gallery__main > span {
        box-shadow: 0 5px 15px rgba(0,0,0,.18);
    }

    .room-gallery__thumbs {
        padding-bottom: 11px;
    }

        .room-gallery__thumbs button {
            box-shadow: 0 3px 10px rgba(0,0,0,.2);
        }
}

.room-detail-intro {
    background: #fff;
    padding: clamp(28px, 2vw, 58px);
    padding-top: 15px;
    padding-bottom: 15px;
}

    .room-detail-intro h2 {
        color: var(--detail-navy);
        font-size: clamp(28px, 3.3vw, 30px);
        line-height: 1.16;
        margin: 16px 0;
    }

.room-detail-intro__lead {
    color: #657287;
    font-size: 15px;
    line-height: 1.8;
}

.room-detail-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 28px 0 24px;
}

    .room-detail-specs > div > i {
        background: #fff2e5;
        color: var(--detail-orange);
    }

.room-detail-intro__assurance span {
    font-size: 14px;
}

.room-detail-intro__assurance i {
    color: var(--detail-orange);
}

.room-detail-layout {
    gap: 30px;
    padding-top: 48px;
}

.room-content-section, .room-booking-card {
    border-radius: 16px;
}

.room-content-section {
    box-shadow: 0 12px 34px rgba(33,53,90,.055);
}

.room-content-heading > span {
    color: rgba(242,138,49,.32);
}

.room-content-heading small {
    color: var(--detail-orange);
}

.room-amenity {
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

    .room-amenity:hover {
        box-shadow: 0 10px 24px rgba(33,53,90,.1);
        transform: translateY(-3px);
    }

.room-booking-card {
    border-top: 4px solid var(--detail-orange);
    box-shadow: 0 16px 42px rgba(33,53,90,.1);
    top: 24px;
    margin-bottom: 26px;
}

.room-booking-card__primary, .room-booking-card__secondary {
    border-radius: 10px;
    transition: background .25s ease, transform .25s ease;
}

    .room-booking-card__primary:hover, .room-booking-card__secondary:hover {
        transform: translateY(-2px);
    }

.room-booking-card__primary {
    background: var(--detail-navy);
}

    .room-booking-card__primary:hover {
        background: var(--detail-orange);
    }

@media (max-width: 900px) {
    .room-detail-page {
        padding-top: 8px;
    }

    .room-detail-hero {
        grid-template-columns: 1fr;
    }

    .room-gallery__main {
        min-height: 0;
    }

    .room-detail-layout {
        grid-template-columns: 1fr;
    }

    .room-booking-card {
        position: static;
    }
}

@media (max-width: 600px) {
    .room-detail-page .grid.wide {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .room-detail-breadcrumb {
        font-size: 12px;
        padding-bottom: 12px;
        display: none;
    }

    .room-detail-hero {
        border-radius: 16px;
    }

    .room-gallery__main {
        aspect-ratio: auto;
        min-height: auto;
    }

        .room-gallery__main img {
            transition: transform .8s cubic-bezier(.2, .75, .25, 1), opacity .25s ease;
            height: 100%;
        }

    .room-gallery {
        height: 100%;
    }

    .room-gallery__main > span {
        top: 13px;
        font-size: 11px;
        left: 10px;
        padding: 4px 11px;
        width: max-content;
    }

    .room-gallery__count {
        font-size: 12px;
        right: 12px;
        top: 12px;
    }

    .room-gallery__thumbs {
        gap: 7px;
        padding: 9px;
    }

        .room-gallery__thumbs button {
            flex-basis: 70px;
        }

    .room-detail-intro {
        padding: 25px 20px;
    }

        .room-detail-intro h2 {
            font-size: 21px;
        }

    .room-detail-specs {
        margin: 22px 0 18px;
    }

        .room-detail-specs > div {
            gap: 8px;
            padding-left: 0;
        }

        .room-detail-specs small {
            font-size: 11px;
        }

        .room-detail-specs strong {
            font-size: 13px;
        }

    .room-richtext h2, .room-richtext h3, .room-richtext h4 {
        font-size: 16px;
    }

    .room-content-section {
        padding: 23px 18px;
    }

    .room-richtext p {
        text-align: justify;
    }

    .room-detail-intro__lead {
        font-size: 14px;
    }

    .room-amenity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}