﻿:root {
    --nexus-detail-navy: #071B3C;
    --nexus-detail-navy-2: #123F7B;
    --nexus-detail-gold: #D5A13A;
    --nexus-detail-gold-soft: #FCDB99;
    --nexus-detail-bg: #F4F7FB;
    --nexus-detail-border: rgba(7, 27, 60, .10);
    --nexus-detail-muted: #748198;
    --nexus-detail-success: #12824C;
    --nexus-detail-danger: #B83C4A;
}

/* ===== Hero ===== */
.nexus-hoteldetail-hero {
    position: relative;
    min-height: 310px;
    padding: 116px 0 58px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 18, 40, .94) 0%, rgba(7, 27, 60, .80) 46%, rgba(7, 27, 60, .48) 100%),
        linear-gradient(180deg, rgba(7, 27, 60, .04) 45%, rgba(7, 27, 60, .78) 100%),
        url('/styles/images/nexus-cover.jpg') center 40% / cover no-repeat;
}
.nexus-hoteldetail-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230,185,79,.8), transparent);
}
.nexus-hoteldetail-hero .container,
.nexus-hoteldetail-page > .container,
#tour_details_main > .container {
    width: min(calc(100% - 40px), 1440px);
    max-width: 1440px;
}
.nexus-hoteldetail-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 16px;
}
.nexus-hoteldetail-hero .breadcrumb-item,
.nexus-hoteldetail-hero .breadcrumb-item a {
    color: rgba(255,255,255,.72);
    font-size: 12.5px;
}
.nexus-hoteldetail-hero .breadcrumb-item.active { color: #fff; font-weight: 600; }
.nexus-hoteldetail-hero .nexus-hero-copy {
    max-width: 900px;
    display: block;
}
.nexus-hoteldetail-hero__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(100%, 900px);
    row-gap: 8px;
}
.nexus-hoteldetail-hero .nexus-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(230,185,79,.55);
    border-radius: 999px;
    color: #F7D77F;
    background: rgba(7,27,60,.32);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.nexus-hoteldetail-hero .nexus-hero-copy h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 18px 0 13px;
    color: #fff;
    font-size: clamp(34px, 4.3vw, 58px);
    font-weight: 760;
    line-height: 1.05;
    letter-spacing: -.035em;
}
.nexus-hoteldetail-hero__stars {
    color: #F3C556;
    font-size: 16px;
    letter-spacing: 2px;
}
.nexus-hoteldetail-hero__address {
    position: static !important;
    inset: auto !important;
    float: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(100%, 760px);
    margin: 0;
    color: rgba(255,255,255,.90) !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    text-decoration: none !important;
    text-shadow: 0 1px 12px rgba(0,0,0,.18);
    transition: color .2s ease, transform .2s ease;
}
.nexus-hoteldetail-hero__address:hover {
    color: #F6D47D !important;
    transform: translateX(2px);
}
.nexus-hoteldetail-hero__address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(230,185,79,.45);
    border-radius: 50%;
    background: rgba(7,27,60,.30);
    color: #F3C556;
    font-size: 12px;
    box-shadow: 0 5px 14px rgba(0,0,0,.14);
}

/* ===== Main layout ===== */
#tour_details_main {
    margin: 0;
    padding: 34px 0 70px;
    background: linear-gradient(180deg, #F4F7FB 0%, #EEF3F9 100%);
}
.nexus-hoteldetail-page .tour_details_leftside_wrapper { margin: 0 -10px 28px; }
.nexus-hoteldetail-page .tour_details_leftside_wrapper > [class*="col-"] { padding: 0 10px; }
.nexus-hoteldetail-page .tour_details_leftside_wrapper { align-items: flex-start !important; }
.nexus-hoteldetail-page .tour_details_leftside_wrapper > [class*="col-"] { align-self: flex-start; }
.nexus-hoteldetail-page .tour_details_right_boxed,
.nexus-hoteldetail-page .tour_details_boxed {
    height: auto !important;
    min-height: 0 !important;
    align-self: flex-start;
    border: 1px solid var(--nexus-detail-border) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, #fff 0%, #FBFCFF 72%, #FFF9EC 100%) !important;
    box-shadow: 0 18px 50px rgba(7,27,60,.08) !important;
}
.nexus-hoteldetail-page .tour_details_boxed {
    padding: 28px !important;
    margin-bottom: 24px !important;
}
.nexus-hoteldetail-page .heading_theme {
    margin: 0 0 18px;
    color: var(--nexus-detail-navy);
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.025em;
}

