/* ================= UNITS SECTION ================= */
.unit-section {
  display: flex;
  flex-direction: column;
}

.unit-wrapper {
  border-radius: 5px;
  margin: 80px 200px 40px;
}

.unit-header {
  text-align: center;
}

.unit-header h1 {
  margin-bottom: 15px;
  font-size: 80px;
  letter-spacing: -2px;
}

.unit-header p {
  font-weight: normal;
  line-height: 30px;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

/* Swiper */
.unit-swiper {
  width: 100%;
  position: relative;
}

.unit-swiper .swiper-slide {
  flex-shrink: 0;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.6;
  transition: all 0.6s ease;
  width: 240px;
  position: relative !important;
}

/* Active slide */
.unit-swiper .swiper-slide.active-slide {
  width: 720px !important;
  opacity: 1;
  border-radius: 25px;
  z-index: 2;
}

/* Slide image */
.unit-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
  border-radius: inherit;
}

/* Footer wrapper */
.swiper-footer-property {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 5rem;
}

.swiper-footer-property .swiper-nav {
  display: flex;
  gap: 12px;
}

/* Navigation buttons */
.swiper-footer-property .swiper-button-prev,
.swiper-footer-property .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #D36C2F;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff; /* makes SVG white */
  cursor: pointer;
  transition: background 0.3s ease;
}

.swiper-footer-property .swiper-button-prev:hover,
.swiper-footer-property .swiper-button-next:hover {
  background: #DE9A5E;
}

/* Remove default Swiper arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
  content: none !important;
}

.swiper-footer-property .swiper-button-prev svg,
.swiper-footer-property .swiper-button-next svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------------- TABLET ---------------- */
@media (max-width: 1024px) {
  .unit-section {
    height: 100%;
  }

  .unit-wrapper {
    margin: 60px 60px;
  }

  .unit-header h1 {
    font-size: 50px;
    line-height: 60px;
  }

  .unit-header p {
    font-size: 18px;
    line-height: 26px;
  }

  .unit-swiper .swiper-slide {
    width: 180px;
    height: 400px;
  }

  .unit-swiper .swiper-slide.active-slide {
    width: 500px !important;
    height: 400px;
  }
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {
  .unit-wrapper {
    margin: 40px 20px;
  }

  .unit-header h1 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1px;
  }

  .unit-header p {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  .unit-swiper .swiper-slide {
    width: 140px;
    height: 280px;
  }

  .unit-swiper .swiper-slide.active-slide {
    width: 100% !important;
    height: 280px;
    border-radius: 16px;
  }

  .swiper-footer-property {
    align-items: center;
    gap: 16px;
    margin-top: 2rem;
  }

  .swiper-footer-property .swiper-button-prev,
  .swiper-footer-property .swiper-button-next {
    width: 32px;
    height: 32px;
  }
}
