/* ========================
   Bảng Giá Thuê Xe
   ======================== */

.banggia-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    font-family: inherit;
}

/* --- Tabs --- */
.banggia-tabs {
    display: flex;
    gap: 6px;
    padding: 18px 18px;
    background: #f3f3f3;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 4px;
}

.banggia-tabs::-webkit-scrollbar {
    display: none;
}

.banggia-tab {
    flex: 1;
    min-width: 80px;
    padding: 10px 18px;
    border: none;
    background: #e9e9e9;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    margin: 0px;
    text-transform: none;
}

.banggia-tab:hover {
    color: #e67e22;
    background: rgba(230, 126, 34, 0.08);
}

.banggia-tab.active {
    color: #fff;
    background: #e67e22;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.35);
}

.banggia-tab.active:hover {
    background: #d35400;
}

/* --- Search --- */
.banggia-search-wrap {
    padding-top: 10px;
}

.banggia-search {
    max-width: 280px !important;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.banggia-search:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
}

.banggia-no-result {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}

/* --- Table --- */
.banggia-table-container {
    overflow-x: auto;
    margin-top: 0;
}

.banggia-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

/* --- Region row --- */
.banggia-region-row td {
    background: #1a1a2e !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 16px !important;
    border-bottom: none !important;
}

/* --- Province row (tỉnh - chỉ header, không có giá) --- */
.banggia-province-row {
    cursor: pointer;
    user-select: none;
}

.banggia-province-row td {
    background: #e8eef5 !important;
    font-weight: 700;
    color: #1a1a2e;
    padding: 9px 16px;
    padding-left: 14px !important;
    border-bottom: 1px solid #d5dfe9;
    font-size: 14px !important;
    text-align: left !important;
}

.banggia-province-row:hover td {
    background: #dce6f0 !important;
}

/* Mũi tên đóng/mở */
.banggia-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #1a1a2e;
    margin-right: 8px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.banggia-province-row.open .banggia-arrow {
    transform: rotate(90deg);
}

/* Ẩn huyện khi thu gọn */
.banggia-district-hidden {
    display: none;
}

/* --- District row (huyện/quận) --- */
.banggia-district-row {
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}

.banggia-district-row td {
    background: #fff;
    padding: 0 16px;
    color: #333;
    font-weight: 400;
    height: 40px;
    vertical-align: middle;
}

.banggia-district-even td {
    background: #f9f9f9;
}

.banggia-district-row:hover td {
    background: #fff5eb !important;
}

.banggia-district-row td:first-child {
    text-align: center;
    color: #999;
    font-size: 13px;
}

.banggia-district-row td:nth-child(2) {
    padding-left: 16px;
}

.banggia-district-row td:nth-child(3) {
    text-align: center;
    color: #666;
    padding: 6px;
}

.banggia-district-row td:last-child {
    text-align: right;
    font-weight: 700;
    color: #e67e22;
    font-size: 15px;
    padding: 0 18px;
    width: 150px;
}

/* --- Nút Liên hệ --- */
.banggia-lienhe {
    display: inline-block;
    padding: 2px 14px;
    background: #e67e22;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 24px;
    vertical-align: middle;
}

.banggia-lienhe:hover {
    background: #d35400;
    text-decoration: none;
    color: #fff !important;
}

/* --- Loading --- */
.banggia-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 48em) {
    .banggia-wrapper {
        margin: 0 -10px;
    }

    .banggia-tabs {
        gap: 4px;
        padding: 10px 10px;
        border-radius: 10px;
    }

    .banggia-tab {
        padding: 8px 4px;
        font-size: 13px;
        min-width: 60px;
        border-radius: 7px;
    }

    .banggia-table {
        font-size: 13px;

    }

    .banggia-table thead th,
    .banggia-table tbody td {
        padding: 5px 5px;
    }

    .banggia-district-row td:last-child {
        width: 120px;
        font-size: 13px;
    }

    .banggia-district-row td:nth-child(2) {
        padding-left: 5px;
    }
}
