.wonen-archive .pagination-wrapper {
  margin-top: 40px;
}

.wonen-archive .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wonen-archive .pagination a,
.wonen-archive .pagination span {
  align-items: center;
  border: 1px solid rgba(9, 30, 89, 0.2);
  border-radius: 999px;
  color: #091e59;
  display: inline-flex;
  font-size: 15px;
  height: 44px;
  justify-content: center;
  min-width: 44px;
  padding: 0 16px;
  text-decoration: none;
}

.wonen-archive .pagination .current {
  background: #091e59;
  border-color: #091e59;
  color: #fff;
}

.wonen-archive .house-filter__list-link {
  cursor: pointer;
  text-decoration: none;
}

.wonen-archive .sr-only {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

.wonen-archive .house-search__holder label,
.wonen-archive .house-search__button label {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

.wonen-archive .cg-house-sort form {
  margin: 0;
}

.wonen-archive .house-search__holder .filter.filter-group-straal select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.filter-popup {
  background: #fff;
  border-radius: 28px;
  font-size: 16px;
  margin: 0 auto;
  max-width: 980px;
  padding: 60px 34px 34px;
  position: relative;
  width: calc(100vw - 28px);
  z-index: 1;
}

.filter-popup h3 {
  margin-bottom: 8px;
}

.filter-popup h3 + p {
  color: rgba(9, 30, 89, 0.74);
  margin-bottom: 22px;
}

.filter-popup .cg-filter-quick {
  background: linear-gradient(180deg, #f7f8ff 0%, #f4f6ff 100%);
  border: 1px solid rgba(9, 30, 89, 0.08);
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 18px;
}

.filter-popup .cg-filter-quick__head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filter-popup .cg-filter-quick__head h4 {
  color: #091e59;
  font-size: 18px;
  margin: 0;
}

.filter-popup .cg-filter-quick__count {
  align-items: center;
  background: #091e59;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 8px;
}

.filter-popup .cg-filter-quick__group + .cg-filter-quick__group {
  margin-top: 16px;
}

.filter-popup .cg-filter-quick__group h5 {
  font-size: 14px;
  margin: 0 0 8px;
}

.filter-popup .cg-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-popup .cg-chip {
  cursor: pointer;
  display: inline-flex;
}

.filter-popup .cg-chip input {
  left: -9999px;
  opacity: 0;
  position: absolute;
}

.filter-popup .cg-chip span {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(9, 30, 89, 0.22);
  border-radius: 999px;
  color: #091e59;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  padding: 0 14px;
  transition: all 0.2s ease;
}

.filter-popup .cg-chip input:checked + span {
  background: #091e59;
  border-color: #091e59;
  box-shadow: 0 8px 18px rgba(9, 30, 89, 0.18);
  color: #fff;
}

.filter-popup .cg-filter-advanced-toggle {
  align-items: center;
  background: rgba(9, 30, 89, 0.03);
  border: 1px solid rgba(9, 30, 89, 0.1);
  border-radius: 12px;
  color: #091e59;
  cursor: pointer;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 1fr auto;
  margin: 0 0 18px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.filter-popup .cg-filter-advanced-toggle span {
  font-size: 15px;
  font-weight: 700;
}

.filter-popup .cg-filter-advanced-toggle small {
  color: rgba(9, 30, 89, 0.72);
  font-size: 12px;
  font-weight: 500;
  grid-column: 1;
}

.filter-popup .cg-filter-advanced-toggle i {
  font-size: 11px;
  grid-column: 2;
  grid-row: 1 / span 2;
  transition: transform 0.2s ease;
}

.filter-popup .cg-filter-advanced-toggle.is-open i {
  transform: rotate(180deg);
}

.filter-popup .cg-filter-advanced {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.filter-popup .cg-filter-advanced.is-open {
  max-height: 2400px;
  opacity: 1;
}

.filter-popup .cg-filter-advanced .filter {
  border-bottom: 1px solid rgba(0, 14, 67, 0.1);
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.filter-popup .cg-filter-advanced .filter:last-child {
  margin-bottom: 0;
}

.filter-popup .cg-filter-advanced .filter-trigger {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.filter-popup .cg-filter-advanced .filter-trigger h3 {
  font-size: 16px;
  margin: 0;
}

.filter-popup .cg-filter-advanced .filter-trigger i {
  color: rgba(0, 14, 67, 0.68);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.filter-popup .cg-filter-advanced .filter.is-open .filter-trigger i {
  transform: rotate(180deg);
}

.filter-popup .cg-filter-advanced .filter-dropdown {
  display: none;
  flex-wrap: wrap;
  margin-top: 14px;
  width: 100%;
}

.filter-popup .cg-filter-advanced .filter.is-open .filter-dropdown {
  display: flex;
}

.filter-popup .cg-filter-advanced .filter.filter-group-prijs.is-open .filter-dropdown,
.filter-popup .cg-filter-advanced .filter.filter-group-oppervlakte.is-open .filter-dropdown,
.filter-popup .cg-filter-advanced .filter.filter-group-straal.is-open .filter-dropdown {
  display: block;
}

.filter-popup .cg-filter-advanced .filter-dropdown li {
  margin-bottom: 8px;
  width: 50%;
}

.filter-popup .cg-filter-advanced .filter.filter-group-prijs select,
.filter-popup .cg-filter-advanced .filter.filter-group-oppervlakte select,
.filter-popup .cg-filter-advanced .filter.filter-group-oppervlakte input,
.filter-popup .cg-filter-advanced .filter.filter-group-straal select {
  appearance: none;
  background-color: #fff;
  background-image: url("../images/select-down.svg");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 12px;
  border: 1px solid rgba(0, 14, 67, 0.16);
  border-radius: 10px;
  min-height: 46px;
  padding: 10px 34px 10px 12px;
  width: 100%;
  -webkit-appearance: none;
}

.filter-popup .cg-filter-advanced .filter.filter-group-oppervlakte input {
  background-image: none;
  padding-right: 12px;
}

.filter-popup .cg-filter-advanced .filter .filter-dropdown label {
  display: block;
  position: relative;
}

.filter-popup .cg-filter-advanced .filter .filter-dropdown label input[type="checkbox"],
.filter-popup .cg-filter-advanced .filter .filter-dropdown label input[type="radio"] {
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
}

.filter-popup .cg-filter-advanced .filter .filter-dropdown label span {
  display: block;
  line-height: 1.5;
  padding-left: 25px;
  position: relative;
}

.filter-popup .cg-filter-advanced .filter .filter-dropdown label span::before {
  align-items: center;
  background-color: #fff;
  border: 1px solid #000E43;
  border-radius: 4px;
  color: transparent;
  content: "\E907";
  display: flex;
  font-family: "beheer-icons";
  font-size: 14px;
  height: 16px;
  justify-content: center;
  left: 0;
  line-height: 1;
  position: absolute;
  top: 2px;
  width: 16px;
}

.filter-popup .cg-filter-advanced .filter .filter-dropdown label input[type="checkbox"]:checked + span::before {
  background-color: #000E43;
  color: #fff;
}

.filter-popup .cg-filter-advanced .filter .filter-dropdown label input[type="radio"] + span::before {
  border-radius: 999px;
  content: "";
}

.filter-popup .cg-filter-advanced .filter .filter-dropdown label input[type="radio"]:checked + span::before {
  background-color: #fff;
}

.filter-popup .cg-filter-advanced .filter .filter-dropdown label input[type="radio"]:checked + span::after {
  background: #000E43;
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 3px;
  position: absolute;
  top: 5px;
  width: 10px;
}

.filter-popup .button-wrapper {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-popup__close {
  position: absolute !important;
  right: 20px;
  top: 16px;
}

.wonen-archive .view-type .sure-switch.active a {
  color: #091e59;
  font-weight: 700;
}

.wonen-archive .view-type .sure-switch a {
  text-decoration: none;
}

.wonen-archive--map .house-list {
  margin-top: 0;
}

.map-section--wonen {
  padding: 0 20px 30px;
  width: 100%;
}

.map-section--wonen .map-section__holder {
  width: 100%;
}

.map-section--wonen .sure-map-holder {
  border-radius: 20px;
  overflow: hidden;
}

.wonen-archive--map .map-section--wonen .cg-wonen-map {
  border-radius: 0;
  min-height: calc(100vh - 270px);
}

.wonen-single .house-media__video,
.wonen-single .house-media__block,
.wonen-single .house-map__image {
  background: none;
  border: 0;
  cursor: pointer;
  display: block;
  padding: 0;
  width: 100%;
}

.wonen-single .house-media__video img,
.wonen-single .house-media__block img,
.wonen-single .house-map__image img {
  display: block;
  height: auto;
  width: 100%;
}

.wonen-single .house-layout__image img {
  width: 100%;
  height: auto;
}

.cg-wonen-map {
  background: rgba(9, 30, 89, 0.06);
  border-radius: 16px;
  min-height: 420px;
  width: 100%;
}

.cg-wonen-map .cg-wonen-map__empty {
  align-items: center;
  color: #425175;
  display: flex;
  font-size: 16px;
  height: 100%;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.cg-wonen-lightbox {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 200000;
}

.cg-wonen-lightbox.is-open {
  display: flex;
}

.cg-wonen-lightbox__backdrop {
  background: rgba(0, 12, 38, 0.84);
  inset: 0;
  position: absolute;
}

.cg-wonen-lightbox__dialog {
  background: #0b1a45;
  border-radius: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  max-width: 1380px;
  overflow: hidden;
  position: relative;
  width: calc(100vw - 32px);
  z-index: 2;
}

.cg-wonen-lightbox__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  z-index: 4;
}

.cg-wonen-lightbox__tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 72px 14px 16px;
  white-space: nowrap;
}

.cg-wonen-lightbox__tabs button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  padding: 8px 14px;
}

.cg-wonen-lightbox__tabs button.is-active {
  background: #fff;
  border-color: #fff;
  color: #091e59;
}

.cg-wonen-lightbox__viewport {
  align-items: center;
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  grid-template-columns: 44px 1fr 44px;
  min-height: 0;
  padding: 16px;
}

.cg-wonen-lightbox__viewer {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 0;
}

.cg-wonen-lightbox__viewer img,
.cg-wonen-lightbox__viewer iframe,
.cg-wonen-lightbox__viewer video {
  border-radius: 12px;
  max-height: 100%;
  max-width: 100%;
  width: auto;
}

.cg-wonen-lightbox__viewer iframe,
.cg-wonen-lightbox__viewer video {
  aspect-ratio: 16/9;
  width: min(100%, 1100px);
}

.cg-wonen-lightbox__nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.cg-wonen-lightbox__nav:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cg-wonen-lightbox__counter {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
  padding: 0 16px;
}

.cg-wonen-lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  min-height: 22px;
  padding: 0 16px 12px;
}

.cg-wonen-lightbox__thumbs {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 18px 18px;
  scroll-behavior: smooth;
}

.cg-wonen-lightbox__thumb {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  flex: 0 0 126px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.cg-wonen-lightbox__thumb.is-active {
  border-color: #ff6441;
}

.cg-wonen-lightbox__thumb img {
  display: block;
  height: 82px;
  object-fit: cover;
  width: 100%;
}

.cg-wonen-lightbox__thumb-play {
  align-items: center;
  backdrop-filter: blur(2px);
  background: rgba(9, 30, 89, 0.5);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  height: 28px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
}

.cg-wonen-lightbox__thumb--video {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  height: 82px;
  justify-content: center;
  padding: 0 8px;
  text-align: center;
}

.is-open-gallery {
  overflow: hidden;
}

@media (max-width: 991px) {
  .filter-popup {
    border-radius: 18px;
    max-width: 100%;
    padding: 54px 20px 22px;
    width: calc(100vw - 14px);
  }

  .filter-popup .cg-filter-advanced .filter-dropdown li {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .cg-wonen-lightbox {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-popup {
    border-radius: 14px;
    padding: 50px 14px 16px;
  }

  .filter-popup h3 + p {
    margin-bottom: 16px;
  }

  .filter-popup .cg-filter-quick {
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 14px;
  }

  .filter-popup .cg-chip span {
    font-size: 12px;
    min-height: 34px;
    padding: 0 12px;
  }

  .filter-popup .cg-filter-advanced-toggle {
    margin-bottom: 12px;
    padding: 10px 12px;
  }

  .filter-popup .cg-filter-advanced .filter {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .wonen-archive--map .house-map--fullscreen .cg-wonen-map {
    min-height: calc(100vh - 210px);
  }

  .wonen-archive--map .map-section--wonen .cg-wonen-map {
    min-height: calc(100vh - 210px);
  }

  .cg-wonen-map {
    min-height: 320px;
  }

  .cg-wonen-lightbox__dialog {
    border-radius: 0;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    max-width: 100vw;
    width: 100vw;
  }

  .cg-wonen-lightbox__close {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
  }

  .cg-wonen-lightbox__tabs {
    gap: 6px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 54px 10px 10px;
  }

  .cg-wonen-lightbox__tabs button {
    font-size: 12px;
    padding: 7px 10px;
  }

  .cg-wonen-lightbox__viewport {
    grid-template-columns: 36px 1fr 36px;
    min-height: 280px;
    padding: 10px;
  }

  .cg-wonen-lightbox__viewer {
    min-height: 260px;
  }

  .cg-wonen-lightbox__counter {
    padding: 0 10px;
  }

  .cg-wonen-lightbox__caption {
    padding: 0 10px 10px;
  }

  .cg-wonen-lightbox__thumb {
    flex-basis: 88px;
  }

  .cg-wonen-lightbox__thumb img,
  .cg-wonen-lightbox__thumb--video {
    height: 58px;
  }
}








/* Search button: icon-only, inside white form card */
.house-search__holder form {
  overflow: hidden;
}
.house-search__holder form > .row {
  margin-right: 0 !important;
}
.house-search__holder form > .row > .col-md-7 {
  padding-right: 0 !important;
}
.house-search__holder form > .row > .col-md-7 > .row {
  margin-right: 0 !important;
}
.house-search__holder .col-md-7 .row button.button {
  font-size: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 10px;
  margin: 0;
  width: 56px;
  height: 56px;
  cursor: pointer;
  flex-shrink: 0;
}
.house-search__holder .col-md-7 .row button.button::after {
  content: "\E91F";
  font-family: "beheer-icons" !important;
  font-size: 18px;
  color: #fff;
}
.house-search__holder .col-md-7 .row button.button:hover {
  background-color: #7E90FF;
}
.house-search__holder .col-md-7 .row button.button:hover::after {
  color: #000E43;
}
