/* SeaSpree Search Styles - Improved */

.sea-search-wrapper {
    position: sticky;
    top: 0;
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0px 0;
}

.sea-search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.sea-search-wrapper .sea-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sea-search-icon {
    position: absolute;
    left: 20px;
    color: #666;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.sea-search-input {
    width: 100%;
    padding: 12px 50px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.sea-search-input:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.sea-clear-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    z-index: 2;
}

.sea-clear-btn:hover {
    color: #333;
}

/* Dropdown */
.sea-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.sea-dropdown.active {
    display: block;
}

/* Loading State */
.sea-loading {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sea-loading i {
    margin-right: 8px;
}

/* Results */
.sea-results {
    padding: 10px 0;
}

.sea-category-group {
    margin-bottom: 15px;
}

.sea-category-title {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-left: 3px solid #007bff;
}

.sea-result-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.sea-result-item:hover {
    background: #f8f9fa;
}

.sea-result-item:last-child {
    border-bottom: none;
}

.sea-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    border: 1px solid #e0e0e0;
}

.sea-result-info {
    flex: 1;
}

.sea-result-name {
    font-weight: 500;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sea-result-price {
    font-size: 16px;
    color: #007bff;
    font-weight: 600;
}

.sea-result-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.sea-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
}

.sea-rating {
    display: inline-block;
}

/* No Results */
.sea-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.sea-no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.sea-no-results p {
    font-size: 18px;
    margin: 10px 0 5px;
    color: #666;
}

.sea-no-results small {
    font-size: 14px;
    color: #999;
}

/* Scrollbar Styling */
.sea-dropdown::-webkit-scrollbar {
    width: 8px;
}

.sea-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.sea-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.sea-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sea-search-wrapper {
        padding: 10px 0;
    }

    .sea-search-container {
        padding: 0 0px;
    }
    
    .sea-search-input {
        font-size: 14px;
        padding: 10px 40px;
    }

    .sea-search-icon {
        left: 15px;
    }
    
    .sea-dropdown {
        max-height: 400px;
        margin: 0 15px;
        left: auto;
        right: auto;
        width: auto;
    }
    
    .sea-result-image {
        width: 50px;
        height: 50px;
    }
    
    .sea-result-name {
        font-size: 14px;
    }
    
    .sea-result-price {
        font-size: 14px;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sea-dropdown.active {
    animation: slideDown 0.3s ease;
}