.filters-container {
  padding: 10px 20px 6px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  border-top: 1px solid #eee;
}

.range-slider {
  padding: 10px 0;
}

.range-values {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.properties-map-page {
  display: flex;
  flex-direction: column;
}

.properties-map-container {
  flex: 1;
  display: flex;
  position: relative;
  min-height: 75vh;
}

.properties-list-column {
  width: 40%;
  overflow-y: auto;
  padding: 0;
  border-right: 1px solid #eee;
  max-height: 75vh;
}

.card-link + .card-link {
  margin-left: 0rem !important;
}

.map-column {
  width: 60%;
  position: relative;
}

#properties-map {
  height: 100%;
  width: 100%;
  min-height: 600px;
}

#footer {
  display: none;
}

.properties-list .card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 100%;
  padding: 0rem 2rem;
}

@media (max-width: 1200px) {
  .properties-list .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .properties-map-container {
    flex-direction: column;
  }

  .properties-list-column,
  .map-column {
    width: 100%;
  }

  .map-column {
    height: 400px;
    order: -1;
  }

  .properties-list-column {
    max-height: none;
  }

  #properties-map {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .properties-list .card-grid {
    grid-template-columns: 1fr;
  }

  .properties-map-page {
    margin-bottom: 30px;
  }
}

.card-grid a {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-grid a:hover {
  transform: translateY(-10px);
}

.card {
  border: 1px solid rgb(143 143 143 / 13%);
  border-radius: 10px;
  box-shadow: 0 0px 20px -4px #a3a3a36b;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 10px -4px #0000003f;
  margin: 0;
}

.card-image {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 100%;
  border-radius: 10px 10px 0px 0px;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: -7px;
  color: var(--background-secondary);
  background-color: var(--background-primary);
  padding: 0.1rem 1rem 0.1rem 1rem;
  display: inline-block;
  font-weight: bold;
  font-size: 0.8rem;
  clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
}

.connector-triangle {
  position: absolute;
  top: 0;
  left: -7px;
  transform: translateY(70%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 8px solid #50b189;
}

.card-badge::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 1rem solid var(--background-primary);
  border-left: 1rem solid transparent;
}

.card-badge::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-bottom: 1rem solid var(--background-primary);
  border-left: 1rem solid transparent;
}

.card-price {
  position: absolute;
  bottom: 3px;
  right: -10px;
  color: #fff;
  background-color: var(--background-secondary);
  padding: 0.1rem 2rem;
  width: fit-content;
  border-radius: 10px 0px 0px 10px;
}

.connector-triangle-right {
  position: absolute;
  top: 51%;
  right: 0px;
  transform: translateY(-330%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 0px solid transparent;
  border-left: 10px solid #000000;
}

.card-content {
  padding: 1rem;
}

.card-address {
  color: #000000;
  font-weight: bold;
  margin-bottom: 1rem;
}

.card-address .address {
  font-size: 0.9rem;
  line-height: 1rem;
}

.card-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-content: space-evenly;
  align-items: center;
}

.card-features .feature {
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 0.8rem;
  line-height: 0.7rem;
}

.card-features .feature img {
  max-height: 24px;
}

.card-features .feature .feature-value {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: #000;
  line-height: 1rem;
  word-wrap: normal;
}

.text-center {
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.card-placeholder {
  background-color: #ccc;
  height: 200px;
  border-radius: 0.5rem;
}

.btn-icon {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  transform: rotate(180deg);
}

.noUi-handle {
  border: none;
  background: var(--background-secondary);
  cursor: pointer;
  box-shadow: none;
  border-radius: 100px;
  height: 24px !important;
  width: 24px !important;
}

.noUi-handle:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  display: block;
}

.noUi-handle:before {
  display: none;
}

.noUi-horizontal .noUi-handle {
  top: -10px;
}

.noUi-touch-area:after {
  height: 10px;
  width: 10px;
  background: #94ffd3;
}

.noUi-target {
  height: 6px;
  margin-bottom: 0.9rem;
  border: 1px solid #94ffd3;
  width: 100%;
}

@media (max-width: 768px) {
  .noUi-target {
    margin-bottom: 30px;
  }
  .rslide {
    margin-top: 20px;
  }
  .properties-count .count-number {
    color: var(--background-secondary);
  }
}

