/* ============================================================
   Transfer detail — combined package
   Mobile-first base + desktop (min-width: 992px)
   Design system: brand blue #3276d8 / #3e71b7, magenta #c0336d,
   success #28a745, alert #f5a623, text #1a1a2e/#333, grey #666/#718096
   ============================================================ */

.transfer-block {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
    padding: 16px;
}

/* ---------- Header ---------- */
.transfer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.transfer-head-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #3276d8;
    background: rgba(50, 118, 216, .1);
}

.transfer-head-text {
    flex: 1 1 auto;
    min-width: 0;
}

.transfer-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.transfer-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    color: #718096;
}

.transfer-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #28a745;
    background: rgba(40, 167, 69, .1);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}

/* ---------- Legs container ---------- */
.transfer-legs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transfer-leg {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.transfer-leg:hover {
    border-color: #d9e3f3;
    box-shadow: 0 4px 16px rgba(50, 118, 216, .1);
}

/* ---------- Leg top: tag + date ---------- */
.transfer-leg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.transfer-leg-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 12px;
    color: #fff;
}

.transfer-leg-tag--in {
    background: linear-gradient(135deg, #3e71b7, #3276d8);
}

.transfer-leg-tag--out {
    background: linear-gradient(135deg, #20a847, #28a745);
}

.transfer-leg-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a5568;
    background: #f5f7fb;
    border-radius: 8px;
    padding: 4px 10px;
}

.transfer-leg-date i {
    color: #3276d8;
}

/* ---------- Route (origin -> destination) ---------- */
.transfer-route {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.transfer-point {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transfer-point-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px currentColor;
}

.transfer-point-dot--origin {
    color: #3276d8;
    background: #3276d8;
}

.transfer-point-dot--dest {
    color: #28a745;
    background: #28a745;
}

.transfer-point-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.transfer-point-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #718096;
}

.transfer-point-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
}

/* Connector between the two points */
.transfer-point-line {
    position: relative;
    margin-left: 5px;
    height: 22px;
    border-left: 2px dashed #d3dceb;
    display: flex;
    align-items: center;
}

.transfer-point-line i {
    position: absolute;
    left: -10px;
    font-size: 11px;
    color: #a9b6cc;
    background: #fff;
    padding: 2px 0;
}

/* ---------- Meta (luggage, duration) ---------- */
.transfer-meta {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid #f0f2f6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transfer-meta:empty {
    display: none;
    padding: 0;
    border-top: 0;
}

.transfer-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
}

.transfer-meta-item i {
    flex: 0 0 auto;
    margin-top: 2px;
    width: 16px;
    text-align: center;
    color: #f5a623;
}

.transfer-meta-item .fa-clock {
    color: #718096;
}

.transfer-meta-label {
    font-weight: 700;
    color: #333;
}

/* ---------- Trust microcopy ---------- */
.transfer-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 12.5px;
    color: #718096;
    line-height: 1.4;
}

.transfer-trust i {
    color: #28a745;
    flex: 0 0 auto;
}

/* ============================================================
   Desktop: two legs side by side
   ============================================================ */
@media (min-width: 992px) {
    .transfer-block {
        padding: 22px 24px;
    }

    .transfer-head {
        margin-bottom: 18px;
    }

    .transfer-head-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .transfer-title {
        font-size: 20px;
    }

    .transfer-subtitle {
        font-size: 13px;
    }

    .transfer-legs {
        flex-direction: row;
        gap: 18px;
        align-items: stretch;
    }

    .transfer-leg {
        flex: 1 1 0;
        min-width: 0;
        padding: 18px;
        display: flex;
        flex-direction: column;
    }

    /* Push meta block to the bottom so both legs stay aligned */
    .transfer-meta {
        margin-top: auto;
    }

    .transfer-point-name {
        font-size: 15px;
    }

    .transfer-trust {
        margin-top: 16px;
        font-size: 13px;
    }
}
