﻿/* ویوی دوم */


.view-detailed .plan-row i {
    display: block;
    margin: 0 auto 4px;
}
.view-detailed .plan-row > div {
    text-align: center;
}


@media (max-width: 991px) {

    .view-detailed .plan-row {
        flex-wrap: wrap;
    }

        .view-detailed .plan-row > .col-icon,
        .view-detailed .plan-row > .col-price,
        .view-detailed .plan-row > .col-otagh {
            flex: 0 0 100%;
            max-width: 100%;
            text-align: center !important;
            margin-bottom: 6px;
        }
    .view-detailed .d-flex.align-items-center {
        justify-content: center;
    }

        /* فقط متن دسکتاپ نمایش داده شود */
        .view-detailed .plan-row .desktop-only {
            display: inline-block !important;
        }

        .view-detailed .plan-row .mobile-only {
            display: none !important;
        }
}

.view-detailed .price-value {
    font-weight: bold;
    font-size: 1.05rem;
}

.view-detailed .rb-counter {
    height: 32px;
}

    .view-detailed .rb-counter button {
        height: 32px;
        width: 32px;
    }

.view-detailed .plan-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-compact .room-card {
    font-size: 0.9rem;
}

.view-compact .plan-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.view-detailed .room-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.view-detailed .btn-select {
    font-size: 14px !important;
}

.view-detailed .rb-counter-val {
    font-size: 14px;
}

.view-detailed .plan-row {
    display: flex;
    align-items: center;
 
    min-height: 42px;
    padding: 4px 0;
}

.view-detailed .room-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .view-detailed .room-icons i {
        margin: 0;
    }

.view-detailed .plan-row:nth-child(even) {
    background: #fafafa;
}

@media (max-width: 991px) {

    .view-detailed .plan-row {
        flex-wrap: wrap;
    }
        .view-detailed .plan-row .desktop-only {
            display: inline-block !important;
        }

        .view-detailed .plan-row .font-responsive {
            font-size: 0.95rem;
        }
}
/* ویوی دوم تا اینجا */
.col-price .btn-success {
    min-width: 90px;
    text-align: center;
}

.rm-image-wrapper {
    position: relative;
    background: #000;
    min-height: 320px;
    overflow: hidden;
}

.rm-slider {
    height: 100%;
}

.rm-slide {
    display: none;
    height: 100%;
}

    .rm-slide.active {
        display: block;
    }

    .rm-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* دکمه‌ها روی خود تصویر */
.rm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 5;
}

.rm-prev {
    left: 12px;
}

.rm-next {
    right: 12px;
}

/* موبایل – لمس راحت */
@media (max-width:767px) {
    .rm-nav {
        width: 46px;
        height: 46px;
        font-size: 28px;
    }
}

@media(min-width:768px) {

    .popover {
        font-size: 13px;
    }

    .col-price .btn-success {
        min-width: 90px;
        text-align: center;
    }

    .plan-row {
        padding: 10px 6px;
    }
        .plan-row .col-icon {
            flex: 0 0 110px;
       
        }

        .plan-row .col-otagh {
            flex: 0 0 150px;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            gap: 6px;
        }
    .rb-counter-val {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .plan-row .col-price {
        flex: 0 0 110px;
        max-width: 110px;
    }

    .room-card {
        border-radius: 12px;
    }

    .room-title {
        font-size: 20px;
    }

    .room-links a {
        width: 25%; 
        font-size: 14px;
    }

    .room-icons {
        gap: 18px;
    }

        .room-icons .col-icon {
            flex: 0 0 25px;
            width: 25px;
            min-width: 25px;
            padding: 0;
        }

        .room-icons .col-icon {
            flex: 0 0 110px;
        }

    .col-icon {
        width: 29px;
        min-width: 29px;
        padding: 0;
    }



    .icon-badge {
        width: 42px;
        height: 42px;
    }

        .icon-badge i {
            font-size: 22px;
        }



        #rb-cart-sidebar.open {
            bottom: 40px;
        }
    .modal-bottom .modal-dialog {
        max-width: 500px;
        margin: auto;
    }
 
   


}

.col-price .btn-success {
    min-width: 39px;
    text-align: center;
}

