/* === RANGES EXPLORER === */
.ranges-header {
    position: relative;
    margin-bottom: 2rem;
}

.range-mode-btn {
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    white-space: nowrap;
}

.range-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.range-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: #2196F3 !important;
}

.range-card-hover:hover .badge {
    background-color: #2196F3 !important;
    color: white !important;
    border-color: #2196F3 !important;
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #2196F3;
}

/* Badge hover animation */
.badge-range {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.range-hover-icon {
    display: inline-block;
    opacity: 0;
    max-width: 0;
    transform: translateX(-5px) scale(0.5);
    transition: all 0.3s ease;
}

.range-card-hover:hover .badge-range {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%) !important;
    color: white !important;
    border-color: #1976D2 !important;
    padding-right: 18px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transform: scale(1.05);
}

.range-card-hover:hover .range-hover-icon {
    opacity: 1;
    max-width: 20px;
    transform: translateX(0) scale(1);
}

/* Stats styling */
.range-stats {
    font-size: 0.8rem;
    padding: 4px 0;
    margin-top: 8px;
}

/* === RANGE FILTERS STYLING === */
#rangeFilters {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

#rangeFilters select {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232196F3' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px;
}

#rangeFilters select:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    transform: translateY(-1px);
}

#rangeFilters select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1), 0 4px 12px rgba(33, 150, 243, 0.2);
    transform: translateY(-1px);
}

#rangeFilters select:active {
    transform: translateY(0);
}

/* Icon prefix for filters */
#rangeFilters select::before {
    content: "📍";
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #rangeFilters {
        padding: 0.75rem 1rem;
    }

    #rangeFilters select {
        font-size: 0.85rem;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
        min-width: 130px !important;
    }
}