/* Annapurna Dham — Custom Searchable Select (theme colors) */

.hostel-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hostel-sdropdown {
  position: relative;
  width: 100%;
  font-family: 'Heebo', sans-serif;
}

.hostel-sdropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark, #181d38);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  gap: 10px;
}

.hostel-sdropdown-toggle::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary, #06BBCC);
  border-bottom: 2px solid var(--primary, #06BBCC);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.hostel-sdropdown.is-open .hostel-sdropdown-toggle::after {
  transform: rotate(-135deg) translateY(2px);
}

.hostel-sdropdown-toggle:hover {
  border-color: var(--primary, #06BBCC);
}

.hostel-sdropdown.is-open .hostel-sdropdown-toggle,
.hostel-sdropdown-toggle:focus {
  outline: none;
  border-color: var(--primary, #06BBCC);
  box-shadow: 0 0 0 0.2rem rgba(6, 187, 204, 0.25);
}

.hostel-sdropdown-toggle.is-placeholder {
  color: #6c757d;
  font-weight: 400;
}

.hostel-sdropdown.is-invalid .hostel-sdropdown-toggle,
.hostel-sdropdown-toggle.is-invalid {
  border-color: #dc3545 !important;
}

.hostel-sdropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(24, 29, 56, 0.12);
  overflow: hidden;
  animation: hostelSelectFadeIn 0.2s ease;
}

.hostel-sdropdown.is-open .hostel-sdropdown-menu {
  display: block;
}

@keyframes hostelSelectFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hostel-sdropdown-search-wrap {
  padding: 10px;
  border-bottom: 1px solid #ced4da;
  background: var(--light, #F0FBFC);
}

.hostel-sdropdown-search {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid #ced4da;
  border-radius: 2px;
  font-size: 13px;
  color: var(--dark, #181d38);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2306BBCC' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 12px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hostel-sdropdown-search:focus {
  outline: none;
  border-color: var(--primary, #06BBCC);
  box-shadow: 0 0 0 0.2rem rgba(6, 187, 204, 0.2);
}

.hostel-sdropdown-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.hostel-sdropdown-list::-webkit-scrollbar {
  width: 6px;
}

.hostel-sdropdown-list::-webkit-scrollbar-thumb {
  background: var(--primary, #06BBCC);
  border-radius: 3px;
}

.hostel-sdropdown-item {
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--dark, #181d38);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hostel-sdropdown-item:hover,
.hostel-sdropdown-item.is-highlighted {
  background: var(--light, #F0FBFC);
  color: var(--primary, #06BBCC);
}

.hostel-sdropdown-item.is-selected {
  background: var(--primary, #06BBCC);
  color: #fff;
  font-weight: 600;
}

.hostel-sdropdown-item.is-selected:hover {
  color: #fff;
  background: #0599a8;
}

.hostel-sdropdown-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.hostel-sdropdown-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  color: #6c757d;
}

.hostel-sdropdown.is-disabled .hostel-sdropdown-toggle {
  background: var(--light, #F0FBFC);
  cursor: not-allowed;
  opacity: 0.7;
}

label.error + .hostel-sdropdown,
.hostel-sdropdown + label.error {
  display: block;
}

.hostel-sdropdown-wrap {
  position: relative;
  width: 100%;
}

@media (max-width: 576px) {
  .hostel-sdropdown-list {
    max-height: 180px;
  }
}
