/**
 * Related Properties – Swiper with property cards (same layout as home-properties)
 */

.property-related-properties {
  margin-bottom: 2rem;
}

.property-related-properties__title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.property-related-properties__container {
  position: relative;
}

.property-related-properties__slider {
  width: 100%;
}

.property-related-properties__slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.property-related-properties__slider .property-card {
  height: 100%;
}

.property-related-properties__slider .property-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-related-properties__slider .property-card__media {
  flex: 0 0 auto;
}

.property-related-properties__slider .property-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.property-related-properties__slider .property-card__footer {
  margin-top: auto;
}

/* Navigation Controls */
.property-related-properties__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.property-related-properties__container > .fusion-button {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.property-related-properties__button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  color: #2f363e;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.property-related-properties__button:hover:not(.swiper-button-disabled) {
  background-color: #bda674;
  border-color: #bda674;
  color: #ffffff;
}

.property-related-properties__button.swiper-button-disabled {
  opacity: 0.2;
  cursor: not-allowed;
  border-color: #cccccc;
}

.property-related-properties__button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Pagination – same as property-places */
.property-related-properties__pagination {
  position: static !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: auto !important;
  padding: 0 10px;
}

.property-related-properties__pagination .swiper-pagination-bullets {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.property-related-properties__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  margin: 0 !important;
  transition: background 0.2s ease;
  cursor: pointer;
}

.property-related-properties__pagination .swiper-pagination-bullet-active {
  background: #b91c1c;
}

@media (max-width: 767px) {
  .property-related-properties__controls {
    gap: 10px;
    margin-top: 20px;
  }

  .property-related-properties__button {
    width: 40px;
    height: 40px;
  }

  .property-related-properties__button svg {
    width: 16px;
    height: 16px;
  }

  .property-related-properties__pagination {
    display: none;
  }
}

/* Exclusive properties – simple 3-card grid reusing the same card layout */
.exclusive-properties {
  margin-bottom: 2rem;
}

.exclusive-properties__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .exclusive-properties__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.exclusive-properties__grid .property-card {
  height: 100%;
}

.exclusive-properties__grid .property-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.exclusive-properties__grid .property-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.exclusive-properties__grid .property-card__footer {
  margin-top: auto;
}

/* Invest properties – same 3-card grid layout */
.invest-properties {
  margin-bottom: 2rem;
}

.invest-properties__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .invest-properties__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.invest-properties__grid .property-card {
  height: 100%;
}

.invest-properties__grid .property-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.invest-properties__grid .property-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.invest-properties__grid .property-card__footer {
  margin-top: auto;
}
