/* sidebar.css — 사이드바, 추천 병원, 관련글 스타일 */

.pk-side-section {
  background: var(--pk-surface);
  border-radius: var(--pk-radius-lg);
  box-shadow: var(--pk-shadow-soft);
  padding: 16px 16px 18px;
}

.pk-side-section + .pk-side-section { margin-top: 14px; }

/* 사이드 헤더 */
.pk-side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pk-side-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  margin-bottom: 1rem;
}

.pk-side-more {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--pk-primary);
  cursor: pointer;
  white-space: nowrap;
}

/* 추천 병원 카드 */
.pk-clinic-card {
  border-radius: .5rem;
  padding: 1rem;
  background: var(--pk-surface-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 1rem;
}

.pk-clinic-top {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.pk-clinic-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #d9d9df;
  flex-shrink: 0;
  overflow: hidden;
}

.pk-clinic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pk-clinic-text {
  flex: 1;
  min-width: 0;
}

.pk-clinic-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pk-clinic-address {
  font-size: 14px;
  color: var(--pk-text-sub);
}

.pk-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.pk-tag-chip {
  font-size: 12px;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.pk-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.pk-side-more-wrap {
  margin-top: 4px;
  text-align: right;
}

.pk-btn {
  flex: 1;
  border-radius: var(--pk-radius-pill);
  border: 1px solid transparent;
  font-size: 12px;
  padding: 7px 10px;
  cursor: pointer;
}

.pk-btn--primary {
  background: var(--pk-primary);
  color: #ffffff;
  border-color: var(--pk-primary);
}

.pk-btn--ghost {
  background: #ffffff;
  color: var(--pk-text-main);
  border-color: var(--pk-border-subtle);
}

/* 관련글 */
.pk-related { margin-top: 10px; }

.pk-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 2rem;
}

.pk-related-card {
  border-radius: .5rem;
  background: var(--pk-surface-soft);
  padding: .75rem;
  font-size: 11px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pk-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pk-related-thumb {
  width: 100%;
  border-radius: 10px;
  background: #e5e7eb;
  padding-top: 62%;
  margin-bottom: .5rem;
  overflow: hidden;
  position: relative;
}

.pk-related-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pk-related-title { font-weight: 500; font-size: 14px;}
