@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap");

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #333;
  color: #f5f8fb;
}

header {
  background-color: #4682b4;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.8rem;
  color: #fff;
  margin: 0;
}

header nav {
  display: flex;
  gap: 15px;
}

header nav a {
  text-decoration: none;
  color: #fff;
  background-color: #5a9bd3;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

header nav a:hover {
  background-color: #73b3e7;
  transform: scale(1.1);
}

.icon-header {
  width: 50px;
  border-radius: 50%;
  border: 3px solid #add8e6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
}

.container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  background-color: #5a9bd3;
  width: 300px;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sidebar h3 {
  font-size: 1.2rem;
}

.search-box {
  display: flex;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
}

.search-box button {
  padding: 10px;
  border: none;
  background-color: #4682b4;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

.search-box button:hover {
  background-color: #5a9bd3;
}

.category {
  margin-bottom: 20px;
}

.category button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #4682b4;
  color: white;
  border: none;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.category button:hover {
  background-color: #5a9bd3;
}

.category .button-group {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-group label {
  display: block;
  margin-bottom: 5px;
}

.map {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

.filter-type.selected {
  background-color: #5a9bd3;
  border: 2px solid #4682b4;
}

.filter-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #007bff; /* Warna biru */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  width: 120px;
  height: 120px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

.filter-type i {
  margin-bottom: 8px;
  font-size: 32px; /* Ukuran ikon */
}

.filter-type:hover {
  background-color: #0056b3; /* Warna biru lebih gelap saat hover */
}

.leaflet-routing-container .leaflet-routing-alt {
  color: #333;
  background-color: #ffffff;
  font-size: 14px;
}

.leaflet-routing-container h2 {
  color: #222;
  font-weight: bold;
  text-align: center;
}

.leaflet-routing-container .leaflet-routing-alt .leaflet-routing-instruction {
  color: #555;
  border-bottom: 1px solid #ddd;
  padding: 5px;
}

.leaflet-routing-container .leaflet-routing-alt .leaflet-routing-instruction-active {
  color: #0078d7;
  font-weight: bold;
}

.checkbtn {
  font-size: 30px;
  color: white;
  float: right;
  line-height: 80px;
  cursor: pointer;
  display: none;
}

.filterbtn {
  font-size: 30px;
  color: white;
  float: right;
  margin-left: -180px;
  line-height: 80px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

#filter {
  display: none;
}

@media (max-width: 920px) {
  .checkbtn {
    display: block;
  }

  .filterbtn {
    display: block;
  }

  .search-box {
    width: 90%;
  }

  .icon {
    width: 100px;
    margin: 10px auto;
    margin-top: 100px;
  }

  .icon-header {
    display: block;
    margin-right: 3rem;
  }

  h1 {
    display: none;
  }

  header {
    position: fixed;
    width: 100%;
    z-index: 1000;
  }

  header nav {
    position: fixed;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    background: #4682b4;
    top: 110px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
  }

  header nav a {
    display: block;
    margin: 20px;
    line-height: 30px;
    font-size: 20px;
  }

  a:hover,
  a.active-nav {
    background: none;
    color: #4682b4;
  }

  .sidebar {
    position: fixed;
    margin-top: 110px;
    width: 100%;
    top: -100%;
    z-index: 2;
    transition: all 0.5s;
  }

  #check:checked ~ nav {
    left: 0;
    z-index: 1001;
  }

  #filter:checked ~ .sidebar {
    top: 0;
  }

  .container {
    flex-direction: column;
  }

  .category .button-group {
    width: 90%;
  }

  .filter-group {
    display: flex;
    flex-direction: row;
    gap: 40px;
  }

  .category {
    margin-bottom: 0px;
  }

  .map {
    z-index: 0;
    margin-top: 110px;
  }
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: rgb(70, 130, 180);
}

::-webkit-scrollbar-thumb {
  background-color: rgb(90, 155, 211);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(84, 145, 196);
}

::-webkit-scrollbar-thumb:active {
  background-color: rgb(60, 125, 170);
}
