* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  background: #fff;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex-grow: 1;
}

header {
  background: #fff;
  color: #004B2D;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1002;
}

.logo {
  z-index: 1001;
}

.logo a {
  text-decoration: none;
}

.logo h1 {
  color: #006e44; /* Warna hijau */
  font-family: 'Kaushan Script', cursive;
  font-weight: 400; /* Kaushan Script hanya punya ketebalan 400 */
  font-size: 1.5rem; /* Menyesuaikan ukuran font agar pas di navigasi */
}

.logo span {
  color: #b50000; /* Warna merah */
  font-family: 'Kaushan Script', cursive;
}

nav .logo {
  display: none; /* Sembunyikan logo di dalam nav pada desktop */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links ul li a,
nav ul li a {
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #f0f0f0;
  transition: all 0.3s ease;
}

.nav-links ul li a:hover,
nav ul li a:hover {
  background-color: #B50000;
  color: white;
}

.close-menu-btn {
  display: none;
}

.nav-button {
  background-color: #006e44;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.nav-button:hover { background-color: #004b2d; }

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 40px 60px;
  background: white;
  gap: 20px;
}

.hero-left,
.hero-right {
  flex: 1;
  min-width: 300px; /* Agar responsif dan membungkus jika perlu */
  text-align: center; /* Menengahkan semua teks di dalam hero-right */
}

.hero-left {
  text-align: center;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 500px; /* Batasi lebar maksimum slider */
  margin: 15px auto 0 auto;
  aspect-ratio: 16 / 9; /* Jaga rasio gambar */
  border-radius: 10px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Pastikan gambar memenuhi kontainer tanpa distorsi */
}

.hero-left h1 {
  color: #006e44; /* Warna hijau seperti di header */
  font-family: 'Kaushan Script', cursive;
  font-size: 3rem; /* Sedikit diperbesar agar lebih menonjol */
  font-weight: 400; /* Kaushan Script hanya punya ketebalan 400 */
}

.hero-left h1 span {
  color: #b50000; /* Warna merah untuk "Alex" */
  font-family: 'Kaushan Script', cursive;
}

.hero-right h2 {
  font-size: 1.8rem;
  color: #333;
  margin: 5px 0;
  font-family: 'Brush Script MT', cursive;
}

.hero-right p {
  color: #333333;
  font-weight: 500;
  margin-bottom: 15px;
}

.kota {
  background: #b50000;
  color: white;
  padding: 6px 10px;
  border-radius: 25px;
  display: inline-block;
  font-weight: 500;
  margin-bottom: 10px;
}

.deskripsi {
  color: #333; /* Warna teks standar */
  font-weight: 400; /* Ketebalan normal */
  line-height: 1.6; /* Jarak antar baris agar mudah dibaca */
  text-align: left; /* Pastikan rata kiri */
}

.destinasi ul {
  list-style: none;
  margin-top: 5px;
}

.destinasi li {
  text-align: left;
  margin: 4px 0;
  font-size: 0.95rem;
}

.kontak-box {
  background: #ffefef;
  border-left: 4px solid #b50000;
  padding: 10px;
  margin-top: 15px;
  width: -moz-fit-content;
  width: fit-content; /* Agar lebar box sesuai konten */
  margin-left: auto; /* Untuk menengahkan box */
  margin-right: auto; /* Untuk menengahkan box */
  text-align: left; /* Kembalikan perataan teks di dalam box ke kiri */
}

.kontak-box p {
  margin: 4px 0;
}

.gallery-section {
  padding: 40px 5%;
  text-align: center;
  background-color: #f9f9f9;
}

.gallery-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Penyesuaian untuk galeri dengan satu item (bus) */
.single-item-grid {
  display: flex;
  justify-content: center;
}
.single-item-grid .gallery-item {
  width: 50%;
}

.gallery-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Penyesuaian khusus untuk gambar bus */
.bus-item img {
  object-fit: contain;
  background-color: #f0f0f0;
  height: auto; /* Biarkan tinggi gambar menyesuaikan secara otomatis */
}

.gallery-item h4 {
  padding: 15px 15px 10px 15px;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.price-info {
  padding: 0 15px 15px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.price-tag {
  background-color: #e0f2f1;
  color: #006e44;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* City Tour Section */
.city-tour-section {
  padding: 30px 5%;
  text-align: center;
  background: #B2D7E8;
  color: #333;
}

.city-tour-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.tour-package-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: left;
}

.tour-package-card h3 {
  font-size: 1.8rem;
  color: #006e44;
}

.tour-description {
  margin-bottom: 20px;
  color: #555;
}

.tour-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tour-includes ul {
  list-style: none;
  margin-top: 10px;
}

.tour-includes li {
  margin-bottom: 8px;
  color: #333;
}

.tour-pricing {
  text-align: center;
  background-color: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
}

.tour-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b50000;
}

.tour-price span {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
}

.btn-pesan {
  display: inline-block;
  margin-top: 15px;
  background-color: #006e44;
  color: white;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-pesan:hover {
  background-color: #004b2d;
}

footer {
  background: #B50000;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 300;
}

footer a {
  color: white;
  text-decoration: none;
}

.page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.hidden {
    visibility: hidden;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #004B2D;
    transition: all 0.3s ease-in-out;
  }

  nav {
    position: fixed;
    right: -280px; /* Mulai dari luar layar */
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.4s ease-in-out;
  }
  
  nav .logo {
    display: block; /* Tampilkan logo di dalam nav pada mobile */
    text-align: center;
    margin-bottom: 30px;
  }

  nav.open {
    right: 0; /* Pindahkan ke dalam layar */
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px; /* Menambahkan jarak antar item menu */
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 15px 10px;
    /* border-bottom: 1px solid #eee; Dihapus agar lebih bersih */
  }

  .close-menu-btn {
    display: block;
    margin-top: 20px;
    text-align: center;
  }

  .close-menu-btn a {
    color: #b50000 !important;
    border: 1px solid #b50000;
    border-radius: 5px;
    padding: 8px 25px !important;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .close-menu-btn a:hover {
    background-color: #B50000;
    color: #ffffff !important;
    border-color: #B50000;
  }

  .hero {
    flex-direction: column;
    padding: 0; /* Hapus semua padding dari hero */
    text-align: center;
  }

  .slider-container {
    max-width: none; /* Hapus batasan lebar */
    border-radius: 0; /* Hapus sudut melengkung */
    margin-top: 0;
  }

  .hero-right {
    padding: 20px; /* Tambahkan padding di sini agar konten teks tidak menempel di tepi */
  }

  .hero-left {
    min-width: 100%; /* Pastikan kontainer slider mengambil lebar penuh */
  }

  .destinasi li {
    text-align: left;
  }

  .kontak-box {
    margin: 15px auto;
    text-align: center; /* Pusatkan teks di dalam box pada mobile */
  }

  /* Kembalikan galeri bus ke perilaku normal di mobile */
  .single-item-grid .gallery-item {
    width: 100%;
  }

  .tour-details {
    justify-content: center;
  }
}

/* Halaman Tentang Kami */
.about-us-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/cover-about.jpg') no-repeat center center/cover;
  color: white;
  padding: 60px 5%;
  text-align: center;
}

.about-us-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.about-us-header p {
  font-size: 1.1rem;
  color: #f0f0f0;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text, .about-image {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2rem;
  color: #B50000;
  margin-bottom: 15px;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #555;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.why-us-section {
  padding: 40px 5%;
  text-align: center;
  background-color: #f9f9f9;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.why-us-item {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Halaman Sewa */
.sewa-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/cover-sewa.jpg') no-repeat center center/cover;
  color: white;
  padding: 60px 5%;
  text-align: center;
}

.sewa-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.sewa-header p {
  font-size: 1.1rem;
  color: #f0f0f0;
}

.rental-steps {
  padding: 40px 5%;
  text-align: center;
}

.rental-steps h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #B50000;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 15px auto;
}

.step-item h3 {
  font-size: 1.2rem;
  color: #006e44;
  margin-bottom: 10px;
}

.step-item p {
  color: #555;
  line-height: 1.6;
}

.rental-terms {
  padding: 40px 5%;
  background-color: #f9f9f9;
  text-align: center;
}

.rental-terms h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
}