/* ===== Gallery ===== */
.nexus-hoteldetail-page .tour_details_img_wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: transparent !important;
}
.nexus-hoteldetail-page .inner_wrapper { max-width: none !important; }
.nexus-hoteldetail-page .slider-for {
    overflow: hidden;
    border-radius: 17px;
    background: #EDF2F7;
}
.nexus-hoteldetail-page .slider-for img {
    width: 100%;
    height: clamp(300px, 34vw, 470px);
    object-fit: cover;
    transition: transform .35s ease;
}
.nexus-hoteldetail-page .slider-for a:hover img { transform: scale(1.025); }
.nexus-hoteldetail-page .slider-nav { margin-top: 10px !important; }
.nexus-hoteldetail-page .slider-nav .slick-slide { margin: 0 4px !important; }
.nexus-hoteldetail-page .slider-nav img {
    width: 100%;
    height: 74px !important;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 10px;
    opacity: .76;
    cursor: pointer;
}
.nexus-hoteldetail-page .slider-nav .slick-current img {
    border-color: #E6B94F;
    opacity: 1;
}

/* ===== Price / amenities card ===== */
.nexus-hotel-overview-card {
    display: flex;
    flex-direction: column;
    padding: 28px !important;
}
.nexus-hotel-overview-card .tour_details_right_box_heading h3 {
    margin: 0 0 8px;
    color: var(--nexus-detail-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.nexus-hotel-overview-card .tour_package_bar_price {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(7,27,60,.08);
}
.nexus-hotel-overview-card .tour_package_bar_price h3 {
    margin: 0;
    color: var(--nexus-detail-navy);
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 720;
    line-height: 1.15;
}
.nexus-hotel-overview-card .tour_package_details_bar_list h5 {
    margin-bottom: 14px;
    color: var(--nexus-detail-navy);
    font-size: 16px;
    font-weight: 620;
}
.nexus-hotel-overview-card .tour_package_details_bar_list ul { margin: 0 -5px; }
.nexus-hotel-overview-card .tour_package_details_bar_list li {
    padding: 6px 5px !important;
    color: #405069;
    font-size: 13px;
}
.nexus-hotel-overview-card .tour_package_details_bar_list li i {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    margin-right: 7px;
    border-radius: 50%;
    color: #0B7A49 !important;
    background: #EAF8F0;
    font-size: 9px !important;
    padding: 0 !important;
}
.nexus-hotel-overview-note {
    margin-top: auto;
    padding: 14px;
    border-radius: 13px;
    color: #5A6473;
    background: #F5F8FC;
    font-size: 12.5px;
}

/* ===== Description ===== */
.nexus-hoteldetail-page .tour_details_boxed_inner,
.nexus-hoteldetail-page .tour_details_boxed_inner p,
.nexus-hoteldetail-page .tour_details_boxed_inner span {
    color: #46556C !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
}
.nexus-description-toggle {
    display: inline-flex;
    margin-top: 12px;
    color: #9B6B0C !important;
    font-weight: 600;
}

/* ===== Rooms ===== */
.nexus-room-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.nexus-room-section-head p { margin: 0; color: var(--nexus-detail-muted); font-size: 13px; }
.nexus-hoteldetail-page .room_booking_area { display: grid; gap: 18px; }
.nexus-hoteldetail-page .room_book_item {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(7,27,60,.10);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7,27,60,.065);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nexus-hoteldetail-page .room_book_item:hover {
    transform: translateY(-2px);
    border-color: rgba(213,161,58,.36);
    box-shadow: 0 18px 42px rgba(7,27,60,.10);
}
.nexus-hoteldetail-page .room_book_item .carousel-wrapper {
    width: 100% !important;
    min-height: 280px;
    background: #EDF2F7;
}
.nexus-hoteldetail-page .room_book_item .owl-carousel,
.nexus-hoteldetail-page .room_book_item .owl-stage-outer,
.nexus-hoteldetail-page .room_book_item .owl-stage,
.nexus-hoteldetail-page .room_book_item .owl-item,
.nexus-hoteldetail-page .room_book_item .owl-item > div { height: 100%; }
.nexus-hoteldetail-page .room_book_item .image-room {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}
.nexus-hoteldetail-page .room_booking_right_side {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr) !important;
    width: 100% !important;
    padding: 25px;
}
.nexus-hoteldetail-page .room_booking_heading {
    margin: 0 !important;
    padding: 0 24px 0 0 !important;
    border-right: 1px solid rgba(7,27,60,.08) !important;
}
.nexus-room-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.nexus-hoteldetail-page .room_booking_heading h3 { margin: 0; }
.nexus-hoteldetail-page .room_booking_heading h3 a {
    color: var(--nexus-detail-navy) !important;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.25;
}
.nexus-room-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}
.nexus-room-status--available { color: #087043; background: #E9F8F0; border: 1px solid #BDE9D1; }
.nexus-room-status--soldout { color: #A42F3D; background: #FFF0F2; border: 1px solid #F5C6CD; }
.nexus-hoteldetail-page .room_fasa_area ul { margin: 0 -5px; }
.nexus-hoteldetail-page .room_fasa_area ul li {
    padding: 5px !important;
    color: #536177;
    font-size: 12.5px;
}
.nexus-hoteldetail-page .room_fasa_area ul li i {
    color: #15925A !important;
    font-size: 10px !important;
    padding-right: 7px !important;
}
.nexus-hoteldetail-page .room_person_select {
    display: flex;
    flex-direction: column;
    padding-left: 24px;
}
.nexus-hoteldetail-page .room_person_select > h3 {
    margin: 0 0 12px;
    color: var(--nexus-detail-navy);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.nexus-hoteldetail-page .room-info-item {
    display: flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 0 !important;
    color: #526075;
    font-size: 13px;
}
.nexus-hoteldetail-page .room-info-item span {
    width: 26px;
    color: #8793A5 !important;
    font-size: 12px !important;
    margin-right: 4px !important;
}
.nexus-hoteldetail-page .room-info-item-price {
    margin-top: auto;
    padding: 14px 0 12px !important;
    color: var(--nexus-detail-navy) !important;
    font-size: 25px !important;
    font-weight: 720 !important;
}
.nexus-hoteldetail-page .room-info-item-price em {
    color: #7C8797 !important;
    font-size: 12px !important;
    font-weight: 450;
}
.nexus-hoteldetail-page .room-info-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px;
}
.nexus-hoteldetail-page .room-info-buttons a { margin: 0 !important; }
.nexus-hoteldetail-page .nexus-room-btn,
.nexus-hoteldetail-page .nexus-room-btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 13px !important;
    border-radius: 12px !important;
    font-size: 13px;
    font-weight: 650;
}
.nexus-hoteldetail-page .nexus-room-btn {
    color: #071B3C !important;
    border: 1px solid #D4A034 !important;
    background: linear-gradient(135deg, #E6B94F 0%, #FCDB99 52%, #FFCC73 100%) !important;
    box-shadow: 0 8px 18px rgba(213,161,58,.22);
}
.nexus-hoteldetail-page .nexus-room-btn-secondary {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: linear-gradient(135deg, #123F7B 0%, #071B3C 100%) !important;
    box-shadow: 0 8px 18px rgba(7,27,60,.18);
}
.nexus-hoteldetail-page .nexus-room-unavailable {
    width: 100%;
    min-height: 44px;
    border: 1px solid #F0C4CB;
    border-radius: 12px;
    color: #A53C49;
    background: #FFF1F3;
    font-size: 13px;
    font-weight: 600;
}

/* ===== Booking form / modal ===== */
.nexus-hoteldetail-page .write_review_inner_boxed {
    border: 1px solid rgba(7,27,60,.08);
    border-radius: 16px;
    background: #F8FAFD;
    padding: 20px;
}
.nexus-hoteldetail-page .form-control,
.nexus-hoteldetail-page select,
.nexus-hoteldetail-page md-datepicker {
    min-height: 44px;
    border-radius: 11px !important;
}
.nexus-hoteldetail-page .comment_form_submit .btn,
#mdCode .modal-footer .btn {
    min-height: 44px;
    border-radius: 11px !important;
    font-weight: 650;
}
#mdCode .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(7,27,60,.22);
}
#mdCode .modal-header {
    color: #fff;
    background: linear-gradient(135deg, #071B3C, #123F7B);
}
#mdCode .modal-title { color: #fff; }
#mdCode .input-code {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid rgba(7,27,60,.13);
    border-radius: 11px;
    outline: none;
}

