/* == Card Styling Compact == */
.search-filter-card.compact {
  border: 3px solid #2eb14b;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* == Label Form Kecil == */
.search-filter-card .small-label {
  font-weight: 600;
  font-size: 0.7rem;
  /* Ukuran font label (xs) */
  color: #6c757d;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  /* Pastikan label di atas */
}

/* == Form Control SM Override == */
.search-filter-card .form-control-sm {
  border-radius: 4px;
  font-size: 0.8rem;
  height: calc(1.5em + 0.5rem + 2px);
}

.search-filter-card .form-control-sm:focus {
  border-color: #2eb14b;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

/* == Tombol Dropdown Tipe (agar mirip form-control) == */
.search-filter-card #tipeDropdownButton {
  height: calc(1.5em + 0.5rem + 2px);
  font-size: 0.8rem;
  font-weight: 400;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  justify-content: space-between;
  /* Panah dropdown ke kanan */
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-filter-card #tipeDropdownButton:focus,
.search-filter-card #tipeDropdownButton.show {
  border-color: #2eb14b;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

/* == Menu Dropdown Multicheckbox == */
.dropdown-menu-form {
  padding: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  width: 100%; /* Agar dropdown sama lebar dgn tombol */
}

.dropdown-menu-form .custom-control {
  padding-left: 1.75rem;
  /* Beri ruang utk checkbox */
  margin-bottom: 0.25rem;
}

.dropdown-menu-form .custom-control-label {
  font-size: 0.85rem;
  font-weight: 400;
}

/* == Kustom Radio Button Group (Versi Compact) == */
.radio-button-group.compact {
  display: flex;
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
  background-color: #fff;
  height: calc(1.5em + 0.5rem + 2px);
  /* Samakan tinggi dgn input sm */
}

.radio-button-group.compact input[type="radio"] {
  display: none;
}

.radio-button-group.compact label {
  flex: 1;
  text-align: center;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0;
  font-weight: 500;
  font-size: 0.75rem;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-right: 1px solid #ced4da;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-button-group.compact label:last-of-type {
  border-right: none;
}

.radio-button-group.compact input[type="radio"]:checked + label {
  background-color: #2eb14b;
  color: #ffffff;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.radio-button-group.compact label:hover {
  background-color: #f1f3f5;
}

/* == Advanced Search Toggle == */
.advanced-search-toggle {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2eb14b;
  text-decoration: none;
  transition: color 0.2s;
}

.advanced-search-toggle:hover {
  color: #0056b3;
  text-decoration: none;
}

.advanced-search-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
}

/* Animasi panah saat accordion terbuka */
.advanced-search-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* == Advanced Search Body == */
.card-body-advanced {
  padding: 0.5rem 1rem 1rem 1rem;
  background-color: #f8f9fa;
  /* Warna beda tipis */
  border-top: 1px solid #e9ecef;
}

/* == Fasilitas Scrollable == */
.form-group-scrollable {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ced4da;
  padding: 0.75rem;
  border-radius: 4px;
  background-color: #fff;
}

.form-group-scrollable .custom-control-label {
  font-size: 0.85rem;
  font-weight: 400;
}

/* == Card Footer (Tombol) == */
.search-filter-card .card-footer {
  background-color: #fff;
  border-top: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
}

/* == Aksen Warna Hijau Global (Untuk Detail Filter) == */
.search-filter-card .btn-primary {
  background-color: #2eb14b;
  border-color: #2eb14b;
}
.search-filter-card .btn-primary:hover,
.search-filter-card .btn-primary:focus {
  background-color: #258a3a;
  border-color: #258a3a;
  box-shadow: 0 0 0 0.15rem rgba(46, 177, 75, 0.5);
}

.search-filter-card
  .custom-control-input:checked
  ~ .custom-control-label::before {
  background-color: #2eb14b;
  border-color: #2eb14b;
}
.search-filter-card
  .custom-control-input:focus
  ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.15rem rgba(46, 177, 75, 0.25);
}

/* == Hero Background (Simulasi Halaman Depan) == */
.hero-section {
  background-image: url("https://images.unsplash.com/photo-1600596542815-2a4d0422d3c7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  padding: 100px 0 150px 0;
  position: relative;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Overlay gelap untuk background */
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* == BOX PENCARIAN CUSTOM == */
.search-box-hero {
  background-color: rgba(
    30,
    30,
    30,
    0.85
  ); /* Latar belakang hitam transparan */
  padding: 30px;
  border-radius: 12px;
  max-width: 900px; /* Lebar maksimal agar tidak terlalu lebar */
  margin: 40px auto; /* Tengah */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.search-box-hero p {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.search-headline {
  color: white;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* == Custom Tabs (Dijual/Disewa) == */
.search-tabs {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-tab-item {
  margin-right: 30px;
  padding-bottom: 10px;
  color: #ccc;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s;
}

.search-tab-item:hover {
  color: white;
}

.search-tab-item.active {
  color: white;
}

/* Garis hijau di bawah tab aktif */
.search-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #2eb14b; /* Warna Hijau Anda */
}

/* == Input Group Styling == */
.hero-input-group {
  display: flex;
  background: white;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Update CSS Hero Select agar cocok untuk Button Dropdown */
.hero-dropdown-wrapper {
  position: relative;
}

/* Select/Dropdown Tipe */
.hero-select {
  border: none;
  background: transparent;
  font-weight: 600;
  color: #333;
  padding: 10px 15px;
  min-width: 150px;
  border-right: 1px solid #eee; /* Pemisah tipis */
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.hero-select:focus {
  box-shadow: none;
  outline: none;
}

/* Style Menu Dropdown di Hero */
.hero-dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-top: 10px; /* Jarak dari input group */
  padding: 10px;
  width: 250px; /* Lebar menu dropdown */
  max-height: 300px;
  overflow-y: auto;
}

/* Style Checkbox item di dalam dropdown */
.hero-dropdown-menu .custom-control {
  padding-left: 1.75rem;
  margin-bottom: 8px;
}

.hero-dropdown-menu .custom-control-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  cursor: pointer;
}

/* Input Text Pencarian */
.hero-input {
  border: none !important;
  background: transparent;
  flex-grow: 1; /* Mengisi sisa ruang */
  padding: 10px 20px;
}
.hero-input:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Tombol Cari */
.hero-btn-search {
  background-color: #2eb14b; /* Warna Hijau Anda */
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
  white-space: nowrap;
}
.hero-btn-search:hover {
  background-color: #258a3a;
  text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-input-group {
    flex-direction: column;
    padding: 10px;
  }
  .hero-select {
    border-right: none;
    border-bottom: 1px solid #eee;
    width: 100%;
    margin-bottom: 5px;
  }
  .hero-input {
    width: 100%;
    margin-bottom: 10px;
  }
  .hero-btn-search {
    width: 100%;
  }

  .search-box-hero {
    padding: 20px;
  }

  .search-box-hero p {
    font-size: 0.9rem;
  }

  .search-headline {
    font-size: 1.3rem;
  }

  .hero-dropdown-menu {
    width: 100%; /* Full width di mobile */
  }
}
