.filter-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  max-width: 1200px;
  margin: auto;
}

.search-box {
  position: relative;
  max-width: 1200px;
  margin: 20px auto;
}

.search-box input {
  width: 100%;
  padding: 12px 45px;
  border-radius: 25px;
  border: 1px solid #ddd;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.kost-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.kost-card:hover {
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.kost-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.kost-card:hover img {
  transform: scale(1.05);
}

.kost-card .card-body {
  text-align: left;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kost-card h6 {
  font-size: 16px;
  margin-bottom: 10px;
}

.kost-card .badge-container {
  display: flex;
  justify-content: start;
  gap: 5px;
  flex-wrap: wrap;
}

.kost-card .badge {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
}

.bg-primary {
  background-color: #9b59b6 !important;
}

.bg-dua {
  background-color: #ffffff !important;
  color: red !important;
  border: 1px solid red;
}

@media (max-width: 767px) {
  .filter-box .row .col-12 {
    margin-bottom: 10px;
  }
  .kost-card .card-body {
    text-align: center;
  }
  .kost-card .badge-container {
    justify-content: center;
  }
}

/* Detail CSS */
.carousel img {
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .carousel img {
    height: 250px;
  }
  .owner-name {
    font-size: 16px;
  }
  .owner-status {
    font-size: 12px;
  }
  .badge-custom,
  .badge-custom-light,
  .badge-custom-primary {
    font-size: 10px;
    padding: 4px 8px;
  }
  .owner-avatar {
    width: 40px;
    height: 40px;
  }
  .btn {
    font-size: 14px;
  }
}

.card {
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.owner-card {
  background: white;
}

.owner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.badge-custom {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  color: black;
  background-color: white;
  border: 1px solid black;
  border-radius: 7px;
  width: 90px;
}

.owner-card {
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.owner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.owner-name {
  font-size: 18px;
  font-weight: bold;
}

.owner-status {
  font-size: 14px;
  color: gray;
  margin-top: -4px;
}

.badge-custom-light {
  background-color: #e9e9ff;
  color: #6c63ff;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 5px;
}

.badge-custom-primary {
  background-color: #e6f5ff;
  color: #00aeef;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 5px;
}

.owner-contact {
  font-size: 16px;
  font-weight: bold;
}

.owner-phone {
  color: #007bff;
  font-weight: bold;
  font-size: 16px;
}

.owner-button {
  border: 2px solid;
  padding: 10px;
  border-radius: 8px;
  width: 220px;
}

.price-info {
  border-top: 1px solid #ddd;
  background-color: #fff;
  border-radius: 10px;
}

.desc-text {
  font-size: 14px;
  color: #555;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #e74c3c;
}

input:checked + .slider:before {
  transform: translateX(14px);
}
