/* Location Autocomplete Styles */
.location-autocomplete-container {
    position: relative;
    width: 100%;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-suggestions li {
    margin: 0;
    padding: 0;
}

.location-suggestions li > div {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.location-suggestions li:last-child > div {
    border-bottom: none;
}

.location-suggestions li > div:hover,
.location-suggestions li.selected > div {
    background-color: #f8f9fa;
}

.location-suggestions .regency-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.location-suggestions .province-name {
    font-size: 0.9em;
    color: #666;
}

.location-suggestions .no-results {
    padding: 12px 16px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Input styling when autocomplete is active */
.location-autocomplete-input {
    border-radius: 4px 4px 0 0;
}

.location-autocomplete-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading indicator */
.location-autocomplete-loading {
    position: relative;
}

.location-autocomplete-loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-suggestions {
        max-height: 150px;
    }
    
    .location-suggestions li > div {
        padding: 10px 12px;
    }
    
    .location-suggestions .regency-name {
        font-size: 0.95em;
    }
    
    .location-suggestions .province-name {
        font-size: 0.85em;
    }
}
