/* Doctors & hospitals pages. Builds on yh-site.css (tokens --hv-*). Flat, 1px borders, 8px radius. */
.dh-page { padding: 20px 0 40px; background: #fff; }

/* page head extras */
.dh-count { font-size: 13px; color: var(--hv-muted); margin: 0 0 12px; }
.dh-count strong { color: var(--hv-navy); }

/* filter */
.dh-filter .yh-field { margin-bottom: 12px; }
.dh-filter .yh-select { appearance: auto; }
.dh-filter__scroll { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.dh-filter__actions { display: flex; gap: 8px; margin-top: 14px; }
.dh-filter__actions .yh-btn { flex: 1; }
.dh-filter fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.dh-filter legend { font-size: 12px; font-weight: 700; color: var(--hv-ink); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 8px; padding: 0; width: auto; border: 0; }
.dh-filter input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--hv-blue); margin: 0; flex: none; }
.dh-filter .yh-check { margin-bottom: 6px; }

/* doctor row */
.dh-row { grid-template-columns: 88px minmax(0, 1fr) 190px; }
.dh-row .yh-avatar--lg, .dh-row .yh-row__img { width: 88px; height: 88px; }
.dh-row__name { font-size: 16px; font-weight: 700; color: var(--hv-navy); margin: 0 0 3px; line-height: 1.3; }
.dh-row__name a { color: inherit; text-decoration: none; }
.dh-row__name a:hover { color: var(--hv-blue); }
.dh-row__quals { font-size: 12.5px; color: var(--hv-muted); margin: 0 0 6px; }
.dh-row .yh-tags { margin-bottom: 8px; }
.dh-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--hv-muted); margin-bottom: 6px; }
.dh-rating strong { color: var(--hv-ink); }
.dh-row__side { display: flex; flex-direction: column; gap: 8px; }
.dh-fee { font-size: 12.5px; color: var(--hv-muted); }
.dh-fee strong { color: var(--hv-ink); font-size: 14px; }
.dh-fav { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #c9d8f0; border-radius: 6px; background: #fff; color: var(--hv-muted); text-decoration: none; flex: none; }
.dh-fav:hover { color: var(--hv-red); border-color: var(--hv-red); }
.dh-fav:focus-visible { outline: 2px solid var(--hv-blue); outline-offset: 2px; }
.dh-fav.favourited { color: var(--hv-red); border-color: var(--hv-red); background: var(--hv-red-50); }
.dh-fav.favourited i { font-weight: 900; }
.dh-side-actions { display: flex; gap: 8px; }
.dh-side-actions .yh-btn { flex: 1; }
.dh-pager { margin-top: 18px; display: flex; justify-content: center; }

/* profile */
.dh-profile-head { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 20px; }
.dh-profile-head .yh-avatar--lg, .dh-profile-head .dh-photo { width: 120px; height: 120px; font-size: 40px; border-radius: 8px; }
.dh-photo { object-fit: cover; background: var(--hv-bg); display: block; }
.dh-profile-head h1 { font-size: 22px; font-weight: 700; color: var(--hv-navy); margin: 0 0 4px; }
.dh-profile-head__cta { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.dh-section { margin-top: 20px; }
.dh-section > h2 { font-size: 16px; font-weight: 700; color: var(--hv-navy); margin: 0 0 10px; }
.dh-timeline { list-style: none; margin: 0; padding: 0; }
.dh-timeline li { position: relative; padding: 0 0 12px 18px; border-left: 2px solid var(--hv-line); margin-left: 4px; }
.dh-timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--hv-blue); }
.dh-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.dh-timeline strong { display: block; color: var(--hv-ink); font-size: 13.5px; }
.dh-timeline span { font-size: 12.5px; color: var(--hv-muted); }
.dh-facts { display: grid; gap: 0; margin: 0; }
.dh-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hv-line); font-size: 13px; }
.dh-facts div:last-child { border-bottom: 0; }
.dh-facts dt { font-weight: 500; color: var(--hv-muted); margin: 0; }
.dh-facts dd { margin: 0; color: var(--hv-ink); font-weight: 600; text-align: right; }
.dh-review { padding: 14px 0; border-bottom: 1px solid var(--hv-line); }
.dh-review:last-child { border-bottom: 0; }
.dh-review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.dh-review__head strong { color: var(--hv-ink); font-size: 13.5px; }
.dh-review p { margin: 0; font-size: 13.5px; }
.dh-stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.dh-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dh-stars-input label { cursor: pointer; font-size: 22px; color: #d8dee8; margin: 0; line-height: 1; padding: 2px; }
.dh-stars-input input:checked ~ label, .dh-stars-input label:hover, .dh-stars-input label:hover ~ label { color: var(--hv-star); }
.dh-stars-input input:focus-visible + label { outline: 2px solid var(--hv-blue); outline-offset: 1px; }
.dh-tab-pane[hidden] { display: none; }
.yh-tabs button { cursor: pointer; }

/* hospital */
.dh-hosp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dh-hosp { display: flex; flex-direction: column; }
.dh-hosp .yh-card__img { aspect-ratio: 16 / 9; }
.dh-hosp__ph { aspect-ratio: 16 / 9; background: var(--hv-blue-50); color: #9db3d6; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.dh-hosp__body { padding: 14px 16px; flex: 1; }
.dh-hosp__name { font-size: 15px; font-weight: 700; color: var(--hv-navy); margin: 0 0 6px; line-height: 1.3; }
.dh-hosp__name a { color: inherit; text-decoration: none; }
.dh-hosp__name a:hover { color: var(--hv-blue); }
.dh-hosp .yh-meta { flex-direction: column; gap: 4px; margin-bottom: 8px; }
.dh-hosp__foot { padding: 10px 16px; border-top: 1px solid var(--hv-line); display: flex; gap: 8px; }
.dh-hosp__foot .yh-btn { flex: 1; }
.dh-search { display: flex; gap: 8px; margin-bottom: 16px; }
.dh-search .yh-input { flex: 1; }
.dh-hero-img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 8px; display: block; background: var(--hv-bg); }
.dh-mini-doc { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--hv-line); border-radius: 8px; color: inherit; text-decoration: none; }
.dh-mini-doc:hover { border-color: #c9d8f0; }
.dh-mini-doc:hover strong { color: var(--hv-blue); }
.dh-mini-doc .yh-avatar { width: 48px; height: 48px; font-size: 16px; }
.dh-mini-doc img.yh-avatar { object-fit: cover; }
.dh-mini-doc strong { display: block; color: var(--hv-ink); font-size: 13.5px; }
.dh-mini-doc .d { font-size: 12px; color: var(--hv-muted); }

/* booking */
.dh-doc-sum { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.dh-doc-sum .yh-avatar, .dh-doc-sum img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; font-size: 18px; }
.dh-doc-sum strong { display: block; color: var(--hv-navy); font-size: 14.5px; }
.dh-doc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.dh-doc-row .yh-input { padding: 7px 10px; }
.dh-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.dh-form-grid .full { grid-column: 1 / -1; }
.dh-req { color: #b4232f; }
.yh-input.is-invalid { border-color: var(--hv-red); }

@media (max-width: 991px) {
    .dh-hosp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dh-profile-head { grid-template-columns: 96px minmax(0, 1fr); }
    .dh-profile-head .yh-avatar--lg, .dh-profile-head .dh-photo { width: 96px; height: 96px; font-size: 32px; }
    .dh-profile-head__cta { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
    .dh-profile-head__cta .yh-btn { flex: 1; }
}
@media (max-width: 767px) {
    .dh-row { grid-template-columns: 64px minmax(0, 1fr); }
    .dh-row .yh-avatar--lg, .dh-row .yh-row__img { width: 64px; height: 64px; font-size: 22px; }
    .dh-row__side { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .dh-row__side .dh-side-actions { flex: 1; min-width: 200px; }
}
@media (max-width: 640px) {
    .dh-hosp-grid, .dh-form-grid { grid-template-columns: 1fr; }
    .dh-doc-row { grid-template-columns: 1fr; }
    .dh-profile-head { padding: 16px; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
    .dh-profile-head .yh-avatar--lg, .dh-profile-head .dh-photo { width: 72px; height: 72px; font-size: 26px; }
    .dh-profile-head h1 { font-size: 18px; }
    .dh-search { flex-direction: column; }
}
.yh-btn.favourited { color: var(--hv-red); border-color: var(--hv-red); background: var(--hv-red-50); }
.yh-btn.favourited i { font-weight: 900; }
.dh-page .yh-layout > * { min-width: 0; }
.dh-page .yh-prose { overflow-wrap: anywhere; }
.dh-page .yh-prose table { display: block; overflow-x: auto; }
@media (max-width: 991px) { .dh-profile-head__cta { flex-wrap: wrap; } .dh-profile-head__cta .yh-btn { white-space: normal; flex: 1 1 180px; } }
