/* =========================================================
   Reservation cart sidebar
   Loaded on every page that shares Nrp_m_o.master (and on
   Default.aspx, which does not use the master page).
========================================================= */

.cartToggleBtn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--prim) 0%, var(--primary-color-dark) 100%);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 220ms var(--ease);
    font-size: 16px;
    flex: 0 0 auto;
}

.cartToggleBtn:hover {
    box-shadow: var(--shadow-mid);
    transform: translateY(-2px);
}

.cartCountBadge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy-deep);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 0;
    transform: scale(0.6);
    transition: all 180ms var(--ease);
}

.cartCountBadge.hasItems {
    opacity: 1;
    transform: scale(1);
}

/* ===== Overlay ===== */
.cartOverlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 26, 34, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--ease);
    z-index: 940;
}

.cartOverlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Sidebar / drawer ===== */
.cartSidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 92vw;
    background: #fff;
    box-shadow: var(--shadow-lift);
    z-index: 941;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 260ms var(--ease);
}

.cartSidebar.is-open {
    transform: translateX(0);
}

.cartSidebarHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eef1f2;
    flex: 0 0 auto;
}

.cartSidebarTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

.cartSidebarTitle i {
    color: var(--prim);
}

.cartCloseBtn {
    width: 34px;
    height: 34px;
    border: none;
    background: #f4f6f7;
    border-radius: 50%;
    color: var(--primary-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 180ms var(--ease);
}

.cartCloseBtn:hover {
    background: var(--prim);
    color: #fff;
}

/* ===== Current-hotel card (collapsible, below the sidebar header) ===== */
.cartHotelCard {
    flex: 0 0 auto;
    border-bottom: 1px solid #eef1f2;
    display: none; /* toggled on via JS once a hotel is set */
}

.cartHotelCardHead {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
}

.cartHotelCardName {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cartHotelCardHead i {
    color: var(--prim);
    font-size: 12px;
    flex: 0 0 auto;
    transition: transform 200ms var(--ease);
}

.cartHotelCard.open .cartHotelCardHead i {
    transform: rotate(180deg);
}

.cartHotelCardBody {
    display: none;
    padding: 0 22px 16px;
}

.cartHotelCardImg {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    margin-bottom: 10px;
    background: #e2e7e9;
}

.cartHotelCardAddress {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted-text);
    line-height: 1.6;
}

.cartHotelCardAddress i {
    color: var(--prim);
    font-size: 11px;
    margin-top: 3px;
    flex: 0 0 auto;
}

/* ===== Check-in / check-out row (below the hotel card) ===== */
.cartHotelDates {
    flex: 0 0 auto;
    display: none; /* toggled on via JS once a hotel search date is available */
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-bottom: 1px solid #eef1f2;
    font-size: 13px;
    color: var(--navy);
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;  
}

.cartHotelDates i {
    color: var(--prim);
    font-size: 12px;
    flex: 0 0 auto;
}

.cartDatesRange {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cartDatesSep {
    color: var(--muted-text);
    font-weight: 400;
}

.cartDatesNights {
    font-weight: 700;
    color: var(--prim);
    white-space: nowrap;
}

/* ===== Items list ===== */
.cartItemsList {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cartEmptyState {
    margin: auto;
    text-align: center;
    color: var(--muted-text);
    font-size: 14px;
    padding: 40px 10px;
}

.cartItem {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f9fa;
    border-radius: var(--radius-md);
    padding: 12px;
}

.cartItemThumb {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    background: #e2e7e9;
    overflow: hidden;
}

.cartItemThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.cartItemMain {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cartItemName {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cartItemSub {
    font-size: 12px;
    color: var(--muted-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cartItemPrice {
    font-size: 13px;
    color: var(--prim);
    font-weight: 600;
}

.cartItemQty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.cartQtyBtn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #dfe4e6;
    background: #fff;
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 180ms var(--ease);
}

.cartQtyBtn:hover {
    background: var(--prim);
    border-color: var(--prim);
    color: #fff;
}

.cartQtyValue {
    min-width: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.cartRemoveBtn {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #c25a5a;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 180ms var(--ease);
}

.cartRemoveBtn:hover {
    background: rgba(194, 90, 90, 0.12);
}

/* ===== Footer ===== */
.cartSidebarFooter {
    flex: 0 0 auto;
    border-top: 1px solid #eef1f2;
    padding: 18px 22px 22px;
}

.cartTotalRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.cartTotalValue {
    color: var(--prim);
}

.cartFooterNote {
    font-size: 12px;
    color: var(--muted-text);
    margin: 0 0 14px;
}

.cartCheckoutBtn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--prim) 0%, var(--primary-color-dark) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 220ms var(--ease);
}

.cartCheckoutBtn:hover {
    box-shadow: var(--shadow-mid);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .cartSidebar {
        width: 100%;
        max-width: 100%;
    }
}
