/* ==========================================================================
   하스피톡 디자인 레이어 (2026-11-24)
   - 가장 마지막에 불러와 style.css·improvements.css의 토큰과 컴포넌트를 덮어쓴다.
   - 되돌리기: header.php에서 이 파일 링크 한 줄을 빼면 이전 화면으로 돌아간다.
   - 원칙: 글자 대비 WCAG AA(4.5:1) 이상, 누를 수 있는 것만 움직임, 한국어 단어 단위 줄바꿈.
   ========================================================================== */

:root {
    /* 색: 남색 잉크 + 차분한 파랑(병원) + 청록(약국) */
    --ht-primary: #1F5ED6;
    --ht-primary-hover: #184CB1;
    --ht-primary-light: #EEF4FF;
    --ht-primary-50: rgba(31, 94, 214, .12);
    --ht-accent: #0B7F6C;
    --ht-accent-hover: #086657;
    --ht-accent-light: #E7F6F2;
    --ht-warm: #F5A524;
    --ht-warm-hover: #E0901A;
    --ht-warm-light: #FFF6E5;

    --ht-bg: #F4F6FA;
    --ht-surface: #FFFFFF;
    --ht-ink: #13233A;
    --ht-text: #13233A;
    --ht-text-secondary: #3D4E66;
    --ht-muted: #56677D;
    --ht-text-muted: #5E6E82;
    --ht-border: #DEE5EE;
    --ht-line: #DEE5EE;
    --ht-border-light: #EDF1F6;

    --ht-radius-sm: 8px;
    --ht-radius: 12px;
    --ht-radius-lg: 16px;
    --ht-radius-xl: 20px;

    --ht-shadow-card: 0 1px 2px rgba(16, 35, 58, .04), 0 2px 10px rgba(16, 35, 58, .04);
    --ht-shadow-hover: 0 10px 28px rgba(16, 35, 58, .10);
    --ht-navbar-h: 64px;

    --bs-body-color: #13233A;
    --bs-link-color-rgb: 31, 94, 214;
    --bs-border-color: #DEE5EE;
    --bs-secondary-color: #5E6E82;
}

