.search-overlay {
    z-index: 2000;
}

.search-backdrop {
    z-index: 1999;
}

.search-wrapper .btn-link {
    text-decoration: none;
    border: none;
    color: #333;
}

.search-wrapper .btn-link:hover,
.search-wrapper .btn-link:focus {
    text-decoration: none;
    color: #333;
}

.search-wrapper button {
    padding: 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.search-wrapper button {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
}

.fa-search,
.fa-globe-americas {
    font-size: 1.2rem;
}

@media (max-width: 991.98px) {
    .search-wrapper button {
        padding: 0.5rem;
        font-size: 1.1rem;
        color: #333;
    }
}

@media (max-width: 576px) {
    .search-wrapper .btn-link {
        text-decoration: none;
    }

    .search-wrapper button {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fa-search,
    .fa-globe-americas {
        font-size: 1.2rem;
    }
}

.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
}

.search-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateY(-100%);
    overflow: hidden;
}

.search-overlay.active {
    transform: translateY(0);
    height: 50%;
}

.search-overlay-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
}

.search-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
    width: 100%;
}

.search-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-align: center;
}

.close-search {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #555;
    cursor: pointer;
    padding: 0.8rem;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.close-search:hover {
    color: #555;
}

.search-body {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto 3rem;
}

.search-input-overlay {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 1.8rem;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1.1rem;
    outline: none;
    font-family: inherit;
    background-color: #fff;
}

.search-input-overlay:focus {
    border-color: #e1e1e1;
}

.search-submit {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #777;
    cursor: pointer;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    color: #777;
}

.popular-searches {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.popular-searches p {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
}

.search-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 30px;
    color: #666;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
}

.search-tag:hover {
    background-color: #f8f9fa;
    border-color: #e1e1e1;
    color: #666;
}

@media (max-width: 768px) {
    .search-overlay-content {
        padding: 3.5rem 1.5rem 2rem 1.5rem;
    }

    .search-header {
        margin-bottom: 2rem;
        margin-top: 1.5rem;
    }

    .search-header h3 {
        font-size: 1.5rem;
    }

    .search-input-wrapper {
        max-width: 100%;
        margin-bottom: 2.5rem;
    }

    .search-input-overlay {
        padding: 1rem 3rem 1rem 1.5rem;
        font-size: 1rem;
    }

    .search-submit {
        right: 15px;
        font-size: 1.2rem;
        padding: 0.6rem;
    }

    .search-tags {
        gap: 0.5rem;
        justify-content: center;
    }

    .search-tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }

    .close-search {
        right: 15px;
        top: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}


#searchToggle {
    background-color: transparent;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#searchToggle:hover {
    color: #333;
    background-color: transparent;
}