* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;

    background: #f8f9fa;
    color: #08424d;
    line-height: 1.6;
}

/* Heading khusus card */
.trip-title,
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(244, 251, 251);
    padding: 1rem 4rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span {
    color: #ff6600;
}

.logo img {
    margin-left: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
nav a:hover {
    color: #001eff;
}
.header-buttons .btn {
    background: #08424D;
    border: none;
    padding: 0.6rem 1.2rem;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}
.header-buttons .btn:hover {
    background: #cc5200;
}
.btn-secondary {
    background: transparent;
    border: 1px solid #ff6600;
    padding: 0.5rem 1rem;
    color: #ff6600;
    cursor: pointer;
}

.chat-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff !important;
    padding: 0.75rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.2s ease-in-out;
}

.chat-whatsapp:hover {
    background: #1ebe5d;
    transform: scale(1.05);
}

.chat-whatsapp img {
    width: 1.25rem;
    height: 1.25rem;
}


/* ===== Glassmorphism Sidebar ===== */

.sidebar-glass {
    position: fixed;
    top: 0;
    right: -320px; /* hidden */
    width: 300px;
    height: 100%;
    padding: 2rem 1.7rem;
    z-index: 2000;

    /* Glass effect */
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Rounded corner */
    border-radius: 24px 0 0 24px;

    /* Border faint */
    border-left: 1px solid rgba(255, 255, 255, 0.25);

    /* Animation */
    transition: right 0.35s ease;
}

.sidebar-glass ul {
    list-style: none;
    margin-top: 50px;
    padding-left: 0;
}

.sidebar-glass ul li {
    margin-bottom: 1.4rem;
}

.sidebar-glass ul li a {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;

    /* White glow */
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.close-btn {
    font-size: 1.9rem;
    cursor: pointer;
    text-align: right;
    color: #fff;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    z-index: 1500;
    display: none;
}

/* Hamburger Icon */
.menu-toggle {
    display: none;
    font-size: 2.3rem;
    cursor: pointer;
    color: #08424D;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}


.trip-card img {
  width: 100%;
  height: 220px;              /* 🔥 Tinggi gambar dipendekkan */
  object-fit: cover;
}

/*DEKSTOP TAMPILAN*/
  .controls{display:flex;gap:12px;align-items:center;padding-left:5rem;margin:18px 0 26px}
  .control{background:white;border-radius:999px;padding:8px 12px;box-shadow:0 6px 18px rgba(11,89,89,0.06);display:flex;gap:8px;align-items:center}
    .control select,.control input{border:0;background:transparent;outline:none;font-size:14px}
    .search{min-width:220px}
.btn-clear {
    background: #e8f0ff;         /* biru muda */
    color: #08424D;              /* biru gelap */
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #b4c7ff;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-clear:hover {
    background: #d5e3ff;         /* lebih gelap sedikit */
    border-color: #8caaff;
}

      h1 {
    padding-left: 4rem;
}


@media (max-width: 768px) {
  .controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
    padding: 0 16px;
  }

/* FILTER ITEM */
.control{
  background:white;
  border-radius:999px;
  padding:10px 14px;
  box-shadow:0 6px 18px rgba(11,89,89,0.06);
  display:flex;
  gap:8px;
  align-items:center;
  width:100%;
}
  h1 {
    padding-left: 16px;
}
.search {
  width: 100%;
}
  /* INPUTS */
.control select,
.control input{
  border:0;
  background:transparent;
  outline:none;
  font-size:14px;
  width:100%;
}

.btn-clear {
    background: #e8f0ff;         /* biru muda */
    color: #08424D;              /* biru gelap */
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #b4c7ff;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-clear:hover {
    background: #d5e3ff;         /* lebih gelap sedikit */
    border-color: #8caaff;
}

/* small list fallback */
    .empty{padding:38px;border-radius:12px;background:white;text-align:center;color:var(--muted)}

    /* chips row for quick provinces (optional compact) */
    .chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
    .chip{background:white;padding:8px 12px;border-radius:999px;cursor:pointer;border:1px solid rgba(8,32,34,0.04);font-weight:600}
    .chip.active{background:var(--accent);color:white}

    /* search highlight */
    mark{background: rgba(11,89,89,0.18);padding:0 4px;border-radius:4px}
}

/* GRID */


/* === GRID LAYOUT === */
#grid.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* desktop */
  gap: 24px;
  padding: 20px 4rem;
}

