/* ================================
   Vehicle Search Popup
   ================================ */

/* Search by Vehicle Button */
.vehicle-search-btn-v2 {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 48px;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
    touch-action: manipulation;
}

.vehicle-search-btn-v2:hover,
.vehicle-search-btn-v2.active {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.navbar.scrolled .vehicle-search-btn-v2,
.navbar.navbar-solid .vehicle-search-btn-v2 {
    color: #1C1C1E;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

.navbar.scrolled .vehicle-search-btn-v2:hover,
.navbar.navbar-solid .vehicle-search-btn-v2:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1C1C1E;
}

/* Overlay */
.vehicle-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vehicle-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Modal */
.vehicle-search-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vehicle-search-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Header */
.vehicle-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #d32f2f 0%, #000033 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vehicle-search-header h3 {
    color: #FFD700;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-search-header h3 i {
    color: #FFD700;
}

.vehicle-search-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.vehicle-search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Body */
.vehicle-search-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.vehicle-search-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 20px;
    text-align: center;
}

/* Filter Groups */
.vehicle-filter-group {
    margin-bottom: 16px;
}

.vehicle-filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-filter-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.vehicle-filter-select:hover {
    border-color: #d4af37;
}

.vehicle-filter-select:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.vehicle-filter-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Submit Button */
.vehicle-search-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.vehicle-search-submit-btn:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

.vehicle-search-submit-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .vehicle-search-btn-v2 {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .vehicle-search-popup {
        width: 95%;
        max-height: 90vh;
    }

    .vehicle-search-header {
        padding: 16px 20px;
    }

    .vehicle-search-header h3 {
        font-size: 1rem;
    }

    .vehicle-search-body {
        padding: 20px;
    }

    .vehicle-filter-group {
        margin-bottom: 14px;
    }

    .vehicle-search-submit-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .vehicle-search-popup {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translateY(100%);
    }

    .vehicle-search-popup.active {
        transform: translateY(0);
    }

    .vehicle-search-header h3 {
        font-size: 0.95rem;
    }

    .vehicle-filter-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}
