/* 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;
}

.side-room-detail section.room-content-section {
    background: #f3f7f9;
}

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

.room-content-heading>span {
    color: #F44336;
}

.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;
    background: url(/Design/img/CatyHotel/hoi-nghi.png) no-repeat;
    background-size: cover;
}

.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: #eef6fa;
}

.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));
    }
}


/* Desktop directional sidebar; the wrapper has no layout effect on mobile. */

.room-sidebar-slot {
    display: contents;
}

@media (min-width: 1200px) {
    .room-sidebar-slot {
        display: block;
        position: relative;
        align-self: stretch;
        min-width: 0;
    }
    .room-sidebar-slot>.side-room-detail {
        display: flow-root;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .room-sidebar-slot .room-booking-card {
        position: static;
    }
    .side-room-detail.is-scroll-fixed {
        position: fixed;
        z-index: 20;
        animation: room-sidebar-settle 180ms ease-out;
    }
    .side-room-detail.is-at-bottom {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
    }
    @keyframes room-sidebar-settle {
        from {
            opacity: .85;
        }
        to {
            opacity: 1;
        }
    }
}

@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
    .side-room-detail.is-scroll-fixed {
        animation: none;
    }
}


/* Related rooms: a consistent card layout across both language versions. */

.room-detail-page .room-related {
    padding: 60px 0 68px;
    border-top: 1px solid #e7e9ed;
    background: #fff3e8;
}

.room-related .room-section-heading {
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.room-related .room-section-heading h2 {
    color: #21355a;
    line-height: 1.3;
    margin-bottom: 0;
}

.room-related .room-section-heading>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 4px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid #f28a31;
    border-radius: 12px;
    background: #f28a31;
    box-shadow: 0 6px 16px rgba(33, 53, 90, .12);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.room-related .room-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    overflow: visible;
    padding-bottom: 0;
}

.room-related .room-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e2e7ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(33, 53, 90, .045);
    transform: none;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.room-related .room-related-card>a {
    position: relative;
    flex-shrink: 0;
    aspect-ratio: 1.5;
    background: #e9edf2;
}

.room-related .room-related-card>a::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 35, 60, .16));
    content: '';
    pointer-events: none;
}

.room-related .room-related-card>a img {
    display: block;
    transform: scale(1);
    transition: transform .65s cubic-bezier(.2, .65, .3, 1), filter .4s ease;
}

.room-related .room-related-card>div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 24px;
}

.room-related .room-related-card>div>span {
    color: #687789;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.room-related .room-related-card h3 {
    margin: 10px 0 22px;
    font-size: 22px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.room-related .room-related-card h3 a {
    color: #21355a;
    text-decoration: none;
    transition: color .22s ease;
}

.room-related .room-related-card>div>div {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-color: #edf0f4;
}

.room-related .room-related-card strong {
    color: #926b29;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.room-related .room-related-card>div>div>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f0f4f8;
    color: #21355a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color .22s ease, color .22s ease;
}

.room-related a i {
    transition: transform .22s ease;
}

.room-related a:focus-visible {
    outline: 3px solid #b18338;
    outline-offset: -3px;
}

.room-related .room-related-card:focus-within {
    border-color: #b18338;
    box-shadow: 0 12px 28px rgba(33, 53, 90, .12);
}

@media (hover: hover) and (pointer: fine) {
    .room-related .room-related-card:hover {
        transform: translateY(-6px);
        border-color: #c9b58f;
        box-shadow: 0 18px 38px rgba(33, 53, 90, .13);
    }
    .room-related .room-related-card:hover>a img {
        transform: scale(1.055);
        filter: brightness(1.04);
    }
    .room-related .room-related-card:hover h3 a {
        color: #926b29;
    }
    .room-related .room-related-card:hover>div>div>a {
        background: #21355a;
        color: #fff;
    }
    .room-related a:hover i {
        transform: translateX(4px);
    }
    .room-related .room-section-heading>a:hover {
        background: #21355a;
        border-color: #21355a;
        box-shadow: 0 10px 24px rgba(129, 94, 37, .2);
        transform: translateY(-2px);
    }
}

@media (max-width: 991px) {
    .room-related .room-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .room-detail-page .room-related {
        padding: 36px 0 44px;
    }
    .room-related .room-section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 24px;
    }
    .room-related .room-section-heading h2 {
        font-size: 24px;
    }
    .room-related .room-related-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .room-related .room-related-card>div {
        padding: 20px;
    }
    .room-related .room-related-card h3 {
        font-size: 21px;
        margin-bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .room-related .room-related-card,
    .room-related .room-related-card>a img,
    .room-related a,
    .room-related a i {
        transition: none !important;
        transform: none !important;
    }
}