@media (max-width: 1199.98px) {
    .nexus-hoteldetail-page .room_book_item { grid-template-columns: 300px minmax(0,1fr); }
    .nexus-hoteldetail-page .room_booking_right_side { grid-template-columns: 1fr !important; gap: 18px; }
    .nexus-hoteldetail-page .room_booking_heading { padding-right: 0 !important; border-right: 0 !important; }
    .nexus-hoteldetail-page .room_person_select { padding: 18px 0 0; border-top: 1px solid rgba(7,27,60,.08); }
}
@media (max-width: 991.98px) {
    .nexus-hoteldetail-page .tour_details_leftside_wrapper > [class*="col-"] + [class*="col-"] { margin-top: 18px; }
    .nexus-hotel-overview-card { min-height: 0; }
    .nexus-hoteldetail-page .room_book_item { grid-template-columns: 1fr; }
    .nexus-hoteldetail-page .room_book_item .carousel-wrapper,
    .nexus-hoteldetail-page .room_book_item .image-room { min-height: 260px; max-height: 340px; }
}
@media (max-width: 767.98px) {
    .nexus-hoteldetail-hero { min-height: 260px; padding: 94px 0 42px; }
    .nexus-hoteldetail-hero .nexus-hero-copy h1 { gap: 10px; margin-bottom: 11px; }
    .nexus-hoteldetail-hero__address { align-items: flex-start; font-size: 13.5px; }
    .nexus-hoteldetail-hero__address-icon { margin-top: 1px; }
    .nexus-hoteldetail-hero .container,
    #tour_details_main > .container { width: calc(100% - 24px); }
    #tour_details_main { padding-top: 22px; }
    .nexus-hoteldetail-page .tour_details_boxed { padding: 18px !important; border-radius: 17px !important; }
    .nexus-hoteldetail-page .room_booking_right_side { padding: 18px; }
    .nexus-room-title-row { display: block; }
    .nexus-room-status { margin-top: 9px; }
    .nexus-hoteldetail-page .room-info-buttons { grid-template-columns: 1fr !important; }
    .nexus-room-section-head { display: block; }
    .nexus-room-section-head p { margin-top: 6px; }
}

