/* ============================================================
   Round-Trip / Multi-City Flight Card & Details-Modal Direction
   Sections. Extends one-way-flight-card.css / flight-details.css.
   Only "rt-" prefixed classes are defined here so the one-way
   UI and the rest of the application are never affected.
   Brand colors follow the existing flight-card theme (#aa0000).
   ============================================================ */

/* ---------- Round-trip badge (result card header) ---------- */
.rt-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #aa0000;
    color: #aa0000;
    background: #fff5f5;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    white-space: nowrap;
}

/* ---------- Return date under the departure date ---------- */
.rt-return-date {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.rt-return-date i {
    color: #aa0000;
}

/* ---------- Price labels ---------- */
.rt-total-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.rt-total-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rt-total-price .amount {
    font-size: 18px;
}

/* ---------- Direction headings (Going / Return) ---------- */
.rt-direction-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 2px 0 10px;
}

.rt-direction-label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 4px;
}

/* Going = solid brand red, Return = outlined (same palette as the one-way card) */
.rt-direction-label.going {
    color: #fff;
    background: #aa0000;
}

.rt-direction-label.return {
    color: #aa0000;
    background: #fff;
    border: 1px solid #aa0000;
}

.rt-direction-route {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: right;
}

.rt-direction-route i {
    color: #aa0000;
    font-size: 12px;
}

/* ---------- Separator between Going and Return (same trip) ---------- */
.rt-direction-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.rt-direction-divider::before,
.rt-direction-divider::after {
    content: "";
    flex: 1;
    border-top: 1px dashed #999;
}

/* ---------- Round-trip trip-card extras ---------- */
.rt-trip-card .rt-leg-footer {
    margin-top: 10px;
}

.rt-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

/* ---------- Flight-details modal (Going / Return sections) ---------- */
.rt-modal-trip-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.rt-modal-direction {
    padding: 14px 16px 0 16px;
}

.rt-modal-direction .rt-direction-heading {
    margin-bottom: 0;
}

/* Stronger separation between the Going and Return halves of the modal */
.rt-modal-direction.rt-return {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px dashed #dee2e6;
}

/* ============================================================
   Multi-City Trip Direction Sections (JourneyType = 3)
   Legs reuse the Going/Return classes above so the visual
   language stays identical across journey types.
   ============================================================ */

/* "Leg N" label uses the solid brand style (like "Going") */
.rt-direction-label.leg {
    color: #fff;
    background: #aa0000;
}

/* ---------- Responsive (mobile / tablet) ---------- */
@media (max-width: 768px) {
    .rt-direction-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .rt-direction-route {
        text-align: left;
    }

    .rt-card-actions {
        flex-wrap: wrap;
    }

    .rt-modal-direction {
        padding: 12px 12px 0 12px;
    }
}