/* ==========================================================
   믿닥 MIDDOC — minimal, image-first design system
   ========================================================== */
:root {
  --blue: #1E5EFF; --blue-d: #1747C7; --blue-l: #EEF3FF; --navy: #0E1E3A;
  --g900: #191F28; --g800: #333D4B; --g700: #4E5968; --g600: #6B7684; --g500: #8B95A1; --g400: #B0B8C1; --g300: #D1D6DB; --g200: #E5E8EB; --g100: #F2F4F6; --g50: #F9FAFB;
  --green: #03B26C; --green-l: #E5F8EF; --orange: #F08C00; --orange-l: #FFF4E5; --red: #F04452; --red-l: #FFEEEE;
  --r-s: 8px; --r: 12px; --r-l: 14px; --r-xl: 20px;
  --sh: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --sh-l: 0 8px 32px rgba(0,0,0,.12);
  --hdr: 60px; --tab: 60px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #fff; color: var(--g900); font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', sans-serif; font-size: 15px; line-height: 1.5; letter-spacing: -0.015em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a, button, label { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
main:focus { outline: none; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sub { color: var(--g500); font-weight: 500; }
.star { color: var(--g900); font-weight: 700; }
.star::first-letter { color: #FFB800; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); padding-top: env(safe-area-inset-top); transition: box-shadow .2s; }
body.scrolled .hdr { box-shadow: 0 1px 0 var(--g100); }
.hdr-in { max-width: 1080px; margin: 0 auto; height: var(--hdr); padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.brand-mk { width: 28px; height: 28px; border-radius: 7px; background: var(--navy); display: grid; place-items: center; }
.brand-mk svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hdr-links { display: flex; gap: 4px; flex: 1; }
.hdr-links a { padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--g600); transition: background .15s, color .15s; }
.hdr-links a:hover { background: var(--g100); color: var(--g900); }
.hdr-links a.on { color: var(--g900); }
.hdr-cta { padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 700; background: var(--navy); color: #fff; }
.hdr-cta:hover { background: #1B2D50; }

/* ---------- tab bar (mobile) ---------- */
.tabs { display: none; }

/* ---------- footer ---------- */
.ftr { margin-top: 64px; padding: 28px 0 40px; background: var(--g50); color: var(--g500); font-size: 13px; }
.ftr p + p { margin-top: 4px; }
.ftr b { color: var(--g700); }
.ftr a { text-decoration: underline; text-underline-offset: 2px; }
body.r-search .ftr, body.r-join .ftr { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; transition: background .15s, transform .1s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-gray { background: var(--g100); color: var(--g800); }
.btn-gray:hover { background: var(--g200); }
.btn-s { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn-l { height: 56px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }
.grow { flex: 1; }
.icon-b { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--g800); }
.icon-b:hover { background: var(--g100); }
.link-b { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--g600); padding: 6px 8px; border-radius: 8px; }
.link-b:hover { background: var(--g100); }

/* ---------- typography ---------- */
.title-xl { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.25; font-weight: 800; letter-spacing: -0.04em; }
.title-l { font-size: clamp(24px, 3vw, 30px); line-height: 1.3; font-weight: 800; letter-spacing: -0.035em; }
.meta { font-size: 14px; color: var(--g600); margin-top: 2px; }

/* ---------- avatars & marks ---------- */
.av { flex-shrink: 0; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--g200); }
.av-init { background: var(--g100); color: var(--g600); box-shadow: inset 0 0 0 1px var(--g200); }
.av-xs { width: 22px; height: 22px; font-size: 10px; }
.av-s { width: 32px; height: 32px; font-size: 13px; }
.av-m { width: 44px; height: 44px; font-size: 17px; }
.av-l { width: 72px; height: 72px; font-size: 26px; }
.av-xl { width: 96px; height: 96px; font-size: 36px; }
.vmark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 8px; margin-left: 5px; vertical-align: 1px; flex-shrink: 0; }
.vbadge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--blue-l); color: var(--blue); font-size: 13px; font-weight: 700; }
.vbadge.wait { background: var(--orange-l); color: var(--orange); }
.vbadge.no { background: var(--red-l); color: var(--red); }
.st { font-weight: 700; font-size: 14px; }
.st.on { color: var(--green); } .st.lunch { color: var(--orange); } .st.off { color: var(--g500); }
.ph { display: grid; place-items: center; font-size: 30px; background: var(--g100); color: var(--g400); }

/* ==================== HOME ==================== */
.kicker { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--blue-l); color: var(--blue); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.kicker i { font-size: 12px; }
.hl { color: var(--blue); }
.lead { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--g700); max-width: 560px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.home-hero { padding-top: 40px; }
.hero-sub { margin-top: 6px; font-size: 14px; color: var(--g500); min-height: 21px; }
.search-pill { margin-top: 24px; display: flex; align-items: center; height: 56px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--g300); padding: 0 6px 0 18px; gap: 8px; max-width: 640px; transition: box-shadow .15s; }
.search-pill:hover { box-shadow: inset 0 0 0 1px var(--g500); }
.sp-main { flex: 1; display: flex; align-items: center; gap: 12px; height: 100%; color: var(--g500); font-size: 16px; }
.sp-main i { color: var(--g800); font-size: 16px; }
.sp-loc { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 8px; background: var(--g100); font-size: 14px; font-weight: 700; color: var(--g800); }
.sp-loc i { font-size: 13px; color: var(--blue); }
.sp-loc.loading i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.cat-list { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: 32px; border-top: 1px solid var(--g200); border-bottom: 1px solid var(--g200); }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 16px; font-size: 13px; font-weight: 600; color: var(--g700); transition: background .15s; }
.cat:hover { background: var(--g50); }
.cat-ic { width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; color: var(--g800); }

