/**
 * HHPF Bridge - Vehicle Bar
 * Compact truck icon trigger + modal
 */

/* ===== Vehicle Bar (trigger is baked into theme header) ===== */
.hhpfb-vehicle-bar {
    /* Container for modal only — trigger button is in the theme nav */
}

/* Hide the PHP-rendered trigger (theme has its own) */
.hhpfb-vb-trigger {
    display: none;
}

/* ===== Modal Overlay ===== */
.hhpfb-vb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.hhpfb-vb-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px 24px;
    width: 440px;
    max-width: 92vw;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hhpfb-vb-modal-content h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.hhpfb-vb-current-vehicle {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px;
}

.hhpfb-vb-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}
.hhpfb-vb-modal-close:hover {
    color: #333;
}

/* ===== Dropdowns ===== */
.hhpfb-vb-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.hhpfb-vb-fields select {
    width: 100%;
    padding: 11px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    appearance: auto;
    cursor: pointer;
    transition: border-color 0.15s;
}

.hhpfb-vb-fields select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.15);
}

.hhpfb-vb-fields select:disabled {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

/* ===== Action Buttons ===== */
.hhpfb-vb-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.hhpfb-vb-btn-save {
    background: #FFD700;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hhpfb-vb-btn-save:hover:not(:disabled) {
    background: #e6c300;
}

.hhpfb-vb-btn-save:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hhpfb-vb-btn-clear {
    background: none;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.hhpfb-vb-btn-clear:hover {
    border-color: #c00;
    color: #c00;
}

/* ===== Mobile ===== */
@media screen and (max-width: 600px) {
    .hhpfb-vb-trigger {
        top: 8px;
        right: 8px;
        padding: 6px 8px;
    }

    .hhpfb-vb-vehicle-label {
        display: none;
    }

    .hhpfb-vb-modal-content {
        padding: 20px;
        margin: 12px;
    }

    .hhpfb-vb-fields {
        grid-template-columns: 1fr;
    }
}
