/* Stellar Search Component Styles */

.stellar-search-container {
    position: relative;
    width: 100%;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 70px 15px 20px;
    font-size: 16px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-input:focus {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.search-input::placeholder {
    color: #999;
}

.search-clear {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.search-clear:hover {
    color: #333;
    background: #f0f0f0;
}

.search-clear.hidden {
    display: none;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.results-container {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
}

.results-container.hidden {
    display: none;
}

.result-item {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.result-item:hover,
.result-item.highlighted {
    background-color: #f5f8ff;
}

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

.result-address {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-details {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.result-details small {
    color: #999;
    font-style: italic;
}

/* Service status badges in search results */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-coming-soon {
    background: #fff8e1;
    color: #f57f17;
}

.loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ccc;
    border-top-color: #666;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.error-message {
    padding: 16px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin: 8px;
    font-size: 14px;
}

/* Scrollbar styling */
.results-container::-webkit-scrollbar {
    width: 8px;
}

.results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.results-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}