.font-responsive {
    font-size: 9px;
}

.mobile-only {
    display: inline;
    font-size: 9px;
}

.desktop-only {
    display: none;
}
/* تبلت */
@media (min-width:768px) {
    .font-responsive {
        font-size: 12px;
    }
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: inline;
        font-size: 12px;
    }
}

/* دسکتاپ بزرگ */
@media (min-width:1200px) {
    .font-responsive {
        font-size: 14px;
    }
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: inline;
        font-size: 12px;
    }
}

.custom-popover {
    background: #1f2937;
    color: #ffffff;
    border-radius: 10px;
    border: none;
}

    .custom-popover .popover-body {
        color: #ffffff;
    }

    .custom-popover .popover-arrow::before {
        border-top-color: #1f2937 !important;
    }

    .custom-popover.bs-popover-bottom .popover-arrow::before {
        border-bottom-color: #1f2937 !important;
    }


.room-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

    .room-feature svg {
        width: 18px;
        height: 18px;
        color: #0d6efd; /* رنگ آیکون */
        flex-shrink: 0;
    }

.room-card {
    background: #fff;
    transition: 0.2s;
}

    .room-card:hover {
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    }

.room-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .room-title i {
        color: #2563eb;
        font-size: 22px;
    }

.room-icons {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}


.icon-badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0d6efd;
    margin-bottom: 4px;
}

    .icon-badge i {
        font-size: 20px;
    }

    .icon-badge svg {
        width: 20px;
        height: 20px;
    }

.room-value {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.room-links {
    display: flex;
    gap: 10px;
}

    .room-links a {
        text-decoration: none;
        font-weight: 400;
        display: flex;
        align-items: center;
        gap: 6px;
        color: #374151;
    }

        .room-links a i {
            color: #2563eb;
            font-size: 18px;
        }

.bottom-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 5px;
    margin: 0 auto 10px auto;
}

/* موبایل */
@media (max-width:768px) {

    .modal-bottom .modal-dialog {
        position: fixed;
        bottom: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .modal-bottom .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
    }

}



.policy-btn:hover {
    opacity: .7;
    transform: scale(1.05);
}




.col-price {
    width: 39px;
    min-width: 39px;
    padding: 0;
}
.col-otagh {
    width: 20px;
    min-width: 20px;
    padding: 0;
}

.col-action {
    width: 60px;
    min-width: 60px;
}

.rb-tbl,
.rb-tbl th,
.rb-tbl td {
    border: 2px solid #0d6efd !important;
}

.rb-tbl {
    border-collapse: collapse;
}

.rb {
    direction: rtl;
    font-family: Tahoma, 'Segoe UI', sans-serif;
}


#rb-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 60px;
    background: #1e3a8a;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 9998;
    box-sizing: border-box;
}

/* ── Room Card ─────────────────────────────────────────────── */
.rb-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    border: 1px solid #dde3ef;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,60,160,.07);
    transition: box-shadow .2s;
}

    .rb-card:hover {
        box-shadow: 0 6px 24px rgba(0,60,160,.13);
    }

@media (max-width: 768px) {
    .rb-card

{
    grid-template-columns: 1fr;
}

.rb-left {
    border-left: none;
    border-bottom: 1px solid #eef0f7;
}

}

/* ── Left Panel ────────────────────────────────────────────── */
.rb-left {
    padding: 14px;
    background: #f7f9fe;
    border-left: 1px solid #eef0f7;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .rb-left img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: 10px;
    }

.rb-room-name {
    font-size: 15px;
    font-weight: 700;
    color: #0d1f5c;
    margin: 0;
}

.rb-beds {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rb-bed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #333;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
}

    .rb-bed svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        fill: #333;
        stroke: none;
    }

.rb-facs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rb-fac {
    font-size: 11px;
    color: #2d4099;
    background: #eef1fd;
    border-radius: 4px;
    padding: 2px 8px;
}

.rb-avail {
    font-size: 11.5px;
    color: #1a7f4b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
}

/* ── Right Panel ───────────────────────────────────────────── */
.rb-right {
    overflow-x: auto;
}