.banner { position: relative; display: block; margin-top: 28px; height: 220px; border-radius: var(--r-l); overflow: hidden; background: var(--navy); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,30,58,.92) 0%, rgba(14,30,58,.55) 60%, rgba(14,30,58,.2) 100%); }
.banner-tx { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 32px; color: #fff; }
.banner-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.banner-t { margin-top: 10px; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.03em; }
.banner-a { margin-top: 18px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; }

.sec { margin-top: 48px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.sec-h h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.more { font-size: 14px; font-weight: 500; color: var(--g500); }
.more:hover { color: var(--g800); }

/* horizontal carousel: aligned to page container, with side padding */
.hscroll { --gut: max(20px, calc((100vw - 1080px) / 2 + 20px)); display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gut) 4px; scroll-padding: 0 var(--gut); }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.pcard { display: block; min-width: 0; }
.pcard-img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--g100); }
.pcard-img img, .pcard-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.st-pill { position: absolute; left: 10px; top: 10px; height: 24px; padding: 0 8px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.st-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pill.on { color: var(--green); } .st-pill.lunch { color: var(--orange); } .st-pill.off { color: var(--g500); }
.pcard-name { margin-top: 12px; font-size: 16px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.row { display: flex; gap: 16px; padding: 16px 0; align-items: flex-start; border-bottom: 1px solid var(--g100); min-width: 0; }
.row-img { width: 96px; height: 72px; border-radius: var(--r-s); overflow: hidden; flex-shrink: 0; background: var(--g100); }
.row-img img, .row-img .ph { width: 100%; height: 100%; object-fit: cover; font-size: 22px; }
.row-tx { flex: 1; min-width: 0; }
.row-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta2 { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; }
.meta2 .st { font-size: 13px; }
.meta2 .star { margin-left: 4px; font-size: 13px; }
.dist { color: var(--blue); font-weight: 700; }
.row-doc { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--g600); min-width: 0; }
.row-doc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.sk { pointer-events: none; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--g200); border-radius: var(--r-l); }
.trust-i { padding: 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--g200); }
.trust-i:first-child { border-left: 0; }
.trust-i b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.trust-i span { font-size: 13px; color: var(--g500); }