.terms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.terms-box {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid #006e44;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.terms-box h3 { color: #B50000; margin-bottom: 10px; }
.terms-box p { color: #555; font-size: 0.9rem; margin-bottom: 10px; }
.terms-box ul {
  list-style: none;
  padding-left: 20px; /* Memberi ruang untuk tanda centang */
}
.terms-box li {
  color: #333;
  margin-bottom: 8px;
  position: relative; /* Diperlukan untuk posisi absolut pseudo-elemen */
  padding-left: 25px; /* Ruang untuk tanda centang agar tidak menimpa teks */
}
.terms-box li::before {
  content: '✓'; /* Tanda centang */
  position: absolute;
  left: 0; /* Posisikan di awal padding */
  color: #006e44; /* Warna hijau untuk tanda centang */
  font-weight: bold;
}

/* Halaman Kontak */
.contact-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/cover-contact.jpg') no-repeat center center/cover;
  color: white;
  padding: 60px 5%;
  text-align: center;
}

.contact-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.contact-header p {
  font-size: 1.1rem;
  color: #f0f0f0;
}

.contact-page-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-details-wrapper, .contact-map-wrapper {
  flex: 1;
  min-width: 300px;
}

.contact-details-wrapper h2 {
  font-size: 1.8rem;
  color: #20262F;
  margin-bottom: 20px;
}

.info-item {
  margin-bottom: 15px;
}

.info-item strong {
  color: #333;
}

.info-item p {
  color: #555;
  margin-top: 2px;
}

.contact-buttons {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  transition: opacity 0.3s ease;
}

.contact-btn:hover {
  opacity: 0.9;
}

.contact-btn.whatsapp { background-color: #25D366; }
.contact-btn.email { background-color: #5A5A5A; }

.contact-btn img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .contact-page-content {
    flex-direction: column-reverse;
  }
}

/* ANIMASI FADE IN */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tombol Kembali ke Atas (Scroll to Top) */
.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #B50000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px; /* Menaikkan posisi panah sedikit */
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #8c0000; /* Warna sedikit lebih gelap saat disentuh mouse */
}

/* Promo Popup */
.promo-popup {
    /* Posisi diatur oleh container */
    position: absolute;
    bottom: 0;
    right: 0;
    background: #203D43;
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 320px;
    width: calc(100vw - 40px); /* Lebar popup di mobile */
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.promo-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.promo-popup p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

#closePromo {
    background: #DC4E4E;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#closePromo:hover {
    background: #c74242; /* A slightly darker shade of primary */
}

.popup-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.popup-link {
    color: #F8C674;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.popup-link:hover {
    color: white;
    text-decoration: underline;
}

/* Sembunyikan tombol ke atas saat popup promo muncul */
.promo-popup.show + .scroll-to-top.show {
    opacity: 0;
    pointer-events: none;
}

.promo-popup p {
    font-size: 14px;
    text-align: center;
}
.promo-popup a {
    font-size: 14px;
}

/* Wadah untuk elemen fixed */
.fixed-elements-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}