/* =======================================================
   HỆ THỐNG TÌM TUYẾN & BÁO GIÁ (SHORTCODE)
======================================================= */
.bgx-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

/* 1. Khung Search */
.bgx-search-wrap {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.bgx-search-wrap .search-icon {
    color: #4b7bec;
    padding: 0 15px 0 20px;
    font-size: 18px;
}
.bgx-search-wrap input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 15px !important;
    height: 45px !important;
    color: #333;
    margin-bottom: 0 !important; /* Xóa margin thừa của Flatsome */
}
.bgx-search-wrap input:focus { outline: none !important; }
.bgx-search-btn {
    background: #2e66ed;
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}
.bgx-search-btn:hover { background: #1a4fc9; }

/* 2. Nút Chuyển Tab */
.bgx-tabs {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.bgx-tab-btn {
    background-color: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}
.bgx-tab-btn:hover { background-color: #e2e8f0; }
.bgx-tab-btn.active {
    background-color: #2e66ed;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(46, 102, 237, 0.3);
}

/* 3. Bảng Giá */
.bgx-table-container {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}
.bgx-table-header {
    background-color: #2e66ed;
    color: #fff;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}
.bgx-table-header i { margin-right: 8px; }

.bgx-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0 !important;
}
.bgx-table th {
    background-color: #f8fafc;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    padding: 15px 25px;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
}
.bgx-table td {
    padding: 15px 25px;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.bgx-table tr:last-child td { border-bottom: none; }
.bgx-table tr:hover td { background-color: #fcfcfc; }
.price-highlight { color: #2e66ed !important; font-weight: 800; }

/* 4. Responsive cho Mobile */
@media (max-width: 600px) {
    .bgx-table th, .bgx-table td { padding: 12px 15px; font-size: 13px; }
    .bgx-search-wrap { margin: 0 15px 20px; }
}
/* =======================================================
   FIX LỖI CĂN LỀ TRÁI CỦA BẢNG GIÁ (ÉP THEO FLATSOME)
======================================================= */
/* Đẩy cột đầu tiên (Điểm đến) thụt vào trong 30px cho thoáng */
.bgx-table th:first-child,
.bgx-table td:first-child {
    padding-left: 30px !important; 
}

/* Đảm bảo toàn bộ các ô trong bảng không bị Flatsome bóp méo khoảng cách */
.bgx-table th,
.bgx-table td {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-right: 20px !important;
}