.rb-tbl {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
    font-size: 13px;
}

    .rb-tbl thead th {
        background: #f0f4ff;
        border-bottom: 2px solid #c8d4f8;
        padding: 11px 14px;
        font-size: 12px;
        font-weight: 700;
        color: #1e3a8a;
        text-align: right;
        white-space: nowrap;
    }

        .rb-tbl thead th:last-child {
            text-align: left;
        }

    .rb-tbl tbody tr {
        border-bottom: 1px solid #f0f2fa;
    }

        .rb-tbl tbody tr:last-child {
            border-bottom: none;
        }

        .rb-tbl tbody tr:hover {
            background: #f8faff;
        }

    .rb-tbl td {
        padding: 14px;
        vertical-align: top;
        text-align: right;
    }

        .rb-tbl td:last-child {
            text-align: left;
            min-width: 175px;
        }

/* ── Choices Column ────────────────────────────────────────── */
.rb-plan-name {
    font-weight: 700;
    color: #0d1f5c;
    margin-bottom: 6px;
    font-size: 13.5px;
}

.rb-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    border-radius: 4px;
    padding: 2px 7px;
    margin: 2px 2px 2px 0;
    white-space: nowrap;
}

.rb-tag-meal {
    background: #fff8e6;
    color: #92400e;
    border: 1px solid #fde68a;
}

.rb-tag-promo {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* collapse toggles */
.rb-collapse-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #3b5bdb;
    cursor: pointer;
    background: none;
    border: none;
    padding: 3px 0;
    text-decoration: underline dotted;
}

    .rb-collapse-btn:hover {
        color: #1a3dba;
    }

.rb-collapse-body {
    margin-top: 6px;
}

.rb-svc-item, .rb-pol-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11.5px;
    padding: 3px 0;
    color: #334155;
}

    .rb-svc-item svg, .rb-pol-item svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
        margin-top: 1px;
    }



.rb-svc-paid {
    color: #d97706;
}


.rb-pol-other {
    color: #6d28d9;
}

/* ── Sleeps Column ─────────────────────────────────────────── */
.rb-sleeps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.rb-person svg {
    width: 20px;
    height: 20px;
}

.rb-person-base svg {
    color: #1e40af;
}

.rb-person-extra svg {
    color: #93c5fd;
}

.rb-extra-note {
    font-size: 10.5px;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
    width: 100%;
}

/* ── Price Column ──────────────────────────────────────────── */
.rb-disc-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 7px;
    margin-bottom: 4px;
}

.rb-price-strike {
    font-size: 11.5px;
    color: #94a3b8;
    text-decoration: line-through;
    display: block;
}

.rb-price-night {
    font-size: 20px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.2;
}

.rb-price-unit {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
}

.rb-price-total {
    font-size: 11.5px;
    color: #475569;
    margin: 4px 0 10px;
}

    .rb-price-total strong {
        color: #0d1f5c;
    }

.rb-btn-book {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s;
}

    .rb-btn-book:hover {
        filter: brightness(1.1);
    }

.rb-invoice-link {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #3b5bdb;
    text-decoration: underline dotted;
    margin-top: 6px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
}

/* ── Empty State ───────────────────────────────────────────── */
.rb-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

    .rb-empty svg {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
    }

.rm-slider {
    position: relative;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
}

.rm-slide {
    display: none;
    height: 100%;
}

    .rm-slide.active {
        display: block;
    }

.rm-dot.active {
    background: #fff !important;
    transform: scale(1.3);
}

.rm-slider {
    position: relative;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
}

.rm-slide {
    display: none;
    height: 100%;
}

    .rm-slide.active {
        display: block;
    }

.rm-dot.active {
    background: #fff !important;
    transform: scale(1.3);
}

.rb-invoice-wrap {
    position: relative;
    display: inline-block;
}

.rb-invoice-popup {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    width: 260px;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    direction: rtl;
}

.yc-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 8px;
}

.yc-header {
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.yc-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 12px;
}

    .yc-item + .yc-item {
        border-top: 1px dashed #f1f5f9;
    }

    .yc-item.hl-yellow {
        background: #fffbeb;
    }

    .yc-item.hl-red {
        background: #fff5f5;
    }

