
/* ==========================================
   SRII PROPERTIES — SECTION 05
   LATEST PROPERTIES SLIDER
   ========================================== */

.sp5 {
  padding: 76px 0 82px;
  background: #ffffff;
  color: #0a2144;
}

.sp5,
.sp5 * {
  box-sizing: border-box;
}

.sp5__shell {
  width: min(1450px, calc(100% - 64px));
  margin: 0 auto;
}

/* SECTION HEADING */

.sp5__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.sp5__eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: 700;
  margin: 0 0 10px;
}

.sp5 h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 10px;
}

.sp5__subtitle {
  color: #51617a;
  font-size: 17px;
  margin: 0;
}

/* SLIDER BUTTONS */

.sp5__controls {
  display: flex;
  gap: 12px;
  flex: none;
}

.sp5__arrow {
  width: 46px;
  height: 46px;
  border: 1px solid #dfc8a8;
  border-radius: 50%;
  background: #ffffff;
  color: #a66b24;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.sp5__arrow:hover {
  border-color: #a66b24;
  background: #fff8ed;
}

/* ==========================================
   SLIDER TRACK — DESKTOP
   4 PROPERTY CARDS
   ========================================== */

.sp5 .sp5__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  grid-template-columns: none;
  gap: 18px;

  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;

  padding: 2px 2px 12px;
}

.sp5 .sp5__track::-webkit-scrollbar {
  display: none;
}

/* PROPERTY CARDS */

.sp5 .sp5__card {
  width: 100%;
  min-width: 0;
  max-width: none;

  scroll-snap-align: start;

  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 22px rgba(12, 33, 65, 0.09);
  border: 1px solid #f1f0ed;
}

/* PROPERTY IMAGE */

.sp5__media {
  height: 180px;
  position: relative;
  background: #f7f2eb;
}

.sp5__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp5__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  color: #8a8075;
  background: linear-gradient(135deg, #f9f5ee, #eee5d8);
  font-size: 14px;
}

/* PROPERTY BADGE */

.sp5__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffd369;
  color: #0a2144;
  border-radius: 10px;
  padding: 7px 13px;
  font-weight: 700;
  font-size: 13px;
}

/* PROPERTY DETAILS */

.sp5__content {
  padding: 15px 16px 17px;
}

.sp5__content h3 {
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.sp5__location {
  color: #69788a;
  font-size: 13px;
  margin: 0 0 14px;
  min-height: 17px;
}

.sp5__bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
}

.sp5__price {
  color: #a66b24;
  font-size: 22px;
  min-height: 27px;
}

.sp5__price-empty {
  font-size: 13px;
  color: #a0a5ac;
  font-weight: 400;
}

.sp5__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a8592;
  font-size: 12px;
  margin-top: 7px;
  min-height: 16px;
}

/* PROPERTY ARROW */

.sp5__go {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #af762e;
  color: #ffffff;
  font-size: 25px;
  text-decoration: none;
}

.sp5__go:hover {
  background: #8e581d;
}

/* ==========================================
   TABLET — 2 PROPERTY CARDS
   ========================================== */

@media (min-width: 768px) and (max-width: 1100px) {
  .sp5 .sp5__track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
}

/* ==========================================
   MOBILE — 1 PROPERTY CARD + NEXT PREVIEW
   ========================================== */

@media (max-width: 767px) {

  .sp5 {
    padding: 50px 0 55px;
  }

  .sp5__shell {
    width: calc(100% - 32px);
  }

  .sp5__top {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
  }

  .sp5 h2 {
    font-size: clamp(27px, 7vw, 35px);
    line-height: 1.12;
  }

  .sp5__eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .sp5__subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  .sp5__controls {
    gap: 7px;
  }

  .sp5__arrow {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }

  .sp5 .sp5__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    grid-template-columns: none;
    gap: 14px;

    width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;

    padding: 2px 2px 14px;
  }

  .sp5 .sp5__card {
    width: 100%;
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
  }

  .sp5__media {
    height: 205px;
  }
}

/* SMALL MOBILE */

@media (max-width: 380px) {

  .sp5 .sp5__track {
    grid-auto-columns: 88%;
    gap: 12px;
  }

  .sp5 h2 {
    font-size: 26px;
  }

  .sp5__content {
    padding: 13px;
  }
}

/* SECTION 05 — MOBILE AUTOPLAY SCROLL FIX */

@media (max-width: 767px) {
  .sp5 .sp5__track {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 85% !important;
    grid-template-columns: none !important;
    gap: 14px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .sp5 .sp5__card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

