/* ============================================================
   BIRITEX WEBSITE SEARCH
   ============================================================ */

.search-page {
    overflow: hidden;
}


/* ============================================================
   SEARCH HEADER
   ============================================================ */

.search-header {
    padding-top: clamp(60px, 8vw, 110px);
    padding-bottom: clamp(45px, 6vw, 80px);
}

.search-header-inner {
    max-width: 900px;
}

.search-header h1 {
    max-width: 800px;
    margin: 5px 0 15px;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.search-header p:not(.eyebrow) {
    max-width: 720px;
    color: #666;
    line-height: 1.8;
}


/* ============================================================
   SEARCH FORM
   ============================================================ */

.site-search-form {
    margin-top: 35px;
}

.site-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 7px 8px 7px 18px;
    border: 1px solid rgba(47, 53, 59, .16);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(47, 53, 59, .07);
}

.search-icon {
    flex: 0 0 auto;
    font-size: 1.4rem;
    color: #777;
}

.site-search-input-wrap input {
    min-width: 0;
    flex: 1;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
}

.site-search-input-wrap input:focus {
    outline: 0;
}

.search-clear {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #777;
    text-decoration: none;
    font-size: 1.4rem;
}

.search-clear:hover {
    background: #f1f1f1;
}

.site-search-input-wrap .primary-btn {
    flex: 0 0 auto;
}


/* ============================================================
   RESULTS
   ============================================================ */

.search-results-section {
    padding-top: 30px;
}

.search-results-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.search-results-top h2 {
    margin: 5px 0 0;
}


/* ============================================================
   FILTERS
   ============================================================ */

.search-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}

.search-filter {
    padding: 9px 15px;
    border: 1px solid rgba(47, 53, 59, .15);
    border-radius: 999px;
    background: transparent;
    color: #555;
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
    transition:
        .25s ease;
}

.search-filter:hover {
    transform: translateY(-2px);
}

.search-filter.is-active {
    background: #2F353B;
    border-color: #2F353B;
    color: #fff;
}


/* ============================================================
   RESULT LIST
   ============================================================ */

.search-results-list {
    display: grid;
    gap: 14px;
    max-width: 1000px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 25px;
    padding: 20px;
    border: 1px solid rgba(47, 53, 59, .1);
    border-radius: 16px;
    background: #fff;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.search-result-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 53, 59, .18);
    box-shadow: 0 15px 35px rgba(47, 53, 59, .07);
}

.search-result-card[hidden] {
    display: none;
}


/* ============================================================
   RESULT IMAGE
   ============================================================ */

.search-result-image {
    display: block;
    height: 130px;
    overflow: hidden;
    border-radius: 11px;
    background: #eef0f1;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.search-result-card:hover .search-result-image img {
    transform: scale(1.05);
}


/* ============================================================
   RESULT MARKER
   ============================================================ */

.search-result-marker {
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f0f1f1;
}

.search-result-marker span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2F353B;
    color: #fff;
    font-weight: 800;
}


/* ============================================================
   RESULT CONTENT
   ============================================================ */

.search-result-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #888;
    font-size: .76rem;
}

.search-result-type {
    color: #D6534D;
    font-weight: 700;
}

.search-result-content h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.search-result-content h3 a {
    color: #2F353B;
    text-decoration: none;
}

.search-result-content h3 a:hover {
    color: #D6534D;
}

.search-result-content p {
    max-width: 700px;
    margin: 9px 0 12px;
    color: #666;
    line-height: 1.65;
}

.search-result-link {
    margin-top: auto;
    color: #D6534D;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.search-result-link span {
    display: inline-block;
    transition: transform .25s ease;
}

.search-result-link:hover span {
    transform: translateX(4px);
}


/* ============================================================
   FILTER EMPTY STATE
   ============================================================ */

.search-filter-empty {
    max-width: 700px;
    padding: 45px 25px;
    border: 1px dashed rgba(47, 53, 59, .18);
    border-radius: 16px;
    text-align: center;
}

.search-filter-empty h3 {
    margin-top: 0;
}

.search-filter-empty p {
    color: #666;
}


/* ============================================================
   NO RESULTS
   ============================================================ */

.search-empty-state {
    max-width: 750px;
    padding: clamp(40px, 6vw, 75px);
    border-radius: 20px;
    background: #f5f5f4;
    text-align: center;
}

.search-empty-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #2F353B;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.search-empty-state h2 {
    margin: 0 0 15px;
}

.search-empty-state p {
    max-width: 600px;
    margin: 8px auto;
    color: #666;
    line-height: 1.7;
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 28px;
}


/* ============================================================
   SEARCH LANDING
   ============================================================ */

.search-start-section {
    padding-top: 40px;
}

.search-start {
    max-width: 850px;
}

.search-start h2 {
    max-width: 750px;
    margin: 7px 0 12px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.search-start > p:not(.eyebrow) {
    color: #666;
}

.search-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
}

.search-popular > span {
    margin-right: 5px;
    color: #777;
    font-size: .82rem;
}

.search-popular a {
    padding: 8px 12px;
    border: 1px solid rgba(47, 53, 59, .13);
    border-radius: 999px;
    color: #2F353B;
    font-size: .82rem;
    text-decoration: none;
    transition: .25s ease;
}

.search-popular a:hover {
    border-color: #D6534D;
    color: #D6534D;
    transform: translateY(-2px);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .site-search-input-wrap {
        padding: 7px;
        flex-wrap: wrap;
    }

    .site-search-input-wrap input {
        width: calc(100% - 45px);
    }

    .site-search-input-wrap .primary-btn {
        width: 100%;
        margin-top: 3px;
        text-align: center;
    }

    .search-result-card {
        grid-template-columns: 1fr;
    }

    .search-result-image,
    .search-result-marker {
        width: 100%;
        height: 180px;
    }

    .search-result-content p {
        margin-bottom: 15px;
    }

    .search-type-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .search-filter {
        flex: 0 0 auto;
    }

    .search-empty-state {
        padding: 40px 20px;
    }

}