.nepalevs-search-filter {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tab-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 5px 5px 0 0;
}

.tab.active {
    color: #28a745;
    background: #fff;
    border-bottom: 2px solid #28a745;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: bold;
    color: #333;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-group select:focus {
    outline: none;
    border-color: #28a745;
}

.search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

.car-search-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: none;
    font-size: 16px;
    outline: none;
    color: #333;
}

.car-search-input::placeholder {
    color: #666;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
}

.search-result-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 3px;
}

.search-result-title {
    flex: 1;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item.no-results {
    color: #999;
    cursor: default;
}

.search-result-item.no-results:hover {
    background: none;
}

.search-button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #218838;
}

.no-terms-message {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .nepalevs-search-filter {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .tab {
        font-size: 12px;
        padding: 8px;
    }

    .tab.active {
        border-bottom: 2px solid #28a745;
    }

    .filter-group label {
        font-size: 12px;
    }

    .filter-group select,
    .car-search-input {
        font-size: 14px;
        padding: 10px;
    }

    .car-search-input {
        padding-right: 36px;
    }

    .search-icon {
        font-size: 14px;
        right: 8px;
    }

    .search-button {
        font-size: 14px;
        padding: 10px;
    }

    .search-result-item {
        font-size: 12px;
        padding: 8px;
    }

    .search-result-icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .search-result-title {
        font-size: 12px;
    }
}