.yc-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.yc-text {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.yc-sub {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.yc-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 3px;
}

.yc-conds {
    margin-top: 5px;
    border-right: 2px solid #e2e8f0;
    padding-right: 7px;
}

.yc-cond-row {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: #64748b;
    padding: 2px 0;
}

.yc-cond-val {
    font-weight: 600;
    color: #dc2626;
}

    .yc-cond-val.free {
        color: #16a34a;
    }



/* ── تعداد اتاق ── */
.rb-room-counter {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #c7d2fe;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    margin: 8px 0;
}

.rb-counter-btn {
    width: 30px;
    height: 30px;
    background: #eef2ff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #3730a3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

    .rb-counter-btn:hover {
        background: #c7d2fe;
    }

.rb-counter-val {
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
    border: none;
    border-right: 1.5px solid #c7d2fe;
    border-left: 1.5px solid #c7d2fe;
    background: #fff;
    outline: none;
}

.rb-counter-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

/* ── قیمت ── */
.rb-price-box {
    background: #f8faff;
    border: 1.5px solid #e0e7ff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
}




.rb-price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e0e7ff;
    font-size: 12px;
    color: #475569;
}

.rb-price-total-val {
    font-size: 14px;
    font-weight: 800;
    color: #1e3a8a;
}

.rb-rooms-total {
    font-size: 11px;
    color: #6366f1;
    margin-top: 3px;
    font-weight: 600;
}



.rb-btn-book:hover {
    filter: brightness(1.1);
}

.rb-invoice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    background: none;
    border: 1.5px dashed #c7d2fe;
    border-radius: 8px;
    padding: 6px 0;
    font-size: 11px;
    color: #4338ca;
    cursor: pointer;
    margin-top: 6px;
    transition: all .15s;
    font-family: inherit;
}

    .rb-invoice-btn:hover {
        background: #eef2ff;
        border-color: #818cf8;
    }

/* ── سبد انتخاب‌ها ── */
.rb-basket {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #1e3a8a;
    color: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(30,58,138,.35);
    z-index: 1000;
    display: none;
    direction: rtl;
}

    .rb-basket.show {
        display: block;
    }

.rb-basket-title {
    font-size: 12px;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 8px;
    letter-spacing: .5px;
}

.rb-basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

    .rb-basket-item:last-child {
        border-bottom: none;
    }

.rb-basket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 2px solid rgba(255,255,255,.2);
    font-weight: 800;
    font-size: 14px;
}

.rb-basket-btn {
    display: block;
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
    transition: background .15s;
}

    .rb-basket-btn:hover {
        background: #1d4ed8;
    }

/* ── مودال فاکتور ── */
.rb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

 

.rb-modal {
    background: #fff;
    border-radius: 16px;
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: modalIn .2s ease;
}

@keyframes modalIn {
    from

{
    transform: scale(.95);
    opacity: 0;
}

to {
    transform: scale(1);
    opacity: 1;
}

}

.rb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.rb-modal-title {
    font-size: 15px;
    font-weight: 800;
    color: #0d1f5c;
}

.rb-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

    .rb-modal-close:hover {
        background: #e2e8f0;
    }

.rb-modal-body {
    padding: 20px;
}

/* جدول فاکتور */
.inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .inv-table th {
        background: #f8fafc;
        padding: 8px 10px;
        font-size: 11.5px;
        font-weight: 700;
        color: #475569;
        text-align: right;
        border-bottom: 2px solid #e2e8f0;
    }

    .inv-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
    }

    .inv-table tr:last-child td {
        border-bottom: none;
    }

.inv-row-discount td {
    color: #059669;
}

.inv-row-extra td {
    color: #dc2626;
}

.inv-row-total {
    background: #eff6ff;
    font-weight: 800;
}

    .inv-row-total td {
        color: #1e3a8a;
        font-size: 14px;
        padding: 10px;
        border-top: 2px solid #bfdbfe;
    }

.inv-pernight {
    text-align: center;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: #166534;
}

    .inv-pernight strong {
        font-size: 16px;
    }

/* نمونه کارت */
.demo-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    max-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}



.rb-svc-free {
    color: #059669;
}



