.section.detail-tour {
  font-family: Arial, sans-serif;
  color: #222;
}

.detail-tour .hero {
  position: relative;
  text-align: center;
  background: #f2f2f2;
  margin-bottom: 30px;
}

.detail-tour .hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.input-error {
    border: 1px solid #e53935;
}

.error-text {
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.detail-tour .hero h1 {
  position: absolute;
  bottom: 180px;
  text-align: center;
  justify-content: center;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 32px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Layout */
.detail-tour .deskripsi {
  display: flex;
  gap: 40px;
  padding: 0 40px;
}

.detail-tour .sebelah-kiri {
  flex: 2;
  text-align: justify;
  font-size: 24px;
}

.detail-tour .sebelah-kanan {
  flex: 1;
}

/* Info list bulatan */
.detail-tour .info-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.detail-tour .info-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.detail-tour .info-list .circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ddd;
  display: inline-block;
  margin-right: 10px;
}

/* Booking Box */
.detail-tour .booking-box {
  background: #fff;
  border-radius: 16px;
  padding: 50px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.detail-tour .booking-box .price {
  font-weight: bold;
  font-size: 18px;
}

.detail-tour .booking-box .note {
  font-size: 13px;
  color: #555;
  margin-bottom: 20px;
}

.detail-tour .booking-box input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.booking-box .row-input {
  display: flex;
  gap: 10px; /* jarak antar input */
}

.booking-box .row-input input {
  flex: 1; /* biar keduanya sama lebar */
  margin-bottom: 12px; /* jarak bawah tetap ada */
}

.detail-tour .booking-box .book-email {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.detail-tour .booking-box .book-email:hover {
  background: #0056b3;
}

.detail-tour .booking-box .book-wa {
  width: 100%;
  padding: 12px;
  top: 10%;
  margin-top: 10px;
  background: #026405;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.detail-tour .booking-box .book-wa:hover {
  background: rgb(5, 136, 24);
}

/* Section */
.testimoni {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
}

.testimoni h2 {
  margin-bottom: 20px;
  font-weight: 600;
  color: #222;
}

/* Carousel */
/* === Carousel Container === */
/* Grid layout untuk 4 testimoni pertama */
.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-content: start;
}

.all-reviews-modal {
  max-height: 80vh;
  overflow-y: auto;
}

.all-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.all-reviews-list .testimonial-card {
  min-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  margin-left: 0;
  text-align: left; /* ⬅️ pastikan konten mulai dari kiri */
}

/* === Track === */
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

/* === Item === */
.carousel-item {
  flex: 0 0 calc(33.333% - 20px); /* 3 items per row */
  box-sizing: border-box;
}

/* Card Style */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 30px;
  margin: 0 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-width: 100%;
  text-align: left;
  margin-bottom: 250px;
}

.testimonial-card h4.author {
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.testimonial-card .stars {
  margin-bottom: 10px;
  font-size: 18px;
}

.testimonial-card .stars span {
  color: #ddd;
}

.testimonial-card .stars span.active {
  color: gold; /* hijau ala tripadvisor */
}

.testimonial-card .desc {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* Empty card */
.testimonial-card.empty {
  text-align: center;
  font-style: italic;
  color: #888;
}

/* Tombol Read more */
.read-more-btn {
  background: none;
  color: black;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  align-self: flex-start;
  transition: color 0.2s;
}
.read-more-btn:hover {
  color: #0056b3;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 25px 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.close-btn {
  float: right;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}
.close-btn:hover {
  color: #000;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-size: 18px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
  background: #f8f8f8;
}

.carousel-btn.prev { left: -50px; }
.carousel-btn.next { right: -50px; }

.rating-summary {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #555;
}

.rating-summary .avg {
  font-weight: 600;
  margin-right: 6px;
  font-size: 16px;
  color: #222;
}

.rating-summary .stars {
  margin-right: 6px;
  font-size: 16px;
}

.rating-summary .stars span {
  color: #ddd;
}

.rating-summary .stars span.active {
  color: #f5c518; /* warna bintang kuning */
}

.rating-summary .count {
  font-size: 14px;
  color: #666;
}
.testimoni-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px 20px;
}

.testimoni-header h2 {
  font-weight: 600;
  color: #222;
  margin: 0;
}

/* Form Testimoni */
.form-testimoni {
  margin: 40px;
  padding: 40px;
  background: #f3f3f3;
  border-radius: 12px;
}
.form-testimoni h3 {
  margin-bottom: 15px;
}
.form-testimoni label {
  display: block;
  margin-top: 10px;
}
.form-testimoni select,
.form-testimoni textarea,
.form-testimoni button {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.form-testimoni button {
  background: #007bff;
  color: #fff;
  border: none;
  margin-top: 15px;
  cursor: pointer;
}
.form-testimoni button:hover {
  background: #0056b3;
}
.counter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.counter input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.btn-counter {
    padding: 5px 10px;
    border: 1px solid #888;
    background: #eee;
    cursor: pointer;
    border-radius: 5px;
}
.traveler-row {
  display: flex;
  gap: 10px;
}
.traveler-dropdown {
  position: relative;
  flex: 1;
}
.traveler-box {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 100%;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.hidden { display: none; }
.traveler-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.counter button {
  width: 30px;
  height: 30px;
}
.counter span {
  margin: 0 10px;
  font-weight: bold;
}
.btn-apply {
  width: 100%;
  background: green;
  color: #fff;
  padding: 6px;
  border: none;
  border-radius: 5px;
}

/* ================= RESPONSIVE STYLES ================= */

/* Tablet */
@media (max-width: 992px) {
  .detail-tour .hero img {
    max-height: 300px;
  }

  .detail-tour .hero h1 {
    bottom: 120px;
    font-size: 26px;
    padding: 0 15px;
    text-align: center;
  }

  .detail-tour .deskripsi {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .detail-tour .sebelah-kiri {
    font-size: 20px;
  }

  .detail-tour .booking-box {
    padding: 30px;
  }

  .form-testimoni {
    margin: 20px;
    padding: 25px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .detail-tour .hero img {
    max-height: 250px;
  }

  .detail-tour .hero h1 {
    bottom: 80px;
    font-size: 22px;
    line-height: 1.4;
  }

  .detail-tour .deskripsi {
    padding: 0 15px;
    gap: 20px;
  }

  .detail-tour .sebelah-kiri {
    font-size: 18px;
  }

  .booking-box .row-input {
    flex-direction: column;
  }

  .booking-box .row-input input {
    width: 100%;
  }

  .carousel {
    max-width: 100%;
  }

  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }

  .testimoni-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 15px;
  }

  .form-testimoni {
    margin: 15px;
    padding: 20px;
  }
}

/* Extra Small (HP kecil) */
@media (max-width: 480px) {
  .detail-tour .hero img {
    max-height: 200px;
  }

  .detail-tour .hero h1 {
    bottom: 50px;
    font-size: 18px;
  }

  .detail-tour .sebelah-kiri {
    font-size: 16px;
  }

  .detail-tour .booking-box {
    padding: 20px;
  }

  .detail-tour .booking-box .price {
    font-size: 16px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .form-testimoni {
    margin: 10px;
    padding: 15px;
  }

  .form-testimoni h3 {
    font-size: 18px;
  }
}