/* Hospital and abroad-treatment directories */
.az-dir .page-head { padding-bottom: 34px; }
.az-dir .page-head .hs-tags { margin-top: 12px; }
.az-dir .page-head .hs-tag { background: rgba(255,255,255,.12); color: #E6F1F4; border: 1px solid rgba(255,255,255,.25); }
.az-dir .page-head .hs-tag.er { background: #F43F5E; border-color: #F43F5E; color: #fff; }
.az-dir .page-head .hs-tag.ok { background: rgba(94,234,212,.2); border-color: rgba(94,234,212,.5); color: #CCFBF1; }
.az-dir .page-head .ab-flag-lg { font-size: 2.2rem; display: block; margin-bottom: 4px; }

/* tools card that overlaps the header */
.hs-top { margin-top: -18px; position: relative; z-index: 2; padding-bottom: 6px; }
.hs-top .container { display: grid; gap: 12px; }
.hs-emerg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border-radius: 20px; background: #FFF1F2; border: 1px solid #FECDD3; }
.hs-emerg b { grid-column: 1 / -1; color: #9F1239; font-size: .9rem; }
.hs-emerg a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 6px 10px; border-radius: 14px; background: #E11D48; color: #fff; font-weight: 800; font-size: .88rem; line-height: 1.25; text-decoration: none; }
.hs-emerg a:last-child { background: #fff; color: #BE123C; border: 1.5px solid #E11D48; }
:root[data-theme="dark"] .hs-emerg { background: #3B1020; border-color: #7F1D3A; } :root[data-theme="dark"] .hs-emerg b { color: #FDA4AF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-emerg { background: #3B1020; border-color: #7F1D3A; } :root:not([data-theme="light"]) .hs-emerg b { color: #FDA4AF; } }
.hs-filter { display: grid; gap: 10px; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 28px -18px rgba(6,32,42,.45); }
@media (min-width: 760px) { .hs-filter { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: center; } .hs-filter .hs-chk { white-space: nowrap; } }
.hs-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hs-chips::-webkit-scrollbar { display: none; }
.hs-chips .fx-chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 5px; }
@media (min-width: 900px) { .hs-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

/* cards */
.hs-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .hs-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1100px) { .hs-grid { grid-template-columns: repeat(3, 1fr); } }
.hs-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.hs-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(6,32,42,.5); }
.hs-main { display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; text-decoration: none; color: inherit; }
.hs-ic { grid-row: 1 / span 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: #0C2E25; font-style: normal; font-size: 1.4rem; }
.hs-main strong { font-size: 1.02rem; line-height: 1.35; } .hs-main small { color: var(--muted); font-size: .82rem; line-height: 1.35; } .hs-meta { font-size: .82rem; color: var(--text-2); margin-top: 3px; }
.hs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); font-size: .76rem; font-weight: 700; color: var(--text-2); text-decoration: none; }
.hs-tag.er { background: #FFE4E6; color: #9F1239; } .hs-tag.ok { background: #DCFCE7; color: #166534; } .hs-tag.un { background: #FEF3C7; color: #92400E; }
.hs-call { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand-700); font-weight: 800; font-size: .92rem; text-decoration: none; }
.fx-count { margin: 6px 0 12px; font-weight: 700; color: var(--text-2); }

/* guide */
.hs-guide { display: grid; gap: 10px; margin: 22px 0 14px; }
.hs-gd { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 0 14px; }
.hs-gd summary { display: flex; align-items: center; gap: 10px; min-height: 54px; font-weight: 800; cursor: pointer; }
.hs-gd summary span { font-size: 1.3rem; }
.hs-gd[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.hs-tips { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; line-height: 1.55; }
.hs-dept { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 14px; }
@media (min-width: 760px) { .hs-dept { grid-template-columns: repeat(3, 1fr); } }
.hs-dept div { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.hs-dept i { grid-row: 1 / span 2; font-style: normal; font-size: 1.3rem; text-align: center; } .hs-dept b { font-size: .84rem; line-height: 1.25; } .hs-dept small { font-size: .74rem; color: var(--muted); line-height: 1.3; }

/* detail pages */
.hs-info { display: grid; gap: 0; padding: 4px 16px; }
.hs-info p { display: grid; grid-template-columns: 88px 1fr; gap: 10px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.hs-info p b { color: var(--muted); font-size: .84rem; font-weight: 700; }
.hs-actions { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 0 10px; }
.hs-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
@media (min-width: 600px) { .hs-actions { grid-template-columns: repeat(3, 1fr); } }
.hs-ver { padding: 10px 14px; border-radius: 14px; font-size: .86rem; } .hs-ver.ok { background: #DCFCE7; color: #14532D; } .hs-ver.no { background: #FEF3C7; color: #78350F; }

/* abroad */
.ab-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-countries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
@media (min-width: 760px) { .ab-countries { grid-template-columns: repeat(4, 1fr); } }
.ab-cc { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .15s; }
.ab-cc:hover { transform: translateY(-2px); }
.ab-cc .ab-flag { font-size: 2rem; line-height: 1; } .ab-cc strong { font-size: 1.02rem; } .ab-cc-n { font-size: .8rem; font-weight: 700; color: var(--brand-700); } .ab-cc-c { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.ab-h { margin: 6px 0 10px; font-size: 1.1rem; }
.hs-filter { grid-template-columns: 1fr 1fr; }
.hs-filter .inline-search, .hs-filter .btn, .hs-filter .hs-clear { grid-column: 1 / -1; }
.hs-filter select { min-width: 0; }
.hs-filter .hs-chk { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .88rem; font-weight: 600; }
.hs-clear { text-align: center; font-weight: 700; }
@media (min-width: 760px) { .hs-filter { grid-template-columns: 2fr 1fr 1fr 1fr auto; } .hs-filter .inline-search, .hs-filter .btn, .hs-filter .hs-clear { grid-column: auto; } }
.hs-top .ab-cta { padding: 4px 0 2px; }
