/* 옛 화면(병원찾기·개인정보처리방침·관리자)에 새 메뉴·푸터 입히기 — 2026-11-19. tm.css 에서 떼어 옴 */
:root{
  --tm-navy:#0d3f8f;
  --tm-navy-d:#0a2f6b;
  --tm-blue:#1f5cff;
  --tm-blue-l:#5b8def;
  --tm-q:#1d4fa3;
  --tm-ink:#111;
  --tm-gray:#6b7280;
  --tm-line:#e5e7eb;
  --tm-bg-sky:#eaf2ff;
  --tm-bg-gray:#f2f3f5;
  --tm-dark:#05081a;
  --tm-inner:1200px;
  --tm-header-h:84px;
}
.tm-header,.tm-header *,.tm-footer,.tm-footer *,.tm-adminbar,.tm-adminbar *{box-sizing:border-box}
.tm-header,.tm-footer,.tm-adminbar{font-family:Pretendard,"Pretendard Variable",-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;-webkit-font-smoothing:antialiased;word-break:keep-all}
.tm-header ul,.tm-header li,.tm-footer ul,.tm-footer li{list-style:none;margin:0}
.tm-header a,.tm-footer a{text-decoration:none}
.tm-header img,.tm-footer img{max-width:100%}
.tm-inner{width:min(var(--tm-inner),100% - 40px);margin:0 auto}
.tm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* ===== 상단 메뉴 ===== */
.tm-header{position:fixed;inset:0 0 auto 0;z-index:100;height:var(--tm-header-h);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4.5vw,80px);background:linear-gradient(#000c,#0000);transition:background .3s}
.tm-header.is-scrolled{background:rgba(5,8,26,.88);backdrop-filter:blur(10px)}
.tm-header__logo img{height:26px;width:auto}
.tm-header__nav{display:flex;gap:16px;align-items:center}
.tm-pill{display:flex;align-items:center;gap:4px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08)}
.tm-pill a{display:block;padding:8px 12px;color:#e5e7eb;font-size:15px;font-weight:500;border-radius:999px;transition:color .2s,background .2s}
.tm-pill a:hover,.tm-pill a.is-current{color:#fff;background:rgba(255,255,255,.1)}
.tm-sns{width:34px;height:34px;padding:0!important;display:grid!important;place-items:center}
.tm-sns::before{content:"";width:18px;height:18px;background:#e5e7eb;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.tm-sns--insta{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM17.5 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E")}
.tm-sns--yt{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.6 7.2a2.5 2.5 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4A2.5 2.5 0 0 0 2.4 7.2C2 8.8 2 12 2 12s0 3.2.4 4.8a2.5 2.5 0 0 0 1.8 1.8C5.8 19 12 19 12 19s6.2 0 7.8-.4a2.5 2.5 0 0 0 1.8-1.8c.4-1.6.4-4.8.4-4.8s0-3.2-.4-4.8zM10 15V9l5.2 3L10 15z'/%3E%3C/svg%3E")}
.tm-header__burger{display:none}
@media (max-width:1360px){
  .tm-pill a{padding:8px 9px;font-size:14px}
}
@media (max-width:1199px){
  :root{--tm-header-h:64px}
  .tm-header__logo img{height:20px}
  .tm-header__burger{display:grid;gap:5px;width:44px;height:44px;place-content:center;border:0;background:none;cursor:pointer}
  .tm-header__burger span{display:block;width:24px;height:2px;background:#fff;transition:transform .3s,opacity .3s}
  .tm-header__burger[aria-expanded=true] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .tm-header__burger[aria-expanded=true] span:nth-child(2){opacity:0}
  .tm-header__burger[aria-expanded=true] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .tm-header__nav{position:fixed;inset:var(--tm-header-h) 0 auto 0;flex-direction:column;align-items:stretch;gap:10px;padding:16px 20px 28px;background:rgba(5,8,26,.97);transform:translateY(-12px);opacity:0;visibility:hidden;transition:.3s}
  .tm-header__nav.is-open{transform:none;opacity:1;visibility:visible}
  .tm-pill{flex-direction:column;align-items:stretch;border-radius:16px;padding:8px}
  .tm-pill a{padding:13px 14px;font-size:16px}
  .tm-pill--sub{flex-direction:row;flex-wrap:wrap}
  .tm-pill--sub a{font-size:14px}
}

/* ===== 푸터 ===== */
.tm-footer{padding:44px 0 50px;background:#0b0d12;color:#9aa1ad;font-size:13px;line-height:1.7}
.tm-footer__notice{padding-bottom:22px;border-bottom:1px solid #222733}
.tm-footer__row{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-top:22px}
.tm-footer a{color:#e5e7eb;font-weight:700}
.tm-footer b{color:#d1d5db}

.tm-footer__admin{margin-left:10px;color:#9aa1ad!important;font-weight:400!important}
.tm-footer__admin img{display:inline-block;width:16px;height:16px;vertical-align:-3px;opacity:.6}
.tm-adminbar{position:fixed;left:50%;bottom:14px;z-index:300;transform:translateX(-50%);display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:center;max-width:calc(100% - 24px);padding:8px 12px;border-radius:12px;background:#111827ee;color:#fff;font-size:13px;box-shadow:0 10px 30px #0005}
.tm-adminbar b{margin-right:6px;color:#fbbf24}
.tm-adminbar a{padding:6px 10px;border-radius:8px;color:#e5e7eb}
.tm-adminbar a:hover{background:#ffffff1a;color:#fff}
/* 옛 style.css 의 header{흰 배경·높이 85px}, footer{검정·가운데} 규칙 덮어쓰기. 옛 화면 본문은 85px 아래에서 시작 */
body.tm-old{--tm-header-h:85px}
.tm-old header.tm-header{height:85px;background:rgba(5,8,26,.96);z-index:1000}
.tm-old footer.tm-footer{padding:44px 0 50px;background:#0b0d12;color:#9aa1ad;font-size:13px;line-height:1.7;text-align:left}
.tm-old footer.tm-footer p{margin:0}
.tm-old .tm-header__nav{top:85px}
@media (max-width:1199px){.tm-old .tm-header__nav{inset:85px 0 auto 0}}

/* 옛 style.css 의 .wrap{min-width:1340px} 때문에 1340px 보다 좁으면 가로로 밀림 → 풀기 (2026-11-19) */
.tm-old .wrap{min-width:0}

/* ===== 병원찾기 모바일 배치 (2026-11-19) — 옛 화면은 모바일용 배치가 없어 목록이 PC 폭(395px)으로 넘치고 지도가 안 보였음
   → 지도 위, 목록 아래로 쌓기 */
@media (max-width:767px){
  .tm-old .hospital_wrap{height:calc(100vh - 85px);height:calc(100svh - 85px);min-height:520px}
  .tm-old .hospital_area{top:0;flex-direction:column}
  .tm-old .hospital_area .hospital_map_area{order:-1;flex:0 0 38%;min-height:220px;height:auto}
  .tm-old .hospital_area .hospital_list_area{width:100%;top:0;flex:1 1 auto;height:auto;min-height:0;overflow-y:auto;box-shadow:0 -2px 10px rgba(0,0,0,.08)}
  .tm-old .hospital_list,.tm-old .hospital_list.search{height:auto;overflow:visible}
  .tm-old .hospital_search_box .hospital_search_select{padding:0 4px}
  .tm-old .hospital_search_box .hospital_search_select > span,
  .tm-old .hospital_search_box .hospital_search_select > select{min-width:0;margin:8px 4px}
  .tm-old .hospital_search_box .hospital_search_select select{width:100%}
  .tm-old .info_notice{margin:10px 12px}
}

/* 개인정보처리방침: 고객사 확인 필요 표시 (2026-11-19) */
.tm-confirm{background:#fff3b0;color:#7a4b00;padding:1px 4px;border-radius:3px;font-weight:600;font-style:normal}
.tm-confirm-box{max-width:1000px;margin:0 auto 30px;padding:16px 18px;border:1px solid #f0d27a;border-radius:10px;background:#fffbea;color:#5b4400;font-size:14px;line-height:1.7;text-align:left;word-break:keep-all}
.tm-confirm-box p{margin:8px 0 0}

/* 옛 style.css 의 고정 폭(1340px) 본문 칸: 751~1340px 화면에서 넘침 → 화면 폭에 맞춤 (2026-11-19) */
.tm-old .form_sectors{width:min(1340px,100% - 40px)}
.tm-old .sectors,.tm-old .sectors2{max-width:min(1920px,100%)}
