/* ============================================================
   Roamalot Tour Booking — Cart / Checkout Page Styles
   ============================================================ */

.rtb-cart-section {
    margin-top: 30px;
    width: 100%;
    clear: both;
    float: none;
    box-sizing: border-box;
}

/* ── Card ── */
.rtb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.rtb-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rtb-icon { font-size: 20px; }

.rtb-optional-badge {
    font-size: 11px;
    font-weight: 600;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
}

.rtb-card-desc { color: #6b7280; font-size: 14px; margin-bottom: 20px; }

/* ── Passenger block ── */
.rtb-passenger-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.rtb-pax-heading {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rtb-pax-type-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}
.rtb-type-adult  { background: #dcfce7; color: #166534; }
.rtb-type-child  { background: #fef9c3; color: #854d0e; }
.rtb-type-infant { background: #ffe4e6; color: #9f1239; }

.rtb-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.rtb-form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.rtb-form-field label .required { color: #ef4444; }

.rtb-form-field input,
.rtb-form-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}
.rtb-form-field input:focus,
.rtb-form-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    outline: none;
}

/* ── Flight route info ── */
.rtb-flight-route-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eff6ff;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.rtb-airport-pill { text-align: center; }
.rtb-airport-pill strong { display: block; font-size: 20px; color: #1d4ed8; }
.rtb-airport-pill span { font-size: 12px; color: #6b7280; }
.rtb-route-arrow { font-size: 22px; color: #2563eb; }

.rtb-date-info {
    font-size: 13px;
    color: #374151;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.rtb-duration-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

/* ── Buttons ── */
.rtb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    text-decoration: none;
}
.rtb-btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.rtb-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.rtb-btn-outline {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}
.rtb-btn-outline:hover { border-color: #9ca3af; }

/* ── Loading ── */
.rtb-loading { text-align: center; padding: 30px; color: #6b7280; }
.rtb-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: rtb-spin 1s linear infinite;
    margin: 0 auto 12px;
}
@keyframes rtb-spin { to { transform: rotate(360deg); } }

/* ── Notices ── */
.rtb-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin: 12px 0;
}
.rtb-notice-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.rtb-notice-info  { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ── Flight results list ── */
#rtb-flight-results h4 { font-size: 15px; font-weight: 700; margin: 16px 0 4px; }
.rtb-results-desc { font-size: 13px; color: #6b7280; margin-bottom: 12px; }

.rtb-flight-option {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    background: #fff;
}
.rtb-flight-option:hover  { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37,99,235,.1); }
.rtb-flight-option.selected { border-color: #2563eb; background: #eff6ff; }

.rtb-flight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.rtb-flight-route { font-size: 15px; font-weight: 700; color: #1f2937; }
.rtb-flight-price { font-size: 18px; font-weight: 800; color: #2563eb; }
.rtb-price-detail { font-size: 11px; color: #9ca3af; display: block; text-align: right; }

.rtb-flight-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.rtb-flight-meta span { display: inline-flex; align-items: center; gap: 4px; }

.rtb-direct-badge   { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.rtb-stop-badge     { background: #fef9c3; color: #854d0e; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }

.rtb-select-radio {
    position: absolute;
    top: 14px;
    right: 18px;
    accent-color: #2563eb;
    width: 18px;
    height: 18px;
}

/* ── Selected flight summary ── */
.rtb-selected-flight-summary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 10px;
    padding: 18px 22px;
    color: #fff;
    margin-top: 16px;
}
.rtb-selected-badge { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.rtb-selected-detail { font-size: 13px; opacity: .9; margin-bottom: 4px; }
.rtb-selected-price { font-size: 16px; font-weight: 700; margin: 10px 0; }
.rtb-selected-price strong { font-size: 20px; }

/* ── Admin CSS ── */
.rtb-order-meta h3 { color: #23282d; }
.rtb-order-meta table th { background: #f1f1f1; }

@media (max-width: 640px) {
    .rtb-form-grid { grid-template-columns: 1fr; }
    .rtb-flight-header { flex-direction: column; }
}