/* =========================================================
   v2.1 - Room card aligned with Hotel Cart visual language
   ========================================================= */
.nexus-hoteldetail-page .room_book_item {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff 0%, #fbfcff 74%, #fffaf0 100%);
}

.nexus-hoteldetail-page .nexus-room-content {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px) !important;
    gap: 22px;
    padding: 22px !important;
}

.nexus-hoteldetail-page .nexus-room-main {
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
}

.nexus-room-kicker,
.nexus-room-price-label {
    display: block;
    margin-bottom: 4px;
    color: #8b96a8;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nexus-hoteldetail-page .nexus-room-title-row {
    align-items: center;
    margin-bottom: 16px;
}

.nexus-hoteldetail-page .nexus-room-title-row h3 a {
    font-size: 20px !important;
    line-height: 1.28;
}

.nexus-room-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 14px;
}

.nexus-room-fact {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(7,27,60,.08);
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fafd 0%, #fff 100%);
}

.nexus-room-fact__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #0b3569;
    background: #edf3fb;
    font-size: 13px;
}

.nexus-room-fact span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nexus-room-fact small {
    color: #8a95a6;
    font-size: 10.5px;
    line-height: 1.2;
}

.nexus-room-fact strong {
    margin-top: 2px;
    overflow: hidden;
    color: #172d4d;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nexus-room-amenities {
    padding: 13px 14px;
    border: 1px dashed rgba(7,27,60,.13);
    border-radius: 14px;
    background: rgba(247,250,253,.78);
}

