/* Doctor card component (Pages/Shared/_DoctorCard.cshtml) — directory and home page. */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.doc-grid-item[hidden] { display: none; }

.doc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--vc-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px -20px rgba(10, 63, 58, .5);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.doc-card:hover {
  transform: translateY(-5px);
  border-color: #a6d8c9;
  box-shadow: 0 20px 40px -24px rgba(10, 63, 58, .48);
}
.doc-photo { aspect-ratio: 1 / 1; overflow: hidden; background: #d9eee7; }
.doc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.doc-content { display: flex; flex-direction: column; flex: 1; padding: 18px 14px 20px; }
.doc-card h3 { margin: 0 0 7px; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.doc-focus {
  margin: 0 0 7px;
  color: #0f8d87;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.doc-qual { margin: 0; color: #4b615c; font-size: .83rem; line-height: 1.45; overflow-wrap: anywhere; }
.doc-loc { margin: 14px 0 0; color: #4b615c; font-size: .8rem; line-height: 1.4; }
.doc-loc::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px 1px 1px;
  border: 1.5px solid #43d9b3;
  border-radius: 50% 50% 50% 0;
  box-shadow: inset 0 0 0 2px #fff;
  transform: rotate(-45deg);
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.doc-btn-profile { border: 1px solid var(--vc-line); color: var(--vc-ocean); }
.doc-btn-profile:hover { border-color: var(--vc-ocean); background: var(--vc-mint); color: var(--vc-ocean); }
.doc-btn-book { background: var(--vc-coral); color: #fff; }
.doc-btn-book:hover { background: var(--vc-coral-dark); color: #fff; }

@media (max-width: 980px) {
  .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .doc-photo { aspect-ratio: 1.08 / 1; }
  .doc-content { padding: 10px 9px 11px; }
  .doc-card h3 { font-size: .86rem; line-height: 1.18; margin-bottom: 5px; }
  .doc-focus { font-size: .67rem; margin-bottom: 5px; }
  .doc-qual { font-size: .68rem; line-height: 1.25; }
  .doc-loc { font-size: .67rem; line-height: 1.2; margin-top: 7px; }
  .doc-actions { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .doc-btn { min-height: 31px; padding: 6px; font-size: .7rem; white-space: nowrap; }
}
@media (max-width: 359px) {
  .doc-grid { grid-template-columns: 1fr; }
}
