/* MedCIC standard hospital page + service-page hospital card (plg_system_mchospital). Same tokens as dj-item-medical.css. */
.mc-hosp,.mc-hosp-linked{--mc-teal:#00a89c;--mc-teal-dark:#007f76;--mc-navy:#123552;--mc-soft:#eef9f8;--mc-line:#dce8e8;--mc-muted:#51697c;--mc-gap:32px;--mc-pad:28px;--mc-radius:16px}
.mc-hosp{color:#1d2939}
.mc-hosp__shell{max-width:1180px;margin:0 auto;padding:24px}
/* header */
.mc-hosp-header{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:var(--mc-gap);align-items:center;margin:0 0 var(--mc-gap);background:#fff;border:1px solid var(--mc-line);border-radius:22px;overflow:hidden;box-shadow:0 16px 42px rgba(18,53,82,.08)}
.mc-hosp-header--noimage{grid-template-columns:1fr}
.mc-hosp-cover{margin:0;display:flex;align-items:center;justify-content:center;background:#f2f5f7;min-height:220px}
.mc-hosp-cover img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}
.mc-hosp-header__text{padding:28px 32px 28px 0}
.mc-hosp-header--noimage .mc-hosp-header__text{padding:28px 32px}
.mc-hosp-header__title{margin:0 0 10px;color:var(--mc-navy);font-size:clamp(1.7rem,2.8vw,2.6rem);line-height:1.18}
.mc-hosp-header__subtitle{margin:0 0 10px;font-size:1.2rem;color:#2b4a63}
.mc-hosp-header__aka{margin:0;color:var(--mc-muted);font-size:.95rem}
.mc-hosp-edit{display:inline-block;margin-top:12px;font-size:.9rem}
/* columns: aside is first in the DOM, placed right on desktop */
.mc-hosp__columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:var(--mc-gap);align-items:start}
.mc-hosp__side{grid-column:2;grid-row:1;min-width:0}
.mc-hosp__main{grid-column:1;grid-row:1;min-width:0}
.mc-hosp__sticky{position:sticky;top:96px}
/* sections & cards: one title style for every module */
.mc-hosp-section,.mc-hosp-card{margin:0 0 var(--mc-gap);padding:var(--mc-pad);background:#fff;border:1px solid var(--mc-line);border-radius:var(--mc-radius)}
.mc-hosp-card{margin-bottom:24px}
.mc-hosp-section__title{margin:0 0 18px;color:var(--mc-navy);font-size:1.375rem;line-height:1.3;font-weight:700}
.mc-hosp-richtext{line-height:1.75}
.mc-hosp-richtext p{margin:0 0 1em}.mc-hosp-richtext p:last-child{margin-bottom:0}
.mc-hosp-richtext ul{padding-left:1.2em}
.mc-hosp-note{margin:16px 0 0;color:var(--mc-muted);font-size:.92rem;line-height:1.6}
/* facts */
.mc-hosp-facts__list{margin:0;display:flex;flex-direction:column}
.mc-hosp-facts__row{display:grid;grid-template-columns:minmax(110px,40%) 1fr;gap:12px;padding:11px 0;border-bottom:1px solid #edf2f2}
.mc-hosp-facts__row:last-child{border-bottom:0}
.mc-hosp-facts__row dt{color:var(--mc-muted);font-weight:500}
.mc-hosp-facts__row dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.mc-hosp-facts__list--inline .mc-hosp-facts__row dd{font-weight:400}
/* entry card */
.mc-hosp-entry{border-top:4px solid var(--mc-teal)}
.mc-hosp-entry__count{margin:0 0 14px}
.mc-hosp-entry__note{margin:12px 0 0;font-size:.85rem;color:var(--mc-muted)}
.mc-hosp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 20px;border-radius:10px;text-decoration:none;font-weight:600}
.mc-hosp-btn--primary{width:100%;background:var(--mc-teal);color:#fff!important}
.mc-hosp-btn--primary:hover,.mc-hosp-btn--primary:focus{background:var(--mc-teal-dark)}
.mc-hosp-btn--secondary{border:1px solid var(--mc-teal);color:var(--mc-teal-dark)!important;background:#fff;min-height:44px;padding:8px 16px}
/* specialties */
.mc-hosp-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.mc-hosp-chips li{padding:7px 14px;border-radius:999px;background:var(--mc-soft);color:#126c69;font-weight:600}
/* international */
.mc-hosp-checks{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.mc-hosp-checks li span{display:inline-block;width:1.2em;color:var(--mc-teal);font-weight:700}
.mc-hosp-checks li.is-no span{color:#9aa7b3}
/* admission generic */
.mc-hosp-generic{border-left:4px solid #c8d6dd;padding:4px 0 4px 16px}
.mc-hosp-generic__label{margin:0 0 8px;font-size:.85rem;font-weight:700;letter-spacing:.02em;color:var(--mc-muted);text-transform:uppercase}
/* gallery */
.mc-hosp-gallery{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mc-hosp-gallery a{display:block;border-radius:10px;overflow:hidden;background:#f2f5f7;aspect-ratio:3/2}
.mc-hosp-gallery img{display:block;width:100%;height:100%;object-fit:cover}
.mc-hosp-viewer{border:0;padding:0;background:transparent;max-width:96vw;max-height:94vh}
.mc-hosp-viewer::backdrop{background:rgba(10,20,30,.86)}
.mc-hosp-viewer img{display:block;max-width:96vw;max-height:86vh;width:auto;height:auto;object-fit:contain;margin:0 auto}
.mc-hosp-viewer__bar{display:flex;justify-content:center;gap:10px;margin-top:10px}
.mc-hosp-viewer__bar button{min-width:44px;min-height:44px;border:0;border-radius:8px;background:#fff;color:#123552;font-weight:600;padding:0 14px}
/* map */
.mc-hosp-map{margin-top:16px;border-radius:12px;overflow:hidden}
.mc-hosp-map img,.mc-hosp-map iframe{display:block;width:100%;max-width:100%;height:auto}
.mc-hosp-map button,.mc-hosp-map .button{display:inline-flex;margin-top:10px;min-height:44px}
/* services cards */
.mc-hosp-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mc-hosp-cards__item{display:flex;flex-direction:column;border:1px solid var(--mc-line);border-radius:14px;overflow:hidden;background:#fff}
.mc-hosp-cards__media{display:block;aspect-ratio:3/2;background:#f2f5f7}
.mc-hosp-cards__media img{display:block;width:100%;height:100%;object-fit:cover}
.mc-hosp-cards__body{padding:16px;display:flex;flex-direction:column;gap:6px;flex:1}
.mc-hosp-cards__body h3{margin:0;font-size:1.05rem;line-height:1.35}
.mc-hosp-cards__body h3 a{color:var(--mc-navy);text-decoration:none}
.mc-hosp-cards__meta{margin:0;color:var(--mc-muted);font-size:.9rem}
.mc-hosp-cards__body .mc-hosp-btn{margin-top:auto;align-self:flex-start}
/* sources */
.mc-hosp-badge{display:inline-block;margin:0 0 14px;padding:5px 12px;border-radius:999px;font-size:.85rem;font-weight:700;background:#eef1f5;color:#3a4350}
.mc-hosp-badge--intl_verified,.mc-hosp-badge--partner_authorized{background:#e1f4ea;color:#11643b}
.mc-hosp-sources__list{list-style:none;margin:0;padding:0;overflow-wrap:anywhere}
.mc-hosp-dates{list-style:none;margin:14px 0 0;padding:0;color:var(--mc-muted);font-size:.9rem;display:flex;flex-wrap:wrap;gap:4px 18px}
.mc-hosp-disclaimer{margin:16px 0 0;padding:14px 16px;background:#f6f8fa;border-radius:10px;font-size:.9rem;line-height:1.6;color:#3a4a5a}
/* service page: linked hospital card */
.mc-hosp-linked__list{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.mc-hosp-linked__item{display:grid;grid-template-columns:minmax(140px,220px) 1fr;gap:18px;align-items:start;border:1px solid var(--mc-line);border-radius:14px;padding:14px;background:#fff}
.mc-hosp-linked__media{display:block;aspect-ratio:3/2;border-radius:10px;overflow:hidden;background:#f2f5f7}
.mc-hosp-linked__media img{display:block;width:100%;height:100%;object-fit:cover}
.mc-hosp-linked__body h3{margin:0 0 4px;font-size:1.1rem}
.mc-hosp-linked__body h3 a{color:var(--mc-navy);text-decoration:none}
.mc-hosp-linked__role{margin:0 0 4px;font-size:.8rem;font-weight:700;color:var(--mc-teal-dark);text-transform:uppercase;letter-spacing:.03em}
.mc-hosp-linked__sub{margin:0 0 6px;color:#2b4a63}
.mc-hosp-linked__meta{margin:0 0 4px;color:var(--mc-muted);font-size:.92rem}
.mc-hosp-linked__btn{margin-top:8px}
.mc-hosp-linked__note{margin:12px 0 0;font-size:.85rem;color:var(--mc-muted)}
/* tablet */
@media (max-width:991px){
  .mc-hosp{--mc-gap:24px;--mc-pad:20px}
  .mc-hosp__shell{padding:16px 12px}
  .mc-hosp-header{grid-template-columns:1fr;gap:0;border-radius:16px}
  .mc-hosp-header__text{padding:18px 20px 22px}
  .mc-hosp__columns{grid-template-columns:1fr;gap:0}
  .mc-hosp__side,.mc-hosp__main{grid-column:1;grid-row:auto}
  .mc-hosp__sticky{position:static}
  .mc-hosp-card{margin-bottom:var(--mc-gap)}
  .mc-hosp-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .mc-hosp-section__title{font-size:1.2rem}
  .mc-hosp-cards{grid-template-columns:1fr}
  .mc-hosp-cover{min-height:0}
  .mc-hosp-cover img{max-height:none}
  .mc-hosp-facts__row{grid-template-columns:minmax(96px,42%) 1fr}
  .mc-hosp-linked__item{grid-template-columns:1fr}
  .mc-hosp-gallery{gap:8px}
}

/* ===== 1.1.0: layout of the approved page template (/root/tmp/template.html): hero badges + key facts, in-page tabs, cards, side column ===== */
.mc-hosp{--t-surface:#fff;--t-surface2:#eef4f4;--t-ink:#17242b;--t-muted:#5b6b73;--t-faint:#84949c;--t-line:#dde6e7;--t-teal:#0b7a78;--t-teal-dark:#075e5d;--t-teal-soft:#e6f2f1;--t-radius:14px;color:var(--t-ink)}
.mc-hosp .mc-hosp-header{grid-template-columns:46% 54%;gap:0;align-items:stretch;border-radius:18px;border-color:var(--t-line);box-shadow:none;margin-bottom:26px}
.mc-hosp .mc-hosp-header--noimage{grid-template-columns:1fr}
.mc-hosp .mc-hosp-cover{position:relative;min-height:290px;background:var(--t-surface2)}
.mc-hosp .mc-hosp-cover img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover}
.mc-hosp .mc-hosp-header__text{padding:34px 38px 30px;display:flex;flex-direction:column;justify-content:center}
.mc-hosp .mc-hosp-header__title{font-size:31px;line-height:1.3;margin:0 0 8px;font-weight:800;color:var(--t-ink)}
.mc-hosp .mc-hosp-header__subtitle{font-size:16.5px;color:var(--t-muted);line-height:1.5;margin:0}
.mc-hosp .mc-hosp-header__aka{font-size:13.5px;color:var(--t-faint);margin:6px 0 0}
.mc-hosp-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.mc-hosp-badges span{font-size:13px;font-weight:600;background:var(--t-teal-soft);color:var(--t-teal-dark);border-radius:999px;padding:5px 13px}
.mc-hosp-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:24px;border-top:1px solid var(--t-line);padding-top:18px}
.mc-hosp-stats div{padding-right:10px;min-width:0}
.mc-hosp-stats b{display:block;font-size:19px;line-height:1.3;overflow-wrap:anywhere}
.mc-hosp-stats span{font-size:12.5px;color:var(--t-faint)}
.mc-hosp .mc-hosp-edit{margin-right:14px}
.mc-hosp .mc-hosp__columns{grid-template-columns:minmax(0,1fr) 336px;gap:26px;margin-bottom:56px}
.mc-hosp .mc-hosp__main{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:22px}
.mc-hosp .mc-hosp__side{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:18px}
.mc-hosp .mc-hosp__main section[id]{scroll-margin-top:84px}
/* tabs */
.mc-hosp-tabs{background:var(--t-surface);border:1px solid var(--t-line);border-radius:var(--t-radius);padding:6px;display:flex;flex-wrap:wrap;gap:4px;box-shadow:0 4px 18px rgba(23,36,43,.06)}
.mc-hosp-tabs a{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border-radius:9px;color:var(--t-muted);font-size:14.5px;font-weight:600;white-space:nowrap;line-height:1.3;text-decoration:none}
.mc-hosp-tabs a:hover{background:var(--t-teal-soft);color:var(--t-teal-dark);text-decoration:none}
.mc-hosp-tabs a.on{background:var(--t-teal);color:#fff;font-weight:700}
.mc-hosp-tabs a:focus-visible{outline:2px solid var(--t-teal);outline-offset:2px}
/* main cards: template card + title with the English subtitle on Chinese pages */
.mc-hosp .mc-hosp__main .mc-hosp-section{margin:0;padding:26px 28px;border-color:var(--t-line);border-radius:var(--t-radius)}
.mc-hosp .mc-hosp__main .mcdc{margin:0}
.mc-hosp .mc-hosp__main .mc-hosp-section__title{font-size:20px;margin:0 0 12px;font-weight:750;color:var(--t-ink);display:flex;align-items:baseline;flex-wrap:wrap;gap:10px}
.mc-hosp[lang="zh-CN"] .mc-hosp-section__title::after{font-size:12px;color:var(--t-faint);font-weight:500;letter-spacing:.06em;text-transform:uppercase}
.mc-hosp[lang="zh-CN"] #mc-hosp-overview .mc-hosp-section__title::after{content:"Overview"}
.mc-hosp[lang="zh-CN"] #mc-hosp-specialties .mc-hosp-section__title::after{content:"Key Specialties"}
.mc-hosp[lang="zh-CN"] #mc-hosp-rankings .mc-hosp-section__title::after{content:"Specialty Rankings"}
.mc-hosp[lang="zh-CN"] #mc-hosp-capabilities .mc-hosp-section__title::after{content:"Capabilities"}
.mc-hosp[lang="zh-CN"] #mc-hosp-international .mc-hosp-section__title::after{content:"International Patients"}
.mc-hosp[lang="zh-CN"] #mc-hosp-admission .mc-hosp-section__title::after{content:"Admission"}
.mc-hosp[lang="zh-CN"] #mc-hosp-gallery .mc-hosp-section__title::after{content:"Gallery"}
.mc-hosp[lang="zh-CN"] #mc-hosp-services .mc-hosp-section__title::after{content:"Services"}
.mc-hosp .mc-hosp-chips li{border:1.5px solid var(--t-teal);color:var(--t-teal-dark);font-weight:700;border-radius:10px;padding:8px 18px;background:var(--t-teal-soft)}
.mc-hosp .mc-hosp-rankings .mc-hosp-note,.mc-hosp .mc-hosp-disclaimer{font-size:13.5px;color:var(--t-muted);background:var(--t-surface2);border-radius:10px;padding:12px 15px}
/* side: MedCIC help card, location & contact */
.mc-hosp-cta{background:var(--t-teal-dark);color:#eaf6f5;border-radius:var(--t-radius);padding:22px}
.mc-hosp-cta h2{margin:0 0 8px;font-size:16.5px;color:#fff;font-weight:700}
.mc-hosp-cta p{margin:0 0 16px;font-size:13.5px;color:#cfe8e6;line-height:1.7}
.mc-hosp-cta__btn{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:9px;background:#fff;color:var(--t-teal-dark)!important;font-weight:700;text-decoration:none}
.mc-hosp-cta__tel{display:block;text-align:center;margin-top:12px;color:#fff!important;font-weight:700;font-size:15px;text-decoration:none}
.mc-hosp .mc-hosp-entry{margin:0}
.mc-hosp-side-card{background:var(--t-surface);border:1px solid var(--t-line);border-radius:var(--t-radius);padding:20px 22px}
.mc-hosp-side-card h2{font-size:16px;margin:0 0 14px;font-weight:750;padding-bottom:11px;border-bottom:2px solid var(--t-teal);display:inline-block;color:var(--t-ink)}
.mc-hosp-mapbox{border:1px solid var(--t-line);border-radius:10px;background:var(--t-surface2);padding:12px;text-align:center;margin-bottom:6px}
.mc-hosp-mapbox .mc-hosp-map{border-radius:8px;overflow:hidden;margin:0 0 4px}
.mc-hosp-mapbox p{margin:8px 0 12px;font-size:13.5px;color:var(--t-muted)}
.mc-hosp-maplinks{display:flex;gap:8px;justify-content:center}
.mc-hosp-maplinks a{flex:1;border:1px solid var(--t-teal);color:var(--t-teal)!important;border-radius:8px;padding:9px 4px;font-size:13.5px;font-weight:600;background:var(--t-surface);min-height:44px;display:flex;align-items:center;justify-content:center;text-decoration:none}
.mc-hosp-maplinks a.solid{background:var(--t-teal);color:#fff!important}
.mc-hosp-contact{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--t-line);font-size:14.5px;align-items:flex-start;text-align:start}
.mc-hosp-contact:last-child{border-bottom:0;padding-bottom:2px}
.mc-hosp-contact__ic{flex:none;width:34px;height:34px;border-radius:9px;background:var(--t-teal-soft);color:var(--t-teal-dark);display:flex;align-items:center;justify-content:center}
.mc-hosp-contact small{display:block;color:var(--t-faint);font-size:12.5px}
.mc-hosp-contact b,.mc-hosp-contact a{font-weight:650;word-break:break-all}
@media (max-width:960px){
  .mc-hosp .mc-hosp__columns{grid-template-columns:1fr}
  .mc-hosp .mc-hosp__main,.mc-hosp .mc-hosp__side{grid-column:1;grid-row:auto}
  .mc-hosp .mc-hosp__side{margin-top:22px}
}
@media (max-width:860px){
  .mc-hosp .mc-hosp-header{grid-template-columns:1fr}
  .mc-hosp .mc-hosp-cover{min-height:210px;height:210px}
  .mc-hosp .mc-hosp-header__text{padding:24px 22px}
  .mc-hosp .mc-hosp-header__title{font-size:25px}
  .mc-hosp-stats{grid-template-columns:repeat(2,1fr);gap:14px}
  .mc-hosp .mc-hosp__main section[id]{scroll-margin-top:72px}
  .mc-hosp-tabs a{flex:1 1 30%;font-size:13.5px;padding:8px 6px}
}
@media (max-width:600px){ .mc-hosp .mc-hosp__main .mc-hosp-section{padding:20px 18px} }
@media (max-width:420px){ .mc-hosp-tabs a{flex:1 1 28%;font-size:13px} }
/* site template heading / link colours must not override the template card colours */
.mc-hosp .mc-hosp-cta h2{color:#fff}
.mc-hosp .mc-hosp-tabs a{color:var(--t-muted)}
.mc-hosp .mc-hosp-tabs a:hover{color:var(--t-teal-dark)}
.mc-hosp .mc-hosp-tabs a.on,.mc-hosp .mc-hosp-tabs a.on:hover{color:#fff;background:var(--t-teal)}
#dj-classifieds.mc-hosp .mc-hosp-cta h2{color:#fff!important}
#dj-classifieds.mc-hosp .mc-hosp-tabs a{color:var(--t-muted)!important}
#dj-classifieds.mc-hosp .mc-hosp-tabs a:hover{color:var(--t-teal-dark)!important}
#dj-classifieds.mc-hosp .mc-hosp-tabs a.on,#dj-classifieds.mc-hosp .mc-hosp-tabs a.on:hover{color:#fff!important;background:var(--t-teal)}
/* 1.1.3: DJ-Classifieds native contact (ask button + askform layout) in the side card, template look */
#dj-classifieds.mc-hosp .mc-hosp-cta button.mc-hosp-cta__btn{width:100%;border:0;cursor:pointer;font-size:15px}
#dj-classifieds.mc-hosp .mc-hosp-cta button.mc-hosp-cta__btn:hover{background:#eaf6f5}
#dj-classifieds.mc-hosp .mc-hosp-cta button.mc-hosp-cta__btn[disabled]{opacity:.55;cursor:not-allowed}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form{background:#fff;color:var(--t-ink);border-radius:10px;padding:14px;margin-top:12px;text-align:start}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form label,#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form .label{color:var(--t-ink);font-size:13.5px;font-weight:600}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form a{color:var(--t-teal-dark)}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form .djform_row{margin:0 0 10px}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form .form-control{width:100%;max-width:100%;box-sizing:border-box;border:1px solid var(--t-line);border-radius:8px;padding:9px 10px;font-size:15px}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form #ask_submit_b{width:100%;min-height:44px;border:0;border-radius:9px;background:var(--t-teal);color:#fff;font-weight:700}
#dj-classifieds.mc-hosp .mc-hosp-cta .log_in_msg,#dj-classifieds.mc-hosp .mc-hosp-cta .no_contact_access{color:var(--t-ink);font-size:14px}
#dj-classifieds.mc-hosp .mc-hosp-map #djmap{min-height:240px}
#dj-classifieds.mc-hosp .mc-hosp-cta button#ask_form_button.mc-hosp-cta__btn{background:#fff!important;color:var(--t-teal-dark)!important;border:0!important;border-radius:9px;box-shadow:none}
#dj-classifieds.mc-hosp .mc-hosp-cta button#ask_form_button.mc-hosp-cta__btn:hover,#dj-classifieds.mc-hosp .mc-hosp-cta button#ask_form_button.mc-hosp-cta__btn:focus-visible{background:#eaf6f5!important}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form .djform_row{margin:0 0 10px!important;padding:0!important}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form .djform_row label{display:block;margin:0 0 4px;padding:0}
#dj-classifieds.mc-hosp .mc-hosp-cta #ask_form .ask_form_fields:empty{display:none}
