.related-therapist-cards-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 0;
}

.related-therapist-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(255, 42, 122, 0.04);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.related-therapist-card span,
.related-therapist-card div,
.related-therapist-card h3 {
  text-decoration: none;
}

.related-therapist-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 42, 122, 0.08);
  border-color: rgba(255, 42, 122, 0.15);
}

.related-therapist-card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 280 / 432;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 20px 20px 0 0;
}

.related-therapist-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-therapist-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
}

.related-therapist-favorite i {
  font-size: 16px;
}

.related-therapist-area-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  z-index: 3;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.related-therapist-review-badge {
  position: absolute;
  bottom: 28px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 3;
}

.related-therapist-review-badge i {
  font-size: 14px;
  color: #ffd700;
}

.related-therapist-review-badge.review-wanted {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 42, 122, 0.5);
  color: #ff2a7a;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.15);
}
.related-therapist-review-badge.review-wanted i {
  color: #ff2a7a;
}

.related-therapist-specs-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 10px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.related-therapist-specs-gradient span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.related-therapist-card-info {
  padding: 12px 14px 14px;
  background: var(--card-bg);
}

.related-therapist-shop-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.related-therapist-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-therapist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.related-therapist-tag {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.related-therapist-tag.premium {
  background: rgba(255, 42, 122, 0.06);
  color: var(--primary-color);
  border: 1px solid rgba(255, 42, 122, 0.15);
}

.related-therapist-tag.recommend {
  background: rgba(76, 175, 80, 0.06);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.15);
}

.related-therapist-tag.category {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-therapist-rating-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 42, 122, 0.04);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  height: 26px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 42, 122, 0.08);
}

.related-therapist-rating-carousel .rating-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.related-therapist-rating-carousel .rating-carousel-item {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  opacity: 0;
  transform: translateY(calc(-50% + 10px));
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  white-space: nowrap;
}

.related-therapist-rating-carousel .rating-carousel-item.active {
  opacity: 1;
  transform: translateY(-50%);
}

.related-therapist-rating-carousel .rating-carousel-item.prev {
  opacity: 0;
  transform: translateY(calc(-50% - 10px));
}

.related-therapist-rating-carousel .rating-carousel-label {
  display: inline-block;
  width: 4.2em;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.related-therapist-rating-carousel .rating-carousel-stars {
  display: flex;
  gap: 0.5px;
  color: var(--primary-color);
  font-size: 11px;
  justify-content: center;
  flex-shrink: 0;
}

.related-therapist-rating-carousel .rating-carousel-score {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-color);
  width: 2.2em;
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 1199.98px) {
  .related-therapist-cards-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 991.98px) {
  .related-therapist-cards-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .related-therapist-name {
    font-size: 14px;
  }
}

@media (max-width: 767.98px) {
  .search-result-info {
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 8px 0;
    padding: 10px 12px;
  }

  .search-condition-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .search-result-count {
    width: 100%;
    justify-content: center;
  }

  .search-sort-wrapper {
    margin-bottom: 6px;
  }

  .search-sort-wrapper label {
    display: none;
  }

  .result-count-number {
    font-size: 20px;
  }

  .related-therapist-cards-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .related-therapist-card:nth-child(15) {
    display: none;
  }

  .related-therapist-card {
    border-radius: 16px;
  }

  .related-therapist-card-image-wrapper {
    border-radius: 16px 16px 0 0;
  }

  .related-therapist-card-info {
    padding: 8px 10px 10px;
  }

  .related-therapist-name {
    font-size: 14px;
  }

  .related-therapist-tags {
    margin-bottom: 6px;
  }

  .related-therapist-tag {
    font-size: 9px;
    padding: 2px 5px;
  }

  .related-therapist-review-badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  .related-therapist-review-badge i {
    font-size: 11px;
  }
}

@media (max-width: 374.98px) {
  .related-therapist-cards-container {
    gap: 6px;
  }

  .related-therapist-card-info {
    padding: 6px 4px;
  }

  .related-therapist-name {
    font-size: 12px;
  }
}

@media (hover: none) {
  .related-therapist-card:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
  }

  .related-therapist-card:active {
    transform: scale(0.98);
  }
}
