/* Hero vehicle search (loaded last to ensure desktop styles apply) */

.hero-search {
    margin: 18px 0 10px;
}

.hero-search-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr) minmax(220px, 1.3fr) auto;
    gap: 12px;
    align-items: end;
    background: rgba(13, 13, 13, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    padding: 14px;
    backdrop-filter: blur(8px);
}

.hero-search-field {
    position: relative;
}

/* Hide labels on desktop (keeps placeholders inside the “button-like” controls). */
.hero-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-search-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.hero-search-control:hover {
    border-color: rgba(255, 107, 0, 0.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transform: translateY(-1px);
}

.hero-search-control:focus-within {
    border-color: rgba(255, 107, 0, 0.85);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18), 0 10px 30px rgba(0,0,0,0.35);
}

.hero-step {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    background: var(--primary);
    flex: 0 0 auto;
}

.hero-search select,
.hero-search input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--light);
    font-size: 0.95rem;
    padding: 2px 0;
}

.hero-search select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 26px;
    cursor: pointer;
}

.hero-search input[type="text"] {
    cursor: text;
}

.hero-search select:disabled,
.hero-search input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hero-caret {
    position: absolute;
    right: 10px;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.hero-search-field--wide {
    grid-column: span 2;
}

.hero-search-field--button {
    display: flex;
}

.hero-search-btn {
    width: 100%;
    white-space: nowrap;
    border-radius: 14px;
    padding: 12px 14px;
}

@media (max-width: 980px) {
    .hero-search-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 6px;
        overflow: visible;
        clip: auto;
        white-space: normal;
        display: block;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.72);
    }

    .hero-search-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .hero-search-field--wide {
        grid-column: auto;
    }
}

