
:root {
  --accent: #035E7B;
  --accent-hover: #024a61;
  --light-gray: #f8f9fa;
  --border-color: #e0e0e0;
  --text-main: #333;
  --text-secondary: #666;
  --font-main: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 20px;
  background: #f5f5f5;
  color: var(--text-main);
}
body.real_estate_filter .select2-container--default .select2-search--inline {
    line-height: 33px !important;
}
body.real_estate_filter .select2-container--default .select2-selection--multiple .select2-selection__clear {
  height: 100%;
  margin-top: 0;
}
body.real_estate_filter .select2-container--default .select2-dropdown {
  top: 33px;
}
body.real_estate_filter .select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-selection__choice__remove {
  height: 100%;
}
body.real_estate_filter .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  padding-left: 14px;
  padding-right: 0;
}
body.real_estate_filter .select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
  padding: 0 5px;
}
body.real_estate_filter .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border-radius: 0;
}
body.real_estate_filter .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0 20px 0 10px;
}
#real-estate-results {
  margin-top: 50px;
}
body.real_estate_filter .ui-slider-horizontal {
  height: 4px;
}
body.real_estate_filter .ui-widget-content .ui-widget-header {
  background: #035e7b;
}
body.real_estate_filter .ui-slider .ui-slider-handle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
body.real_estate_filter .select2-container--default {
     border: 0; 
     border-radius: 0; 
     -webkit-box-sizing: border-box; 
     box-sizing: border-box; 
     display: inline-block; 
     font-size: 14px; 
     height: 44px; 
     line-height: calc(44px - 0px); 
     margin: 0; 
     position: relative; 
     text-align: initial; 
     vertical-align: middle; 
     width: auto; 
     color: #8d8c8c; 
}
body.real_estate_filter .select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
  line-height: 32px;
}
body.real_estate_filter  .select2-container--default .select2-selection--multiple {
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: text;
    display: block;
    font-family: inherit;
    font-size: inherit;
    height: 44px;
    line-height: 44px !important;
    outline: 0;
    padding: 0;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-select: none;
}
.filter-container {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);

}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.filter-grid > * {
  display: flex;
  flex-direction: column;
}

.filter-group,
.range-wrapper {
  flex: 1;
}

.filter-group label,
.range-wrapper label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.select2-container--default .select2-selection--multiple {
  min-height: 44px;
  background: var(--light-gray);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--text-secondary);
  margin-right: 4px;
}

.range-group {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  overflow: visible;
  padding: 0;
}

.range-slider {
  position: relative;
  height: 4px;
  flex: 1;
  background: #ddd;
  border-radius: 5px;
}

.range-slider .range-progress {
  position: absolute;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}

.range-input {
  position: absolute;
  height: 4px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.range-input input[type="range"] {
  height: 4px;
  pointer-events: none;
  background: none;
  position: absolute;
  width: 100%;
  -webkit-appearance: none;
  margin: 0;
}

.range-input input::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.range-input input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.thumb-value {
  position: absolute;
  top: -28px;
  background: #fff;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  transform: translateX(-50%) translateY(5px);
  opacity: 0;
  transition: all 0.3s ease;
}

.thumb-value.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.search-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  height: 44px;
  margin-top: auto;
  width: 100%;
  transition: background 0.2s ease;
}

.search-btn:hover {
  background: var(--accent-hover);
}
#slider-range,
#square-range {
  margin-top: 15px;
}
@media (max-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-container {
    padding: 15px;
  }
}
