.property-places {
  position: relative;
  width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  --place-gap: 16px;
  --place-peek: 60px;
  --place-gutter: calc(7vw - var(--place-peek));
}

.property-places__container {
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 8px var(--place-gutter);
}

.property-places__swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* Flip container so swipe left = prev, swipe right = next */
  /* transform: scaleX(-1); */
}

/*
 * FOUC / CLS: zonder deze regels is elke slide vóór Swiper-init even breed als de hele track
 * (Swiper zet pas daarna slidebreedtes). Eén slide × 100vw × aspect-ratio 4/5 = “mega groot”.
 * Spiegelt breakpoints in places.js (spaceBetween: 16).
 */
.property-places__swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
  box-sizing: content-box;
}

.property-places__swiper .swiper-slide {
  height: auto;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

/* Pre-init: zelfde verhoudingen als Swiper slidesPerView (tot .swiper-initialized) */
.property-places__swiper:not(.swiper-initialized) .swiper-slide {
  margin-right: var(--place-gap);
}

.property-places__swiper:not(.swiper-initialized) .swiper-slide:last-child {
  margin-right: 0;
}

@media (max-width: 600px) {
  .property-places__swiper:not(.swiper-initialized) .swiper-slide {
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  /* slidesPerView: 2, één tussenruimte */
  .property-places__swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - var(--place-gap)) / 2);
  }
}

@media (min-width: 901px) {
  /* slidesPerView: 3.5, drie tussenruimtes tussen de eerste slides */
  .property-places__swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 3 * var(--place-gap)) / 3.5);
  }
}

/* Flip slide content back so text/images read correctly (container is flipped for swipe direction) */
/* .property-places__swiper .swiper-slide .property-place {
  transform: scaleX(-1);
} */

.property-place {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
}

.property-place__image {
  position: absolute;
  inset: 0;
  background-color: #c8c8c8;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.property-place__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.property-place__content {
  position: relative;
  padding: 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.property-place__name {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  line-height: 40px;
  font-weight: 400;
  color: #fff;
}

.property-place__count {
  font-size: 0.85rem;
  opacity: 0.9;
  color: #fff;
}

.property-place:hover .property-place__image {
  transform: scale(1.05);
}

.property-places__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 0;
  background: #fff;
  color: #333;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.property-places__nav--prev {
  left: 16px;
  transform: translateY(-50%);
}

.property-places__nav--next {
  right: 16px;
}

.property-places__nav:hover:not(.swiper-button-disabled) {
  background: rgb(247, 247, 247);
}

.property-places__nav.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.property-places__nav-icon {
  width: 20px;
  height: 20px;
}

/* Pagination – centered below slider */
.property-places__pagination {
  width: 100%;
  display: flex;
  justify-content: center !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-bottom: 8px;
  position: static !important;
}

.property-places__pagination .swiper-pagination-bullets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.property-places__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  margin: 0 !important;
  transition: background 0.2s ease;
}

.property-places__pagination .swiper-pagination-bullet-active {
  background: #b91c1c;
}

@media (max-width: 900px) {
  .property-places__container {
    padding: 8px 32px;
  }
}

@media (max-width: 600px) {
  .property-places {
    --place-peek: 32px;
    --place-gutter: var(--place-peek);
  }

  .property-places__container {
    padding: 8px var(--place-gutter);
  }

  .property-place {
    min-height: 450px;
  }
}
