/* ================================================
 * OBJECTIF 10: HERO SEARCH BANNER
 * Modern Glass/Rounded Style below Rent/Buy Toggle
 * ================================================ */

.hero-search-banner {
    position: absolute;
    bottom: -90px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0 15px;
    pointer-events: none;
    /* Let clicks pass outside */
}

.search-input-wrapper {
    pointer-events: auto;
    position: relative;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.5);
    /* White semi-glass */
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    /* Padding for text and button space */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Soft shadow */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0,5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.hero-search-input {
    border: none;
    background: transparent;
    width: 100%;
    height: 40px;
    font-size: 16px;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    caret-color: #000 !important;
    outline: none;
    font-weight: 500;
}

.hero-search-input::placeholder {
    color: #888 !important;
    opacity: 1;
    font-weight: 400;
}

.hero-search-btn {
    width: 45px;
    height: 45px;
    background-color: #e63020;
    /* Orange */
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.hero-search-btn:hover {
    transform: scale(1.1);
    background-color: #e63020;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

/* Brand Section spacing — toggle/search are inside hero, no extra clearance needed */
.brand-logos-section-modern {
    padding-top: 0 !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .brand-logos-section-modern {
        padding-top: 0 !important;
    }
}

@media (max-width: 575px) {
    .hero-search-banner {
        bottom: -80px;
    }

    .search-input-wrapper {
        max-width: 95%;
        padding: 5px 5px 5px 20px;
    }

    .hero-search-input {
        font-size: 14px;
        height: 36px;
    }

    .hero-search-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .brand-logos-section-modern {
        padding-top: 0 !important;
    }
}

/* ================================================
 * AUTOCOMPLETE DROPDOWN
 * ================================================ */
.sa-wrapper {
    position: relative;
    width: 100%;
}

.sa-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    max-height: 320px;
    overflow-y: auto;
    z-index: 9999;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.sa-item {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f5f5f5;
}

.sa-item:last-child {
    border-bottom: none;
}

.sa-item:hover,
.sa-item.sa-active {
    background: #FFF3E6;
    color: #FF6600;
}

/* Header search overlay autocomplete adjustments */
.search-field-holder .sa-wrapper {
    width: 100%;
}

.search-field-holder .sa-dropdown {
    top: calc(100% + 4px);
    max-width: 500px;
    left: 50%;
    transform: translateX(-50%);
}

/* ================================================
 * SEARCH HIGHLIGHT (for car-grid scroll-to)
 * ================================================ */
@keyframes searchHighlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 102, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
    }
}

.search-highlight {
    animation: searchHighlightPulse 0.8s ease-in-out 3;
    border-radius: 8px;
}

/* Main search input text visibility fix */
.main-search-input {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    caret-color: #000 !important;
}