/* Homepage hero search — suggestions & overflow fixes */

.hero,
.hero-content,
.search-box-wrapper,
.search-box,
.search-inputs,
.search-field-main,
.search-field-location {
    overflow: visible !important;
}

.search-field-main,
.search-field-location {
    z-index: 2;
}

.search-field-main:focus-within,
.search-field-location:focus-within {
    z-index: 30;
}

.search-suggestion-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    max-height: 300px;
    overflow-y: auto;
    z-index: 500;
    padding: 6px 0;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.search-suggestion-box.is-open {
    display: block;
    animation: heroSuggestIn 0.18s ease-out;
}

@keyframes heroSuggestIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background 0.12s ease;
}

.hero-suggest-item:hover,
.hero-suggest-item:focus-visible {
    background: #f0fdfa;
    outline: none;
}

.hero-suggest-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-suggest-icon i {
    color: #0d9488;
    font-size: 15px;
}

.hero-suggest-text {
    flex: 1;
    min-width: 0;
}

.hero-suggest-text strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-suggest-text strong mark {
    background: #fef3c7;
    color: #92400e;
    padding: 0 2px;
    border-radius: 2px;
}

.hero-suggest-text small {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.hero-suggest-arrow {
    color: #cbd5e1;
    font-size: 12px;
    flex-shrink: 0;
}

#filterChecks:empty {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .search-suggestion-box.is-open {
        animation: none;
    }
}

@media (max-width: 768px) {
    .search-suggestion-box {
        max-height: 240px;
    }
}
