/* ===== SEARCH + FILTER (Claymorphism) ===== */
#search-container {
  position: fixed;
  top: 50px;
  width: 100%;
  background: rgba(255, 248, 243, 0.98);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(212, 145, 125, 0.15);
  box-shadow: 0 4px 12px rgba(180, 120, 80, 0.08);
  z-index: 999;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.search-box {
  display: flex;
  gap: 5px;
  align-items: center;
  background: rgba(255, 250, 247, 0.95);
  padding: 6px 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(212, 145, 125, 0.35);
  box-shadow: inset 0 1px 3px rgba(212, 145, 125, 0.08);
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(212, 145, 125, 0.5);
  box-shadow: inset 0 1px 3px rgba(212, 145, 125, 0.12), 0 0 8px rgba(212, 145, 125, 0.1);
}

.search-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  max-width: 120px;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  color: #D4917D;
  font-weight: 600;
  padding-right: 12px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4917D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px;
  transition: all 0.2s ease;
}

.search-box select:hover {
  background-color: rgba(212, 145, 125, 0.05);
  border-radius: 4px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #4A4A4A;
  font-size: 14px;
  will-change: contents; 
}

/* ===== CUSTOM DROPDOWN (Claymorphism) ===== */

/* Dropdown wrapper - relative positioning for absolute dropdown menu */
.custom-dropdown-wrapper {
  position: relative;
  min-width: 100px;
}

/* Dropdown trigger (button-like) */
.custom-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 250, 247, 0.95);
  border: 1.5px solid rgba(212, 145, 125, 0.35);
  color: #D4917D;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(212, 145, 125, 0.08);
}

.custom-dropdown-trigger:hover {
  background: rgba(212, 145, 125, 0.1);
  border-color: rgba(212, 145, 125, 0.45);
  color: #B8927E;
  box-shadow: inset 0 1px 2px rgba(212, 145, 125, 0.1), 0 0 6px rgba(212, 145, 125, 0.08);
}

.custom-dropdown-trigger:active {
  background: rgba(212, 145, 125, 0.12);
  transform: scale(0.98);
}

/* Chevron icon */
.custom-dropdown-trigger i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.custom-dropdown-trigger i.rotated {
  transform: rotate(180deg);
}

/* Dropdown menu (hidden by default) */
.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: rgba(255, 250, 247, 0.98);
  border: 1px solid rgba(212, 145, 125, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(180, 120, 80, 0.15);
  z-index: 1000;
  min-width: 140px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show dropdown */
.custom-dropdown-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-dropdown-menu.hidden {
  display: none;
}

/* Individual dropdown options */
.dropdown-option {
  padding: 10px 14px;
  color: #4A4A4A;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(212, 145, 125, 0.08);
  display: flex;
  align-items: center;
}

/* Last option - no border */
.dropdown-option:last-child {
  border-bottom: none;
}

/* Dropdown option hover */
.dropdown-option:hover {
  background: rgba(212, 145, 125, 0.12);
  color: #D4917D;
  padding-left: 18px;
  font-weight: 600;
}

/* Active/selected option */
.dropdown-option.active {
  background: rgba(212, 145, 125, 0.15);
  color: #D4917D;
  border-left: 3px solid #D4917D;
  padding-left: 11px;
  font-weight: 700;
}