/* CARD DEFAULT */
#grid .card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

#grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* GAMBAR */
#grid .card img {
  width: 100%;
  height: 170px;      /* seragam */
  object-fit: cover;
  display: block;
}

/* CONTENT DALAM CARD */
#grid .card-content,
#grid .card-body {
  padding: 14px 16px;
}

/* === TABLET: 3 KOLOM === */
@media (max-width: 992px) {
  #grid.grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 20px 2rem;
  }
}

/* === MOBILE: 2 KOLOM === */
@media (max-width: 576px) {
  #grid.grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 12px 1rem;
  }

  #grid .card img {
    height: 140px;
  }
}


#paketgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

/* CARD */
.trip-card {
  background: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: .25s ease;
}

.trip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

/* IMAGE */
.trip-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.trip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s ease;
}

.trip-card:hover .trip-img img {
  transform: scale(1.07);
}

/* PRICE FLOATING */
.trip-price {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  color: #0a424d;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* CONTENT */

.trip-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge {
  background: #e8f1ff;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.badge-minpesan {
  background: #ffe9e9;
  color: #b91c1c;
}

.trip-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #06424d;
}

.trip-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  height: 48px;
  overflow: hidden;
  flex-grow: 1; /* paling penting: mendorong tombol ke bawah */
  margin-bottom: 16px;
}

.trip-btn {
  
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: .25s ease;
  margin-top: auto;   /* otomatis berada di paling bawah */
  display: inline-block;
  background: #146c94;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}



.trip-btn:hover {
  background: #0e526f;
}

.card {
  cursor: pointer;
}
.card .trip-btn {
  cursor: pointer;
}

.price-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #333;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  font-size: 14px;
}
.img-wrap {
  position: relative;
}



/* FOOTER */
footer {
    background:#0b5b5b;
    color: rgb(243, 242, 245);
    padding: 2rem;
    text-align: center;
}


.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: #f0af1d;
    text-decoration: none;
}

/* RESPONSIVE MENU */
@media(max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        padding: 2rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        animation: fadeSlide 0.3s ease forwards;
    }
    nav ul.show {
        display: flex;
    }
   .menu-toggle {
        position: absolute;
        display:block;
        right: 1rem;  /* geser sampai pinggir */
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.8rem;
        cursor: pointer;
        user-select: none;
        transition: 0.3s ease;
    }
/* ANIMASI */
    @keyframes fadeSlide {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 768px) {
    header {
        padding-left: 5px !important;
    }

    .logo {
        margin-left: 5px !important;
        padding-left: 5px !important;
    }

    .logo img {
        display: block;
        margin-left: 5px !important;
    }
 }



 /*MENGHILANGKAN DESKRIPSI DI TAMPILAN MOBILE*/

 @media (max-width: 576px) {
  .trip-desc {
    display: none;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
  }

  .trip-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .trip-info {
    padding: 12px;
  }

  .trip-card {
    border-radius: 14px;
  }

  .trip-btn {
    font-size: 13px;
    padding: 8px 30px;
      margin-top: auto;
  }



  .trip-badge {
    background: #eef6ff;
    color: #0a3a48;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .badge {
  background: #e8f1ff;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
}
.badge-minpesan {
  background: #ffe9e9;
  color: #b91c1c;
}
.trip-footer {
    margin-top: 6px !important;     /* sebelumnya terlalu tinggi */
  }

  .trip-footer .btn {
    padding: 10px 14px !important;
  }

}



@media (max-width: 768px) {

  .trip-img,
  .trip-bg,
  .img-container,
  .trip-overlay {
      height: auto !important;
      max-height: 150px !important;
      aspect-ratio: unset !important;
  }

}


