@import url('./detail-reading.css?v=20261016-hero2');
@import url('./price-package.css?v=20261019');

.hospital-detail-shell { container: clinic / inline-size; padding-top: 0; }
.hospital-detail-shell .detail-utility { min-height: 28px; margin-bottom: 8px; }
.hospital-detail-shell .detail-section-head h2 { display: flex; align-items: center; gap: 10px; color: #74503e; }
.detail-section-head h2 svg { flex: 0 0 32px; width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: #fff0e9; color: var(--detail-coral); }
.hospital-detail-shell .detail-content-tabs button.active { color: var(--detail-coral); }

.hospital-detail-card { min-width: 0; border: 1px solid var(--detail-line); border-radius: 16px; background: #fff; }
.hospital-detail-card.hospital-profile-card { position: relative; isolation: isolate; overflow: hidden; border-color: #f0e3da; border-radius: 20px; background: linear-gradient(145deg, #fff 0%, #fff8f3 100%); box-shadow: 0 4px 14px rgba(91, 63, 43, .06); }
.hospital-profile-card::before { content: ''; position: absolute; inset: 0 auto auto 0; z-index: 2; width: 100%; height: 5px; border-radius: inherit; background: linear-gradient(105deg, #ff857b, #f4516d); pointer-events: none; }
.hospital-profile-card::after { content: ''; position: absolute; z-index: 0; right: -18px; bottom: -64px; width: 168px; height: 168px; border-radius: 50%; background: rgba(242, 85, 100, .09); opacity: .42; pointer-events: none; }
.detail-content-card { margin-top: 20px; border-color: #eee7e1; scroll-margin-top: 84px; }
.detail-clues-card { margin-top: 20px; padding-inline: 26px; border-color: #eee7e1; }
.detail-clues-card > .clinic-clues { padding-top: 24px; padding-bottom: 20px; border-bottom: 0; }
.clinic-clues-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.clinic-clues-invite { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 40px; margin-top: 16px; padding: 8px 18px; font-size: 14px; }
.clinic-clues-invite::before { content: '+'; font-size: 18px; font-weight: 400; line-height: 1; }
.clinic-clues > .clinic-clues-invite { margin-left: 52px; }

/* Editorial profile header: identity, stable photo ratio, actions, then metadata. */
.detail-hero { position: relative; z-index: 1; margin: 0; padding: 28px; border-radius: 16px; background: transparent; }
.detail-title-row { grid-area: title; display: block; min-width: 0; margin: 0; }
.hospital-detail-shell .detail-title-row h1 { min-width: 0; max-width: 100%; margin: 0; color: #293848; font-size: 24px; line-height: 1.4; letter-spacing: 0; text-wrap: pretty; }
.detail-foreign-name { max-width: 100%; margin: 5px 0 0; color: #8290a0; font-size: 13px; line-height: 1.6; }
.detail-hero-main { display: grid; grid-template-columns: 360px minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "media title" "media location" "media actions"; column-gap: 24px; row-gap: 12px; align-items: start; }
.detail-hero-gallery { grid-area: media; min-width: 0; }
.detail-hero-media { position: relative; min-width: 0; aspect-ratio: 3 / 2; margin: 0; overflow: hidden; border-radius: 12px; background: #f7f3ef; }
.detail-hero-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.detail-hero-track::-webkit-scrollbar { display: none; }
.detail-hero-track:focus-visible { outline: 3px solid rgba(242,85,100,.72); outline-offset: -3px; }
.detail-hero-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; margin: 0; overflow: hidden; background: #efe7e0; scroll-snap-align: start; scroll-snap-stop: always; }
.detail-hero-bg { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(20px) saturate(1.1) brightness(.93); }
.detail-hero-fg { position: absolute; left: 50%; top: 50%; display: block; width: 100%; height: 100%; max-width: none; transform: translate(-50%, -50%); object-fit: cover; }
.detail-gallery-dots { display: flex; justify-content: center; gap: 6px; margin: 9px 0 0; }
.detail-gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: #e6d9cf; transition: width .2s, background .2s; }
.detail-gallery-dots i.on { width: 18px; border-radius: 3px; background: var(--detail-coral); }
.detail-hero-gallery-controls { position: absolute; z-index: 2; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.detail-gallery-arrow { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; background: rgba(255,255,255,.88); color: #5e514b; box-shadow: 0 3px 12px rgba(43,32,27,.14); pointer-events: auto; cursor: pointer; backdrop-filter: blur(5px); }
.detail-gallery-arrow:hover { background: #fff; color: var(--detail-coral); }
.detail-gallery-arrow:disabled { opacity: .42; cursor: default; }
.detail-gallery-arrow svg { width: 18px; height: 18px; }
.detail-gallery-arrow.is-prev svg { transform: rotate(180deg); }
.detail-gallery-count { padding: 4px 10px; border-radius: 999px; background: rgba(39,32,28,.66); color: #fff; font-size: 12px; line-height: 1.5; pointer-events: none; backdrop-filter: blur(5px); }
.detail-gallery-count b { font-weight: 700; }
.detail-hero-actions { grid-area: actions; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 8px; min-width: 0; padding: 0; }
.hospital-detail-shell .detail-hero-actions .lumoo-record-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.hospital-detail-shell .detail-hero-actions .lumoo-record-actions button { justify-content: center; min-width: 0; min-height: 44px; padding: 7px 8px; gap: 5px; border: 1px solid #f0e5df; border-radius: 8px; background: #fffaf7; font-size: 14px; }
.hospital-detail-shell .detail-hero-actions .lumoo-record-actions button:hover { border-color: #f5c9c3; background: #fff3f1; }
.hospital-detail-shell .detail-hero-actions .lumoo-record-actions button svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--detail-coral); stroke-width: 1.5; }
.hospital-detail-shell .detail-hero-actions .lumoo-record-actions [data-lumoo-like][aria-pressed="true"] svg path { fill: currentColor; }
.detail-claim-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.detail-mobile-claim-status {
  position: fixed;
  z-index: 950;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  border-top: 1px solid #f0e3da;
  background: #fffdfb;
  box-shadow: 0 -4px 18px #7950390a;
}
.detail-mobile-claim-status > :is(a, span) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #ffffff70;
  border-radius: 13px;
  background: linear-gradient(140deg, #ff7993, #f65074);
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.detail-mobile-claim-status > :is(a, span):nth-child(2) { background: linear-gradient(140deg, #ffa35d, #ff7e3b) !important; }
.detail-mobile-claim-status svg { width: 23px; height: 23px; }
.detail-mobile-claim-status .is-claimed { cursor: default; pointer-events: none; }
.detail-clue-link:focus-visible { outline: 3px solid #f8c9d1; outline-offset: 3px; }
.detail-claim-action { justify-content: center; width: 100%; min-height: 44px; padding: 8px 10px; gap: 5px; border-radius: 8px; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.detail-claim-action svg { width: 16px; height: 16px; }
.hospital-detail-shell .detail-hero-actions :is(.lumoo-record-actions button, .detail-claim-action) { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; gap: 6px; border-radius: 14px; box-shadow: none; font-size: 14px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.hospital-detail-shell .detail-hero-actions :is(.lumoo-record-actions button, .detail-claim-action) svg { flex: 0 0 20px; width: 20px; height: 20px; }
.detail-claim-action.is-claimed { cursor: default; pointer-events: none; background: #d6d0cb !important; box-shadow: none !important; color: #fff; }
.detail-location { grid-area: location; display: flex; align-items: flex-start; gap: 6px; margin-top: 0; color: #6f7f8f; font-size: 14px; }
.detail-location svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 5px; color: #d99474; }
.detail-platforms { min-width: 0; margin: 16px 0 0; padding-top: 8px; border-top: 1px solid #f2ebe6; }
.detail-platform-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed #f3e9e2; }
.detail-platform-row:last-child { border-bottom: 0; }
.detail-platform-group { color: #a87559; font-size: 14px; letter-spacing: .5px; }
.detail-platform-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.detail-platform-sep { width: 1px; height: 18px; margin: 0 2px; background: #f0e3da; }
.hospital-detail-shell .detail-platforms .detail-contact-icon,
.hospital-detail-shell .detail-platforms .detail-contact-icon:is(:hover, :focus-visible) { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; line-height: 1; cursor: pointer; transform: none; filter: none; }
.hospital-detail-shell .detail-platforms .detail-contact-icon.is-chip { gap: 6px; height: 36px; padding: 0 13px 0 6px; border: 1px solid #f0e3da; border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap; }
.hospital-detail-shell .detail-platforms .detail-contact-icon.is-chip:hover { border-color: #f6b9bf; background: #fff8f5; }
.hospital-detail-shell .detail-platforms .detail-contact-icon img { width: 24px; height: 24px; padding: 0; border-radius: 0; background: transparent; object-fit: contain; transition: filter .15s, opacity .15s; }
.hospital-detail-shell .detail-platforms .detail-contact-icon.is-empty { width: 32px; height: 32px; border-radius: 50%; }
.hospital-detail-shell .detail-platforms .detail-contact-icon.is-empty img { width: 22px; height: 22px; }
.hospital-detail-shell .detail-platforms .detail-contact-icon.is-empty:hover { background: #f6f6f6; }
.detail-contact-icon.is-empty img { filter: grayscale(1); opacity: .38; }
.detail-contact-icon.is-empty:hover img { opacity: .55; }

/* A quiet, sticky tab bar replaces the floating pill/card navigation. */
.detail-content-tabs {
  position: sticky;
  top: 70px;
  z-index: 20;
  display: flex;
  gap: 0;
  padding-inline: 20px;
  border-bottom: 1px solid var(--detail-line);
  border-radius: 19px 19px 0 0;
  background: #fff;
}
.detail-content-tabs button {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: #8491a1;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
}
.detail-content-tabs button::after { position: absolute; bottom: -1px; left: 50%; width: 46px; height: 3px; transform: translateX(-50%); border-radius: 3px 3px 0 0; background: transparent; content: ''; }
.detail-content-tabs button.active { color: #293848; }
.detail-content-tabs button.active::after { background: var(--detail-coral); }
.detail-content-tabs button:hover { color: var(--detail-coral); }
.detail-tab-panel[hidden] { display: none; }
.detail-tab-panel { min-width: 0; padding-inline: 26px; }
.detail-tab-panel > .detail-section:last-child { border-bottom: 0; }

/* Public clues read as a warm editorial timeline within the hospital profile. */
.clinic-clues { padding-top: 4px; padding-bottom: 20px; }
.clinic-clues-intro { margin: -12px 0 0 42px; color: #9b8a7e; font-size: 13px; line-height: 1.7; }
.clinic-clue-list { position: relative; display: grid; margin: 24px 0 0 14px; padding: 0 0 0 38px; list-style: none; }
.clinic-clue-list::before { position: absolute; top: 8px; bottom: 20px; left: 6px; width: 1px; background: #efd7d2; content: ''; }
.clinic-clue-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 0 0 28px; }
.clinic-clue-row::before { position: absolute; top: 6px; left: -38px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--detail-coral); box-shadow: 0 0 0 1px #efb5ad; content: ''; }
.clinic-clue-row:last-child { padding-bottom: 8px; }
.clinic-clue-copy { min-width: 0; }
.clinic-clue-kind { display: inline-block; padding: 0; color: #c36d5e; font-size: 12px; font-weight: 700; line-height: 1.6; }
.clinic-clue-text { margin: 5px 0 6px; color: #5b4d46; font-size: 16px; font-weight: 500; line-height: 1.75; }
.clinic-clue-date { display: inline-block; color: #9b8f87; font-size: 12px; line-height: 1.7; }
.clinic-clue-source { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px; color: #a87568; font-size: 12px; }
.clinic-clue-source svg { width: 14px; height: 14px; }
.clinic-clue-votes { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.clinic-clue-question { flex: 0 0 100%; margin: 0; color: #7b6f66; font-size: 13px; text-align: right; }
.clinic-clue-vote { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 36px; padding: 6px 9px; border: 1px solid #eddfd8; border-radius: 8px; background: #fff; color: #928276; font: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.clinic-clue-vote[data-clue-vote="agree"] { border-color: #f7ccd2; color: var(--detail-coral); background: #fff6f7; }
.clinic-clue-vote svg { width: 16px; height: 16px; flex-shrink: 0; }
.clinic-clue-vote:not(:disabled):hover { border-color: var(--detail-coral); color: var(--detail-coral); background: #fff0f2; }
.clinic-clue-vote[aria-pressed="true"], .clinic-clue-vote[aria-pressed="true"]:hover { border-color: var(--detail-coral); background: var(--detail-coral); color: #fff; }
.clinic-clue-vote:disabled { cursor: not-allowed; }
.clinic-clue-vote:focus-visible, .clinic-clue-source:focus-visible { outline: 3px solid #f8c9d1; outline-offset: 3px; }
.clinic-clue-count { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.clinic-clue-count[hidden] { display: none; }
.clinic-clue-vote-feedback { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.clinic-clues-empty { position: relative; margin: 24px 0 4px 14px; padding: 0 0 4px 38px; text-align: left; }
.clinic-clues-empty::before { position: absolute; top: 8px; bottom: 8px; left: 6px; border-left: 1px dashed #e4bbb3; content: ''; }
.clinic-clues-empty-icon { position: absolute; top: 2px; left: 0; display: block; width: 13px; height: 13px; border: 1px dashed var(--detail-coral); border-radius: 50%; background: #fff; color: transparent; }
.clinic-clues-empty-icon svg { display: none; }
.clinic-clues-empty strong { display: block; color: #745c4f; font-size: 17px; font-weight: 600; }
.clinic-clues-empty p { max-width: 480px; margin: 6px 0 0; color: #9b8a7e; font-size: 14px; line-height: 1.75; }
@container clinic (max-width: 520px) {
  .clinic-clues-head { align-items: flex-start; }
  .clinic-clues-intro { margin-top: -8px; margin-left: 0; padding-right: 96px; }
  .clinic-clue-list { margin-top: 22px; margin-left: 7px; padding-left: 30px; }
  .clinic-clue-list::before { left: 5px; }
  .clinic-clue-row { grid-template-columns: minmax(0, 1fr); gap: 11px; padding-bottom: 25px; }
  .clinic-clue-row::before { left: -31px; }
  .clinic-clue-question { text-align: left; }
  .clinic-clue-votes { justify-content: flex-start; }
  .clinic-clue-source { margin-left: 8px; }
  .clinic-clues > .clinic-clues-invite { margin-left: 37px; }
  .clinic-clues-empty { margin-left: 7px; padding-left: 30px; }
  .clinic-clues-empty::before { left: 5px; }
}

/* Labels sit above their values; there are no nested cards or side columns. */
.detail-ledger { display: grid; gap: 20px; }
.detail-ledger-row > span,
.detail-scope > span,
.doctor-summary > span,
.doctor-details p > span { display: block; margin-bottom: 4px; color: var(--detail-muted); font-size: 14px; }
.detail-ledger-row > span { display: inline-flex; align-items: center; gap: 6px; color: #a47b64; }
.detail-ledger-row > span svg { width: 17px; height: 17px; color: #de8d78; }
.detail-ledger-row strong { display: block; font-weight: 400; color: #66534a; }
/* Weekly calendar; unrecorded days are not treated as closed. */
.hours-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.hours-day { min-width: 0; overflow: hidden; border: 1px solid #f4ded4; border-radius: 12px; background: #fffaf6; text-align: center; }
.hours-day-name { display: block; padding: 8px 2px; background: #ffe8df; color: #a9654f; font-size: 14px; font-weight: 650; }
.hours-day-time { display: flex; flex-direction: column; justify-content: center; min-height: 96px; gap: 0; padding: 10px 3px; color: #795a4d; font-size: 14px; line-height: 1.45; }
.hours-day-time strong { font-weight: 600; }
.hours-day-time i { color: #dca68d; font-size: 12px; font-style: normal; line-height: 1.2; }
.hours-day.is-weekend { border-color: #cfe3ee; background: #f5faff; }
.hours-day.is-weekend .hours-day-name { background: #e3f1fa; color: #477a98; }
.hours-day.is-weekend .hours-day-time { color: #4d748b; }
.hours-day.is-weekend .hours-day-time i { color: #94b8ce; }
.hours-day.is-closed { border-color: #ebe6e2; background: #faf8f6; }
.hours-day.is-closed .hours-day-name { background: #eee9e4; color: #9a8d83; }
.hours-day.is-closed .hours-day-time { color: #aa9688; }
.hours-day.is-unknown { border-style: dashed; background: #fff; }
.hours-day.is-unknown .hours-day-name { background: #f8f5f2; color: #a8998b; }
.hours-day.is-unknown .hours-day-time { color: #a8998b; font-size: 13px; }
.hours-notes { margin-top: 14px; }
.hours-notes p { display: flex; align-items: flex-start; gap: 7px; margin: 7px 0 0; color: #978374; font-size: 14px; }
.hours-notes svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 5px; color: #d59a7c; }
.hours-notes b { margin-right: 10px; color: #9c6b52; font-weight: 600; }
.detail-prose { line-height: 1.95; }
.detail-scope { margin-top: 24px; }
.detail-scope p { margin: 0; }
.treatment-index { display: flex; flex-wrap: wrap; gap: 10px; }
.treatment-index > span { padding: 3px 11px; border-radius: 5px; background: #fff3e9; color: #a46946; font-size: 15px; }

/* Price cards use the same warm identity surface as the doctor directory. */
.price-directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.price-offer { min-width: 0; margin: 0; overflow: hidden; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(79, 60, 47, .085); }
.price-offer-copy { min-width: 0; padding: 18px 19px; background: #fffaf7; }
.price-offer-category { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; color: #b17758; font-size: 12px; font-weight: 650; line-height: 1.6; }
.price-offer-category svg { flex: 0 0 15px; width: 15px; height: 15px; color: #ec907c; }
.price-offer-copy h3 { margin: 0; color: #58463d; font-size: 17px; line-height: 1.6; font-weight: 650; }
.price-offer-amount { min-width: 0; padding: 15px 19px 18px; text-align: left; }
.price-offer-amount > span { display: block; margin-bottom: 3px; color: #a18e81; font-size: 12px; }
.price-offer-amount strong { display: block; color: var(--detail-coral); font-size: 22px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.price-offer-detailed .price-package { box-sizing: border-box; padding: 15px 19px 19px; border: 0; border-radius: 0; background: #fff; }
.price-offer-original { min-width: 0; padding: 15px 19px 19px; color: #948376; font-size: 14px; line-height: 1.8; }
.price-offer-original summary { cursor: pointer; color: #b8795c; }
.price-offer-original p { overflow-wrap: anywhere; margin: 12px 0 0; }

/* Each doctor occupies a full row for easier profile scanning. */
.doctor-directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.doctor-entry { min-width: 0; margin: 0; overflow: hidden; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(79, 60, 47, .085); }
.doctor-card-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 19px; background: #fffaf7; }
.doctor-mark { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; }
.doctor-mark span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #f3d1c8; color: #a9474d; font-size: 24px; line-height: 1; font-weight: 800; }
.doctor-copy { flex: 1; min-width: 0; padding: 0; }
.doctor-copy h3 { margin: 0; color: #58463d; font-size: 18px; line-height: 1.5; }
.doctor-department { margin: 5px 0 0; color: #978276; font-size: 13px; line-height: 1.6; }
.doctor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.doctor-tags span { padding: 3px 7px; border-radius: 6px; background: #fff; color: #c46252; font-size: 12px; line-height: 1.6; }
.doctor-more { padding: 4px 19px 19px; }
.doctor-expanded { display: grid; gap: 0; }
.doctor-summary,
.doctor-details p { padding: 15px 0; border-bottom: 1px solid #eee7e2; }
.doctor-summary:last-child,
.doctor-details p:last-child { padding-bottom: 0; border-bottom: 0; }
.doctor-summary > span,
.doctor-details p > span { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: #a36f58; font-size: 13px; font-weight: 650; letter-spacing: 0; }
.doctor-summary > span::before,
.doctor-details p > span::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #d38c72; }
.doctor-summary p { margin: 0; font-size: 14px; color: #403835; line-height: 1.8; }
.doctor-details { display: grid; gap: 0; }
.doctor-details p { margin: 0; }
.doctor-details strong { display: block; font-size: 14px; font-weight: 500; color: #403835; line-height: 1.8; }
.doctor-profile { display: grid; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f2e6dc; color: #796454; font-size: 15px; line-height: 1.85; }

/* Activity cards repeat the warm identity surface and quiet white content area. */
.activity-directory { column-count: 2; column-gap: 16px; }
.activity-entry { break-inside: avoid; display: flex; flex-direction: column; min-width: 0; margin: 0 0 16px; overflow: hidden; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(79, 60, 47, .085); }
.activity-media { order: 2; padding: 10px 10px 0; background: #fff; }
.activity-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; border-radius: 11px; background: #f7f3ef; }
.activity-copy { order: 1; padding: 18px 19px; background: #fffaf7; }
.activity-entry h3 { margin: 0; color: #58463d; font-size: 18px; line-height: 1.6; font-weight: 650; transition: color .15s; }
.activity-entry p { margin: 6px 0 0; color: var(--detail-muted); font-size: 13px; line-height: 1.7; }
.activity-read-more { order: 3; display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin: 12px 19px 18px; color: var(--detail-coral); font-size: 14px; }
.activity-read-more svg { width: 16px; height: 16px; }
.activity-entry:hover h3 { color: var(--detail-coral); }
.activity-entry:focus-visible { outline: 3px solid #f8c9d1; outline-offset: 3px; }

/* QR overlay uses the existing page-scoped positioning and close handlers. */
.content-inner:has(.hospital-detail-shell) { position: relative; }
.qr-modal { position: absolute; z-index: 120; right: 0; left: 0; display: grid; place-items: center; padding: 20px; background: rgba(42, 34, 29, .5); backdrop-filter: blur(5px); }
body.qr-open { overflow: hidden; }
.qr-modal[hidden] { display: none; }
.qr-modal-card { position: relative; width: min(338px, 100%); max-height: 100%; overflow-y: auto; padding: 32px 24px; border-radius: 16px; background: #fff; text-align: center; }
.qr-modal-card > p { margin: 0 0 6px; color: #ef596b; font-size: 11px; letter-spacing: .1em; }
.qr-modal-card h2 { margin: 0 0 18px; font-size: 24px; }
.qr-modal-card img { width: 224px; height: 224px; max-width: 100%; margin: 0 auto; object-fit: contain; }
.qr-modal.is-loading .qr-modal-card .pf-qr img { opacity: .35; }
.qr-modal.has-error .qr-modal-card .pf-qr img, .qr-modal-error[hidden] { display: none; }
.qr-modal-error { display: block; margin: 18px 0; color: #ef596b; font-size: 15px; }
.qr-modal-card .pf-qr > span { display: block; margin-top: 15px; color: #847b74; font-size: 14px; }
.qr-modal-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; font-size: 24px; line-height: 1; cursor: pointer; }
.qr-modal-card .pf-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px; }
.qr-modal-card .pf-head img { width: 36px; height: 36px; margin: 0; object-fit: contain; }
.qr-modal-card .pf-head h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.qr-modal-card .pf-head.is-empty img { filter: grayscale(1); opacity: .5; }
.qr-modal-card .pf-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #faf5f1; font-size: 15px; text-align: left; }
.qr-modal-card .pf-id[hidden], .qr-modal-card .pf-action[hidden], .qr-modal-card .pf-qr[hidden], .qr-modal-card .pf-empty[hidden] { display: none; }
.qr-modal-card .pf-id b { min-width: 0; flex: 1; overflow-wrap: anywhere; font-weight: 600; }
.qr-modal-card .pf-copy { flex: none; min-height: 30px; padding: 0 14px; border: 1px solid #efd9cf; border-radius: 999px; background: #fff; color: #74503e; font: inherit; font-size: 13px; cursor: pointer; }
.qr-modal-card .pf-action { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 0 14px; padding: 8px 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff7a7a, #f25564); color: #fff; font-size: 15px; text-decoration: none; }
.qr-modal-card .pf-action.is-secondary { border: 1px solid #efd9cf; background: #fff; color: #293848; }
.qr-modal-card .pf-qr { margin-top: 2px; }
.qr-modal-card .pf-empty { text-align: left; }
.qr-modal-card .pf-empty p { margin: 0 0 16px; color: #6b7785; font-size: 15px; line-height: 1.7; }
.qr-modal-card .pf-empty .pf-action:last-child { margin-bottom: 0; }
.qr-modal-card .pf-empty .pf-empty-note { margin: -4px 0 0; color: #a2958b; font-size: 13px; }

@media (max-width: 720px) {
  .hospital-detail-shell { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .hospital-detail-card { border-radius: 16px; }
  .detail-content-card { margin-top: 14px; }
  .detail-clues-card { margin-top: 14px; padding-inline: 18px; }
  .detail-hero { padding: 20px 18px 18px; border-radius: 16px; }
  .detail-hero-actions .detail-claim-status { display: none; }
  .detail-mobile-claim-status {
    position: fixed;
    z-index: 950;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border-top: 1px solid #f0e3da;
    background: #fffdfb;
    box-shadow: 0 -4px 18px #7950390a;
  }
  .detail-mobile-claim-status > :is(a, span) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #ffffff70;
    border-radius: 13px;
    background: linear-gradient(140deg, #ff7993, #f65074);
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
  }
  .detail-mobile-claim-status > :is(a, span):nth-child(2) { background: linear-gradient(140deg, #ffa35d, #ff7e3b) !important; }
  .detail-mobile-claim-status svg { width: 23px; height: 23px; }
  .detail-mobile-claim-status .is-claimed { cursor: default; pointer-events: none; }
  .detail-content-tabs { top: 62px; padding-inline: 10px; border-radius: 15px 15px 0 0; }
  .detail-content-tabs button { padding-block: 14px; }
  .detail-tab-panel { padding-inline: 18px; }
  .detail-foreign-name { font-size: 13px; }
  .detail-location { font-size: 14px; }
  .detail-ledger { gap: 18px; }
  .activity-entry h3 { font-size: 17px; }
  .detail-hero-gallery-controls { right: 9px; bottom: 9px; left: 9px; }
}

@media (min-width: 721px) {
  .detail-mobile-claim-status { display: none; }
}

@container clinic (max-width: 640px) {
  .hours-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .hospital-detail-card.hospital-profile-card { border-radius: 16px; }
}
@container clinic (max-width: 410px) {
  .activity-directory { column-count: 1; }
  .price-offer-copy { padding: 16px; }
  .price-offer-amount,
  .price-offer-original,
  .price-offer-detailed .price-package { padding: 14px 16px 16px; }
  .activity-copy { padding: 16px; }
  .activity-read-more { margin: 11px 16px 16px; }
  .doctor-card-main { gap: 12px; padding: 16px; }
  .doctor-mark { flex-basis: 44px; width: 44px; height: 44px; }
  .doctor-mark span { width: 44px; height: 44px; font-size: 22px; }
  .doctor-more { padding: 4px 16px 16px; }
  .doctor-copy h3 { font-size: 17px; }
  .price-offer-amount strong { font-size: 19px; }
  .price-offer-amount > span { font-size: 11px; }
  .price-offer-copy h3 { font-size: 16px; }
  .hours-calendar { gap: 6px; }
  .hours-day-time { min-height: 90px; font-size: 13px; }
}
/* QR alternatives stay distinct from the platform's external link. */
[data-media-feedback]:empty{display:none}
[data-media-feedback]{overflow-wrap:anywhere}

@container clinic (max-width: 520px) {
  .hospital-detail-shell .detail-hero-actions .lumoo-record-actions { gap: 8px; }
  .hospital-detail-shell .detail-hero-actions :is(.lumoo-record-actions button, .detail-claim-action) { gap: 5px; padding-inline: 6px; font-size: 13px; }
  .hospital-detail-shell .detail-hero-actions :is(.lumoo-record-actions button, .detail-claim-action) svg { flex-basis: 19px; width: 19px; height: 19px; }
}

/* 窄屏：已有名字胶囊换行后，分隔线会落在行首，直接不画。 */
@container clinic (max-width: 520px) {
  .detail-platform-sep { display: none; }
}

/* 窄屏（手机、小平板）：名称、照片、按钮、地区上下排，照片不超过 520px 宽，避免素材被放大。 */
@container clinic (max-width: 700px) {
  .detail-hero-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "title" "media" "actions" "location"; row-gap: 14px; }
  .detail-hero-gallery { max-width: 520px; }
}
