/* Homepage hero search — suggestions above cards, clear buttons */

.hero {
    overflow: visible !important;
}

.hero-content,
.search-box-wrapper,
.search-box,
.hero-search-box,
.search-inputs,
.hero-mode-panel--registry {
    overflow: visible !important;
}

.search-box-wrapper {
    position: relative;
    z-index: 200;
}

.search-box {
    position: relative;
    z-index: 201;
}

.hero-search-box {
    position: relative;
    z-index: 202;
}

.search-inputs {
    position: relative;
    z-index: 203;
}

.search-field {
    position: relative !important;
    overflow: visible !important;
}

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

.search-field-main.is-suggest-open,
.search-field-location.is-suggest-open,
.search-field-main:focus-within,
.search-field-location:focus-within {
    z-index: 1000;
}

.search-field.has-value .search-input {
    padding-right: 44px !important;
}

.hero-input-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.15s ease, color 0.15s ease;
}

.hero-input-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.hero-input-clear:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

.hero-input-clear[hidden] {
    display: none !important;
}

.search-suggestion-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    max-height: min(320px, 50vh);
    overflow-y: auto;
    z-index: 10001;
    padding: 6px 0;
    border: 1px solid rgba(13, 148, 136, 0.2);
}

.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;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

/* Service cards sit below hero search layer */
.services {
    position: relative;
    z-index: 1 !important;
}

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

.dbk-ai-terminal,
.dbk-ai-terminal__composer,
.dbk-ai-query-wrap {
    overflow: visible !important;
}

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

@media (max-width: 768px) {
    .search-suggestion-box {
        max-height: min(260px, 45vh);
    }

    .search-box-wrapper {
        z-index: 300;
    }
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-near-me-note {
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.hero-near-me-note.is-success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #6ee7b7;
}
