/* SECTION WRAPPER */
.type-section {
  background: url('../img/list.png') no-repeat center center/cover;
  padding: 80px 0;
  position: relative;
}

/* TITLE */
.section-title {
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  background: #f35b1f;
  padding: 8px 20px;
  display: inline-block;
  border-radius: 4px 4px 0 0;
  margin-bottom: 40px;
}

/* STRUCTURE */
.type-wrapper {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

/* SLIDER AREA */
.slider-container {
  position: relative;
  flex: 1.1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  background-color: white;
  position: relative;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 850px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

/* FADE TRANSITION (JS trigger) */
.fade {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ARROW BUTTONS */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: #f35b1f;
  color: #fff;
}

.prev { left: 15px; }
.next { right: 15px; }

/* DOTS */
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.dot {
  display: inline-block;
  width: 25px;
  height: 3px;
  background: rgba(255,255,255,0.5);
  margin: 0 4px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.dot.active {
  background: #f35b1f;
  width: 35px;
}

/* DETAIL PANEL */
.detail-container {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-content {
  background: #f35b1f;
  color: white;
  border-radius: 8px;
  padding: 40px;
  transition: all 0.4s ease;
}

.subtitle {
  font-size: 14px;
  margin-bottom: 10px;
}

.title {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 20px;
}

.info-item i {
  margin-right: 8px;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.5);
  margin: 20px 0;
}

.desc-title {
  font-size: 14px;
  letter-spacing: 1px;
}

.desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.cta-btn {
  background: white;
  color: #f35b1f;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-btn:hover {
  background: #fff4ee;
}

/* THUMBNAILS */
.type-thumbnails {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  object-fit: cover;
}

.thumb:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.thumb.active {
  border: 3px solid #f35b1f;
  opacity: 1;
}

/* ================================
   ✅ RESPONSIVE IMPROVEMENT
================================ */

/* Tablet */
@media (max-width: 992px) {
  .type-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .detail-content {
    padding: 30px;
  }

  .title {
    font-size: 32px;
  }

  .slider-container {
    height: 350px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .type-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .slider-container {
    height: 280px;
  }

  .detail-content {
    padding: 20px;
  }

  .title {
    font-size: 26px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }

  .thumb {
    width: 65px;
    height: 50px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .type-section {
    padding: 50px 0;
  }

  .slider-container {
    height: 220px;
  }

  .title {
    font-size: 22px;
  }

  .desc {
    font-size: 13px;
  }

  .thumb {
    width: 55px;
    height: 45px;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* =======================
   ✅ FIX SECTION & SLIDER HEIGHT RESPONSIVE
=======================*/

/* Desktop tetap normal */
.type-section {
  height: auto !important;
  min-height: 100vh;
}

/* Mobile */
@media (max-width: 768px) {

  .type-section {
    padding-top: 60px;
    min-height: auto !important;
    height: auto !important; /* INI YANG PENTING */
    display: block; /* JANGAN FLEX DI MOBILE */
  }

  .type-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .slider-container,
  .slider,
  .slide {
    height: 280px !important; /* BIAR GAK MELONJONG */
    max-height: 280px;
  }

  .slide img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }

  /* Thumbnails rapih */
  .type-thumbnails {
    justify-content: center;
  }

  /* WA Button tetap keliatan */
  #waButton {
    position: relative;
    margin-top: 15px;
  }
}