/* ===== 기본 글꼴·줄바꿈 ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    background: var(--ht-bg);
    color: var(--ht-ink);
    font-size: 1rem;
    line-height: 1.68;
    letter-spacing: -0.006em;
    word-break: keep-all;           /* 한국어는 단어 중간에서 끊지 않는다 */
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4 { color: var(--ht-ink); letter-spacing: -0.028em; line-height: 1.35; }
h5, .h5, h6, .h6 { color: var(--ht-ink); letter-spacing: -0.018em; line-height: 1.45; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
strong, b { font-weight: 700; }
a { color: var(--ht-primary); text-underline-offset: 3px; }
a:hover { color: var(--ht-primary-hover); }
time, .tabular, .hours-table, .calendar-row, .visit-summary-grid strong, a[href^="tel:"] { font-variant-numeric: tabular-nums; }

/* 흐린 글자: 기존 #94A3B8(대비 2.6:1) → AA 통과 색 */
.text-muted { color: var(--ht-text-muted) !important; }
.text-secondary { color: var(--ht-text-secondary) !important; }
.small, small { line-height: 1.6; }

/* ===== 상단 메뉴 ===== */
.navbar {
    height: auto;
    min-height: var(--ht-navbar-h);
    background: rgba(255, 255, 255, .96) !important;
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--ht-border);
    box-shadow: none !important;
    padding-top: .5rem;
    padding-bottom: .5rem;
}
.navbar.shadow { box-shadow: 0 2px 12px rgba(16, 35, 58, .06) !important; }
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ht-ink) !important;
}
.navbar-brand > i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, #2C6BE0, #163F8C);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(31, 94, 214, .25);
}
.navbar-brand small { font-weight: 600; color: var(--ht-text-muted) !important; letter-spacing: -0.01em; }
.navbar .nav-link {
    color: var(--ht-text-secondary);
    font-weight: 600;
    font-size: .92rem;
    padding: .5rem .7rem;
    border-radius: 10px;
    white-space: nowrap;
}
.navbar .nav-link i { color: #7A8BA3; margin-right: 2px; }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible, .navbar .nav-link.show { color: var(--ht-primary); background: var(--ht-primary-light); }
.navbar .nav-link:hover i, .navbar .nav-link.show i { color: var(--ht-primary); }
.navbar .saved-nav { color: var(--ht-text-secondary); font-weight: 600; text-decoration: none; padding: .5rem .7rem; border-radius: 10px; }
.navbar .saved-nav:hover { background: var(--ht-primary-light); color: var(--ht-primary); }
.navbar .input-group { flex-wrap: nowrap; }
.navbar .input-group .form-control {
    background: var(--ht-bg);
    border-color: transparent;
    border-radius: 10px 0 0 10px;
    min-height: 40px;
}
.navbar .input-group .form-control:focus { background: #fff; border-color: var(--ht-primary); }
.navbar .input-group .btn { border-radius: 0 10px 10px 0; min-width: 44px; }
.navbar-toggler { border: 1px solid var(--ht-border); border-radius: 10px; padding: .4rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--ht-primary-50); }
.dropdown-menu {
    border: 1px solid var(--ht-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(16, 35, 58, .12);
    padding: .45rem;
    min-width: 13rem;
}
.dropdown-item { border-radius: 9px; padding: .5rem .8rem; color: var(--ht-text-secondary); font-weight: 500; }
.dropdown-item i { color: #7A8BA3; margin-right: 4px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--ht-primary-light); color: var(--ht-primary); }

/* 1200px 미만은 햄버거 메뉴(navbar-expand-xl): 펼친 메뉴가 본문 위에 투명하게 겹치지 않게 */
@media (max-width: 1199.98px) {
    .navbar .navbar-collapse { padding: .75rem 0 .5rem; max-height: calc(100vh - 72px); overflow-y: auto; }
    .navbar .navbar-nav .nav-link { padding: .7rem .8rem; }
    .navbar .dropdown-menu { box-shadow: none; border: 0; background: var(--ht-bg); margin: 0 0 .25rem; }
    .navbar form { max-width: none; margin-top: .5rem; }
    .navbar .saved-nav { display: inline-block; padding: .7rem .8rem; }
}
@media (min-width: 1200px) {
    .navbar form { max-width: 230px; }
    .navbar .navbar-nav { gap: 2px; }
}

/* ===== 홈 첫 화면 ===== */
.hero-section {
    background:
        radial-gradient(900px 360px at 88% -10%, rgba(56, 189, 248, .30), transparent 62%),
        radial-gradient(700px 300px at 0% 110%, rgba(99, 102, 241, .25), transparent 60%),
        linear-gradient(160deg, #0D2552 0%, #143C86 52%, #1F5ED6 100%);
    padding: 64px 0 56px;
}
.hero-section::before, .hero-section::after { display: none; }
.hero-section h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -0.045em; }
.hero-section .lead { color: rgba(255, 255, 255, .86); opacity: 1 !important; font-size: 1.06rem; }
.hero-search { max-width: 640px; }
.hero-search .input-group {
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(5, 18, 45, .35);
    background: #fff;
    padding: 6px;
    flex-wrap: nowrap;
}
.hero-search .form-control {
    height: 54px;
    border: 0;
    border-radius: 12px !important;
    background: transparent;
    font-size: 1.05rem;
    padding-left: 16px;
}
.hero-search .form-control:focus { box-shadow: none; }
.hero-search .input-group:focus-within { box-shadow: 0 18px 40px rgba(5, 18, 45, .35), 0 0 0 4px rgba(255, 255, 255, .35); }
.hero-search .btn {
    height: 54px;
    border-radius: 12px !important;
    padding: 0 24px;
    background: var(--ht-warm);
    border-color: var(--ht-warm);
    color: #1F1400;                 /* 주황 배경 위 흰 글자는 대비 부족 → 짙은 글자 */
    font-weight: 800;
}
.hero-search .btn:hover { background: var(--ht-warm-hover); border-color: var(--ht-warm-hover); color: #1F1400; }
.hero-section .mt-3 { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 1.25rem !important; }
.hero-section .mt-3 .badge {
    margin: 0 !important;
    font-size: .86rem;
    font-weight: 600;
    padding: .5em .9em;
    border-radius: 999px;
}
.hero-section .mt-3 .badge.bg-light { background: transparent !important; color: rgba(255, 255, 255, .8) !important; padding-left: 0; padding-right: 0; }
.hero-section .mt-3 a.badge {
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff !important;
}
.hero-section .mt-3 a.badge:hover { background: rgba(255, 255, 255, .24) !important; }

.home-editorial h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.home-region-form { background: #fff; border: 1px solid var(--ht-border); border-radius: 16px; padding: 14px 18px; box-shadow: var(--ht-shadow-card); }
.home-counts strong { color: var(--ht-ink); }

/* 섹션 제목 */
.section-heading h2, section > .container > h2, .py-5 h2 { font-weight: 800; letter-spacing: -0.035em; }
.section-heading { margin-bottom: 18px; }
.section-heading a { font-weight: 600; text-decoration: none; }
.section-heading a:hover { text-decoration: underline; }
.py-5.bg-light { background: #EEF2F8 !important; }

/* 홈·허브 카드 격자 */
.discovery-grid > a, .featured-service-card {
    border-color: var(--ht-border);
    border-radius: 18px;
    box-shadow: var(--ht-shadow-card);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.discovery-grid > a:hover, .featured-service-card:hover { border-color: #A9C2EC; background: #fff; box-shadow: var(--ht-shadow-hover); transform: translateY(-2px); }
.discovery-grid i, .featured-service-card > i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ht-primary-light);
    color: var(--ht-primary);
    font-size: 1.25rem;
}
.discovery-grid > a { grid-template-columns: 42px 1fr; }

/* ===== 카드 ===== */
.card {
    border-color: var(--ht-border);
    border-radius: 18px;
    box-shadow: var(--ht-shadow-card);
}
/* 정보만 담은 카드는 마우스를 올려도 움직이지 않는다 */
.card:hover { transform: none; box-shadow: var(--ht-shadow-card); }
.card-hospital, .card-pharmacy { border-left-width: 1px; position: relative; }
.card-hospital::before, .card-pharmacy::before {
    content: "";
    position: absolute;
    left: 0; top: 16px; bottom: 16px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ht-primary);
}
.card-pharmacy::before { background: var(--ht-accent); }
.card-hospital:hover, .card-pharmacy:hover, .result-card:hover, .region-card:hover {
    border-color: #B5CBEE;
    box-shadow: var(--ht-shadow-hover);
}
.card .card-body { padding: 1.15rem 1.25rem; }
.card .card-title { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.card-header {
    background: #fff !important;
    border-bottom: 1px solid var(--ht-border-light);
    padding: 1rem 1.25rem;
}
.card-header h2, .card-header h3 { display: flex; align-items: center; gap: .5rem; }
.card-header h2 > i, .card-header h3 > i { color: var(--ht-primary); }
.card-actions { border-top-color: var(--ht-border-light); }
.card-actions .btn { min-height: 38px; display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; border-radius: 10px; }
.card-actions .btn-detail { background: var(--ht-ink); }
.card-actions .btn-detail:hover { background: #0A1628; color: #fff; }
.card-pharmacy .card-actions .btn-call { background: var(--ht-accent-light); color: var(--ht-accent); }
.card-pharmacy .card-actions .btn-call:hover { background: var(--ht-accent); color: #fff; }

.result-card { border-color: var(--ht-border); border-radius: 18px; box-shadow: var(--ht-shadow-card); transition: border-color .15s ease, box-shadow .15s ease; }
.result-card h2 > a, .result-card h3 > a { font-weight: 700; }
.info-panel { border-color: var(--ht-border); border-radius: 18px; box-shadow: var(--ht-shadow-card); }

.stat-card { background: #fff; border: 1px solid var(--ht-border); box-shadow: var(--ht-shadow-card); }
.stat-card:hover { transform: none; }
.stat-card .stat-number { color: var(--ht-ink); font-variant-numeric: tabular-nums; }
.region-card { border-radius: 14px; font-weight: 600; box-shadow: var(--ht-shadow-card); }
.region-card:hover { background: var(--ht-primary); }
.quick-link { border-radius: 14px; box-shadow: var(--ht-shadow-card); }
.quick-link:hover { transform: none; }

/* ===== 배지·버튼 ===== */
.badge { font-weight: 600; letter-spacing: -0.01em; border-radius: 7px; }
.badge-type { font-size: .74rem; padding: .34em .62em; }
.badge-status { animation: none !important; }
.bg-primary { background-color: var(--ht-primary) !important; }
.bg-success { background-color: var(--ht-accent) !important; }
.badge.bg-secondary:not(.text-light):not(.text-white) { background-color: #E8EDF4 !important; color: #2F425B !important; }
a.badge.bg-secondary:not(.text-light):hover { background-color: #D9E2EE !important; }
.badge.bg-warning { background-color: #FFE7B0 !important; color: #4A3300 !important; }

.btn { border-radius: 10px; font-weight: 600; letter-spacing: -0.01em; }
.btn:active { transform: none; }
.btn-primary { --bs-btn-bg: var(--ht-primary); --bs-btn-border-color: var(--ht-primary); --bs-btn-hover-bg: var(--ht-primary-hover); --bs-btn-hover-border-color: var(--ht-primary-hover); --bs-btn-active-bg: #143F94; }
.btn-outline-primary { --bs-btn-color: var(--ht-primary); --bs-btn-border-color: #B5CBEE; --bs-btn-hover-bg: var(--ht-primary-light); --bs-btn-hover-color: var(--ht-primary-hover); --bs-btn-hover-border-color: var(--ht-primary); --bs-btn-active-bg: #DCE8FF; --bs-btn-active-color: var(--ht-primary-hover); }
.btn-outline-primary:hover { background: var(--ht-primary-light); color: var(--ht-primary-hover); border-color: var(--ht-primary); }
.btn-outline-secondary { --bs-btn-color: #33465F; --bs-btn-border-color: #CBD5E1; --bs-btn-hover-bg: #F1F5F9; --bs-btn-hover-color: #13233A; --bs-btn-hover-border-color: #94A3B8; --bs-btn-active-bg: #E2E8F0; --bs-btn-active-color: #13233A; }
.btn-light { background: #EEF2F8; border-color: #EEF2F8; color: #33465F; }
.btn-warning { color: #1F1400; }
.ripple-effect { display: none; }

/* ===== 빵부스러기·쪽번호 ===== */
.breadcrumb { font-size: .84rem; margin-bottom: 1.1rem; }
.breadcrumb-item a { color: var(--ht-text-muted); }
.breadcrumb-item a:hover { color: var(--ht-primary); text-decoration: underline; }
.breadcrumb-item.active { color: var(--ht-text-secondary); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: #A3B1C2; }
.pagination .page-link { border-radius: 10px; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ht-text-secondary); }
.pagination .page-item.active .page-link { background: var(--ht-ink); border-color: var(--ht-ink); color: #fff; }

/* ===== 상세 페이지 ===== */
.detail-header {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: var(--ht-shadow-card);
}
.detail-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ht-primary), #38BDF8);
}
.detail-header h1 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; letter-spacing: -0.04em; }
.detail-header .text-muted { color: var(--ht-text-secondary) !important; }
.detail-header p > .bi, .detail-header p > i { color: var(--ht-primary); margin-right: 2px; }
.detail-header a[href^="tel:"]:not(.btn) { font-weight: 700; font-size: 1.08rem; }
.detail-header-actions .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: .5rem 1.05rem; }
.detail-action-bar { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--ht-border); top: var(--ht-navbar-h); }

.visit-summary {
    background: linear-gradient(180deg, #F2F7FF 0%, #FFFFFF 85%);
    border: 1px solid #D3E0F4;
    border-radius: 20px;
    box-shadow: var(--ht-shadow-card);
}
.visit-summary h2 { font-weight: 800; }
.visit-summary-grid > div { background: #fff; border: 1px solid var(--ht-border-light); border-radius: 14px; padding: 14px 16px; }
.visit-summary-grid span { color: var(--ht-text-muted); font-weight: 600; }
.visit-summary-grid strong { font-size: 1.16rem; color: var(--ht-ink); letter-spacing: -0.02em; }

.detail-tabs { border-bottom: 1px solid var(--ht-border); }
.detail-tabs .nav-link { color: var(--ht-text-muted); font-weight: 600; }
.detail-tabs .nav-link:hover { color: var(--ht-primary); }
.detail-info-table th { background: #F7F9FC; color: var(--ht-text-secondary); font-weight: 600; }
.detail-info-table td, .detail-info-table th { padding: .75rem .9rem; border-color: var(--ht-border-light); }
.table { --bs-table-border-color: var(--ht-border-light); }
.hours-table thead th, .table thead th { background: #F7F9FC; color: var(--ht-text-secondary); }
.map-container { border-radius: 0; border: 0; }
.list-group-item { border-color: var(--ht-border-light); }
.list-group-item-action:hover:not(.active) { background: #F5F8FD; color: inherit; }
.list-group-item-action strong { color: var(--ht-ink); }
.correction-link a { color: var(--ht-text-muted); }

/* 접는 질문 */
.accordion-item { border: 1px solid var(--ht-border); border-radius: 12px !important; margin-bottom: 8px; }
.accordion-button { font-weight: 600; color: var(--ht-ink); padding: 1rem 1.15rem; }
.accordion-button:not(.collapsed) { background: #F2F7FF; color: var(--ht-primary-hover); }
.accordion-body { color: var(--ht-text-secondary); line-height: 1.75; }

/* 안내 상자 */
.visit-notice { border-left-color: #D99A1C; border-radius: 14px; }
.data-note { color: var(--ht-muted); }
.hospital-service-links, .service-region-picker { border-radius: 18px; }

/* "함께 찾기" 칩: 본문 폭(.container)과 맞춘다 */
.context-links {
    width: min(1216px, calc(100% - 24px));
    max-width: none;
    border-radius: 20px;
    box-shadow: var(--ht-shadow-card);
}
.context-links h2 { font-weight: 800; letter-spacing: -0.03em; margin-bottom: .9rem; }
.link-chips a { border-radius: 999px; padding: 8px 15px; min-height: 40px; font-weight: 600; color: #234B7D; border-color: #D3DFEE; background: #fff; }
.link-chips a:hover, .link-chips a[aria-current] { background: var(--ht-primary-light); border-color: #9DB9E8; color: var(--ht-primary-hover); }

/* ===== 바깥 연결(공식 출처·하스피톡 관련 서비스) ===== */
.ext-links { border: 1px solid var(--ht-border); background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--ht-shadow-card); }
.ext-links h2, .ext-links h3 { font-size: 1rem; font-weight: 800; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.ext-links h2 > i, .ext-links h3 > i { color: var(--ht-primary); }
.ext-links > p { font-size: .86rem; color: var(--ht-text-muted); margin: 0 0 10px; }
.ext-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.ext-links li a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    align-items: center;
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ht-ink);
}
.ext-links li a:hover { background: #F3F7FD; }
.ext-links li a strong { font-size: .95rem; font-weight: 700; }
.ext-links li a span { grid-column: 1; font-size: .82rem; color: var(--ht-text-muted); line-height: 1.5; }
.ext-links li a::after { content: "\2197"; grid-column: 2; grid-row: 1 / span 2; color: #8A9AB0; font-size: .9rem; }
.ext-links li a[data-family]::after { content: "\203A"; font-size: 1.3rem; }
.ext-links .ext-tag { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--ht-accent); background: var(--ht-accent-light); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.ext-links-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767.98px) { .ext-links-row { grid-template-columns: 1fr; } }

/* ===== 바닥글 ===== */
.site-footer {
    background: #0B1B33;
    color: #C3CEDD;
    margin-top: 56px;
    padding: 48px 0 28px;
    font-size: .9rem;
}
.site-footer a { color: #C3CEDD; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); gap: 40px; }
.site-footer .footer-brand-name { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 12px; }
.site-footer .footer-brand-name i { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #1F5ED6; color: #fff; font-size: .95rem; }
.site-footer .footer-brand p { color: #9FB0C6; line-height: 1.75; margin: 0 0 10px; }
.site-footer .footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-footer .footer-title { color: #fff; font-weight: 700; font-size: .92rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: #AEBDD0; }
.site-footer .footer-ext a::after { content: " \2197"; font-size: .8em; color: #7F93AE; }
.site-footer .footer-sub { color: #7F93AE; font-size: .78rem; font-weight: 700; margin: 14px 0 8px; letter-spacing: 0; }
.site-footer .footer-regions { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-footer .footer-regions .footer-title { margin: 0 8px 0 0; }
.site-footer .footer-regions a { border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 4px 12px; font-size: .84rem; color: #C3CEDD; }
.site-footer .footer-regions a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 22px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: #8C9DB4; font-size: .82rem; line-height: 1.7; }
.site-footer .footer-bottom p { margin: 0; }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer .footer-legal a { color: #C3CEDD; font-weight: 600; }
@media (max-width: 991.98px) {
    .site-footer { padding-bottom: calc(var(--ht-bottom-tab-h) + 28px); }
    .site-footer .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .site-footer .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}

/* ===== 모바일 하단 탭 ===== */
.mobile-bottom-tab { border-top-color: var(--ht-border); box-shadow: 0 -6px 20px rgba(16, 35, 58, .06); }
.bottom-tab-item { font-size: .72rem; color: #5E6E82; min-width: 56px; }
.detail-bottom-actions .bottom-tab-item { font-size: .74rem; font-weight: 600; }
.detail-bottom-actions .bottom-tab-item i { font-size: 1.25rem; }
.more-menu-item { border-radius: 14px; }

/* ===== 반응형 ===== */
@media (max-width: 600px) {
    body { font-size: .98rem; }
    .hero-section { padding: 40px 0 36px; }
    .hero-search .input-group { padding: 4px; border-radius: 14px; }
    .hero-search .form-control, .hero-search .btn { height: 48px; }
    .hero-search .btn { padding: 0 16px; }
    .detail-header { padding: 22px 18px 20px; border-radius: 18px; }
    .detail-header-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .detail-header-actions .btn { width: 100%; padding: .5rem .6rem; }
    .visit-summary { padding: 16px; border-radius: 18px; }
    .visit-summary-grid > div + div { border-top: 1px solid var(--ht-border-light); }
    .card { border-radius: 16px; }
    .context-links { width: calc(100% - 24px); padding: 18px 16px; }
    .site-footer .footer-cols { grid-template-columns: 1fr 1fr; }
    .breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-bottom: 2px; }
    .breadcrumb::-webkit-scrollbar { display: none; }
}

/* ===== 인쇄: 방문 전 정보만 깔끔하게 ===== */
@media print {
    .navbar, .mobile-bottom-tab, .site-footer, #backToTop, .detail-action-bar, .detail-tabs, .context-links, .ext-links, .adsbygoogle, ins { display: none !important; }
    body { background: #fff; padding: 0 !important; }
    .card, .detail-header, .visit-summary { box-shadow: none !important; break-inside: avoid; }
}

/* 본문 .container 안에 들어간 "함께 찾기"는 컨테이너 폭을 그대로 쓴다 */
.container .context-links { width: auto; }
