.home-site-search {
    position: relative;
    z-index: 20;
    padding: 24px 0 12px;
    background: #f8f5f2;
}

.home-site-search-panel {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(360px, 1.28fr);
    gap: 22px 34px;
    align-items: center;
    padding: 24px;
    border: 1px solid rgba(143, 0, 27, .12);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(40, 21, 24, .09);
}

.home-site-search-heading {
    display: flex;
    gap: 14px;
    align-items: center;
}

.home-site-search-icon {
    display: inline-flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #8f001b;
    box-shadow: 0 8px 20px rgba(143, 0, 27, .22);
}

.home-site-search-heading small {
    display: block;
    margin-bottom: 3px;
    color: #8f001b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-site-search-heading h2 {
    margin: 0;
    color: #25171a;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    line-height: 1.08;
}

.home-site-search-control {
    position: relative;
}

.home-site-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.home-site-search-input-wrap > i {
    position: absolute;
    left: 18px;
    z-index: 1;
    color: #8f001b;
    font-size: 17px;
    pointer-events: none;
}

#homeSiteSearchInput {
    width: 100%;
    height: 58px;
    padding: 0 54px 0 48px;
    border: 2px solid #eadde0;
    border-radius: 14px;
    outline: none;
    color: #24181a;
    background: #fff;
    font-size: 16px;
    font-weight: 650;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

#homeSiteSearchInput::-webkit-search-cancel-button {
    display: none;
}

#homeSiteSearchInput::placeholder {
    color: #7e7174;
    opacity: 1;
}

#homeSiteSearchInput:focus {
    border-color: #8f001b;
    box-shadow: 0 0 0 4px rgba(143, 0, 27, .09);
}

#homeSiteSearchClear {
    position: absolute;
    right: 10px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #6e6063;
    background: #f3edef;
    cursor: pointer;
}

.home-site-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 100;
    max-height: 390px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #eadde0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(39, 20, 24, .16);
}

.home-site-search-result {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    color: #291b1e;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease;
}

.home-site-search-result:hover,
.home-site-search-result:focus,
.home-site-search-result.is-active {
    color: #8f001b;
    background: #fbf1f3;
    outline: none;
}

.home-site-search-result > i {
    display: inline-flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #8f001b;
    background: #f8e9ec;
}

.home-site-search-result span {
    min-width: 0;
    flex: 1;
}

.home-site-search-result strong,
.home-site-search-result small {
    display: block;
}

.home-site-search-result strong {
    overflow: hidden;
    color: inherit;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-site-search-result small {
    margin-top: 2px;
    color: #837579;
    font-size: 11px;
    font-weight: 700;
}

.home-site-search-result > .fa-arrow-right {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    color: #ad9da1;
    background: transparent;
}

.home-site-search-empty {
    margin: 0;
    padding: 18px 14px;
    color: #6f6265;
    text-align: center;
    font-size: 14px;
}

.home-site-search-empty a {
    display: inline-block;
    margin-top: 6px;
    color: #8f001b;
    font-weight: 800;
}

.home-site-search-popular {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: -12px;
    color: #76696c;
    font-size: 12px;
}

.home-site-search-popular > span {
    align-self: center;
    font-weight: 800;
}

.home-site-search-popular button {
    padding: 5px 10px;
    border: 1px solid #eadde0;
    border-radius: 999px;
    color: #63565a;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.home-site-search-popular button:hover,
.home-site-search-popular button:focus {
    border-color: #8f001b;
    color: #8f001b;
    outline: none;
}

@media (max-width: 767px) {
    .home-site-search {
        padding: 16px 0 8px;
    }

    .home-site-search-panel {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        border-radius: 16px;
    }

    .home-site-search-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .home-site-search-heading h2 {
        font-size: 25px;
    }

    #homeSiteSearchInput {
        height: 54px;
        font-size: 15px;
    }

    .home-site-search-popular {
        grid-column: 1;
        margin-top: -4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #homeSiteSearchInput,
    .home-site-search-result {
        transition: none;
    }
}
