/* ============================================================
   Roamalot Tour Booking — Product Page Passenger Selector
   ============================================================ */

.rtb-passenger-selector {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0;
    box-sizing: border-box;
}

.rtb-section-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e5e7eb !important;
}

/* ── Each passenger row ── */
.rtb-pax-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}
.rtb-pax-row:last-of-type {
    border-bottom: none !important;
}

.rtb-pax-row label {
    flex: 1 1 auto !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #374151 !important;
    margin: 0 !important;
    cursor: default !important;
    min-width: 100px;
}
.rtb-pax-sub {
    display: block !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    color: #9ca3af !important;
}

/* ── Counter: [−] [number] [+] ── */
.rtb-pax-counter {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #fff !important;
}

/* Both +/− buttons — use !important to fight theme resets */
.rtb-pax-counter .rtb-btn-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #374151 !important;
    transition: background 0.15s ease !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    /* Reset any theme button styles */
    letter-spacing: normal !important;
    text-transform: none !important;
}
.rtb-pax-counter .rtb-btn-count:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
.rtb-pax-counter .rtb-btn-count:focus {
    outline: 2px solid #2563eb !important;
    outline-offset: -2px !important;
}
.rtb-pax-counter .rtb-btn-count:active {
    background: #e5e7eb !important;
}

/* Number input between the buttons */
.rtb-pax-counter .rtb-pax-input {
    width: 46px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #d1d5db !important;
    border-right: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
}
.rtb-pax-counter .rtb-pax-input::-webkit-outer-spin-button,
.rtb-pax-counter .rtb-pax-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.rtb-pax-counter .rtb-pax-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ── Per-person price label ── */
.rtb-pax-price {
    font-size: 13px !important;
    color: #6b7280 !important;
    min-width: 80px !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}
.rtb-per-person {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

/* ── Total preview bar ── */
.rtb-total-preview {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 16px !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 14px !important;
}
.rtb-total-preview span {
    color: #fff !important;
    font-weight: 500 !important;
}
.rtb-total-preview strong,
#rtb-price-preview {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .rtb-pax-row {
        flex-wrap: wrap !important;
    }
    .rtb-pax-row label {
        flex: 0 0 100% !important;
        margin-bottom: 6px !important;
    }
    .rtb-pax-price {
        margin-left: auto !important;
    }
}

/* ============================================================
   RTB Product Page — Tour Detail Tabs
   ============================================================ */