.range-values {
  margin-top: -10px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.noUi-connect {
  background: #94ffd3;
}

.leaflet-container {
  background: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.custom-marker {
  background: none;
  border: none;
}

.marker-price {
  background: #94ffd3;
  color: var(--background-secondary);
  padding: 0.1rem 0.5rem;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  white-space: nowrap;
  text-align: center;
  position: relative;
  width: fit-content;
  transition: all 0.3s ease;
  transform: scale(1);
  z-index: 1;
}

.marker-price.highlighted {
  transform: scale(1.1);
  background: var(--background-secondary);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* START Small Icon Marker */
.marker-dot {
  width: auto;
  height: 28px;
  transition: all 0.3s ease;
  transform: scale(.8);
  filter: brightness(1.2);
}

.marker-dot.highlighted {
  transform: scale(1.3);
  filter: brightness(1) contrast(200%);
}

/* Aplicar z-index no container do marker quando houver um elemento destacado dentro */
.leaflet-marker-icon:has(.marker-price.highlighted),
.leaflet-marker-icon:has(.marker-dot.highlighted) {
  z-index: 9999 !important;
}

.leaflet-marker-icon.custom-marker.highlighted {
  z-index: 9999 !important;
}
/* END Small Icon Marker */

.marker-circle {
  width: 30px;
  height: 30px;
  background: var(--background-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 12px;
}

.group-popup {
  padding: 10px;
}

.group-popup h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #333;
}

.group-properties {
  max-height: 200px;
  overflow-y: auto;
}

.group-property {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.group-property:last-child {
  border-bottom: none;
}

.group-property .price {
  font-weight: bold;
  color: var(--background-secondary);
}

.group-property .address {
  font-size: 12px;
  color: #666;
}

.property-popup-container {
  margin-top: -10px;
}

.property-popup-container .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.property-popup-container .leaflet-popup-tip {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-control-zoom a {
  background: white !important;
  color: #666 !important;
  border: none !important;
}

.leaflet-control-zoom a:hover {
  background: #f8f9fa !important;
  color: #333 !important;
}

/* Estilo para o botão de remover limites */
.remove-boundary-control {
  background: white;
  padding: 0 !important;
  margin: 10px !important;
}

#remove-boundary-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: none;
  padding: 10px !important;
  background: #ffffff26;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#remove-boundary-btn.visible {
  display: flex;
  opacity: 1;
}

.remove-boundary-button {
  padding: 6px 10px;
  display: block;
  color: #666;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: fit-content !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffffa6 !important;
  color: var(--background-secondary) !important;
  box-shadow: 0px 3px 7px -5px #303a57;
}

.remove-boundary-button:hover {
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
}

.leaflet-marker-pane .highlighted,
.marker-price.highlighted {
  z-index: 9999 !important;
}

/* Estilo para o marcador destacado */
.custom-marker.highlighted .marker-price {
  background-color: #303a57 !important;
  color: white !important;
  transition: all 0.3s ease;
}

.leaflet-popup-content-wrapper {
  padding: 0.8rem;
}

.leaflet-popup {
  bottom: 28px !important;
}

.leaflet-container .leaflet-control-attribution {
  display: none;
}

.homeaid-card-icons {
    max-height: 20px;
}

/* Double Range Slider Styles */
.range-filter {
  --primary-color: #0066FF;
  --value: 0;
  --text-value: "0";
  --value-a: 0;
  --value-b: 100;
  --text-value-a: "0%";
  --text-value-b: "100%";
  --min: 0;
  --max: 100;
  
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: space-evenly;
}

.range-filter input[type="range"] {
  -webkit-appearance: none;
  position: absolute;
  width: 100%;
  height: 4px;
  margin: 0;
  background: none;
  pointer-events: none;
}

.range-filter input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  margin-top: -6px;
}

.range-filter input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
}

.range-filter .progress {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #ddd;
  pointer-events: none;
}

.range-filter .progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--primary-color);
  clip-path: var(--clip);
}

.range-filter output {
  position: absolute;
  background: var(--primary-color);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  transform: translateY(-100%);
  margin-top: -10px;
  font-size: 12px;
}

.range-filter output:nth-of-type(1) {
  left: calc(var(--value-a) * 1%);
  transform: translate(-50%, -100%);
}

.range-filter output:nth-of-type(2) {
  left: calc(var(--value-b) * 1%);
  transform: translate(-50%, -100%);
}

.range-filter output::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--primary-color) transparent transparent transparent;
}

/* Ajustes para o container do filtro */
.filter-container {
  margin-bottom: 1.5rem;
}

.filter-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.filter-values {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}


/* Accordion Filters Mobile */
.filters-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  position: relative;
  font-weight: 500;
}

.filters-toggle-btn .filters-icon {
  position: absolute;
  right: 15px;
  transition: transform 0.3s ease;
}

.filters-toggle-btn.active .filters-icon {
  transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 767px) {
  .filters-toggle-btn {
      display: block;
  }

  .filters-content {
    background: #fff;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: transform 0.3s ease-in-out,
                opacity 0.4s ease-out,
                height 0.4s ease-out;
  }

  .filters-content.expanded {
      transform: scaleY(1);
      opacity: 1;
      height: auto;
      overflow: visible;
      transition: transform 0.4s ease-out,
                  opacity 0.3s ease-in,
                  height 0.4s ease-out;
  }

  .filters-container .row > div {
      margin-bottom: 15px;
  }

  .filters-container .row > div:last-child {
      margin-bottom: 0;
  }

  /* Animação do ícone de seta */
  .filters-toggle-btn .filters-icon {
      transition: transform 0.4s ease-out;
  }

  .filters-toggle-btn.active .filters-icon {
      transform: rotate(180deg);
  }
}

.properties-count {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-weight: 500;
}

.btn-apply {
  display: block;
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: #3DEBA3;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.btn-apply:hover {
  background: #35d694;
}

.remove-boundary-control.state {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 8px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: box-shadow 0.2s;
    display: block;
}

.remove-boundary-control.state .remove-boundary-button {
    color: #222;
    font-weight: 500;
}