.nexus-room-amenities__title {
    margin-bottom: 9px;
    color: #526177;
    font-size: 11.5px;
    font-weight: 650;
}

.nexus-room-amenities__title i {
    margin-right: 6px;
    color: #d5a13a;
}

.nexus-room-amenities ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.nexus-room-amenities li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px !important;
    border: 1px solid rgba(7,27,60,.07);
    border-radius: 999px;
    color: #4c5b70 !important;
    background: #fff;
    font-size: 11.5px !important;
    line-height: 1.2;
}

.nexus-room-amenities li i {
    padding: 0 !important;
    color: #15925a !important;
    font-size: 9px !important;
}

.nexus-hoteldetail-page .nexus-room-booking-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px !important;
    border: 1px solid rgba(7,27,60,.08);
    border-radius: 16px;
    background: linear-gradient(145deg, #f7faff 0%, #fff 58%, #fff7e7 100%);
}

.nexus-hoteldetail-page .nexus-room-booking-panel .room-info-item-price {
    margin: 0;
    padding: 0 0 8px !important;
    color: #071b3c !important;
    font-size: 25px !important;
    line-height: 1.15;
}

.nexus-hoteldetail-page .nexus-room-booking-panel .room-info-item-price span {
    font-size: 14px;
    font-weight: 650;
}

.nexus-hoteldetail-page .nexus-room-booking-panel .room-info-item-price em {
    margin-left: 4px;
}

.nexus-room-price-note {
    margin-bottom: 16px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #738095;
    background: rgba(255,255,255,.72);
    font-size: 10.8px;
    line-height: 1.45;
}

.nexus-room-price-note i {
    margin-right: 5px;
    color: #d5a13a;
}

.nexus-hoteldetail-page .nexus-room-booking-panel .room-info-buttons {
    margin-top: auto;
}