.jb { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r-l); background: var(--g50); transition: background .15s; }
.jb:hover { background: var(--g100); }
.jb-tx { flex: 1; display: flex; flex-direction: column; }
.jb-tx b { font-size: 16px; }
.jb-tx span { font-size: 13px; color: var(--g500); margin-top: 3px; }
.jb-go { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.jb-go i { font-size: 11px; }

/* ==================== SEARCH ==================== */
.sp { --sheet-h: 46vh; display: grid; grid-template-columns: 420px 1fr; grid-template-rows: auto 1fr; height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr)); }
.sp-top { grid-column: 1; grid-row: 1; padding: 12px 20px 12px; background: #fff; border-right: 1px solid var(--g100); z-index: 3; }
.sp-panel { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--g100); }
.sp-map { grid-column: 2; grid-row: 1 / 3; position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #EEF1F4; }
.sbar { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px 0 16px; border-radius: 10px; background: var(--g100); transition: background .15s, box-shadow .15s; }
.sbar:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.sbar > i { color: var(--g500); }
.sbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; -webkit-appearance: none; appearance: none; }
.sbar input::placeholder { color: var(--g400); }
.sbar input::-webkit-search-cancel-button { display: none; }
.sbar-x { color: var(--g400); font-size: 17px; padding: 6px; }
.chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips-inline { display: contents; }
.chip { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--g200); font-size: 14px; font-weight: 600; color: var(--g700); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.chip.on { background: var(--g900); color: #fff; box-shadow: none; }
.chip-icon { padding: 0 12px; }
.chip-icon span:empty { display: none; }
.chip-icon span { min-width: 18px; height: 18px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.chip-icon.on span { background: #fff; color: var(--g900); }
.chip-sep { width: 1px; height: 18px; background: var(--g200); flex-shrink: 0; }
.wrapchips { flex-wrap: wrap; overflow: visible; }
.sp-grab { flex-shrink: 0; }
.grab { display: none; }
.sp-count { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 6px; font-size: 14px; color: var(--g600); }
.sp-count b { color: var(--g900); }
.sp-list { flex: 1; overflow-y: auto; padding: 0 12px 24px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sp-list .row { padding: 12px 8px; }
.sp-list .row:hover, .sp-list .row.active { background: var(--g50); }
.fab-loc { position: absolute; right: 16px; bottom: 24px; z-index: 500; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--sh-l); display: grid; place-items: center; font-size: 18px; color: var(--g700); transition: bottom .3s var(--ease), color .2s, transform .1s; }
.fab-loc:active { transform: scale(.92); }
.fab-loc.on { color: var(--blue); }
.fab-loc.loading i { animation: spin 1s linear infinite; }
.map-preview { position: absolute; left: 12px; right: 12px; z-index: 600; background: #fff; border-radius: var(--r-l); box-shadow: var(--sh-l); padding: 4px 12px; animation: up .25s var(--ease) both; }
@media (min-width: 901px) { .map-preview { display: none !important; } }

/* pins */
.pin-wrap { position: relative; width: 0; height: 0; }
.pin-icon .pin-wrap { position: absolute; left: 0; top: 0; }
.pin { position: absolute; left: 0; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; padding: 4px 10px 4px 4px; background: #fff; border-radius: 999px; box-shadow: 0 3px 12px rgba(0,0,0,.18); font-weight: 700; font-size: 12px; white-space: nowrap; color: var(--g900); cursor: pointer; transition: transform .15s var(--ease), background .15s, color .15s; font-family: inherit; }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.pin-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 10px; }
.pin.is-active { background: var(--g900); color: #fff; transform: translateX(-50%) scale(1.1); }
.pin.is-active::after { border-top-color: var(--g900); }
.leaflet-div-icon.pin-icon, .leaflet-div-icon.me-icon { background: none; border: 0; }
.me-dot { position: relative; width: 18px; height: 18px; transform: translate(-50%, -50%); }
.me-icon .me-dot { position: absolute; left: 0; top: 0; }
.me-dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.me-dot::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: rgba(49,130,246,.25); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 10px; }

/* filter sheet */
.fl { display: grid; }
.sw-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.sw-row.plain { padding: 4px 0; }
.sw-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--g100); display: grid; place-items: center; color: var(--g700); }
.sw-l { flex: 1; font-size: 16px; font-weight: 600; }
.sw { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--g300); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; margin: 0; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.sw:checked { background: var(--blue); }
.sw:checked::after { transform: translateX(20px); }
.fl-h { font-size: 15px; font-weight: 700; margin: 20px 0 4px; }

/* ==================== SHEET ==================== */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; opacity: 0; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: fixed; z-index: 91; left: 50%; top: 50%; width: min(460px, calc(100% - 32px)); max-height: 86vh; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-l); transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .28s var(--ease), opacity .2s; }
.sheet.open { transform: translate(-50%, -50%); opacity: 1; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 6px 24px; }
.sheet-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.sheet-body { overflow-y: auto; padding: 4px 24px 24px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--g600); font-size: 18px; }
.icon-btn:hover { background: var(--g100); }
.sheet-cta { display: flex; gap: 8px; margin-top: 24px; }
.sheet-cta .btn { flex: 1; height: 54px; }
.sheet-cta .btn-gray { flex: 0 0 34%; }
.app-links { display: grid; gap: 4px; margin-top: 12px; }
.app-link { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: 14px; width: 100%; text-align: left; transition: background .15s; }
.app-link:hover, .app-link:active { background: var(--g50); }
.app-link b { flex: 1; font-size: 16px; }
.app-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 18px; flex-shrink: 0; }

