/* ==========================================================
   Property Filter (ACF) - Base Styles
   Author: Md. Anik Khan
   ========================================================== */

.pf-filter-wrap {
  background: rgba(0, 0, 0, 0.55);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  gap: 16px;
  align-items: end;
  max-width: 100%;
  transition: all 0.3s ease;
}

.pf-filter-form {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.pf-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pf-label {
  font-size: 13px;
  color: #fff;
  margin-left: 6px;
}

.pf-select {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transition: all 0.3s ease;
}

.pf-select:focus {
  border-color: #a97c50;
  box-shadow: 0 0 0 2px rgba(169, 124, 80, 0.3);
  outline: none;
}

/* Ensure select and option text is readable */
select,
select option {
  color: #222 !important;
  background-color: #fff !important;
}

/* Optional: Style the dropdown itself for consistency */
select {
  border: 1px solid #444;
  padding: 8px;
  border-radius: 4px;
}

.pf-btn {
  background: #a97c50;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pf-btn:hover {
  background: #8d673f;
  transform: translateY(-1px);
}

.pf-reset {
  margin-left: 10px;
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
  font-size: 13px;
}

/* ==========================================================
   ERM Taxonomy Filter - Final UI (Matches Screenshot)
   ========================================================== */

.erm-filter-bar {
  background: rgba(22, 22, 22, 0.6);
  border: 1px solid rgba(169, 124, 80, 0.45);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  margin: 0 auto 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.erm-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.erm-field {
  flex: 1 1 230px;
  position: relative;
  padding-right: 8px;
}

.erm-field + .erm-field {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 8px;
}

.erm-field label {
  display: block;
  font-size: 13px;
  color: #dcdcdc;
  margin-bottom: 6px;
  font-weight: 500;
}

.erm-filter-bar select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  appearance: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.erm-filter-bar select:focus {
  border-color: #a97c50;
  box-shadow: 0 0 0 2px rgba(169, 124, 80, 0.25);
  outline: none;
}

.erm-filter-bar select option {
  color: #111 !important;
  background: #fff !important;
}

/* Search button style */
.erm-actions {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.erm-filter-btn {
  background: transparent;
  color: #fff !important;
  padding: 10px 30px;
  border: 1px solid #a97c50 !important;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.erm-filter-btn:hover {
  background: #a97c50 !important;
  color: #fff !important;
  border: 1px solid #a97c50 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.erm-reset-btn {
  display: none; /* hidden to match your screenshot */
}

/* ==========================================================
   Responsive Design
   ========================================================== */

/* Tablet view */
@media (max-width: 1024px) {
  .erm-filter-bar {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .erm-row {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }

  .erm-field {
    border: 0 !important;
    padding: 0;
  }

  .erm-actions {
    justify-content: flex-end;
  }

  .erm-filter-btn {
    width: 100%;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  .erm-filter-bar {
    padding: 12px 10px;
    margin-bottom: 20px;
  }

  .erm-row {
    flex-direction: row;
    gap: 12px;
  }

  .erm-field label {
    padding-left:0 !important;
    font-size: 12px;
  }

  .erm-filter-bar select {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .erm-filter-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }
  .erm-field + .erm-field {
  padding-left: 0;
}

}
