/* The address search bar (USER-INSIGHTS 80/88): one GET form shared by the
   homepage hero and the /search results page. The pill shape and dark button
   follow the site's existing design tokens (css/base.css). Page-specific
   spacing lives in the page's own stylesheet, not here. */

.home-search-wrap {
    padding: 0 24px;
}

.home-search {
    align-items: stretch;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    display: flex;
    margin: 0 auto;
    max-width: 620px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search:focus-within {
    border-color: var(--brand, #1a1a1a);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.home-search-input {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--ink, #1a1a1a);
    flex: 1;
    font: inherit;
    font-size: 1.05rem;
    min-width: 0;
    outline: none;
    padding: 16px 8px 16px 26px;
}

.home-search-input::placeholder {
    color: #9ca3af;
}

/* The browser's own clear button doubles the pill's affordances; hide it. */
.home-search-input::-webkit-search-cancel-button {
    display: none;
}

.home-search-button {
    background: var(--brand, #1a1a1a);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    flex: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    margin: 6px;
    padding: 0 26px;
    transition: background 0.2s ease;
}

.home-search-button:hover {
    background: var(--brand-dark, #000000);
}

@media (max-width: 768px) {
    .home-search-wrap {
        padding: 0 16px;
    }

    .home-search-input {
        font-size: 1rem;
        padding: 13px 6px 13px 20px;
    }

    .home-search-button {
        font-size: 0.95rem;
        margin: 5px;
        padding: 0 18px;
    }
}
