/* ========== Doctor & Therapist Finder Styling ========== */
#doctor-finder {
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit;
  padding: 40px 20px;
  color: #333;
}

/* --- Sidebar Filters --- */
#doctor-finder .filters {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  background: transparent;
}

#doctor-finder .filters h3 {
  font-size: 24px;
  color: #1a2e35;
  margin: 0 0 10px 0;
  font-weight: 700;
}

/* --- Sidebar Search --- */
.cf-sidebar-search {
  position: relative;
  margin-bottom: 20px;
}

.cf-sidebar-search input {
  width: 100%;
  padding: 12px 15px 12px 40px !important;
  background: #fff !important;
  border: 1px solid #dcdde1 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #2c3e50 !important;
  transition: all 0.2s;
  box-sizing: border-box !important;
}

.cf-sidebar-search input:focus {
  border-color: #3b7a77 !important;
  box-shadow: 0 0 0 3px rgba(59, 122, 119, 0.1) !important;
  outline: none !important;
}

.cf-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* --- Accordions --- */
.cf-accordion {
  border-bottom: 1px solid #eef2f3;
  padding-bottom: 10px;
}

.cf-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  user-select: none;
}

.cf-accordion-header span:first-child {
  font-weight: 600;
  color: #2c3e50;
  font-size: 15px;
}

.cf-icon {
  transition: transform 0.3s ease;
  color: #95a5a6;
}

.cf-accordion.active .cf-icon {
  transform: rotate(180deg);
}

.cf-accordion-content {
  display: none;
  padding: 5px 0 15px 0;
  animation: cfSlideDown 0.3s ease-out;
}

.cf-accordion.active .cf-accordion-content {
  display: block;
}

@keyframes cfSlideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Grid Content for Provinces --- */
.cf-tax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* --- Checkbox Styling --- */
.cf-checkbox-label,
.cf-accordion-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #5d6d7e;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.cf-checkbox-label:hover,
.cf-accordion-content label:hover {
  color: #1a2e35;
}

#doctor-finder input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #bdc3c7;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
  margin: 0;
}

#doctor-finder input[type="checkbox"]:checked {
  background-color: #3b7a77;
  border-color: #3b7a77;
}

#doctor-finder input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* --- Price Slider --- */
.cf-price-slider-container {
  padding: 10px 0;
}

input[type="range"]#price-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #dfe6e9;
  border-radius: 5px;
  outline: none;
  margin: 20px 0;
}

input[type="range"]#price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #3b7a77;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s;
}

input[type="range"]#price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.cf-price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
}

/* --- Clear Filters Button --- */
#cf-clear-filters {
  margin-top: 20px;
  background: #f8f9f9;
  color: #34495e;
  border: 1px solid #dcdde1;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#cf-clear-filters:hover {
  background: #ebedef;
  color: #1a2e35;
}

/* --- Doctor Card Layouts --- */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.doctor-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef2f3;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.doctor-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.doctor-card h3 {
  font-size: 18px;
  color: #2c3e50;
  margin: 0 0 5px 0;
}

.doctor-card .degree {
  font-weight: normal;
  color: #7f8c8d;
  font-size: 14px;
}

