/* ------------------------------------------------ */
/* Main Layout Containers */
/* ------------------------------------------------ */
#doctor-filter-container {
  position: relative;
  direction: rtl;
}

.cloud {
  position: absolute;
  z-index: -1;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  filter: blur(100px);
}

.cloud.top {
  top: 0;
  left: 20%;
  background-color: #1a9383c2;
}

.cloud.bottom {
  top: 12rem;
  right: 5%;
  background-color: #0692bac2;
}

#doctor-search-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.similar-style {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
}

.similar-style:focus-within {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2),
    0 2px 3px rgba(0, 0, 0, 0.08);
  transform: translateY(2px);
}

.similar-style:has(select:focus) {
  transform: translateY(0);
}

.similar-style input,
.similar-style select,
.similar-style button {
  border: none !important;
  outline: none !important;
}

.similar-style.input-container {
  gap: 0.75rem;
  width: 50%;
  min-width: 360px;
}

#doctor-search-input {
  flex: 1;
  padding: 10px;
  border-radius: 15px;
  font-size: 1rem;
}

.similar-style.select-container {
  align-self: flex-end;
  display: flex;
  justify-content: space-between;
  width: 360px;
  margin-top: 80px;
  padding: 1rem;
}

.select-wrapper {
  padding: 5px;
  border-radius: 12px;
  background-color: #b9b9b92e;
}

#doctor-sort-select {
  padding: 5px;
  background: none;
}

#doctor-search-button {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  cursor: pointer;
  border-radius: 18px;
  background: linear-gradient(to right, #1a9383, #0294a9, #0095b6);
}

/* ------------------------------------------------ */
/* Sidebar Filter Item Styles */
/* ------------------------------------------------ */

#main-area {
  display: flex;
  gap: 40px;
  padding-top: 40px;
}

#doctor-cards-results {
  flex: 1;
  text-align: center;
}

#doctor-filter-sidebar {
  /* Sidebar takes up 1/4 of space */
  width: 25%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ------------------ */

.filter-container {
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 24px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.filter-container h3 {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 22rem;
  overflow-y: auto;
  margin-left: -0.75rem;
  padding-left: 0.55rem;
}

.filter-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 5px;
  margin-top: 12px;
  cursor: pointer;
  color: #4b5563;
  background-color: #B9B9B92E;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
  border-radius: 6px;
}

.filter-list li:hover {
  background-color: #f3f4f6;
  color: #0692ba;
}

.filter-list li.active {
  background-color: #0692BA2E;
  color: #0692BA;
  font-weight: bold;
  /* background-color: #0692ba; */
  /* color: #ffffff; */
}

.filter-count {
  width: 30px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e5e7eb;
  color: #4b5563;
  border-radius: 10px;
  font-size: 0.8rem;
}


.filter-list li.active .filter-count {
  background-color: #ffffff;
  color: #0692ba;
}

/* Dropdown Styles for Location and 'Other' Specialty */
.filter-dropdown-wrapper {
    
}

.filter-dropdown-wrapper select {
  width: 100%;
  padding: 8px;
  margin-top: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ------------------------------------------------ */
/* Responsive Adjustments */
/* ------------------------------------------------ */
@media (max-width: 992px) {
  #doctor-filter-container {
    max-width: 100%; /* Ensure full width usage */
  }
  #main-area {
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
  }

  #doctor-filter-sidebar {
    order: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 15px; /* Added padding to align with container */

    /* Display filters horizontally in a grid/flex for mobile */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .filter-container {
    flex: 1;
  }

  #doctor-cards-results {
    order: 2;
    padding: 0 15px;
  }
}