/*
Theme Name: Travel Tour Child
Theme URI: https://contohwebmu.com
Description: Child Theme untuk Travel Tour
Author: Gilang
Author URI: https://contohwebmu.com
Template: travel-tour
Version: 1.0.0
Text Domain: travel-tour
*/

/* search button */
#search {
  background-color: white;
}

/* price list */
@media (min-width: 1024px) {
  /* Pastikan semua daftar harga vertikal satu kolom */
  .wpte-bf-price-wrap {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* animasi */
section,
.trip-content-area .page-header,
.wp-travel-inner-wrapper {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* hide title */
.page .my-64 h1 {
  display: none;
}
/* responsive galeri */
.gallery-2.is-layout-flex {
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 100px !important; /* jarak antar gambar */
}

/* Figure di dalam gallery-2 */
.gallery-2.is-layout-flex figure {
  width: 200px !important; /* atur lebar gambar */
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* Gambar di dalam figure */
.gallery-2.is-layout-flex img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

@media (max-width: 768px) {
  .wp-block-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important; /* cuma 1 kolom */
    gap: 10px; /* jarak antar item */
  }

  .gallery-2.is-layout-flex {
    gap: 50px !important; /* jarak antar gambar */
  }

  .wp-block-gallery .wp-block-image {
    width: 100% !important;
  }
}

/* kotak checkbox kecil */
.wpcf7-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  accent-color: #ff6b00;
}

/* rapiin tiap item checkbox (inline) */
.pilih-destinasi .wpcf7-list-item {
  display: inline-block;
  margin: 4px 10px 4px 0;
  vertical-align: middle;
}

/* style fieldset/legend supaya konsisten */
.pilih-destinasi {
  border: none;
  padding: 0;
  margin-bottom: 12px;
}
.pilih-destinasi legend {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

/* Wrapper 2 kolom */
.booking-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .booking-wrapper {
    grid-template-columns: 1fr; /* jadi 1 kolom di mobile */
  }
}

/* Form Style */
.booking-form {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #333;
}

.booking-form label {
  display: block;
  margin: 12px 0 5px;
  font-weight: 600;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
}

.booking-form small {
  display: block;
  margin-top: -10px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #666;
}

/* Checkbox destinasi */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 15px;
}

.checkbox-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Price Section (kanan) */
.price-section {
  margin-top: 0;
  padding: 20px;
  border: 2px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}

.price-section h3 {
  margin-top: 0;
}

.price-item {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #ccc;
}

.price-item:last-child {
  border-bottom: none;
}

.price-item .label {
  font-weight: bold;
  margin-bottom: 4px;
  color: #222;
}

.price-item .value {
  color: #444;
  font-size: 15px;
}

.price-item.total .label {
  font-size: 16px;
}

.price-item.total .value {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

/* Button Style */
.btn.yellow {
  background: #f7b500;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  color: #fff;
}

.btn.yellow:hover {
  background: #e0a400;
}

.btn.full {
  width: 100%;
}