.rtb-product-tabs {
    margin: 32px 0 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Tab nav bar ── */
.rtb-tab-nav {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8fafc !important;
    border-bottom: 2px solid #e5e7eb !important;
    overflow-x: auto;
    flex-wrap: nowrap;
}
.rtb-tab-nav li {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}
.rtb-tab-btn {
    display: inline-block !important;
    padding: 14px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: color 0.2s, border-color 0.2s !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}
.rtb-tab-btn:hover {
    color: #1f2937 !important;
    background: #f1f5f9 !important;
}
.rtb-tab-btn.rtb-tab-active {
    color: #2563eb !important;
    border-bottom-color: #2563eb !important;
    background: #fff !important;
}

/* ── Tab panels ── */
.rtb-tab-panel {
    display: none;
    padding: 28px 28px 24px;
    animation: rtbFadeIn 0.18s ease;
}
.rtb-tab-panel-active {
    display: block !important;
}
@keyframes rtbFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── ITINERARY ── */
.rtb-itinerary-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.rtb-itin-day-block {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f4f8;
    align-items: start;
}
.rtb-itin-day-block:last-child {
    border-bottom: none;
}
.rtb-itin-day-badge {
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    line-height: 1.3;
    margin-top: 2px;
    flex-shrink: 0;
}
.rtb-itin-day-content {
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
}
.rtb-itin-day-content p { margin: 0 0 8px; }
.rtb-itin-day-content ul,
.rtb-itin-day-content ol { padding-left: 20px; margin: 0 0 8px; }

/* ── INCLUSIONS / EXCLUSIONS ── */
.rtb-inc-exc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 640px) {
    .rtb-inc-exc-grid { grid-template-columns: 1fr; }
}
.rtb-inc-exc-heading {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 12px !important;
    padding: 10px 14px !important;
    border-radius: 8px 8px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.rtb-inc-heading {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border-bottom: 2px solid #86efac !important;
}
.rtb-exc-heading {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-bottom: 2px solid #fca5a5 !important;
}
.rtb-ie-icon {
    font-weight: 900;
    font-size: 16px;
}
.rtb-inc-col .rtb-inc-exc-content {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: #166534;
    line-height: 1.7;
}
.rtb-exc-col .rtb-inc-exc-content {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 14px 16px;
    font-size: 14px;
    color: #991b1b;
    line-height: 1.7;
}
.rtb-inc-exc-content ul,
.rtb-inc-exc-content ol {
    padding-left: 18px;
    margin: 0;
}
.rtb-inc-exc-content li { margin-bottom: 4px; }
.rtb-inc-exc-content p  { margin: 0 0 6px; }

/* ── TERMS ── */
.rtb-terms-content {
    font-size: 13px;
    color: #374151;
    line-height: 1.8;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
}
.rtb-terms-content p   { margin: 0 0 10px; }
.rtb-terms-content ul,
.rtb-terms-content ol  { padding-left: 20px; margin: 0 0 10px; }
.rtb-terms-content h3,
.rtb-terms-content h4  { font-size: 14px; font-weight: 700; margin: 14px 0 6px; color: #1f2937; }

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
    .rtb-tab-panel { padding: 20px 16px; }
    .rtb-itin-day-block { grid-template-columns: 60px 1fr; gap: 0 12px; }
    .rtb-tab-btn { padding: 12px 14px !important; font-size: 13px !important; }
}

/* ═══════════════════════════════════════════════════
   HOTEL STAY MODULE — v2
   ═══════════════════════════════════════════════════ */
.rtb-hotel-selector,
.rtb-activity-selector {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:20px 24px;
    margin:20px 0;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
}

/* Hotel info bar */
.rtb-hotel-info-bar { margin-bottom:14px; }
.rtb-hotel-info-main { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.rtb-hotel-name  { font-weight:700; color:#1f2937; font-size:15px; }
.rtb-hotel-stars { color:#f59e0b; font-size:14px; letter-spacing:1px; }
.rtb-hotel-badges { display:flex; flex-wrap:wrap; gap:6px; }
.rtb-hbadge {
    font-size:12px; color:#374151; background:#f3f4f6;
    padding:3px 9px; border-radius:20px; border:1px solid #e5e7eb;
}
.rtb-hbadge-green { background:#d1fae5; border-color:#6ee7b7; color:#065f46; }
.rtb-hbadge-red   { background:#fee2e2; border-color:#fca5a5; color:#7f1d1d; }

/* ─── GUEST/ROOM DROPDOWN TRIGGER ─── */
.rtb-guest-room-wrap { position:relative; margin:14px 0 0; }

.rtb-guest-room-trigger {
    display:flex; align-items:center; gap:8px;
    width:100%; padding:11px 16px;
    border:2px solid #e5e7eb; border-radius:8px;
    background:#fff; cursor:pointer; font-size:14px; color:#1f2937;
    text-align:left; transition:border-color .15s;
}
.rtb-guest-room-trigger:hover { border-color:#2563eb; }
.rtb-grt-caret { margin-left:auto; font-size:11px; color:#9ca3af; transition:transform .15s; }
.rtb-guest-room-dropdown.rtb-grd-open ~ .rtb-guest-room-trigger .rtb-grt-caret,
.rtb-grd-open .rtb-grt-caret { transform:rotate(180deg); }

/* ─── DROPDOWN PANEL ─── */
.rtb-guest-room-dropdown {
    display:none;
    position:absolute; top:calc(100% + 4px); left:0;
    width:320px; min-width:100%;
    background:#fff; border:1px solid #e5e7eb;
    border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12);
    z-index:9999; overflow:hidden;
}

/* Room tabs bar */
.rtb-grd-tabs-bar {
    display:flex; align-items:center; flex-wrap:wrap;
    gap:4px; padding:10px 12px 8px;
    border-bottom:1px solid #f0f0f0; background:#f9fafb;
}
.rtb-room-tabs { display:flex; gap:4px; flex-wrap:wrap; flex:1; }
.rtb-room-tab {
    padding:4px 11px; border-radius:6px; border:1px solid #d1d5db;
    background:#fff; font-size:12px; font-weight:600; color:#374151;
    cursor:pointer; transition:all .1s;
}
.rtb-room-tab-active { background:#2563eb; border-color:#2563eb; color:#fff; }
.rtb-add-room-btn {
    font-size:11px; font-weight:700; color:#2563eb;
    background:none; border:none; cursor:pointer; white-space:nowrap;
    padding:4px 6px; letter-spacing:.3px;
}
.rtb-add-room-btn:hover { text-decoration:underline; }

/* Room panel */
.rtb-room-panel { padding:12px 14px; }
.rtb-grd-row {
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 0; border-bottom:1px solid #f3f4f6;
}
.rtb-grd-row:last-of-type { border-bottom:none; }
.rtb-grd-row-label { flex:1; }
.rtb-grd-row-title { display:block; font-size:14px; font-weight:600; color:#1f2937; }
.rtb-grd-row-sub   { display:block; font-size:11px; color:#9ca3af; }

/* Counter buttons */
.rtb-grd-counter { display:flex; align-items:center; gap:2px; }
.rtb-grd-minus,
.rtb-grd-plus {
    width:30px; height:30px; border-radius:50%;
    border:1px solid #d1d5db; background:#fff;
    font-size:18px; line-height:1; color:#2563eb;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:all .1s;
}
.rtb-grd-minus:hover:not(:disabled),
.rtb-grd-plus:hover:not(:disabled)  { background:#2563eb; color:#fff; border-color:#2563eb; }
.rtb-grd-btn-dis,
.rtb-grd-minus:disabled,
.rtb-grd-plus:disabled  { color:#d1d5db; border-color:#e5e7eb; cursor:default; }
.rtb-grd-num { min-width:28px; text-align:center; font-size:15px; font-weight:700; color:#1f2937; }

/* Remove room */
.rtb-grd-remove-wrap { padding-top:8px; text-align:right; }
.rtb-grd-remove-room {
    font-size:12px; color:#ef4444; background:none; border:none;
    cursor:pointer; text-decoration:underline; padding:0;
}

/* Done button */
.rtb-grd-footer { padding:10px 14px; border-top:1px solid #f0f0f0; }
.rtb-grd-done-btn {
    width:100%; padding:10px; background:#2563eb; color:#fff;
    border:none; border-radius:8px; font-size:14px; font-weight:700;
    cursor:pointer; transition:background .15s;
}
.rtb-grd-done-btn:hover { background:#1d4ed8; }

/* ─── ROOM CALCULATION SUMMARY ─── */
.rtb-hotel-room-summary { margin-top:12px; }
.rtb-hotel-calc {
    background:#f8fafc; border:1px solid #e2e8f0;
    border-radius:8px; padding:12px 16px;
}
.rtb-calc-row {
    display:flex; justify-content:space-between;
    padding:5px 0; font-size:14px; color:#374151;
    border-bottom:1px solid #f1f5f9;
}
.rtb-calc-row:last-child { border-bottom:none; }
.rtb-calc-total {
    font-weight:700; font-size:15px; color:#1f2937;
    padding-top:8px; border-top:2px solid #e2e8f0;
}
.rtb-auto-rooms {
    display:block; margin-top:8px; font-size:12px; color:#2563eb;
    background:#eff6ff; padding:5px 10px; border-radius:6px;
}

/* ═══════════════════════════════════════════════════
   ACTIVITIES MODULE
   ═══════════════════════════════════════════════════ */
.rtb-activity-info-bar {
    display:flex; flex-wrap:wrap; align-items:center;
    gap:8px; margin-bottom:12px;
    padding:8px 12px; background:#f0fdf4;
    border-radius:8px; border:1px solid #bbf7d0;
}
.rtb-act-city { color:#166534; font-size:13px; font-weight:600; }
.rtb-act-description { color:#6b7280; font-size:13px; margin:0 0 12px; line-height:1.6; }

@media (max-width:480px){
    .rtb-guest-room-dropdown { width:100%; left:0; right:0; }
    .rtb-hotel-badges { gap:4px; }
    .rtb-hbadge { font-size:11px; }
}

/* ═══════════════════════════════════════ HOTEL NIGHTS ROW IN DROPDOWN v1.8.4 */
/* Nights row inside the guest/room dropdown footer */
.rtb-grd-nights-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 6px;
    border-top: 1px solid #f0f0f0;
}
.rtb-grd-nights-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}
/* Discount rows in summary */
.rtb-calc-discount span,
.rtb-calc-discount strong { color: #16a34a !important; }

/* ═══════════════════════════════════════ ACTIVITY TIERS v1.8.7 */
.rtb-tier-selector { margin:12px 0 10px; }
.rtb-tier-label { font-size:12px; font-weight:600; color:#6b7280; margin-bottom:6px; text-transform:uppercase; letter-spacing:.4px; }
.rtb-tier-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.rtb-tier-tab {
    padding:8px 14px; border:2px solid #e5e7eb; border-radius:8px;
    background:#fff; font-size:13px; font-weight:600; color:#374151;
    cursor:pointer; transition:all .15s; line-height:1.3;
    display:flex; flex-direction:column; align-items:center; gap:2px;
}
.rtb-tier-tab:hover { border-color:#2563eb; color:#2563eb; }
.rtb-tier-tab-active { border-color:#2563eb; background:#eff6ff; color:#2563eb; }
.rtb-tier-price-hint { font-size:11px; font-weight:500; color:#6b7280; }
.rtb-tier-tab-active .rtb-tier-price-hint { color:#2563eb; }
.rtb-tier-single-label { margin:8px 0 10px; }
.rtb-tier-badge {
    display:inline-block; background:#eff6ff; color:#2563eb;
    border:1px solid #bfdbfe; border-radius:20px;
    font-size:12px; font-weight:600; padding:3px 12px;
}

/* ══════════════════════════════════════ UNAVAILABILITY NOTICE */
.rtb-unavailable-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff1f2;
    border: 2px solid #fca5a5;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0 18px;
}
.rtb-unavailable-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.rtb-unavailable-text {
    font-size: 15px;
    font-weight: 600;
    color: #dc2626;
    line-height: 1.4;
}
/* Hide add-to-cart area when tour is unavailable */
.rtb-tour-unavailable .woocommerce-booking-add-to-cart,
.rtb-tour-unavailable .booking_form_button,
.rtb-tour-unavailable .single_add_to_cart_button,
.rtb-tour-unavailable .wc-bookings-booking-form .book_now_button {
    display: none !important;
}
