/* ========== RESET & DASAR ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #1c312e;
  background-color: #f7f7f3;
  line-height: 1.6;
}

/* ========== HEADER BERANDA ========== */
.header-home {
  background: url("../img/header.jpg") center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

/* efek gelap di header */
.header-home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

/* teks di atas overlay */
.header-home .overlay {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.header-home h1 {
  font-size: 48px;
  font-weight: 700;
}

.header-home p {
  font-size: 18px;
  margin: 12px 0 25px;
}

/* tombol umum (bisa dipakai di semua halaman) */
.btn {
  background-color: #9ab97d;
  color: #1c312e;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border: none;
}

.btn:hover {
  background-color: #83a167;
}


/* ========== NAVIGASI ========== */
.navbar {
  display: flex;
  justify-content: center;
  background-color: #21483a;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* style untuk link di navbar */
.navbar a {
  color: white;
  padding: 16px 26px;
  text-decoration: none;
  font-weight: 600;
}

/* efek hover dan link aktif */
.navbar a:hover,
.navbar a.active {
  background-color: #9ab97d;
  color: #1c312e;
  border-radius: 6px;
}

/* ========== BERANDA - INTRO ========== */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 70px 90px;
  flex-wrap: wrap;
  background-color: #f7f7f3;
}

.intro-text {
  flex: 1 1 45%;
  max-width: 500px;
}

.intro-text h2 {
  color: #21483a;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.intro-text p {
  color: #444;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 25px;
}

.intro-image {
  flex: 1 1 45%;
  text-align: center;
}

.intro-image img {
  width: 100%;
  border-radius: 10px;
  max-width: 450px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========== HEADER DESTINASI (DIPAKAI JUGA UNTUK HALAMAN LAIN) ========== */
.header-destinasi {
  background: url("../img/header.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 90px 20px;
}

/* teks di dalam header destinasi */
.header-destinasi h1 {
  font-size: 45px;
  font-weight: 700;
}

.header-destinasi p {
  font-size: 18px;
  margin-top: 8px;
}
/* ========== HALAMAN DESTINASI ========== */
.destinasi-page {
  display: flex;
  gap: 25px;
  padding: 40px 60px;
}

/* Sidebar kiri (daftar tempat wisata) */
.sidebar {
  flex: 25%;
  background-color: #f0f2ea;
  padding: 20px;
  border-radius: 12px;
  max-height: 70vh;
  overflow-y: auto;
  position: sticky;
  top: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
  border-bottom: 2px solid #a5b48e;
  padding-bottom: 6px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #21483a;
  font-weight: 500;
  transition: 0.3s;
}

.sidebar ul li a:hover {
  color: #4f7358;
}

/* Konten kanan (isi utama destinasi) */
.content {
  flex: 75%;
  background-color: white;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content h2 {
  border-bottom: 2px solid #a5b48e;
  padding-bottom: 5px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
}

.content h3 {
  margin-top: 25px;
  color: #21483a;
  font-size: 20px;
  font-weight: 600;
}

.content img {
  width: 100%;
  height: 250px; /* tambahkan biar semua foto seragam */
  object-fit: cover; /* biar proporsional */
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content p {
  margin-top: 10px;
  color: #444;
  text-align: justify;
  font-size: 16px;
  line-height: 1.7;
}
/* ========== FOOTER ========== */
footer {
  background-color: #21483a;
  color: white;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  margin-top: 50px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .intro {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .intro-text,
  .intro-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .intro-image img {
    max-width: 100%;
  }

  .destinasi-page {
    flex-direction: column;
    padding: 20px;
  }

  .sidebar {
    position: relative;
    max-height: none;
    margin-bottom: 25px;
  }
}

/* ========== FORM KONTAK ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form label {
  font-weight: 600;
  color: #21483a;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #c9d1c4;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #9ab97d;
}

.contact-form button {
  align-self: flex-start;
  padding: 12px 25px;
  background-color: #9ab97d;
  color: #1c312e;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #83a167;
}

/* ====== Gambar di Halaman Destinasi (Bootstrap Version) ====== */
main img {
  width: 100%;
  height: 250px;        /* tinggi gambar diseragamkan */
  object-fit: cover;    /* biar gambar tidak gepeng tapi tetap proporsional */
  border-radius: 10px;  /* sudut lembut seperti sebelumnya */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* bayangan halus */
}