.nexus-hoteldetail-page .nexus-room-btn,
.nexus-hoteldetail-page .nexus-room-btn-secondary {
    min-height: 42px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.nexus-hoteldetail-page .nexus-room-btn {
    color: #071b3c !important;
    border: 1px solid #d5a13a !important;
    background: linear-gradient(135deg, #e6b94f 0%, #fcdb99 52%, #ffcc73 100%) !important;
    box-shadow: 0 8px 18px rgba(213,161,58,.22);
}

.nexus-hoteldetail-page .nexus-room-btn-secondary {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    background: linear-gradient(135deg, #123f7b 0%, #071b3c 100%) !important;
    box-shadow: 0 8px 18px rgba(7,27,60,.18);
}

@media (max-width: 1199.98px) {
    .nexus-hoteldetail-page .room_book_item {
        grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    }
    .nexus-hoteldetail-page .nexus-room-content {
        grid-template-columns: 1fr !important;
    }
    .nexus-hoteldetail-page .nexus-room-booking-panel {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        align-items: center;
        column-gap: 18px;
    }
    .nexus-hoteldetail-page .nexus-room-booking-panel .room-info-buttons,
    .nexus-hoteldetail-page .nexus-room-booking-panel > div[ng-if="!room.isAvailable"] {
        grid-column: 2;
        grid-row: 1 / span 3;
        min-width: 260px;
    }
}

@media (max-width: 767.98px) {
    .nexus-room-facts { grid-template-columns: 1fr; }
    .nexus-hoteldetail-page .nexus-room-booking-panel { display: flex; }
    .nexus-hoteldetail-page .nexus-room-booking-panel .room-info-buttons,
    .nexus-hoteldetail-page .nexus-room-booking-panel > div[ng-if="!room.isAvailable"] { min-width: 0; width: 100%; }
}

/* ===== Nexus Hotel Booking Loading & Success ===== */
.nexus-state-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1090 !important;
    opacity: 1 !important;
    filter: none !important;
}
.nexus-state-modal.show { opacity: 1 !important; }
.nexus-state-modal .modal-dialog {
    position: relative;
    z-index: 1091;
    max-width: 520px;
    padding: 16px;
    opacity: 1 !important;
    filter: none !important;
}
.nexus-state-modal .modal-content {
    border: 1px solid rgba(213, 161, 58, .22);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 27, 60, .28);
    overflow: hidden;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
}
.nexus-state-modal .modal-content::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #071B3C 0%, #D5A13A 52%, #F6D997 100%);
}
.modal-backdrop {
    z-index: 1080 !important;
    background: #071B3C !important;
}
.modal-backdrop.show {
    opacity: .58 !important;
}
body.modal-open .nexus-state-modal {
    opacity: 1 !important;
    filter: none !important;
}
.nexus-loading-card,
.nexus-success-card { padding: 42px 42px 38px; text-align: center; }
.nexus-state-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: #B27B16;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.nexus-loading-card h3,
.nexus-success-card h2 { margin: 0 0 10px; color: #071B3C; font-weight: 800; }
.nexus-loading-card h3 { font-size: 24px; }
.nexus-success-card h2 { font-size: 28px; }
.nexus-loading-card > p,
.nexus-success-lead { max-width: 410px; margin: 0 auto 22px; color: #667085; line-height: 1.65; }
.nexus-loading-orbit {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(145deg, #F8FAFD, #FFF9EC);
    box-shadow: inset 0 0 0 1px rgba(213, 161, 58, .18), 0 14px 30px rgba(7, 27, 60, .10);
}
.nexus-loading-orbit::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(7, 27, 60, .10);
    border-top-color: #D5A13A;
    border-right-color: #071B3C;
    border-radius: 50%;
    animation: nexusSpin 1.15s linear infinite;
}
.nexus-loading-orbit i {
    position: absolute;
    top: 50%; left: 50%;
    color: #071B3C;
    font-size: 23px;
    transform: translate(-50%, -50%) rotate(-18deg);
}
.nexus-loading-orbit span {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #D5A13A;
    animation: nexusPulse 1.6s ease-in-out infinite;
}
.nexus-loading-orbit span:nth-child(1) { top: 14px; left: 20px; }
.nexus-loading-orbit span:nth-child(2) { top: 40px; animation-delay: .25s; }
.nexus-loading-orbit span:nth-child(3) { bottom: 10px; left: 28px; animation-delay: .5s; }
.nexus-loading-progress {
    height: 5px;
    margin: 0 0 24px;
    border-radius: 999px;
    background: #EDF1F6;
    overflow: hidden;
}
.nexus-loading-progress span {
    display: block;
    width: 48%; height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #071B3C, #D5A13A, #F6D997);
    animation: nexusProgress 1.55s ease-in-out infinite;
}
.nexus-loading-steps { display: grid; gap: 10px; margin-bottom: 20px; text-align: left; }
.nexus-loading-steps > div {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px;
    border: 1px solid #EDF0F4;
    border-radius: 12px;
    color: #8A94A5;
    font-size: 13.5px;
}
.nexus-loading-steps > div i { width: 18px; text-align: center; }
.nexus-loading-steps .is-done { color: #2C7A58; background: #F3FAF6; border-color: #D9EEE2; }
.nexus-loading-steps .is-active { color: #071B3C; background: #FFF9ED; border-color: rgba(213,161,58,.28); font-weight: 700; }
.nexus-loading-card small { color: #8A94A5; }
.nexus-loading-card small i { margin-right: 5px; color: #B27B16; }
.nexus-success-dialog { max-width: 640px !important; }
.nexus-success-icon {
    display: flex; align-items: center; justify-content: center;
    width: 78px; height: 78px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFF5D9, #F5D28C);
    color: #071B3C;
    font-size: 31px;
    box-shadow: 0 15px 32px rgba(181,125,26,.22), inset 0 0 0 7px rgba(255,255,255,.55);
    animation: nexusSuccessPop .45s cubic-bezier(.2,.9,.25,1.2) both;
}
.nexus-success-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0 16px;
    text-align: left;
}
.nexus-success-summary > div {
    min-height: 92px;
    padding: 15px;
    border: 1px solid #E8ECF2;
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF, #FAFBFD);
}
.nexus-success-summary span { display: block; margin-bottom: 7px; color: #8A94A5; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nexus-success-summary strong { display: block; color: #071B3C; font-size: 14px; line-height: 1.45; word-break: break-word; }
.nexus-success-summary strong i { margin: 0 5px; color: #D5A13A; }
.nexus-success-status { color: #9A680F !important; }
.nexus-success-note {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px 16px;
    border-radius: 13px;
    background: #F5F8FC;
    color: #566176;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}
.nexus-success-note i { margin-top: 3px; color: #D5A13A; }
.nexus-success-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.nexus-success-actions .btn {
    min-height: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border-radius: 11px;
    font-weight: 800;
}
.nexus-success-btn-primary {
    border: 1px solid #B57D1A;
    background: linear-gradient(135deg, #E6B94F, #F8DBA1 52%, #F8CF87);
    color: #071B3C !important;
    box-shadow: 0 10px 22px rgba(181,125,26,.22);
}
.nexus-success-btn-secondary { border: 1px solid rgba(7,27,60,.16); background: #fff; color: #071B3C !important; }
.nexus-success-actions .btn:hover { transform: translateY(-1px); }
@keyframes nexusSpin { to { transform: rotate(360deg); } }
@keyframes nexusPulse { 50% { transform: scale(1.65); opacity: .45; } }
@keyframes nexusProgress { 0% { transform: translateX(-110%); } 100% { transform: translateX(220%); } }
@keyframes nexusSuccessPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 767px) {
    .nexus-loading-card, .nexus-success-card { padding: 32px 20px 26px; }
    .nexus-success-card h2 { font-size: 23px; }
    .nexus-success-summary { grid-template-columns: 1fr; }
    .nexus-success-summary > div { min-height: auto; }
    .nexus-success-actions { flex-direction: column-reverse; }
    .nexus-success-actions .btn { width: 100%; }
}


.nexus-hotel-success-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nexus-hotel-success-summary > div {
    min-width: 0;
}
.nexus-hotel-success-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
}
#hotelLoadingModal + .modal-backdrop,
#hotelSuccessModal + .modal-backdrop {
    z-index: 1080 !important;
}
body.modal-open > .modal-backdrop {
    z-index: 1080 !important;
    background: #071B3C;
    opacity: .58 !important;
}
@media (max-width: 767px) {
    .nexus-hotel-success-summary { grid-template-columns: 1fr; }
}


/* ===== Nexus compact cart success modal ===== */
.nexus-cart-success-dialog {
    width: calc(100% - 32px);
    max-width: 540px !important;
    margin-left: auto;
    margin-right: auto;
}
.nexus-cart-success-card {
    position: relative;
    overflow: hidden;
    padding: 38px 38px 32px;
    border: 1px solid rgba(213,161,58,.22);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(252,219,153,.24), transparent 34%),
        #fff;
    box-shadow: 0 28px 80px rgba(7,27,60,.28);
    text-align: center;
}
.nexus-cart-success-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg,#071B3C 0%,#D5A13A 48%,#FCDB99 100%);
}
.nexus-cart-success-close {
    position: absolute;
    top: 16px; right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    padding: 0;
    border: 1px solid rgba(7,27,60,.10);
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: #738096;
    cursor: pointer;
    transition: all .2s ease;
}
.nexus-cart-success-close:hover {
    border-color: rgba(213,161,58,.45);
    color: #071B3C;
    transform: rotate(6deg);
}
.nexus-cart-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px; height: 68px;
    margin-bottom: 18px;
    border: 1px solid rgba(18,130,76,.20);
    border-radius: 50%;
    background: linear-gradient(145deg,#F0FFF7,#DDF8EA);
    color: #12824C;
    font-size: 27px;
    box-shadow: 0 12px 28px rgba(18,130,76,.14);
    animation: nexusSuccessPop .45s cubic-bezier(.2,.9,.25,1.2) both;
}
.nexus-cart-success-card h3 {
    margin: 8px 0 9px;
    color: #071B3C;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 800;
}
.nexus-cart-success-card > p {
    max-width: 410px;
    margin: 0 auto 22px;
    color: #667085;
    font-size: 14px;
    line-height: 1.65;
}
.nexus-cart-success-card > p strong { color: #071B3C; font-weight: 700; }
.nexus-cart-success-summary {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(7,27,60,.08);
    border-radius: 17px;
    background: linear-gradient(135deg,#F8FAFD,#FFFDF8);
    text-align: left;
}
.nexus-cart-success-summary > div {
    min-width: 0;
    padding: 10px 12px;
}
.nexus-cart-success-hotel {
    display: flex;
    align-items: center;
    gap: 11px;
    border-right: 1px solid rgba(7,27,60,.08);
}
.nexus-cart-success-summary-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: rgba(213,161,58,.13);
    color: #B47B10;
}
.nexus-cart-success-summary small {
    display: block;
    margin-bottom: 4px;
    color: #8A94A5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.nexus-cart-success-summary strong {
    display: block;
    overflow: hidden;
    color: #071B3C;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    text-overflow: ellipsis;
}
.nexus-cart-success-dates strong { white-space: nowrap; }
.nexus-cart-success-dates i { margin: 0 5px; color: #D5A13A; }
.nexus-cart-success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}
.nexus-cart-success-actions .btn {
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}
#hotelCartSuccessModal { z-index: 1090 !important; }
#hotelCartSuccessModal .modal-dialog { z-index: 1091; position: relative; }
#hotelCartSuccessModal .modal-content { opacity: 1 !important; filter: none !important; }
@media (max-width: 575.98px) {
    .nexus-cart-success-card { padding: 34px 20px 24px; border-radius: 20px; }
    .nexus-cart-success-card h3 { font-size: 22px; }
    .nexus-cart-success-summary { grid-template-columns: 1fr; }
    .nexus-cart-success-hotel { border-right: 0; border-bottom: 1px solid rgba(7,27,60,.08); }
    .nexus-cart-success-dates strong { white-space: normal; }
    .nexus-cart-success-actions { flex-direction: column-reverse; }
    .nexus-cart-success-actions .btn { width: 100%; }
}
