/* ========================= */
/* FILTER BAR */
/* ========================= */

.filter-bar {
  background: #28328c;
  display: flex;
  gap: 15px;
  padding: 12px 20px;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-group {
  position: relative;
}

.filter-btn {
  background: #3a44a8;
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
}

.filter-btn i {
  margin-left: 6px;
}

/* Filter-bar dropdowns only (avoids clashing with any other .dropdown on the page) */
.filter-bar .dropdown {
  position: absolute;
  top: 42px;
  left: 0;
  background: #fff;
  color: #000;
  padding: 10px;
  width: 200px;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 200;
}

.filter-bar .dropdown.show {
  display: flex;
}

.sort {
  margin-left: auto;
  color: #fff;
}

.sort select {
  margin-left: 6px;
  padding: 6px;
  border-radius: 4px;
  border: none;
}

/* ========================= */
/* ALL FILTERS PANEL */
/* ========================= */

.all-filters-panel {
  display: none;
  background: #28328c;
  color: #fff;
  padding: 25px 60px;
  gap: 80px;
  border-top: 1px solid rgba(255,255,255,0.15);
  width: 100%;
  z-index: 90;
}

.all-filters-panel.show {
  display: flex;
}

.filter-section h4 {
  margin-bottom: 12px;
  font-size: 15px;
}

.filter-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

/* ========================= */
/* SEARCH SECTION */
/* ========================= */

.search-section {
  background: #f5f6f8;
  padding: 30px 0;
  display: flex;
  justify-content: center;
}

.search-box {
  width: 60%;
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.location,
.search-input {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  gap: 10px;
  flex: 1;
  position: relative;
}

.location {
  border-right: 1px solid #ddd;
  max-width: 200px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.location .dropdown,
.search-input .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  z-index: 300;
  display: none;
}

.location .dropdown.show,
.search-input .dropdown.show {
  display: block;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort {
    margin-left: 0;
  }

  .search-box {
    width: 90%;
    flex-direction: column;
  }

  .location {
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
}
/* DOCTORS CARDS */
.doctor-list {
  padding: 30px 60px;
  background: #f5f6f8;
}

/* ========================= */
/* DOCTOR CARDS */
/* ========================= */

.doctor-card {
  background: #eaf4ff;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.doctor-list {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.doctor-avatar {
  width: 120px;
  height: 120px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: #888;
}

.doctor-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.doctor-card .specialization {
  font-size: 14px;
  font-weight: 500;
}

.doctor-card .clinic {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.doctor-card .doctor-bio {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0 0 10px;
}

.doctor-card .fee {
  font-weight: 600;
  margin: 10px 0;
}

.availability {
  color: green;
  font-size: 14px;
  margin: 10px 0;
}

.primary-btn {
  background: #5b74ff;
  color: #fff;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  margin-top: 10px;
  font-size: 14px;
}

.primary-btn span {
  display: block;
  font-size: 11px;
  opacity: 0.9;
}

.secondary-btn,
.location-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
  width: 100%;
  margin-top: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.location-btn {
  color: #f4a000;
}

.rating-badge {
  background: #3fae2a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 10px;
  font-size: 13px;
}
