.page-bg {
    background-color: #f5f5f5;
    padding: 30px 0;
    min-height: 80vh;
}

/* THANH LỌC MÀU VÀNG */
.filter-yellow-bar {
    background: darkorange;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

    .filter-yellow-bar .title-count {
        font-size: 18px;
        font-weight: 700;
        color: #4a2e15;
        white-space: nowrap;
        min-width: 210px; /* Cố định độ rộng tối thiểu */
        flex-shrink: 0; /* Ngăn không cho flexbox bóp méo */
    }

.filter-input {
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    width: 100%;
    flex: 1; /* Ép 3 ô input chia đều phần không gian còn lại */
}

    .filter-input:focus {
        outline: none;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }

/* GROUP HEADER */
.group-header {
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 25px 0 15px 0;
    border-left: 5px solid #f1b32e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.group-title {
    font-size: 18px;
    font-weight: 700;
    color: #4a2e15;
    text-transform: uppercase;
}

.group-count {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    background: #fdf6e3;
    padding: 4px 12px;
    border-radius: 20px;
}

/* CARD TOUR TỔNG THỂ */
.tour-card {
    background: #faf9f5;
    border-radius: var(--p2-radius-img, 12px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

/* LƯỚI 4 CỘT BÊN TRÊN */
.card-main-grid {
    display: grid;
    grid-template-columns: 3.5fr 2.5fr 2.5fr 1.5fr;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

/* Cột 1: Thông tin */
.tc-code {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

.tc-name {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

    .tc-name a {
        color: #666;
        text-decoration: none;
        transition: 0.2s;
    }

        .tc-name a:hover {
            color: #eab308;
        }

.tag-location {
    background-color: darkorange;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Cột 2 & 3: Lịch bay */
.flight-col {
    display: flex;
    flex-direction: column;
}

.flight-title {
    font-size: 15px;
    color: #000;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .flight-title .f-code {
        color: #888;
        font-size: 12px;
    }

    .flight-title img {
        height: 16px;
        object-fit: contain;
    }

/* CSS VẼ ĐƯỜNG BAY CHUẨN XÁC THEO ẢNH */
.flight-timeline {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.ft-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ft-time {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.ft-loc {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-top: 6px;
}

.ft-dot {
    width: 8px;
    height: 8px;
    background-color: #eab308;
    border-radius: 50%;
    z-index: 2;
}

.ft-line {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ft-line::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        background-color: #eab308;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .ft-line i {
        position: relative;
        z-index: 2;
        color: #eab308;
        background-color: #faf9f5;
        padding: 0 6px;
        font-size: 14px;
    }

/* Cột 4: Giá */
.price-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.price-val {
    color: #d32f2f;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.price-lbl {
    font-size: 12px;
    color: #666;
    width: 70px;
    white-space:nowrap;
    text-align: right;
}

/* FOOTER CỦA CARD (Chương trình & Chỗ) */
.card-footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
}

.prog-label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-tour-btn {
    text-decoration: none;
    color: #333;
    transition: 0.2s;
    cursor: pointer;
}

    .view-tour-btn:hover {
        color: #eab308;
    }

@media (max-width: 991px) {
    .filter-yellow-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-input {
        min-height: 44px;
        font-size: 16px;
    }

    .card-main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .price-row {
        justify-content: space-between;
    }

    .price-lbl {
        text-align: left;
    }
}
