.home-properties {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.home-properties__filters {
  background: #fff;
  padding: 1.5rem 1rem;
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.08);
  position: relative;
  padding-top: 1.5rem;
  overflow: visible;
}

.home-properties__tabs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  z-index: 2;
}

.home-properties__tab {
  border: 0;
  padding: 0.9rem 2rem;
  background: rgba(245, 245, 245, 1);
  backdrop-filter: blur(6px);
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  color: #7a7a7a;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  position: relative;
  margin-bottom: -8px;
}

.home-properties__tab.is-active {
  color: #1d1d1d;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.home-properties__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.home-properties__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-properties__multi {
  position: relative;
}

.home-properties__location {
  position: relative;
}

.home-properties__type {
  position: relative;
}

/* Reference search inside advanced filters row. */
.home-properties .home-properties__reference-input {
  padding-left: 0.8rem !important; /* home-properties__select normally reserves icon space */
  -webkit-appearance: none;
  appearance: none;
}

.home-properties .home-properties__reference-input::placeholder {
  color: #666;
}

.home-properties__location-toggle,
.home-properties__type-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #e1e1e1;
  background: #fff;
  height: 44px;
  padding: 0 0.8rem;
  font-size: 0.95rem;
  color: #4b4b4b;
  cursor: pointer;
  border-radius: 0;
  position: relative;
}

.home-properties__location-toggle .home-properties__icon,
.home-properties__type-toggle .home-properties__icon {
  position: static;
  transform: none;
  margin-right: 0.4rem;
}

.home-properties__location-label,
.home-properties__type-label {
  flex: 1;
  text-align: left;
  color: #666;
}

.home-properties__location-panel,
.home-properties__type-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e1e1e1;
  box-shadow: 0 12px 24px rgba(15, 15, 15, 0.08);
  padding: 0.8rem 0.9rem;
  display: none;
  z-index: 20;
  max-height: 260px;
  overflow: auto;
  pointer-events: auto;
}

.home-properties__location.is-open .home-properties__location-panel,
.home-properties__type.is-open .home-properties__type-panel {
  display: block;
}

.home-properties__type-toggle[aria-expanded="true"] + .home-properties__type-panel,
.home-properties__location-toggle[aria-expanded="true"] + .home-properties__location-panel {
  display: block;
}

.home-properties__type:focus-within .home-properties__type-panel,
.home-properties__location:focus-within .home-properties__location-panel {
  display: block;
}

.home-properties__location-search,
.home-properties__type-search {
  margin-bottom: 0.6rem;
}

.home-properties__location-search input,
.home-properties__type-search input {
  width: 100%;
  height: 38px;
  padding: 0 0.75rem;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  font-size: 0.9rem;
}

.home-properties__location-list,
.home-properties__type-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-properties__location-item,
.home-properties__type-item {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  color: #4b4b4b;
}

.home-properties__location-item.is-active,
.home-properties__type-item.is-active {
  background: #efe7d8;
}

.home-properties__location-item:hover,
.home-properties__type-item:hover {
  background: #f5f0e6;
}

.home-properties__location-item:disabled,
.home-properties__type-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.home-properties__multi-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #e1e1e1;
  background: #fff;
  min-height: 44px;
  padding: 0 0.8rem;
  font-size: 0.95rem;
  color: #4b4b4b;
  cursor: pointer;
  border-radius: 0;
  position: relative;
}

.home-properties__multi-toggle .home-properties__icon {
  position: static;
  top: auto;
  transform: none;
  margin-right: 0.4rem;
}

.home-properties__multi-label {
  flex: 1;
  text-align: left;
  color: #666;
}

.home-properties__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #8c8c8c;
  border-bottom: 2px solid #8c8c8c;
  transform: rotate(45deg);
  margin-left: auto;
}

.home-properties__multi-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: 640px;
  background: #fff;
  border: 1px solid #e1e1e1;
  box-shadow: 0 12px 24px rgba(15, 15, 15, 0.08);
  padding: 0.8rem 0.9rem;
  display: none;
  z-index: 5;
  max-height: 320px;
  overflow: auto;
}

.home-properties__multi-search {
  margin-bottom: 0.6rem;
  grid-column: 1 / -1;
}

.home-properties__multi-search input {
  width: 100%;
  height: 38px;
  padding: 0 0.75rem;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  font-size: 0.9rem;
}

