/* Priority Live Search Styles */

.pls-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Search Form */
.pls-form {
    display: flex;
    position: relative;
    z-index: 1001;
}

.pls-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.pls-input:focus {
    border-color: #0073aa;
}

.pls-input.pls-loading {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10" stroke-dasharray="32" stroke-dashoffset="32"><animate attributeName="stroke-dashoffset" values="32;0" dur="1s" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

.pls-submit {
    padding: 0 15px;
    background: #0073aa;
    color: white;
    border: 2px solid #0073aa;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.pls-submit:hover {
    background: #005a87;
}

.pls-submit svg {
    width: 20px;
    height: 20px;
}

/* Results Dropdown */
.pls-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.pls-results.active {
    display: block;
}

.pls-results-wrapper {
    padding: 5px 0;
}

/* Result Groups */
.pls-result-group {
    margin: 5px 0;
}

.pls-group-label {
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

/* Pest group */
.pls-group-pest .pls-group-label {
    background: #ffeb3b;
    color: #333;
}

/* Services group */
.pls-group-services .pls-group-label {
    background: #4caf50;
    color: white;
}

/* Price List group */
.pls-group-price-list .pls-group-label {
    background: #ff9800;
    color: white;
}

/* Blog group */
.pls-group-post .pls-group-label {
    background: #2196f3;
    color: white;
}

/* Result Items */
.pls-result-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.pls-result-item a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.pls-result-item:hover a,
.pls-result-item.active a {
    background-color: #f5f5f5;
}

.pls-result-title {
    font-weight: 500;
    margin-bottom: 3px;
}

.pls-result-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Highlighted terms */
.pls-highlight {
    background: #ffeb3b;
    font-weight: bold;
    padding: 0 2px;
}

/* View all link */
.pls-view-all {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.pls-view-all a {
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
}

.pls-view-all a:hover {
    text-decoration: underline;
}

/* Loading and error states */
.pls-loading-message,
.pls-no-results,
.pls-error {
    padding: 20px;
    text-align: center;
    color: #666;
}

.pls-error {
    color: #dc3232;
}

/* Responsive */
@media (max-width: 768px) {
    .pls-results {
        max-height: 300px;
    }
    
    .pls-result-item a {
        padding: 8px 12px;
    }
}