/* ============================================
   Result Banner (Compact Horizontal Bar)
   ============================================ */
.result-banner {
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}
.result-banner-success { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%); border-bottom-color: #86efac; }
.result-banner-error { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 50%, #fef2f2 100%); border-bottom-color: #fca5a5; }
.result-banner-pending { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%); border-bottom-color: #fcd34d; }

.result-banner-inner {
    display: flex; align-items: center; gap: 20px;
    animation: fadeInUp 0.4s ease-out both;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.result-banner-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }

.result-banner-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.result-banner-icon.success { background: rgba(16,185,129,0.15); color: #059669; }
.result-banner-icon.error { background: rgba(239,68,68,0.15); color: #dc2626; }
.result-banner-icon.pending { background: rgba(245,158,11,0.15); color: #d97706; }

/* Checkmark Animation (small) */
.result-banner-icon .checkmark {
    width: 28px; height: 28px; display: block;
    stroke-width: 3; stroke: #059669; stroke-miterlimit: 10;
    animation: rb-fill 0.4s ease-in-out 0.4s forwards, rb-scale 0.3s ease-in-out 0.9s both;
}
.result-banner-icon .checkmark-circle {
    stroke-dasharray: 166; stroke-dashoffset: 166;
    stroke-width: 3; stroke: #059669; fill: none;
    animation: rb-stroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards;
}
.result-banner-icon .checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: rb-stroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.8s forwards;
}
@keyframes rb-stroke { 100% { stroke-dashoffset: 0; } }
@keyframes rb-scale { 0%,100% { transform: none; } 50% { transform: scale3d(1.1,1.1,1); } }
@keyframes rb-fill { 100% { box-shadow: inset 0 0 0 15px rgba(16,185,129,0.08); } }

.result-banner-text { min-width: 0; }
.result-banner-title { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.3; }
.result-banner-subtitle { font-size: 12px; color: #64748b; margin: 2px 0 0; }
.result-error-code {
    display: inline-block; font-family: 'Courier New', monospace;
    font-size: 11px; font-weight: 600; color: #dc2626;
    background: rgba(239,68,68,0.1); padding: 1px 6px; border-radius: 4px;
}

.result-banner-center { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }

/* Option Deadline (On Rezervasyon) */
.result-option-deadline {
    display: flex; align-items: center; gap: 6px;
    background: #fef2f2; border: 1px solid #fecaca;
    padding: 7px 14px; border-radius: 10px;
    font-size: 12px; color: #991b1b;
    animation: optionPulse 2s ease-in-out infinite;
}
.result-option-deadline > i { color: #dc2626; font-size: 14px; }
/* Açıklama satırının sağında küçük hâli (B6). */
.result-option-deadline-inline {
    display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle;
    padding: 1px 8px; border-radius: 6px; font-size: 11px; animation: none;
}
.result-option-deadline-inline > i { font-size: 11px; }
.result-option-deadline strong { color: #dc2626; }
.result-option-countdown {
    font-family: 'Courier New', monospace; font-weight: 700;
    font-size: 13px; color: #dc2626;
    background: rgba(220,38,38,0.08); padding: 2px 8px;
    border-radius: 6px; margin-left: 2px;
}
@keyframes optionPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.15); }
    50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}
.result-banner-pnr {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.7); backdrop-filter: blur(4px);
    padding: 8px 14px; border-radius: 10px;
    border: 1px solid rgba(50,144,255,0.2);
}
.result-pnr-label { font-size: 10px; font-weight: 600; color: #94a3b8; text-transform: uppercase; }
.result-pnr-code {
    font-size: 20px; font-weight: 700; color: #3290ff;
    font-family: 'Courier New', monospace; letter-spacing: 3px;
}
.result-pnr-copy {
    width: 28px; height: 28px; border: 1px solid #e2e8f0;
    border-radius: 6px; background: #fff; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; font-size: 13px;
}
.result-pnr-copy:hover { border-color: #3290ff; color: #3290ff; }
.result-pnr-copy.copied { background: #10b981; border-color: #10b981; color: #fff; }

.result-banner-actions { display: flex; gap: 6px; flex-shrink: 0; }
.rb-action {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid #e2e8f0; background: rgba(255,255,255,0.7);
    color: #475569; font-size: 10px; font-weight: 500;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.rb-action i { font-size: 16px; }
.rb-action:hover { border-color: #3290ff; color: #3290ff; background: #fff; }
.rb-action.rb-action-primary {
    background: #3290ff; border-color: #3290ff; color: #fff;
}
.rb-action.rb-action-primary:hover { background: #1a7ae8; }

@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.result-banner-icon.error { animation: shake 0.5s ease-in-out; }
.result-banner-icon.pending i { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============================================
   Booking Detail Cards (rd- prefix)
   ============================================ */
#bookingDetail { padding-top: 24px; }

.rd-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; overflow: hidden;
}
.rd-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}
.rd-card-title {
    font-size: 14px; font-weight: 600; color: #1e293b;
    display: flex; align-items: center; gap: 8px;
}
.rd-card-title i { color: #3290ff; }
.rd-card-body { padding: 20px; }
.rd-card-body.p-0 { padding: 0; }

.rd-badge {
    font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
}
.rd-badge-success { background: rgba(16,185,129,0.1); color: #059669; }
.rd-badge-warning { background: rgba(245,158,11,0.1); color: #d97706; }
.rd-badge-danger { background: rgba(239,68,68,0.1); color: #dc2626; }

/* Flight Segments */
.rd-segment { margin-bottom: 24px; }
.rd-segment:last-child { margin-bottom: 0; }
.rd-segment-label {
    font-size: 12px; font-weight: 600; color: #64748b;
    text-transform: uppercase; margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.rd-segment-date {
    font-weight: 400; color: #94a3b8;
    margin-left: auto; text-transform: none;
}
/* Seçilen paket (branded fare) rozeti — rezervasyon detayındaki .flight-package ile aynı ton */
.rd-segment-package {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 4px;
    background: #e0e7ff; color: #4338ca;
    font-size: 11px; font-weight: 600; text-transform: none;
}

/* Timeline Structure */
.rd-timeline { padding-left: 0; }

.rd-tl-point {
    display: flex; align-items: flex-start; gap: 14px;
}
.rd-tl-time {
    width: 48px; font-size: 15px; font-weight: 700;
    color: #1e293b; text-align: right; flex-shrink: 0;
}
.rd-tl-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: #3290ff; flex-shrink: 0; margin-top: 4px;
}
.rd-tl-info { flex: 1; }
.rd-tl-airport { font-size: 13px; font-weight: 600; color: #1e293b; }
.rd-tl-terminal { font-size: 11px; color: #94a3b8; }

/* Flight Info Card (between points) */
.rd-tl-flight {
    display: flex; padding: 14px 0;
    margin-left: 48px; padding-left: 20px;
    position: relative;
}
.rd-tl-line {
    position: absolute; left: 5px; top: 0; bottom: 0;
    width: 2px; background: #e2e8f0;
}
.rd-tl-flight-card {
    flex: 1; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 14px;
}
.rd-tl-flight-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.rd-tl-fi {
    display: flex; align-items: flex-start; gap: 8px;
}
.rd-tl-fi > i { color: #3290ff; font-size: 14px; margin-top: 2px; }
.rd-tl-fl { display: block; font-size: 10px; color: #94a3b8; }
.rd-tl-fv { display: block; font-size: 12px; font-weight: 600; color: #1e293b; }
.rd-tl-fv-highlight { color: #f59e0b; }

/* Layover / Aktarma */
.rd-tl-layover {
    display: flex; padding: 14px 0;
    margin-left: 48px; padding-left: 20px;
    position: relative;
}
.rd-tl-layover-line {
    position: absolute; left: 5px; top: 0; bottom: 0; width: 2px;
    background: repeating-linear-gradient(to bottom, #f59e0b 0, #f59e0b 6px, transparent 6px, transparent 12px);
}
.rd-tl-layover-card {
    flex: 1; display: flex; gap: 12px;
    background: #fffbeb; border: 1px solid rgba(245,158,11,0.3);
    border-radius: 8px; padding: 14px;
}
.rd-tl-layover-icon {
    width: 38px; height: 38px; background: #fff;
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.rd-tl-layover-icon i { font-size: 18px; color: #f59e0b; }
.rd-tl-layover-body { flex: 1; }
.rd-tl-layover-title {
    font-size: 11px; font-weight: 600; color: #b45309;
    text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px;
}
.rd-tl-layover-dur { font-size: 13px; color: #1e293b; }
.rd-tl-layover-dur strong { color: #f59e0b; font-weight: 700; }
.rd-tl-layover-note {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: #64748b; margin-top: 6px;
    padding-top: 6px; border-top: 1px dashed rgba(245,158,11,0.3);
}
.rd-tl-layover-note i { color: #3290ff; font-size: 12px; }

/* Airport Change Layover Variant */
.rd-tl-layover-card.airport-change {
    background: #fef2f2; border-color: rgba(239,68,68,0.3);
}
.rd-tl-layover-card.airport-change .rd-tl-layover-icon { background: #fee2e2; }
.rd-tl-layover-card.airport-change .rd-tl-layover-icon i { color: #dc2626; }
.rd-tl-layover-card.airport-change .rd-tl-layover-title { color: #b91c1c; }
.rd-tl-layover-card.airport-change .rd-tl-layover-dur strong { color: #dc2626; }
.rd-tl-layover-card.airport-change .rd-tl-layover-note {
    border-top-color: rgba(239,68,68,0.3); color: #b91c1c; font-weight: 500;
}
.rd-tl-layover-card.airport-change .rd-tl-layover-note i { color: #dc2626; }

/* Journey Summary */
.rd-journey-summary {
    display: flex; gap: 12px; margin-top: 16px;
    padding: 12px; background: #f8fafc;
    border-radius: 8px; border: 1px solid #e2e8f0;
}
.rd-js-item {
    display: flex; align-items: center; gap: 10px;
    flex: 1; padding: 10px; background: #fff; border-radius: 6px;
}
.rd-js-item > i { font-size: 18px; color: #3290ff; }
.rd-js-label { display: block; font-size: 10px; color: #94a3b8; }
.rd-js-value { display: block; font-size: 12px; font-weight: 600; color: #1e293b; }

/* Passenger Cards */
.rd-passenger {
    border-bottom: 1px solid #e2e8f0;
}
.rd-passenger:last-child { border-bottom: none; }
.rd-passenger-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: #f8fafc;
}
.rd-passenger-name {
    display: flex; align-items: center; gap: 12px;
}
.rd-pax-badge {
    width: 28px; height: 28px; border-radius: 8px;
    background: #3290ff; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.rd-pax-type {
    display: block; font-size: 12px; color: #64748b; margin-top: 2px;
}
.rd-passenger-pnr { text-align: right; }

.rd-label {
    display: block; font-size: 11px; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.rd-value { font-size: 13px; font-weight: 600; color: #1e293b; }
.rd-value-mono {
    font-size: 13px; font-weight: 700; color: #3290ff;
    font-family: 'Courier New', monospace; letter-spacing: 0.5px;
}

.rd-passenger-body { padding: 16px 20px; }

.rd-ticket-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-bottom: 16px;
}
.rd-ticket-item {
    display: flex; flex-direction: column; gap: 4px;
}

/* Ancillary Table */
.rd-anc-table {
    width: 100%; border-collapse: separate;
    border-spacing: 0; font-size: 12px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    overflow: hidden;
}
.rd-anc-table thead th {
    background: #f1f5f9; color: #64748b; font-weight: 600;
    font-size: 11px; padding: 8px 10px; text-align: center;
    border-bottom: 1px solid #e2e8f0; white-space: nowrap;
}
.rd-anc-table thead th i { color: #94a3b8; margin-right: 3px; font-size: 12px; }
.rd-anc-table tbody td {
    padding: 8px 10px; border-bottom: 1px solid #f1f5f9;
    vertical-align: middle; text-align: center;
}
.rd-anc-table tbody tr:last-child td { border-bottom: none; }

/* Segment cell */
.rd-anc-seg-cell { white-space: nowrap; min-width: 90px; }
.rd-anc-dir {
    display: block; font-size: 10px; font-weight: 600;
    color: #3290ff; text-transform: uppercase; line-height: 1.2;
}
.rd-anc-seg-code {
    display: block; font-size: 11px; font-weight: 700;
    color: #1e293b; font-family: 'Courier New', monospace;
}
.rd-anc-seg-route {
    display: block; font-size: 10px; color: #94a3b8;
}

/* Value cells */
.rd-anc-val {
    display: block; font-size: 12px; font-weight: 600; color: #1e293b;
}
.rd-anc-val.empty { color: #cbd5e1; font-weight: 400; }
.rd-anc-sub {
    display: block; font-size: 10px; color: #94a3b8; line-height: 1.3;
}
/* Ek hizmet fiyatı: rezervasyon detayındaki .anc-price ile aynı renk */
.rd-anc-price {
    font-weight: 600; color: #0d6efd; white-space: nowrap;
}
.rd-anc-emd {
    display: block; font-family: 'Courier New', monospace;
    font-size: 9px; color: #cbd5e1; margin-top: 1px;
}

/* Rowspan (leg-level baggage) */
.rd-anc-rowspan {
    vertical-align: middle; text-align: center;
    border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0;
    background: #fafbfc;
}

/* Empty cell */
.rd-anc-empty {
    color: #cbd5e1; text-align: center; font-style: italic;
}

/* Multiple items in one cell */
.rd-anc-multi {
    display: flex; flex-direction: column; gap: 4px;
}
.rd-anc-multi-item {
    padding: 3px 0;
}
.rd-anc-multi-item + .rd-anc-multi-item {
    border-top: 1px dashed #e2e8f0; padding-top: 4px;
}

/* Info List */
.rd-info-list {
    list-style: none; padding: 0; margin: 0;
}
.rd-info-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; font-size: 13px; color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.rd-info-list li:last-child { border-bottom: none; }
.rd-info-list li i { color: #3290ff; font-size: 14px; margin-top: 2px; flex-shrink: 0; }

/* ============================================
   Sidebar - Price Summary
   ============================================ */

.rd-price-section {
    margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.rd-price-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.rd-price-section-title {
    font-size: 11px; font-weight: 600; color: #64748b;
    text-transform: uppercase; margin-bottom: 8px;
}
.rd-price-row {
    display: flex; justify-content: space-between;
    font-size: 13px; color: #475569; padding: 4px 0;
}
.rd-price-row.sub { font-size: 12px; color: #94a3b8; padding-left: 8px; }
.rd-price-val { font-weight: 600; color: #1e293b; }
.rd-price-row.sub .rd-price-val { color: #64748b; font-weight: 500; }
.rd-baggage-sub {
    font-size: 11px; color: #64748b;
    padding: 2px 0 2px 20px;
    display: block;
}

.rd-price-totals {
    padding-top: 12px; margin-top: 4px;
    border-top: 2px dashed #e2e8f0;
}
.rd-price-row.total-sub {
    font-size: 13px; color: #64748b; padding: 4px 0;
}

.rd-total-box {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; margin-top: 12px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 10px;
}
.rd-total-label { color: rgba(255,255,255,0.8); font-size: 14px; }
.rd-total-price { color: #fff; font-size: 22px; font-weight: 700; }
.rd-total-price small { font-size: 12px; font-weight: 400; }

/* Sidebar Payment Info */
.rd-payment-badge {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.rd-payment-badge.paid {
    background: rgba(16,185,129,0.1); color: #059669;
}
.rd-payment-badge.pending {
    background: rgba(245,158,11,0.1); color: #d97706;
}
.rd-payment-badge.failed {
    background: rgba(239,68,68,0.1); color: #dc2626;
}
.rd-payment-detail { display: flex; flex-direction: column; gap: 8px; }
.rd-payment-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
}
.rd-payment-row .rd-label { font-size: 12px; text-transform: none; }
.rd-payment-row .rd-value {
    font-size: 12px; font-weight: 600; color: #1e293b;
    display: flex; align-items: center; gap: 4px;
}
.rd-payment-row .rd-value i { font-size: 14px; color: #3290ff; }
.rd-payment-row .rd-value-mono { font-size: 11px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .rd-ticket-grid { grid-template-columns: repeat(2, 1fr); }
    .result-banner-inner { flex-wrap: wrap; }
    .result-banner-left { flex: 1 1 100%; }
    .result-banner-center { flex: 0 0 auto; }
    .result-banner-actions { flex: 0 0 auto; margin-left: auto; }
}
@media (max-width: 767px) {
    .result-banner { padding: 12px 0; }
    .result-banner-inner { gap: 12px; }
    .result-banner-center { flex: 1 1 100%; }
    .result-pnr-code { font-size: 18px; letter-spacing: 2px; }
    .result-banner-actions { flex: 1 1 100%; justify-content: flex-start; }
    .rb-action { flex: 1; }

    .rd-tl-flight-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rd-tl-time { width: 40px; font-size: 13px; }
    .rd-tl-flight { margin-left: 40px; padding-left: 16px; }
    .rd-tl-layover { margin-left: 40px; padding-left: 16px; }
    .rd-journey-summary { flex-direction: column; }
    .rd-ticket-grid { grid-template-columns: 1fr 1fr; }
    .rd-passenger-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rd-passenger-pnr { text-align: left; }
    .rd-anc-table { font-size: 11px; }
    .rd-anc-table thead th { padding: 6px 8px; font-size: 10px; }
    .rd-anc-table tbody td { padding: 6px 8px; }
    .rd-anc-emd { display: none; }
}
