/* Advanced Filters Card - Middle of Right Column */
#advanced-filters-card {
  position: fixed;
  top: 150px;
  right: 20px;
  width: 360px;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 998;
  pointer-events: auto;
  box-sizing: border-box;
}

.filters-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Filter Group Styling */
.filter-group {
  padding: 10px 12px;
  background: rgba(18, 20, 24, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.filter-group:hover {
  background: rgba(27, 31, 37, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.filter-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #4ED9D9;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group-header i {
  color: #4ED9D9;
  font-size: 13px;
}

/* Location Button */
.location-btn {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  color: #4ED9D9;
  border: 1px solid #4ED9D9;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 11px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.location-btn:hover:not(:disabled) {
  background: rgba(78, 217, 217, 0.1);
  border-color: #6ee5e5;
  color: #6ee5e5;
  box-shadow: 0 0 12px rgba(78, 217, 217, 0.3);
}

.location-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.location-btn.success {
  background: transparent;
  color: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

/* Location Info */
#locationInfo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.location-coords {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(78, 217, 217, 0.1);
  border-radius: 6px;
  font-size: 10px;
  color: #FFFFFF;
}

.location-coords i {
  color: #4ED9D9;
}

/* Filter Controls */
.filter-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
}

.filter-label span:first-child {
  font-weight: 200;
}

.filter-value {
  font-weight: 600;
  color: #4ED9D9;
}

/* Range Sliders */
.dual-range-container {
  position: relative;
  height: 4px;
  margin: 8px 0;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.dual-range-container input[type="range"] {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
}

.dual-range-container input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
}

.dual-range-container input[type="range"]::-moz-range-thumb {
  pointer-events: all;
}

.dual-range-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  z-index: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #4ED9D9;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(78, 217, 217, 0.5);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(78, 217, 217, 0.8);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #4ED9D9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(78, 217, 217, 0.5);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(78, 217, 217, 0.8);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: -2px;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.toggle-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(18, 20, 24, 0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 10px;
  color: #FFFFFF;
}

.toggle-checkbox:hover {
  background: rgba(27, 31, 37, 0.7);
}

.toggle-checkbox input[type="checkbox"] {
  accent-color: #4ED9D9;
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.toggle-checkbox span {
  flex: 1;
}

/* Range Summary */
.range-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(78, 217, 217, 0.1);
  border-radius: 6px;
  font-size: 10px;
  color: #FFFFFF;
  margin-top: 2px;
}

.range-summary i {
  color: #4ED9D9;
}

/* Reset Filters Button */
.reset-filters-btn {
  width: 100%;
  padding: 6px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 11px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.reset-filters-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #advanced-filters-card {
    width: calc(100% - 40px);
    max-width: 360px;
  }
}
