/* TCB Vehicle Price List v3 */

.tcb-pl-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto 2rem;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.10);
}

/* Header */
.tcb-pl-header {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    color: #fff;
}
.tcb-pl-brand {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tcb-pl-subtitle {
    font-size: .82rem;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tcb-pl-date { font-size: .75rem; opacity: .75; }

/* Tab Nav */
.tcb-pl-tab-nav {
    display: flex;
    flex-wrap: wrap;
    background: #1a1a1a;
}
.tcb-pl-tab-btn {
    flex: 1 1 120px;
    padding: .8rem .5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #aaa;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .2s;
    line-height: 1.3;
}
.tcb-pl-tab-btn:hover { background: #2a2a2a; color: #fff; }
.tcb-pl-tab-btn.active { background: #e74c3c; color: #fff; border-bottom-color: #ff8070; }

/* Controls */
.tcb-pl-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1.2rem;
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
}
.tcb-pl-search-wrap { flex: 0 0 300px; max-width: 100%; }
.tcb-pl-search {
    width: 100%;
    padding: .5rem .8rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: .88rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s;
}
.tcb-pl-search:focus { border-color: #e74c3c; }
.tcb-pl-count { font-size: .8rem; color: #888; }

/* ── DESKTOP TABLE ── */
.tcb-pl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tcb-pl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}
.tcb-pl-table thead tr { background: #e74c3c; color: #fff; }
.tcb-pl-table th {
    padding: .7rem .9rem;
    text-align: left;
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.tcb-pl-table th.col-num,
.tcb-pl-table td.col-num { text-align: right; }
.tcb-pl-table td {
    padding: .6rem .9rem;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    color: #333;
}
.tcb-pl-table td.col-model {
    white-space: normal;
    font-weight: 600;
    min-width: 180px;
    color: #1a1a1a;
}
.tcb-pl-table tbody tr:nth-child(even) { background: #fafafa; }
.tcb-pl-table tbody tr:hover { background: #fff0ef; }
.tcb-empty {
    text-align: center;
    padding: 2rem !important;
    color: #aaa;
    font-style: italic;
}

/* Note */
.tcb-pl-note {
    margin: 0;
    padding: .65rem 1.2rem;
    font-size: .74rem;
    color: #999;
    background: #fafafa;
    border-top: 1px solid #eee;
}

/* ── MOBILE LAYOUT ── */
@media (max-width: 640px) {

    .tcb-pl-tab-btn {
        flex: 1 1 30%;
        font-size: .68rem;
        padding: .65rem .3rem;
    }

    .tcb-pl-search-wrap { flex: 1 1 100%; }

    /* Hide thead, stack rows */
    .tcb-pl-table thead { display: none; }

    .tcb-pl-table,
    .tcb-pl-table tbody,
    .tcb-pl-table tr { display: block; width: 100%; }

    .tcb-pl-table tbody tr {
        border-bottom: 2px solid #e74c3c;
        margin: 0;
        padding: 0;
        background: #fff;
    }
    .tcb-pl-table tbody tr:nth-child(even) { background: #fff; }
    .tcb-pl-table tbody tr:hover { background: #fff; }

    .tcb-pl-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .5rem 1rem;
        border-bottom: 1px solid #f0f0f0;
        white-space: normal;
        font-size: .84rem;
        text-align: left;
    }
    .tcb-pl-table td:last-child { border-bottom: none; }

    /* Model row — red header, no label */
    .tcb-pl-table td.col-model {
        background: #e74c3c;
        color: #fff;
        font-weight: 700;
        font-size: .9rem;
        justify-content: flex-start;
        padding: .65rem 1rem;
    }
    .tcb-pl-table td.col-model::before { display: none; }

    /* Number cells */
    .tcb-pl-table td.col-num {
        text-align: left;
        font-variant-numeric: tabular-nums;
        color: #222;
        font-weight: 500;
    }
    .tcb-pl-table td.col-num::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .03em;
        flex: 0 0 50%;
    }
}