.home-properties__multi-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.6rem;
}

.home-properties__multi-active {
  display: none;
  grid-column: 1 / -1;
  position: sticky;
  /* corrigeer voor de padding-top van het panel zodat de chips echt tegen de bovenkant aan zitten */
  top: -0.8rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  background: #fff;
  padding-block: 0.35rem;
  z-index: 2;
}

.home-properties__multi-active.is-visible {
  display: flex;
}

.home-properties__multi-active-label {
  font-weight: 600;
}

.home-properties__multi-active-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.home-properties__multi-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f5f0e6;
  border: 1px solid #e1d6c0;
  color: #4b4b4b;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.home-properties__multi-chip-remove {
  font-size: 11px;
  line-height: 1;
}

.home-properties__checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: #4b4b4b;
  cursor: pointer;
}

.home-properties__checkbox:hover {
  background: #f5f0e6;
}

.home-properties__multi.is-open .home-properties__multi-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 0.2rem;
}

.home-properties__multi-title {
  grid-column: 1 / -1;
}

.home-properties__checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.home-properties__checkbox-box {
  width: 14px;
  height: 14px;
  border: 1px solid #c08b8b;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-properties__checkbox input:checked + .home-properties__checkbox-box {
  background: #864644;
  border-color: #864644;
}

.home-properties__checkbox input:checked + .home-properties__checkbox-box::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
}

.home-properties__checkbox-label {
  flex: 1;
}
.home-properties__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.home-properties__icon {
  position: absolute;
  left: 0.75rem;
  color: #9b9b9b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  width: 16px;
  height: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.home-properties__icon svg {
  width: 16px;
  height: 16px;
}

.home-properties__select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  background: #fff;
  font-size: 0.95rem;
  padding-left: 2.4rem;
}

.home-properties__field--price {
  grid-column: span 1;
}

.home-properties__advanced-toggle {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.home-properties__advanced-button {
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #ca2a2a;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.home-properties__advanced-icon {
  font-size: 0.8rem;
}

.home-properties__advanced {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee1cf;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.home-properties__advanced.is-open {
  display: flex;
}

.home-properties__advanced-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-properties__advanced-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.home-properties__advanced-label-text {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}

.home-properties__advanced-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #4b4b4b;
}

.home-properties__advanced-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.home-properties__advanced-reset {
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  color: #7a7a7a;
}

.home-properties__advanced-less {
  border: 0;
  background: transparent;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7a7a;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.home-properties__price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e1e1e1;
  background: #fff;
  min-height: 44px;
  padding: 0 0.8rem;
  border-radius: 0;
  box-sizing: border-box;
  width: 100%;
}

.home-properties__price .home-properties__icon {
  position: static;
  margin-right: 0.25rem;
  align-self: center;
  top: auto;
  transform: none;
}

.home-properties__price-range {
  position: relative;
  height: 16px;
  flex: 1;
  max-width: 140px;
  min-width: 120px;
}

.home-properties__price-track {
  height: 8px !important;
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 2px;
  background: #864644;
  border-radius: 999px;
}

.home-properties__price-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  accent-color: #864644;
}

.home-properties__price-values {
  color: #4b4b4b;
  white-space: nowrap;
  margin-top: 2px;
}

.home-properties__price-range input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: transparent;
}

.home-properties__price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #864644;
  pointer-events: auto;
  position: relative;
}

.home-properties__price-range input[type="range"]::-moz-range-track {
  height: 2px;
  background: transparent;
}

.home-properties__price-range input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #864644;
  pointer-events: auto;
}


.home-properties__price-values {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5c5c5c;
}

.home-properties__price-selects {
  display: none;
}

.home-properties__price-select {
  min-width: 0;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 0;
  font-size: 0.9rem;
  background: #fff;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .home-properties__price-select {
    padding: 0 0.4rem !important;
  }
}

.home-properties__price-select:first-of-type {
  border-right: 1px solid #e1e1e1;
}

.home-properties__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-properties__cta-banner {
  grid-column: 1 / -1;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46, 53, 61, 0.85) 0%, rgba(46, 53, 61, 0.7) 100%),    url("https://costadelsol.conversie.partners/wp-content/uploads/2026/02/Heading.jpg") center/cover no-repeat;
  padding: 3rem 2rem;
  text-align: center;
}