.doctor-excerpt {
  display: none;
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.doctor-meta {
  margin-top: auto;
  border-top: 1px solid #f8f9f9;
  padding-top: 15px;
}

.doctor-meta p {
  font-size: 13px;
  margin: 5px 0;
  color: #5d6d7e;
}

.doctor-meta strong {
  color: #2c3e50;
  font-weight: 600;
}

.doctor-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.doctor-card .btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.doctor-card .btn.secondary {
  border: 1px solid #3b7a77;
  color: #3b7a77;
  background: #fff;
}

.doctor-card .btn:not(.secondary) {
  background: #3b7a77;
  color: #fff;
}

/* --- Side Layout Specifics --- */
.cf-side-layout {
  display: flex;
  gap: 40px;
}

.cf-side-layout .filters {
  flex: 0 0 280px;
}

.cf-side-layout .cf-main-content {
  flex: 1;
}

/* --- List View Specifics --- */
.cf-list-layout .doctor-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-list-layout .doctor-card {
  flex-direction: row;
  align-items: stretch;
  min-height: auto;
}

.cf-list-layout .doctor-card img {
  width: 280px;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.cf-list-layout .doctor-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
}

.cf-list-layout .doctor-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.cf-list-layout .doctor-excerpt {
  margin-bottom: 15px;
  max-width: 100%;
}

.cf-list-layout .doctor-actions {
  justify-content: flex-start;
  gap: 15px;
}

.cf-list-layout .doctor-card .btn {
  flex: none;
  padding: 10px 25px;
}

/* --- Responsive fixes --- */
@media (max-width: 900px) {
  .cf-side-layout {
    flex-direction: column;
  }

  .cf-side-layout .filters {
    flex: none;
  }
}

@media (max-width: 768px) {
  .cf-list-layout .doctor-card {
    flex-direction: column;
  }

  .cf-list-layout .doctor-card img {
    width: 100%;
    aspect-ratio: 16/10;
  }

  .doctor-actions {
    flex-direction: column;
  }

  .doctor-card .btn {
    width: 100%;
    flex: none;
  }
}

/* --- Hero Search Styling --- */
.cf-hero-search-wrapper {
  max-width: 950px;
  margin: 40px auto;
  padding: 12px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.cf-hero-search-form {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cf-hero-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.cf-hero-field:focus-within {
  border-color: #3b7a77;
  box-shadow: 0 0 0 3px rgba(59, 122, 119, 0.08);
}

.cf-hero-icon {
  color: #7f8c8d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.cf-hero-field select,
.cf-hero-field input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 15px;
  color: #34495e;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  height: 26px !important;
  line-height: 26px !important;
}

.cf-hero-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%237F8C8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 25px !important;
}

#cf-hero-results {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

#cf-hero-results:not(:empty) {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eef2f3;
}

.cf-loading {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
  font-style: italic;
}

.cf-hero-submit {
  padding: 15px 30px;
  background: #3b7a77;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.cf-hero-submit:hover {
  background: #2f615f;
  transform: translateY(-1px);
}

.cf-hero-submit:active {
  transform: translateY(0);
}

/* Responsive Hero Search */
@media (max-width: 768px) {
  .cf-hero-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cf-hero-submit {
    width: 100%;
  }
}

/* --- Bio Modal Styling --- */
body.cf-modal-open {
  overflow: hidden;
}

.cf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cf-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 46, 53, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cf-modal-container {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cfModalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cfModalScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cf-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  border: 1px solid #eef2f3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #7f8c8d;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cf-modal-close:hover {
  background: #f8f9fa;
  color: #1a2e35;
  transform: rotate(90deg);
}

.cf-modal-content {
  overflow-y: auto;
  padding: 0;
  height: 100%;
}

/* --- Bio Card --- */
.cf-bio-card {
  display: flex;
  flex-direction: column;
}

.cf-bio-header {
  display: flex;
  gap: 30px;
  padding: 40px;
  background: #f8fafb;
  border-bottom: 1px solid #eef2f3;
}

.cf-bio-image {
  flex: 0 0 180px;
  height: 180px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cf-bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-bio-title-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cf-bio-title-area h2 {
  font-size: 32px;
  margin: 0 0 15px 0;
  color: #1a2e35;
}

.cf-bio-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.cf-meta-item {
  font-size: 14px;
  color: #5d6d7e;
}

.cf-meta-item strong {
  color: #2c3e50;
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.cf-bio-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px;
}

.cf-bio-main h3 {
  font-size: 20px;
  margin: 0 0 20px 0;
  color: #1a2e35;
}

.cf-bio-content {
  font-size: 16px;
  line-height: 1.8;
  color: #4a5568;
}

.cf-bio-content p {
  margin-bottom: 20px;
}

.cf-bio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.cf-bio-info-card {
  background: #fff;
  border: 1px solid #eef2f3;
  padding: 20px;
  border-radius: 12px;
}

.cf-bio-info-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a2e35;
  margin: 0 0 12px 0;
  border-bottom: 2px solid var(--cf-primary, #b5a9c7);
  padding-bottom: 8px;
  display: inline-block;
}

.cf-bio-info-card p {
  font-size: 15px;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}

.cf-availability-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cf-availability-list li {
  font-size: 14px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-availability-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.cf-availability-list li.available {
  color: #2c3e50;
}

.cf-availability-list li.available::before {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.cf-availability-list li.unavailable {
  color: #94a3b8;
  text-decoration: line-through;
}

.cf-availability-list li.unavailable::before {
  background: #cbd5e1;
}

.cf-bio-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.cf-bio-actions .btn {
  width: 100%;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}

.cf-bio-actions .btn:not(.secondary) {
  background: var(--cf-primary, #3b7a77);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 122, 119, 0.2);
}

.cf-bio-actions .btn.secondary {
  background: #fff;
  border: 2px solid #eef2f3;
  color: #1a2e35;
}

.cf-bio-actions .btn.secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafb;
}

/* --- Responsive Modal --- */
@media (max-width: 850px) {
  .cf-bio-header {
    flex-direction: column;
    padding: 30px;
    align-items: center;
    text-align: center;
  }

  .cf-bio-image {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
  }

  .cf-bio-body {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 30px;
  }

  .cf-bio-sidebar {
    order: -1;
  }

  .cf-modal-container {
    max-height: 95vh;
  }
}

@media (max-width: 480px) {
  .cf-modal {
    padding: 10px;
  }

  .cf-bio-header,
  .cf-bio-body {
    padding: 20px;
  }

  .cf-bio-title-area h2 {
    font-size: 24px;
  }

  .cf-bio-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Active Filters Bar UI --- */
#cf-active-filters {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cf-active-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.cf-active-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.cf-active-label svg {
  color: var(--cf-primary);
}

.cf-clear-all-link {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
  outline: none;
}

.cf-clear-all-link:hover {
  background: #f1f5f9;
  color: #ef4444;
}

.cf-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-tag {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  user-select: none;
}

.cf-tag:hover {
  border-color: var(--cf-primary);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cf-remove-tag {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.cf-tag:hover .cf-remove-tag {
  background: var(--cf-primary);
  color: #fff;
  background: #ef4444 !important;
  color: #fff !important;
}

/* --- Mobile Sidebar Panel --- */
.cf-mobile-filter-toggle {
  display: none;
  margin-bottom: 20px;
}

#cf-open-filters {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cf-mobile-only {
  display: none;
}

.cf-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#cf-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .cf-mobile-filter-toggle {
    display: block;
  }

  .cf-mobile-only {
    display: flex;
  }

  #doctor-finder .filters {
    position: fixed;
    top: 0;
    left: -320px;
    /* Hidden by default */
    width: 300px;
    height: 100%;
    background: #fff !important;
    z-index: 9999;
    padding: 20px !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: block !important;
  }

  #doctor-finder.cf-mobile-open .filters {
    left: 0;
  }

  #doctor-finder.cf-mobile-open #cf-sidebar-overlay {
    display: block;
  }

  #cf-close-filters {
    background: #f1f5f9;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
  }

  body.cf-no-scroll {
    overflow: hidden;
  }
}

