/* CSS for Search Modal */
.search-modal .modal-dialog {
    max-width: 788px;
    margin: 1.75rem auto;
}

@media (min-width: 576px) {
    .search-modal .modal-dialog {
        max-width: 500px;
    }
}

@media (min-width: 768px) {
    .search-modal .modal-dialog {
        max-width: 788px;
    }
}

.search-modal .modal-content {
    border-radius: 24px !important;
    background-color: #F8FAFC;
    border: none;
    padding: 16px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1);
}

.search-modal .modal-header {
    border-bottom: none;
    padding: 1rem 1rem 0;
    position: relative;
    justify-content: center;
    align-items: center;
}

.search-modal .modal-title {
    font-size: 36px;
    font-weight: 700;
    color: #0076C6;
    text-align: center;
    width: 100%;
}

.search-modal .btn-close {
    position: absolute;
    right: 32px;
    top: 32px;
    background-size: 1em;
    z-index: 10;
}


.search-modal .modal-body {
    padding: 11px;
}

.search-form-container {
    position: relative;
    background-color: #F2F5F8;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

    .search-form-container .form-control {
        background-color: transparent;
        border: none;
        height: 48px;
        padding-left: 12px;
        font-size: 14px;
        color: #333;
        flex: 1;
    }

        .search-form-container .form-control::placeholder {
            color: #999999;
        }

        .search-form-container .form-control:focus {
            box-shadow: none;
            background-color: transparent;
        }

    .search-form-container .search-icon {
        width: 16px;
        height: 16px;
        filter: invert(58%) sepia(0%) saturate(1%) hue-rotate(149deg) brightness(96%) contrast(89%);
    }

.popular-searches h6 {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 16px;
}

.popular-searches .list-group-item {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    border: none;
    background: transparent;
    padding: 6px 0;
    cursor: pointer;
    text-decoration: none;
}

    .popular-searches .list-group-item:hover {
        color: #0076C6;
    }

/* Responsive adjustments */
@media (max-width: 767.98px) {
    body.search-modal-open .modal-backdrop {
        display: none;
    }

    .search-modal {
        padding: 0 !important;
    }

        .search-modal .modal-dialog {
            margin: 0;
            max-width: 100%;
            width: 100%;
            height: 100%;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .search-modal .modal-content {
            height: 100%;
            border-radius: 0 !important;
            padding: 8px;
            box-shadow: none;
            background-color: #fff;
            position: absolute;
            top: 72px;
            left: 0;
            right: 0;
            bottom: 0;
            overflow-y: auto;
        }

    .search-modal .modal-title {
        font-size: 24px;
    }

    .search-modal .modal-header {
        padding: 1rem;
    }

    .search-modal .btn-close {
        right: 16px;
        top: 20px;
    }

    .popular-searches .list-group-item {
        font-size: 16px;
    }
}

.search-history {
    margin-bottom: 24px;
}

    .search-history h6 {
        font-size: 14px;
        font-weight: 400;
        color: #333333;
        margin-bottom: 16px;
    }

    .search-history .list-group-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 20px;
        font-weight: 500;
        color: #000000;
        border: none;
        background: transparent;
        padding: 8px 0;
        cursor: pointer;
    }

        .search-history .list-group-item:hover {
            color: #0076C6;
        }

    .search-history .history-item-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .search-history .history-item-content .icon {
            width: 20px;
            height: 20px;
        }

    .search-history .btn-delete {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

        .search-history .btn-delete .icon {
            width: 20px;
            height: 20px;
            filter: invert(39%) sepia(8%) saturate(0%) hue-rotate(181deg) brightness(96%) contrast(84%);
        }

@media (max-width: 767.98px) {
    .search-history .list-group-item {
        font-size: 18px;
    }
}
