/* 병원·약국 찾기 (앱 night_care_screen 모양) */
.c-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; margin: 16px 2px 12px; }
.c-kinds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.c-kinds button { appearance: none; border: 0; cursor: pointer; background: #F3F4F6; color: var(--ink); border-radius: 12px; padding: 7px 2px 6px; display: grid; justify-items: center; gap: 2px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.c-kinds button .ms { font-size: 19px; color: var(--sub); }
.c-kinds button.on { background: var(--primary); color: var(--on-primary); }
.c-kinds button.on .ms { color: var(--on-primary); }
.c-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.c-time { appearance: none; border: 0; cursor: pointer; background: #F3F4F6; color: var(--ink); border-radius: 10px; padding: 7px 8px; display: flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 800; min-width: 0; flex: 1; }
.c-time #cTimeTxt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-time .ms { font-size: 17px; flex: none; }
.c-time.custom { background: var(--primary-soft); color: var(--primary-dark); }
.c-open { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); flex: none; cursor: pointer; }
.c-rad { display: flex; align-items: center; gap: 6px; height: 36px; margin-top: 4px; }
.c-rad > .ms { color: var(--accent); font-size: 18px; }
.c-rad b { color: var(--accent); font-size: 13.5px; font-weight: 800; width: 74px; flex: none; }
.c-rad small { color: var(--sub); font-size: 11.5px; flex: none; }
.c-rad input[type=range] { flex: 1; min-width: 0; padding: 0; border: 0; height: 24px; background: transparent; -webkit-appearance: none; appearance: none; }
.c-rad input[type=range]::-webkit-slider-runnable-track { height: 3px; background: #E6E8EC; border-radius: 2px; }
.c-rad input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); margin-top: -6.5px; }
.c-rad input[type=range]::-moz-range-track { height: 3px; background: #E6E8EC; }
.c-rad input[type=range]::-moz-range-progress { height: 3px; background: var(--accent); }
.c-rad input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--accent); }
.c-rad input[type=range]:focus { outline: none; }

.c-mapwrap { position: relative; margin: 6px -16px 0; }
#cMap { height: 52vh; min-height: 300px; max-height: 520px; background: #E0E0E0; z-index: 0; }
@media (min-width: 752px) { .c-mapwrap { margin: 6px 0 0; } #cMap { border-radius: 20px; } }
.c-loading { position: absolute; left: 10px; top: 8px; z-index: 500; background: #fff; border-radius: 18px; padding: 6px 12px; font-size: 12.5px; color: var(--sub); display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.c-loading i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #E5E8EB; border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.c-mbtns { position: absolute; right: 10px; top: 8px; z-index: 500; display: flex; gap: 8px; }
.mbtn { appearance: none; border: 0; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.22); }
.mbtn .ms { font-size: 19px; }
.mbtn:disabled { color: var(--sub); }
.c-here { position: absolute; left: 8px; top: 6px; right: 92px; margin: 0 auto; max-width: 220px; z-index: 600; height: 36px; border: 0; border-radius: 18px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.c-here .ms { color: var(--brand); font-size: 16px; }
.c-cross { position: absolute; left: 50%; top: 50%; z-index: 550; font-size: 44px; color: var(--brand-text); transform: translate(-50%, -100%); pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }

/* 지도 표시 */
.mymk { position: relative; }
.mymk i { position: absolute; inset: 0; border-radius: 50%; background: rgba(47,95,191,.2); }
.mymk i::after { content: ''; position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: #2F5FBF; border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.ctrmk .ms { font-size: 40px; color: var(--brand-text); filter: drop-shadow(0 2px 2px rgba(0,0,0,.33)); }
.pinw { background: none; border: 0; }
.pin { width: 130px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer; }
.pin .pl { max-width: 126px; background: #fff; color: var(--ink); font-size: 10.5px; font-weight: 700; letter-spacing: -0.2px; padding: 2px 6px; border-radius: 8px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.pin .pb { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-pin); border: 2.5px solid #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pin .pb .ms { color: #fff; font-size: 16px; }
.pin .pt { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--gray-pin); }
.pin.open .pb { background: var(--open); } .pin.open .pt { border-top-color: var(--open); }
.pin.sel .pb { width: 40px; height: 40px; background: var(--ink); } .pin.sel .pb .ms { color: var(--brand); font-size: 21px; } .pin.sel .pt { border-top-color: var(--ink); }
.pin.sel .pl { background: var(--ink); color: #fff; }

/* 목록 */
.c-list { padding-top: 12px; }
.cnote { display: flex; gap: 6px; font-size: 12.5px; color: var(--sub); line-height: 1.5; margin: 0 2px 10px; }
.cnote .ms { color: var(--accent); font-size: 16px; margin-top: 1px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px 12px 14px; margin-bottom: 10px; cursor: pointer; }
.pcard.sel { border: 1.6px solid var(--brand); }
.pr1 { display: flex; align-items: center; gap: 8px; }
.pr1 b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdg { font-style: normal; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 3px 8px; flex: none; }
.bdg.on { color: #1E7B3A; background: #E6F4EA; }
.bdg.off { color: #9AA3AE; background: #F3F4F6; }
.bdg.unk { color: var(--sub); background: #F3F4F6; }
.pr2, .pr3 { margin: 3px 0 0; font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pacts { display: flex; gap: 8px; margin-top: 10px; }
.pacts > * { flex: 1; }
.cfoot { padding-top: 4px; }
.cfoot .obtn { width: 100%; }
.empty { text-align: center; padding: 24px 8px 8px; }
.empty .et { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.empty .es { font-size: 13px; color: var(--sub); margin: 0 0 14px; }
.empty .fbtn, .empty .obtn { width: 100%; }

/* 위치 권한 없음 */
.c-noloc { text-align: center; padding: 40px 12px; display: grid; gap: 10px; justify-items: center; }
.c-noloc > .ms { font-size: 56px; color: var(--sub); }
.c-noloc h3 { font-size: 16px; font-weight: 800; margin: 0; }
.c-noloc p { font-size: 13.5px; color: var(--sub); line-height: 1.5; margin: 0; }

/* 다른 시각 시트 */
.ts-d { font-size: 13px; color: var(--sub); margin: 0 0 14px; }
.ts-row { display: flex; gap: 8px; }
.ts-in { flex: 1; padding: 0 10px; gap: 6px; }
.ts-in input { border: 0; padding: 0; flex: 1; min-width: 0; font-weight: 700; background: transparent; }
.ts-in input:focus { outline: none; }
.ts-btns { display: flex; gap: 8px; margin-top: 14px; }
.ts-btns > * { flex: 1; }
.sheet .tbtn { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.sheet .tbtn .ms { font-size: 16px; }
/* 날짜·시각 칸이 화면 밖으로 나가지 않게 한 줄에 하나씩 */
.ts-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ts-in { width: 100%; min-width: 0; overflow: hidden; }
.ts-in input { width: 100%; min-width: 0; }
.sheet { overflow-x: hidden; }