.home-properties__cta-banner-inner {
  max-width: 600px;
}

.home-properties__cta-banner-title {
  margin: 0 0 1rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2rem !important;
  font-weight: 400;
  color: #fff !important;
  letter-spacing: 0.02em;
}

.home-properties__cta-banner-text {
  margin: 0 0 1.5rem;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.9);
}

.home-properties__cta-banner-link {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: #ffffff;
  color: #2e353d;
  border: 1px solid #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-properties__cta-banner-link:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.home-properties__total {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.home-properties__more {
  text-align: center;
  margin-top: 0.5rem;
}

.home-properties__more-button {
  border: 1px solid #2e353d;
  background: #2e353d;
  color: #ffffff;
  padding: 0.7rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-properties__more-button:hover {
  background: #ffffff;
  color: #2e353d;
  border-color: #2e353d;
}

.home-properties__more-link {
  display: inline-block;
  border: 1px solid #2e353d;
  background: #2e353d;
  color: #ffffff;
  padding: 0.7rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-properties__more-link:hover {
  background: #ffffff;
  color: #2e353d;
  border-color: #2e353d;
}

.home-properties__pagination {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.78rem;
  color: #2e353d;
}

.home-properties__pagination-button {
  min-width: 32px;
  border: 1px solid transparent;
  background: #ffffff;
  color: #2e353d;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 0;
}

.home-properties__pagination-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.home-properties__pagination-button--active {
  border-color: #2e353d;
  background: #2e353d;
  color: #ffffff;
}

.home-properties__pagination-ellipsis {
  padding: 0 0.35rem;
}

.property-card {
  background: #f7f7f7;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.property-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.property-card__media {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  box-sizing: border-box;
}

.property-card__media img,
.property-card__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  transform-origin: center center;
}

/* Listing/property type tags container in bottom-left of image */
.property-card__type-tags {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.property-card__type-tags--exclusive {
  left: calc(4% + 14px);
  line-height: 1.72;
}

.property-card__type-tag {
  background: rgba(46, 53, 61, 0.82);
  color: #ffffff;
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.10rem 0.7rem;
  white-space: nowrap;
}

.property-card:hover .property-card__media img {
  transform: scale(1.06);
}

.property-card__body {
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
}

.property-card__location {
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(88, 101, 116);
}

.property-card__title {
  margin: 0.1rem 0 0.35rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 28px !important;
  color: rgb(46, 53, 61) !important;
}

.property-card:hover .property-card__title {
  color: rgb(203, 42, 42) !important;
}

.property-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.property-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgb(88, 101, 116);
}

.property-card__details-separator::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: currentColor;
  transform: translateY(-1px);
}

.property-card__price {
  margin: 0;
  margin-left: auto;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 18px;
  color: rgb(46, 53, 61);
  white-space: nowrap;
}

.property-card__price--rent {
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}

.property-card__rent-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: flex-end;
}

.property-card__rent-tag {
  font-size: 12px;
  line-height: 1;
  padding: 2px 8px;
  background: rgba(239, 231, 216, 1);
  color: rgb(46, 53, 61);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.property-card__rent-value {
  font-size: 16px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  color: rgb(46, 53, 61);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .home-properties__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-properties__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .property-card__footer {
    align-items: flex-start;
    gap: 0.25rem;
  }

  .property-card__details {
    gap: 0.2rem;
    font-size: 11px;
  }

  .property-card__price {
    font-size: 16px;
  }
  .home-properties__fields {
    grid-template-columns: 1fr;
  }

  .home-properties__cards {
    grid-template-columns: 1fr;
  }

  /* Op mobiel: slider verbergen, dropdowns tonen */
  .home-properties__price-range,
  .home-properties__price-values {
    display: none;
  }

  .home-properties__price-selects {
    display: flex;
    gap: 0;
  }

  .home-properties__price-select:first-child {
    border-right: 0;
  }

  .home-properties__price-select:last-child {
    border-left: 0;
  }

  /* Op mobiel: lifestyle dropdown zelfde layout als locations/types (één kolom met scroll) */
  .home-properties__multi-panel {
    width: 100%;
    right: 0;
  }

  .home-properties__multi.is-open .home-properties__multi-panel {
    display: block;
  }

  .home-properties__advanced-row {
    grid-template-columns: 1fr;
  }
}