.rb-pol-cancel {
    color: #dc2626;
}


/* چک‌باکس سرویس */
.rb-svc-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}

    .rb-svc-check:hover {
        background: #fffbeb;
    }

    .rb-svc-check input[type=checkbox] {
        margin-top: 2px;
        accent-color: #d97706;
        width: 14px;
        height: 14px;
        cursor: pointer;
    }

.rb-svc-check-label {
    flex: 1;
    font-size: 11.5px;
    color: #334155;
}

.rb-svc-check-price {
    font-size: 11px;
    font-weight: 700;
    color: #d97706;
    white-space: nowrap;
    margin-top: 1px;
}

/* دکمه انتخاب */
.rb-btn-select {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

    .rb-btn-select.select {
        background: linear-gradient(135deg,#1d4ed8,#2563eb);
        color: #fff;
    }

        .rb-btn-select.select:hover {
            filter: brightness(1.1);
        }

    .rb-btn-select.remove {
        background: #fef2f2;
        color: #dc2626;
        border: 1.5px solid #fecaca;
    }

        .rb-btn-select.remove:hover {
            background: #fee2e2;
        }

/* ── ستون چهارم ── */
.rb-cart-col {
    background: #f8faff;
    border-right: 2px solid #e0e7ff;
    min-width: 220px;
    padding: 0 !important;
    vertical-align: top;
}

.rb-cart-header {
    background: #1e3a8a;
    color: #fff;
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.rb-cart-empty {
    padding: 20px 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 11.5px;
}

.rb-cart-item {
    padding: 8px 14px;
    border-bottom: 1px dashed #e0e7ff;
    animation: slideIn .2s ease;
}

@keyframes slideIn {
    from

{
    opacity: 0;
    transform: translateX(-8px)
}

to {
    opacity: 1;
    transform: translateX(0)
}

}

.rb-cart-item-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #0d1f5c;
    margin-bottom: 3px;
}

.rb-cart-item-line {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

.rb-cart-item-price {
    font-size: 12.5px;
    font-weight: 800;
    color: #1d4ed8;
    margin-top: 4px;
}

.rb-cart-item-extras {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #e0e7ff;
}

.rb-cart-item-extra-row {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: #d97706;
}

/* کد تخفیف */
.rb-coupon-wrap {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e7ff;
}

.rb-coupon-label {
    font-size: 11px;
    color: #475569;
    margin-bottom: 4px;
    font-weight: 600;
}

.rb-coupon-row {
    display: flex;
    gap: 6px;
}

.rb-coupon-input {
    flex: 1;
    border: 1.5px solid #c7d2fe;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    direction: ltr;
    text-align: center;
    transition: border-color .15s;
}

    .rb-coupon-input:focus {
        border-color: #6366f1;
    }

.rb-coupon-btn {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
    white-space: nowrap;
}

    .rb-coupon-btn:hover {
        background: #4f46e5;
    }

.rb-coupon-result {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
}

.rb-coupon-ok {
    color: #059669;
}

.rb-coupon-err {
    color: #dc2626;
}

/* footer سبد */
.rb-cart-footer {
    padding: 12px 14px;
    background: #eff6ff;
    border-top: 2px solid #bfdbfe;
}

.rb-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #475569;
    margin-bottom: 4px;
}

.rb-cart-discount-row {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: #059669;
    margin-bottom: 4px;
    font-weight: 600;
}

.rb-cart-grand {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    color: #1e3a8a;
    font-size: 14px;
    padding-top: 6px;
    border-top: 1.5px solid #bfdbfe;
    margin-top: 4px;
}

/* چک‌باکس قوانین */
.rb-terms-wrap {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 8px;
}

.rb-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

    .rb-terms-check input {
        margin-top: 2px;
        accent-color: #1d4ed8;
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

.rb-terms-label {
    font-size: 11px;
    color: #334155;
    line-height: 1.5;
}

.rb-terms-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
}

/* دکمه رزرو */
.rb-cart-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg,#1d4ed8,#2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
    transition: filter .15s;
}

    .rb-cart-btn:hover:not(:disabled) {
        filter: brightness(1.1);
    }

    .rb-cart-btn:disabled {
        background: #94a3b8;
        cursor: not-allowed;
    }



.rb-modal-overlay.show {
    display: flex;
}


@keyframes modalIn {
    from

{
    transform: scale(.95);
    opacity: 0
}

to {
    transform: scale(1);
    opacity: 1
}

}







.inv-table th {
    background: #f8fafc;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-align: right;
    border-bottom: 2px solid #e2e8f0;
}

.inv-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.inv-row-discount td {
    color: #059669;
}

.inv-row-extra td {
    color: #dc2626;
}

.inv-row-service td {
    color: #d97706;
}

.inv-row-coupon td {
    color: #7c3aed;
}

.inv-row-total {
    background: #eff6ff;
}

    .inv-row-total td {
        font-weight: 800;
        color: #1e3a8a;
        font-size: 14px;
        padding: 10px;
        border-top: 2px solid #bfdbfe;
    }

#rb-cart-sidebar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: -100%;
    width: 500px;
    max-width: 95vw;
    height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 30px rgba(0,0,0,.2);
    transition: bottom .35s ease;
    z-index: 9999;
    overflow: auto;
}

    /* حالت باز */
    #rb-cart-sidebar.open {
        bottom: 0;
    }



