/* Main container = responsive “viewport” height (tweak if you want) */
.property-slider-main {
  position: relative;
  overflow: hidden;
  /*height: clamp(560px, 50vh, 720px);
    border: 1px solid #ddd;
  */
  height: auto;
  background: #fff;

}

/* Track: single horizontal row we translate */
.property-slider-main .property-slider-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  transition: transform .35s ease !important;
  will-change: transform;
}

/* Each slide = a flex box that centers its content */
.property-slider-main .slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}

/* IMPORTANT: the IMG inside the slide must NOT stretch */
.property-slider-main .slide img,
.property-slider-main img.slide {  
  max-width: 100% !important;
  max-height: 500px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;          /* belt & suspenders */
  display: block !important;
}

/* Neutralize any legacy hide rules */
.property-slider-main .slide:not(.active),
.property-slider-main img.slide:not(.active) {
  display: flex !important;   /* or block if you're using img as slide */
  opacity: 1 !important;
}


.property-slider-arrow.prev { left: 10px; content: '\f001'!important; }
.property-slider-arrow.next { right: 10px; }

/* Thumbs (single row with scroll) */
.property-slider-thumbs { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.property-slider-nav-viewport { flex: 1 1 auto; overflow: hidden !important; position: relative; }
.property-slider-nav { display: flex !important; flex-wrap: nowrap !important; gap: 8px; padding: 2px; }
.property-slider-thumb { flex: 0 0 auto !important; width: 90px; height: 68px; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #f7f7f7; cursor: pointer; }
.property-slider-thumb.active { border-color: #2271b1; }
.property-slider-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs-arrow { background: #749729!important; border: 1px solid #749729!important; border-radius: 1px!important; width: 34px; height: 34px; line-height: 32px; text-align: center; color: #fff!important; cursor: pointer; user-select: none; padding: 0 6px!important; }
.thumbs-arrow.disabled,[disabled].thumbs-arrow { opacity: .4; pointer-events: none; }

@media (max-width: 600px) {
  .property-slider-thumb { width: 68px; height: 52px; }
  .property-slider-arrow { width: 32px; height: 32px; line-height: 30px; }
}



/* =========================
   Responsive tweaks
   ========================= */

/* Default (desktop) already set by you:
   .property-slider-main { height: clamp(260px, 60vh, 720px); } */

/* --- Large tablet & small laptop (≤ 1024px) --- */
@media (max-width: 1024px) {
  .property-slider {
    margin: 24px auto;
  }
  .property-slider-main {
   height: clamp(240px, 56vh, 370px);
  }
  .property-slider-arrow {
    width: 40px; height: 40px; line-height: 38px;
  }
  .property-slider-thumbs {
    gap: 8px;
  }
  .property-slider-thumb {
    width: 86px; height: 64px;
  }
}

/* --- Tablet (≤ 768px) --- */
@media (max-width: 768px) {
  .property-slider-main {
    /* a bit shorter on tablets */
    height: clamp(120px, 52vh, 290px);
  }
  .property-slider-arrow {
    width: 38px; height: 38px; line-height: 36px;
  }
  .property-slider-thumbs {
    gap: 8px;
    margin-top: 10px;
  }
  .property-slider-nav { gap: 6px; }
  .property-slider-thumb {
    width: 78px; height: 58px;
  }
  .thumbs-arrow {
    width: 34px; height: 34px; line-height: 32px;
  }
}

/* --- Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  .property-slider {
    margin: 16px auto;
  }
  .property-slider-main {
    /* keep a stable viewport with good vertical space */
    height: clamp(200px, 48vh, 480px);
  }

  /* Make arrows finger-friendly, but not intrusive */
  .property-slider-arrow {
    width: 40px; height: 40px; line-height: 38px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
  }
  .property-slider-arrow.prev { left: 6px; }
  .property-slider-arrow.next { right: 6px; }

  /* Thumbs: slightly smaller, still a single row with scroll */
  .property-slider-thumbs {
    gap: 6px;
    margin-top: 8px;
  }
  .property-slider-nav { gap: 4px; }
  .property-slider-thumb {
    width: 64px; height: 48px;
  }
  .thumbs-arrow {
    width: 30px; height: 30px; line-height: 28px;
  }
}

/* --- Very small devices (≤ 360px) --- */
@media (max-width: 360px) {
  .property-slider-main {
    height: clamp(180px, 44vh, 420px);
  }
  .property-slider-thumb {
    width: 58px; height: 44px;
  }
}

/* Optional: reduce animation for users preferring less motion */
@media (prefers-reduced-motion: reduce) {
  .property-slider-main .property-slider-track {
    transition: transform 0.001s linear;
  }
}

/* Guard: if thumbs accidentally render inside main, hide them there */
.property-slider-main .property-slider-thumbs,
.property-slider-main .property-slider-nav,
.property-slider-main .property-slider-thumb { display: none !important; }




/* ==== FORCE circular chevrons on arrows (Bridge IDX) ==== */
.property-slider .property-slider-arrow {
  --btn-size: 42px;
  --arrow-color: #111;
  --bg: rgba(255,255,255,0.95);
  --bg-hover: #2271b1;
  --arrow-hover: #fff;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: var(--btn-size) !important;
  height: var(--btn-size) !important;
  border-radius: 9999px !important;
  background: var(--bg) !important;
  border: 1px solid #cfd5da !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.06) !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  user-select: none !important;
  z-index: 1000 !important;
  padding: 10px 0 0 0 !important;

  /* hide any fallback glyph like ‹ › */
  font-size: 0 !important;
  line-height: 1 !important;
  color: var(--arrow-color) !important;
}

.property-slider .property-slider-arrow.prev { left: 10px !important; }
.property-slider .property-slider-arrow.next { right: 10px !important; }

.property-slider .property-slider-arrow::before {
  content: "" !important;
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  border-top: 2px solid currentColor !important;
  border-right: 2px solid currentColor !important;
  transform: rotate(45deg) !important; /* “next” by default */
}

.property-slider .property-slider-arrow.prev::before {
  transform: rotate(-135deg) !important;
}

.property-slider .property-slider-arrow:hover,
.property-slider .property-slider-arrow:focus-visible {
  background: var(--bg-hover) !important;
  border-color: var(--bg-hover) !important;
  color: var(--arrow-hover) !important;
  outline: none !important;
}

.property-slider .property-slider-arrow:focus-visible {
  box-shadow: 0 0 0 3px rgba(34,113,177,.25) !important;
}













@media (max-width: 480px) {
  .property-slider .property-slider-arrow { --btn-size: 40px; }
  .property-slider .property-slider-arrow.prev { left: 6px !important; }
  .property-slider .property-slider-arrow.next { right: 6px !important; }
}

