/* FLEX LAYOUT */
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      display: flex;
      flex-direction: column;
      font-family: 'Montserrat', sans-serif;
      background-color: #f4f4f4;
    }

    header {
      z-index: 1030;
    }

    nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 128, 128, 0.4);
}

.btn-outline-teal {
  color: teal;
  border-color: teal;
}

.btn-outline-teal:hover,
.btn-outline-teal:focus {
  background-color: #009688;
  color: white;
  border-color: teal;
}

    .info-bar {
      background-color: teal;
      color: #fff;
      font-size: 14px;
      padding: 6px 12px;
    }

    main {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    #map {
      flex: 1;
      width: 100%;

    }

   #map.shifted {
  transform: translateX(-320px);
  transition: transform 0.3s ease;
}

    .breadcrumb-link {
      text-decoration: none;
      transition: color 0.2s ease, border-bottom 0.2s ease;
      border-bottom: 2px solid transparent;
      padding-bottom: 2px;
    }

    .breadcrumb-link:hover {
      color: teal;
      border-bottom: 2px solid teal;
    }

    .nav-link {
  color: #000;
  position: relative;
  font-weight: normal;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Hover untuk semua nav-link */
.nav-link:hover {
  color: teal;
  font-weight: bold;
}

/* Garis bawah saat hover */
.nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: teal;
}

/* Nav-link aktif default */
.nav-link.active {
  color: teal;
  font-weight: bold;
}

/* Hilangkan garis bawah saat tidak hover */
.nav-link.active::after {
  content: none;
}

/* Tambahkan efek hover JUGA untuk .active */
.nav-link.active:hover {
  color: teal;
  font-weight: bold;
}

.nav-link.active:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: teal;
}


   #searchButton {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  z-index: 1040; /* lebih tinggi dari Leaflet (biasanya 400–1000) */
  padding: 6px 16px;
  background-color: black;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}

/* Offcanvas khusus yang muncul dari bawah info-bar */
#searchCanvasCustom .offcanvas-header,
#searchCanvasCustom .p-3.border-bottom {
  background-color: #000;  /* Hitam */
  color: #fff;             /* Teks putih */
}

/* Agar tombol close tetap terlihat */
#searchCanvasCustom .btn-close {
  filter: invert(1);
}

#searchCanvasCustom {
  position: fixed;
  top: var(--header-height);
  right: 0;
  height: calc(100% - var(--info-bar-height));
  width: 320px;
  background-color: #f8f9fa;
  z-index: 1050;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.08); /* 👉 shadow tipis di sisi kiri */
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid #ccc;
}


#searchCanvasCustom.show {
  transform: translateX(0);
}

.category-header,
.category-list li {
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
}

.category-list li label {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Ubah background header saat collapse di bawahnya terbuka */
.category-header[aria-expanded="true"] {
  background-color: #66CCCC;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.category-list li {
  font-size: 14px; /* ukuran subkategori */
  font-weight: 400;
}

.chat-icon-wrapper {
  background-color: teal;
  border-radius: 12px;
  padding: 6px 8px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  position: relative;
}

.chat-icon-wrapper::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid teal;
}

.leaflet-popup-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.leaflet-popup-content img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


#custom-controls {
  position: absolute;
  top: calc(var(--info-bar-height, 80px) + 10px);
  left: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Shadow untuk setiap tombol */
#custom-controls a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* <- pindahkan shadow ke sini */
  transition: background 0.2s;
}

#custom-controls a:hover {
  background-color: #e6f0f0;
  color: #008080;
}
.leaflet-bar {
  box-shadow: none !important;
}