#rb-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

    #rb-cart-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

.rb-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    padding: 15px;
}

.rb-cart-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.popover-dark.popover {
    --bs-popover-bg: #111111;
    --bs-popover-border-color: #111111;
    --bs-popover-body-color: #ffffff;
    max-width: 280px;
    font-size: 12px;
}

    .popover-dark.popover .popover-arrow::after {
        border-top-color: #111111;
    }

.rb-left-thead-spacer {
    height: 41px; /* همان ارتفاع thead جدول */
    margin-bottom: 8px;
    background: #f0f4ff;
    border-bottom: 2px solid #c8d4f8;
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 900px) {
    #rb-rooms-col, #rb-cart-sidebar

{
    grid-column: 1 / -1;
}
}


/* ── Layout اصلی ── */
.rb > div {
    display: block;
    width: 100%;
}

#rb-rooms-col {
    width: 100%;
    padding-bottom: 80px; /* فضا برای cart-bar */
}

/* ── rb-card باید full width باشه ── */
.rb-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    width: 100%; /* ← اضافه کن */
}
.rb-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 80px; /* 80px برای cart-bar پایین */
}
.rb-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #3b5bdb;
    cursor: pointer;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 3px 8px;
    margin: 2px 0;
    transition: all .15s;
}

    .rb-info-btn:hover {
        background: #dbeafe;
    }




/* تمام پنل‌هایی که قرار است به مودال منتقل شوند را مخفی کن */
.gs-panel {
    display: none !important;
}

/* استایل کلی برای ردیف‌های داخل مودال */
.gs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

    /* استایل دکمه‌های مثبت و منفی */
    .gs-row button {
        width: 36px;
        height: 36px;
        border: 1px solid #dee2e6;
        background: #ffffff;
        color: #495057;
        border-radius: 8px; /* کمی گرد */
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
    }

        /* افکت هاور (زمانی که موس روی دکمه می‌رود) */
        .gs-row button:hover {
            background-color: #007bff;
            color: #ffffff;
            border-color: #007bff;
        }

    /* استایل عدد وسط */
    .gs-row span[id*="-val-"] {
        margin: 0 15px;
        font-weight: 600;
        font-size: 16px;
        min-width: 25px;
        display: inline-block;
        text-align: center;
    }
/* استایل زیبا برای انتخاب سن */
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 5px;
}

    select:focus {
        outline: none;
        border-color: #007bff;
    }
/* مودال کانتینر اصلی */
#guestModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

/* محتوای مودال */
.modal-content-container {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* حداکثر ارتفاع 80 درصد صفحه */
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden; /* جلوگیری از اسکرول کل صفحه */
}

/* بخش محتوا که باید اسکرول شود */
#modal-body-content {
    padding: 20px;
    overflow-y: auto; /* فعال شدن اسکرول عمودی */
    flex-grow: 1;
}


/* وقتی مودال باز است و انتخاب هنوز تایید نشده */
.btn-pending {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
    cursor: wait !important;
}