/* --- Top Search Bar Styling --- */
.cf-top-search-area {
  margin-bottom: 24px;
}

.cf-search-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.cf-search-input-wrapper input {
  width: 100%;
  padding: 14px 20px 14px 45px !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  color: #1e293b !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.cf-search-input-wrapper input:focus {
  border-color: var(--cf-primary) !important;
  box-shadow: 0 0 0 3px rgba(181, 169, 199, 0.15) !important;
  outline: none !important;
}

.cf-search-input-wrapper .cf-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.cf-results-count {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .cf-top-search-area {
    margin-top: 10px;
  }
}

/* --- Top Bar Layout --- */
.cf-top-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.cf-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.cf-controls-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* --- View Toggles --- */
.cf-view-toggles {
  display: flex;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.cf-view-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  color: #64748b;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.cf-view-btn:hover {
  background: #f1f5f9;
}

.cf-view-btn.active {
  background: var(--cf-primary);
  color: #fff;
}

/* --- Sort Dropdown --- */
.cf-sort-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-sort-container label {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.cf-sort-container select {
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  font-size: 14px !important;
  color: #1e293b !important;
  cursor: pointer;
}

/* --- Dynamic List View Override --- */
.cf-list-layout-active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-list-layout-active .doctor-card {
  flex-direction: row;
  align-items: stretch;
}

.cf-list-layout-active .doctor-card img {
  width: 280px;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cf-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .cf-controls-group {
    width: 100%;
    justify-content: space-between;
  }

  .cf-list-layout-active .doctor-card {
    flex-direction: column;
  }

  .cf-list-layout-active .doctor-card img {
    width: 100%;
    height: auto;
  }
}