/* ========================================================================
   SMART TIPS — Rotating Travel Tips (v9)
   Tips singkat yang berputar otomatis dengan fade animation.
   Posisi: Di bawah Hero, di atas Menu Layanan.
   Desain: Glassmorphism ringan, modern, tidak mengganggu.
   ======================================================================== */

.smart-tips-section {
  padding: 0 clamp(12px, 4vw, 18px);
  margin-top: -6px;
  margin-bottom: clamp(6px, 2vw, 12px);
  position: relative;
  z-index: 5;
}

.smart-tips-card {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.5vw, 12px);
  padding: clamp(10px, 3vw, 14px) clamp(12px, 3.5vw, 16px);
  border-radius: clamp(14px, 4vw, 20px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03) inset;
  position: relative;
  overflow: hidden;
  min-height: 56px;
}

/* Icon kiri */
.smart-tips-icon {
  width: clamp(32px, 9vw, 40px);
  height: clamp(32px, 9vw, 40px);
  border-radius: clamp(8px, 2.5vw, 12px);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.15);
}
.smart-tips-icon svg {
  width: clamp(16px, 4.5vw, 20px);
  height: clamp(16px, 4.5vw, 20px);
}

/* Text area */
.smart-tips-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: auto;
}

.smart-tips-category {
  display: inline-block;
  font-size: clamp(7px, 1.8vw, 9px);
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(5, 150, 105, 0.08);
  margin-bottom: 2px;
  line-height: 1.3;
}

.smart-tips-message {
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 500;
  color: #374151;
  line-height: 1.35;
  display: block;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.smart-tips-message.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

.smart-tips-message.fade-in {
  opacity: 0;
  transform: translateY(4px);
}

/* Dots pagination */
.smart-tips-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding-left: 4px;
}
.smart-tips-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s;
}
.smart-tips-dot.active {
  background: #059669;
  width: 5px;
  height: 10px;
  border-radius: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 320px) {
  .smart-tips-card {
    padding: 8px 10px;
    min-height: 48px;
  }
  .smart-tips-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .smart-tips-icon svg {
    width: 14px;
    height: 14px;
  }
  .smart-tips-category {
    font-size: 6px;
  }
  .smart-tips-message {
    font-size: 9px;
  }
}

@media (min-width: 414px) {
  .smart-tips-card {
    padding: 14px 18px;
    min-height: 62px;
  }
  .smart-tips-icon {
    width: 44px;
    height: 44px;
  }
  .smart-tips-icon svg {
    width: 22px;
    height: 22px;
  }
}
