/**
 * Geographic Filter Styles
 * Custom styles for the hierarchical geographic filters
 */

/* Filter container */
.geo-filters {
    background-color: #f8f9fc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e3e6f0;
}

/* Filter labels */
.geo-filters .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

/* Filter dropdowns */
.geo-select {
    font-size: 0.9rem;
    border-radius: 5px;
    border-color: #ddd;
    background-color: white;
    transition: all 0.2s;
    width: 22ch; /* Set width to accommodate 22 characters */
}

.geo-select:hover:not(:disabled) {
    border-color: #aaa;
}

.geo-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.geo-select:disabled {
    background-color: #f0f0f0;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Search input */
#search-input {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 0.5rem 1rem;
    border-color: #ddd;
    transition: all 0.2s;
}

#search-input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Search button */
#search-form .btn-primary {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

/* Reset button */
#reset-search {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* Loading indicator for selects */
.select-loading {
    position: relative;
}

.select-loading:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    border: 2px solid rgba(78, 115, 223, 0.2);
    border-top-color: #4e73df;
    border-radius: 50%;
    animation: select-spinner 0.8s linear infinite;
}

@keyframes select-spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Category filter loading state */
.category-filter-container.loading {
    position: relative;
    min-height: 100px;
}

.category-filter-container.loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.category-filter-container.loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(78, 115, 223, 0.2);
    border-top-color: #4e73df;
    border-radius: 50%;
    animation: select-spinner 0.8s linear infinite;
    z-index: 11;
} 