/* ==================== HOSPITAL DETAIL ==================== */
.hd-hero { position: relative; height: 380px; overflow: hidden; background: var(--g100); max-width: 1080px; margin: 0 auto; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.hd-hero img, .hd-hero .ph { width: 100%; height: 100%; object-fit: cover; font-size: 80px; }
.hd-back, .hd-share { position: absolute; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: 16px; color: var(--g900); box-shadow: 0 2px 8px rgba(0,0,0,.12); backdrop-filter: blur(6px); }
.hd-back { left: 14px; } .hd-share { right: 14px; }
.hd-body { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.hd-head { padding-top: 24px; }
.hd-name { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.04em; margin-top: 12px; line-height: 1.3; }
.hd-status { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.qa { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 20px; border: 1px solid var(--g200); border-radius: var(--r); }
.qa-b { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; border-left: 1px solid var(--g200); font-size: 13px; font-weight: 600; color: var(--g700); transition: background .15s; }
.qa-b i { font-size: 18px; color: var(--g800); }
.qa-b:first-child { border-left: 0; }
.qa-b:hover { background: var(--g50); }
.hsec { margin-top: 36px; }
.hsec-t { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.hsec-t .sub { font-weight: 600; margin-left: 2px; }
.hsec-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hsec-row .hsec-t { margin: 0; }
.docs-h { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.docs-h::-webkit-scrollbar { display: none; }
.doc { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px 10px 16px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--g200); text-align: center; transition: background .15s, transform .1s; }
.doc:hover { background: var(--g50); }
.doc:active { transform: scale(.97); }
.doc .av { margin-bottom: 10px; }
.doc b { font-size: 16px; }
.doc > span { font-size: 13px; color: var(--g500); }
.doc .doc-school { color: var(--g700); font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.doc-v { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 3px 8px; border-radius: 5px; background: var(--blue-l); color: var(--blue) !important; font-size: 11px !important; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-v i { font-size: 9px; }
.feats { display: flex; flex-wrap: wrap; gap: 8px; }
.feat { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--g100); font-size: 14px; font-weight: 600; color: var(--g700); }
.feat i { color: var(--g500); font-size: 13px; }
.intro { margin-top: 14px; color: var(--g700); line-height: 1.7; }
.hours { border-radius: var(--r); background: var(--g50); }
.hours summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px; cursor: pointer; font-size: 15px; font-weight: 600; }
.hours summary::-webkit-details-marker { display: none; }
.hours summary i { margin-left: auto; font-size: 12px; color: var(--g400); transition: transform .2s; }
.hours[open] summary i { transform: rotate(180deg); }
.hours ul { padding: 0 18px 14px; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; color: var(--g600); font-variant-numeric: tabular-nums; }
.hours li.today { color: var(--g900); font-weight: 700; }
.hours li.lunch { color: var(--g500); border-top: 1px solid var(--g200); margin-top: 6px; padding-top: 12px; }
.mini-map { height: 200px; border-radius: var(--r); overflow: hidden; background: var(--g100); }
.addr { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 10px; padding: 14px 4px; font-size: 15px; color: var(--g700); text-align: left; }
.addr i { color: var(--g400); font-size: 12px; }
.rv-sum { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rv-big { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.rv-stars { color: #FFB800; font-size: 18px; letter-spacing: 1px; }
.rv-stars i { color: var(--g200); font-style: normal; }
.rv { padding: 16px 0; border-top: 1px solid var(--g100); }
.rv:first-child { border-top: 0; }
.rv-h { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.rv-s { color: #FFB800; letter-spacing: 1px; font-size: 12px; }
.rv p:last-child { color: var(--g800); line-height: 1.6; }
.hd-aside { position: sticky; top: calc(var(--hdr) + 24px); padding-top: 24px; }
.side-card { padding: 24px; border-radius: var(--r-xl); box-shadow: var(--sh); display: grid; gap: 10px; }
.side-t { font-size: 18px; font-weight: 800; }
.side-card .hd-status { margin: 0 0 8px; }
.cta-bar { display: none; }

/* doctor profile (sheet & verify) */
.dp { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.dp .av { margin-bottom: 14px; }
.dp-name { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.dp-name span { font-size: 16px; font-weight: 600; color: var(--g500); }
.dp-sub { font-size: 14px; color: var(--g600); margin: 4px 0 14px; }
.dp-bio { margin-top: 20px; padding: 16px; border-radius: var(--r); background: var(--g50); color: var(--g700); line-height: 1.65; font-size: 15px; text-align: center; }
.creds { margin-top: 20px; display: grid; }
.cred { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-top: 1px solid var(--g100); font-size: 15px; }
.cred:first-child { border-top: 0; }
.cred i { color: var(--g300); font-size: 18px; }
.cred.ok i { color: var(--blue); }
.cred-l { color: var(--g600); flex-shrink: 0; width: 76px; }
.cred-v { flex: 1; text-align: right; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-res { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--g600); }
.dp-res i { color: var(--g400); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-size: 13px; color: var(--g600); background: var(--g100); padding: 4px 10px; border-radius: 8px; }
.rate { display: flex; justify-content: center; gap: 6px; margin: 4px 0 18px; }
.rate button { font-size: 34px; color: var(--g200); transition: color .1s, transform .1s; }
.rate button.on { color: #FFB800; }
.rate button:active { transform: scale(.88); }
.field { width: 100%; height: 54px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--g100); font-size: 16px; outline: none; transition: background .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
textarea.field { height: auto; padding: 14px 16px; resize: none; line-height: 1.6; }
select.field { background: var(--g100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B95A1' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.field:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.field::placeholder { color: var(--g400); }

/* ==================== JOIN ==================== */
.join { max-width: 560px; margin: 0 auto; padding: 0 20px 120px; }
.join-top { display: flex; align-items: center; gap: 12px; height: 56px; margin: 0 -8px; }
.prog { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.prog span { height: 4px; border-radius: 2px; background: var(--g200); transition: background .3s; }
.prog span.on { background: var(--blue); }
.prog-n { font-size: 13px; font-weight: 600; color: var(--g500); width: 32px; text-align: right; }
.join-body { padding-top: 20px; }
.jt { font-size: 26px; line-height: 1.35; font-weight: 800; letter-spacing: -0.04em; }
.js { font-size: 15px; color: var(--g500); margin-top: 8px; }
.jb-body { display: grid; gap: 16px; margin-top: 28px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--g100); }
.seg button { height: 44px; border-radius: 11px; font-size: 15px; font-weight: 700; color: var(--g500); transition: background .15s, color .15s; }
.seg button.on { background: #fff; color: var(--g900); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { min-height: 54px; padding: 10px 14px; border-radius: 10px; background: var(--g50); box-shadow: inset 0 0 0 1px var(--g200); font-size: 15px; font-weight: 600; color: var(--g700); text-align: left; transition: background .15s, box-shadow .15s, color .15s; }
.opt.on { background: var(--blue-l); box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.more-opts summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--g500); padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.more-opts summary::-webkit-details-marker { display: none; }
.more-opts summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; transition: transform .2s; }
.more-opts[open] summary::after { transform: rotate(180deg); }
.more-opts[open] > *:not(summary) { margin-top: 12px; }
.more-opts .fld + .fld { margin-top: 16px; }
.note { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px; font-size: 15px; font-weight: 600; animation: up .25s var(--ease) both; }
.note.ok { background: var(--green-l); color: var(--green); }
.note.no { background: var(--red-l); color: var(--red); }
.fld { display: grid; gap: 8px; }
.fld-l { font-size: 14px; font-weight: 600; color: var(--g600); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac { position: relative; }
.ac-list { margin-top: 8px; display: grid; }
.ac-list:empty { display: none; }
.ac-list button { display: flex; flex-direction: column; text-align: left; padding: 12px 8px; border-radius: 12px; }
.ac-list button:hover { background: var(--g50); }
.ac-list b { font-size: 15px; }
.ac-list span { font-size: 13px; color: var(--g500); }
.picked { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; background: var(--blue-l); color: var(--blue); }
.picked b { flex: 1; color: var(--g900); }
.picked button { color: var(--g500); padding: 4px; }
.docs { display: grid; gap: 8px; }
.docf { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--g50); cursor: pointer; transition: background .15s; }
.docf:hover { background: var(--g100); }
.docf-ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--g600); flex-shrink: 0; }
.docf-t { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; display: flex; flex-direction: column; }
.docf-t small { font-size: 12px; color: var(--g500); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docf-a { font-size: 14px; font-weight: 700; color: var(--blue); }
.docf.on { background: var(--green-l); }
.docf.on .docf-ic { color: var(--green); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--g700); cursor: pointer; }
.agree input { width: 22px; height: 22px; accent-color: var(--blue); margin: 0; flex-shrink: 0; }
.agree b { color: var(--blue); font-weight: 700; }
.join-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }
.join-cta .btn { max-width: 520px; margin: 0 auto; display: flex; }
.done { max-width: 420px; margin: 0 auto; padding: 80px 20px; }
.done-ic { width: 80px; height: 80px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 38px; margin: 0 auto 28px; animation: pop .5s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.done-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 40px; }
.done-cta.one { grid-template-columns: 1fr; }

/* ==================== VERIFY / STANDARD / ADMIN ==================== */
.vf { max-width: 520px; padding-top: 40px; text-align: center; }
.vf-art { position: relative; width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 30px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; font-size: 40px; }
.vf-check { position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 15px; border: 4px solid #fff; }
.vf .js { margin-bottom: 28px; }
.sbar-l { height: 60px; padding: 0 6px 0 20px; border-radius: 18px; }
.sbar-l input { font-size: 18px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.sbar-l .btn { height: 48px; border-radius: 14px; }
.hint { font-size: 13px; color: var(--g400); margin-top: 10px; }
.vr { margin-top: 32px; padding: 28px 24px 24px; border-radius: var(--r-xl); box-shadow: var(--sh); text-align: left; }
.vr .dp { text-align: center; }
.vr .btn { margin-top: 20px; }
.std { max-width: 640px; padding-top: 40px; }
.std .lead { margin: 12px 0 28px; }
.std-c.key { border-color: var(--blue); background: var(--blue-l); }
.std-c.key i { color: var(--blue); }
.std-key { position: absolute; left: 10px; top: 10px; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.why { margin-top: 24px; padding: 20px 22px; border-radius: var(--r); background: var(--g50); font-size: 15px; line-height: 1.7; color: var(--g700); }
.why-t { font-size: 16px; font-weight: 800; color: var(--g900); margin-bottom: 6px; }
.why b { color: var(--g900); }
.std-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.std-c { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px 8px 20px; border-radius: var(--r); border: 1px solid var(--g200); text-align: center; }
.std-c i { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.std-c b { font-size: 15px; }
.std-c span:last-child { font-size: 12px; color: var(--g500); }
.std-n { position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--g100); font-size: 11px; font-weight: 800; color: var(--g500); display: grid; place-items: center; }
.std-h { font-size: 17px; font-weight: 800; margin: 36px 0 12px; }
.tlist { display: flex; flex-wrap: wrap; gap: 8px; }
.tlist span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 6px; background: var(--g100); font-size: 14px; font-weight: 600; color: var(--g500); }
.tlist.ok span { background: var(--blue-l); color: var(--blue); }
.tlist.ok i { font-size: 11px; }
.std-lock { display: flex; align-items: center; gap: 10px; margin-top: 32px; padding: 16px 18px; border-radius: var(--r); background: var(--g50); font-size: 14px; color: var(--g600); }
.std-lock i { color: var(--g400); }
.adm { max-width: 760px; padding-top: 32px; }
.adm-c { padding: 20px; border-radius: var(--r-l); box-shadow: var(--sh); margin-bottom: 12px; }
.adm-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.adm-h p { font-size: 13px; margin-top: 4px; }
.tagx { font-size: 11px; font-weight: 700; color: var(--orange); background: var(--orange-l); padding: 2px 7px; border-radius: 6px; }
.chk { display: inline-flex; align-items: center; cursor: pointer; }
.chk input { display: none; }
.chk span { height: 36px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--g200); font-size: 14px; font-weight: 600; color: var(--g600); display: inline-flex; align-items: center; }
.chk input:checked + span { background: var(--green-l); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.adm-a { display: flex; gap: 8px; margin-top: 14px; }
.adm-a .field { height: 40px; font-size: 14px; border-radius: 12px; }

/* ==================== feedback ==================== */
.empty { text-align: center; padding: 56px 20px; }
.empty-ic { width: 64px; height: 64px; border-radius: 22px; background: var(--g100); color: var(--g400); display: grid; place-items: center; font-size: 26px; margin: 0 auto 16px; }
.empty-t { font-size: 17px; font-weight: 700; }
.empty-s { font-size: 14px; color: var(--g500); margin-top: 4px; }
.empty .btn { margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); z-index: 120; max-width: calc(100% - 40px); padding: 14px 20px; border-radius: 16px; background: rgba(25,31,40,.94); color: #fff; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, var(--g100) 25%, var(--g50) 50%, var(--g100) 75%); background-size: 300% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.fade-up { animation: up .35s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ==========================================================
   MOBILE
   ========================================================== */
@media (hover: none) {
  .pcard:hover .pcard-img img { transform: none; }
  .row:active, .doc:active, .jb:active, .app-link:active { background: var(--g100); }
}
@media (max-width: 900px) {
  :root { --hdr: 54px; }
  .hdr-links, .hdr-cta { display: none; }
  .hdr-in { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -1px 0 var(--g100); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: var(--tab); font-size: 11px; font-weight: 600; color: var(--g400); transition: color .15s; }
  .tabs a i { font-size: 20px; }
  .tabs a.on { color: var(--navy); }
  body { padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(var(--tab) + 16px + env(safe-area-inset-bottom)); }
  .ftr { margin-top: 48px; }

  /* home */
  .home-hero { padding-top: 24px; }
  .title-xl { font-size: 30px; }
  .lead { font-size: 15px; }
  .search-pill { height: 52px; margin-top: 20px; }
  .sp-loc span { display: none; }
  .sp-loc { width: 44px; justify-content: center; padding: 0; }
  .cat-list { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
  .cat:nth-child(n+5) { border-top: 1px solid var(--g100); }
  .cat { padding: 16px 0 14px; }
  .banner { height: 180px; margin-top: 24px; }
  .banner-tx { padding: 0 22px; }
  .banner-t { font-size: 18px; }
  .sec { margin-top: 40px; }
  .sec-h h2 { font-size: 19px; }
  .hscroll { --gut: 16px; grid-auto-columns: 72%; gap: 12px; }
  .rows { grid-template-columns: 1fr; }
  .row-img { width: 88px; height: 66px; }
  .trust-i { padding: 18px 14px; }
  .trust-i b { font-size: 22px; }
  .jb { padding: 18px; }
  .jb-tx span { display: none; }

  /* search: fullscreen map + bottom sheet */
  body.r-search { overflow: hidden; }
  .sp { display: block; position: fixed; left: 0; right: 0; top: calc(var(--hdr) + env(safe-area-inset-top)); bottom: calc(var(--tab) + env(safe-area-inset-bottom)); height: auto; overflow: hidden; }
  .sp-map { position: absolute; inset: 0; }
  .sp-top { position: absolute; left: 0; right: 0; top: 0; z-index: 40; padding: 8px 12px 6px; border: 0; background: linear-gradient(180deg, #fff 60%, rgba(255,255,255,0)); }
  .sp-top .sbar { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1); height: 48px; }
  .sp-top .chips { padding: 8px 12px 4px; margin: 0 -12px; }
  .sp-top .chip { box-shadow: 0 1px 6px rgba(0,0,0,.1); }
  .sp-top .chip.on { box-shadow: none; }
  .sp-top .chip-sep { display: none; }
  .sp-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--sheet-h); border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.12); transition: height .32s var(--ease); will-change: height; }
  .sp-panel.dragging { transition: none; }
  .sp-grab { touch-action: none; cursor: grab; padding-top: 10px; user-select: none; -webkit-user-select: none; }
  .grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--g300); margin: 0 auto; }
  .sp-count { padding: 10px 20px 4px; }
  .sp-list { padding: 0 8px calc(20px + env(safe-area-inset-bottom)); }
  .sp-panel[data-state="peek"] .sp-list { overflow: hidden; }
  .fab-loc { bottom: calc(var(--sheet-h) + 14px); right: 14px; }
  .map-preview { bottom: calc(var(--sheet-h) + 14px); }
  body.r-search .toast { bottom: calc(50vh + 40px); }

  /* sheets → bottom sheets */
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 90dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); opacity: 1; padding-bottom: env(safe-area-inset-bottom); transition: transform .3s var(--ease); }
  .sheet.open { transform: none; }
  .sheet::before { content: ''; width: 36px; height: 5px; border-radius: 3px; background: var(--g300); margin: 10px auto 0; flex-shrink: 0; }
  .sheet-head { padding: 8px 12px 4px 20px; }
  .sheet-body { padding: 4px 20px 20px; }

  /* hospital detail */
  body.r-hospital .hdr { display: none; }
  body.r-hospital { padding-bottom: calc(var(--tab) + 76px + env(safe-area-inset-bottom)); }
  .hd-hero { height: 56vw; max-height: 360px; min-height: 220px; border-radius: 0; }
  .hd-back, .hd-share { top: calc(12px + env(safe-area-inset-top)); }
  .hd-body { grid-template-columns: 1fr; gap: 0; }
  .hd-aside { display: none; }
  .hd-head { padding-top: 20px; }
  .qa { margin-top: 18px; }
  .hsec { margin-top: 32px; }
  .docs-h { grid-auto-columns: 136px; margin: 0 -16px; padding: 0 16px 4px; }
  .mini-map { height: 170px; }
  .cta-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); z-index: 55; padding: 10px 16px; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--g100); }
  .cta-bar .btn { height: 52px; }
  .cta-bar .btn-gray { flex: 0 0 34%; }
  body.r-hospital .toast { bottom: calc(var(--tab) + 92px + env(safe-area-inset-bottom)); }

  /* join: fullscreen flow */
  body.r-join .hdr, body.r-join .tabs { display: none; }
  body.r-join { padding-bottom: 0; }
  .join { padding-top: env(safe-area-inset-top); }
  .jt { font-size: 24px; }
  .opts { grid-template-columns: 1fr 1fr; }

  .vf, .std { padding-top: 24px; }
  .std-grid { grid-template-columns: 1fr 1fr; }
  .adm-a { flex-wrap: wrap; }
  .adm-a .field { flex-basis: 100%; }
}
@media (max-width: 360px) { .opts { grid-template-columns: 1fr; } }

/* ==================== DEMO markers ==================== */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: calc(6px + env(safe-area-inset-top)) 16px 6px; background: var(--navy); color: rgba(255,255,255,.88); font-size: 12.5px; font-weight: 500; text-align: center; line-height: 1.4; }
.demo-bar b { flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.16); color: #fff; }
.demo-s { display: none; }
.ga { flex-shrink: 0; display: inline-flex; align-items: center; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 4px; background: var(--g100); color: var(--g500); font-size: 10.5px; font-weight: 700; letter-spacing: 0; vertical-align: 3px; }
.hd-name .ga { height: 22px; font-size: 12px; padding: 0 7px; vertical-align: 6px; }
.demo-img { position: absolute; right: 8px; bottom: 8px; height: 20px; padding: 0 7px; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; pointer-events: none; }
.demo-img.sm { right: 4px; bottom: 4px; height: 16px; padding: 0 4px; font-size: 9.5px; }
.demo-img.lg { right: auto; left: 14px; bottom: 14px; height: 26px; padding: 0 10px; font-size: 12px; }
.row-img { position: relative; }
.addr span i { color: var(--g400); margin-right: 8px; }

/* ==================== Search without map (list mode) ==================== */
.sp.nomap { display: block; position: static; height: auto; max-width: 880px; margin: 0 auto; overflow: visible; }
.sp.nomap .sp-top { position: sticky; top: var(--hdr); z-index: 20; padding: 16px 20px 10px; border: 0; background: #fff; }
.sp.nomap .sp-top .sbar { box-shadow: none; background: var(--g100); }
.sp.nomap .sp-top .chip { box-shadow: inset 0 0 0 1px var(--g200); }
.sp.nomap .sp-top .chip.on { box-shadow: none; }
.sp.nomap .sp-panel { position: static; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.sp.nomap .sp-grab { padding-top: 0; cursor: default; touch-action: auto; }
.sp.nomap .grab { display: none; }
.sp.nomap .sp-list { overflow: visible; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 0 20px 48px; }
.sp.nomap .sp-list .row { padding: 16px 0; }
.sp.nomap .sp-list .row:hover { background: none; }
.sp.nomap .sp-list .empty { grid-column: 1 / -1; }
body.r-search.nomap { overflow: auto; }
body.r-search.nomap .ftr { display: block; }
@media (max-width: 900px) {
  .demo-l { display: none; } .demo-s { display: inline; }
  .demo-bar { font-size: 12px; min-height: 30px; }
  .sp.nomap { position: static; }
  .sp.nomap .sp-top { padding: 10px 16px 8px; background: #fff; }
  .sp.nomap .sp-top .chips { margin: 0 -16px; padding: 8px 16px 2px; }
  .sp.nomap .sp-count { padding: 6px 16px 2px; }
  .sp.nomap .sp-list { grid-template-columns: 1fr; padding: 0 16px 32px; }
  body.r-search.nomap .toast { bottom: calc(var(--tab) + 16px + env(safe-area-inset-bottom)); }
}
