.hero-search {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-search .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;  /* Car stays visible */
    z-index: 0;
}


.hero-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-search-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-search h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #888;
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-search {
        padding: 40px 0;
        min-height: 200px;
    }

    .hero-search h1 {
        font-size: 1.8rem;
    }

    .search-form {
        padding: 0 20px;
    }
}