/*
 * Home Search: a real, editable search bar + state selector, sitting directly
 * on the section background (no shell card around the whole panel). The
 * search inputs are white pills; each result renders as its own white card
 * (unlike the shared-panel look this used to have), with a Get Quote button
 * styled after the hero graphic's .hero-rbtn-primary, right-aligned.
 */

.home-search-panel {
    width: 100%;
}

.home-search-bar {
    display: flex;
    gap: 12px;
    padding: 24px;
}

.home-search-field {
    flex: 4 1 0%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-0);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 16px;
}

.home-search-field svg {
    width: 18px;
    height: 18px;
    color: var(--slate-500);
    flex: none;
}

.home-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink-900);
}

.home-search-state,
.home-search-bar > .select2-container {
    flex: 1 1 0%;
    min-width: 0;
}

.home-search-state {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    background: var(--surface-0);
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-900);
    line-height: normal;
}

.home-search-results {
    padding: 0 24px 24px;
    min-height: 80px;
}

.home-search-hint {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-500);
}

.home-search-empty {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-500);
}

.home-search-list,
.home-search-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.home-search-result-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    width: 100%;
    padding: 20px 24px;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px -14px rgba(var(--shadow-rgb), .25);
}

.home-search-result-info {
    flex: 1 1 220px;
    min-width: 0;
}

.home-search-result-name {
    display: block;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: var(--ink-900);
}

.home-search-result-name a {
    color: inherit;
    text-decoration: none;
}

.home-search-result-name a:hover {
    text-decoration: underline;
}

.home-search-result-meta {
    margin-top: 5px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--slate-500);
}

.home-search-result-action {
    flex: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-search-result-amount {
    text-align: right;
}

.home-search-result-amount-value {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 20px;
    color: var(--ink-900);
}

.home-search-result-amount-label {
    display: block;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: var(--slate-500);
}

.home-search-get-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    border: none;
    border-radius: 999px;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
    color: #fff !important;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}

.home-search-get-quote-btn:hover {
    color: #fff !important;
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 14px 26px -16px rgba(24, 35, 66, .35);
}

@media (max-width: 560px) {
    .home-search-bar {
        flex-direction: column;
    }

    .home-search-state,
    .home-search-bar > .select2-container {
        width: 100%;
    }

    .home-search-result-row {
        padding: 16px;
        gap: 12px;
    }

    .home-search-result-name {
        font-size: 16px;
    }

    .home-search-result-action {
        gap: 10px;
    }

    .home-search-result-amount-value {
        font-size: 16px;
    }

    .home-search-get-quote-btn {
        min-width: 0;
        padding: 11px 16px;
        font-size: 13px;
    }
}
