/* ==========================================================
   Roop 사용자 앱 공통 스타일
   1. 상태 표시줄  2. 칩  3. 모달 바텀시트(AI 추천 · 필터 · 구매)
   4. 지도 마커  5. 화장실 목록 행 · 카드  6. 이용권 구매 행
   7. 구매 시트 내용  8. 빈 상태
   색: 파랑 #1F4FE0 · 글자 #0B0B0F · 보조 #5B6472 · 면 #F2F4F8 · 연파랑 #EAF0FF
   ========================================================== */

/* 1. 상태 표시줄 (PC 프레임에서만) */
.sbar { position: absolute; left: 0; right: 0; top: 0; z-index: 6; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0; box-sizing: border-box; font-size: 15px; font-weight: 700; color: #0B0B0F; pointer-events: none; }

/* 2. 칩 */
.chip { background: #F2F4F8; color: #0B0B0F; }
.chip[aria-pressed="true"] { background: #1F4FE0; color: #FFFFFF; }

/* 3. 모달 바텀시트: 제목은 고정, 내용만 스크롤, 아래쪽만 페이드 */
.modal { position: absolute; inset: 0; z-index: 30; }
.modal[hidden] { display: none; }
.dim { position: absolute; inset: 0; background: rgba(11, 11, 15, 0.35); transition: opacity .3s ease; }
.msheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: #FFFFFF; animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
.mbody { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 28px; flex: 1 1 auto; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent); }
.modal.closing .dim { opacity: 0; }
.modal.closing .msheet { transform: translateY(100%) !important; transition: transform .3s cubic-bezier(.4, 0, 1, 1) !important; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* 4. 지도 마커 */
.map-markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; display: flex; text-decoration: none; pointer-events: auto; transform: translateX(-20px); }
.marker__pin { display: flex; align-items: center; justify-content: center; transform: rotate(-45deg); border: 2px solid #FFFFFF; }
.marker--partner .marker__pin { width: 40px; height: 40px; border-radius: 20px 20px 20px 4px; background: #1F4FE0; box-shadow: 0 6px 14px rgba(31, 79, 224, 0.35); }
.marker--partner .marker__pin img { width: 15px; height: 20px; transform: rotate(45deg); }
.marker--public .marker__pin { width: 26px; height: 26px; border-radius: 13px 13px 13px 3px; background: #9AA3B2; box-shadow: 0 3px 8px rgba(11, 11, 15, 0.18); }
.marker--public .marker__pin::after { content: ""; width: 7px; height: 7px; border-radius: 4px; background: #FFFFFF; }
.marker--current .marker__pin { cursor: default; }

/* 5. 화장실 목록 행 · 카드 */
.t-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; text-decoration: none; color: #0B0B0F; }
.t-row--card { padding: 12px; border-radius: 16px; background: #F2F4F8; }
.t-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: #F2F4F8; color: #7B8494; }
.t-row--card .t-icon, .ai-card .t-icon { background: #FFFFFF; }
.t-icon__r { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 10px 10px 10px 3px; transform: rotate(-45deg); background: #1F4FE0; }
.t-icon__r img { width: 8px; height: 11px; transform: rotate(45deg); }
.t-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.t-name { font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 17px; color: #5B6472; white-space: nowrap; }
.t-price { flex-shrink: 0; font-size: 14px; font-weight: 700; color: #0B0B0F; }
.t-price--partner { color: #1F4FE0; }
.tag-mini { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; font-size: 10px; font-weight: 700; background: #0B0B0F; color: #FFFFFF; }

.ai-list { display: flex; flex-direction: column; gap: 8px; transition: opacity .2s; }
.ai-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: #F2F4F8; text-decoration: none; color: #0B0B0F; }
.ai-card--pick { box-shadow: inset 0 0 0 1.5px #1F4FE0; background: #EAF0FF; }
.ai-card__top { display: flex; align-items: center; gap: 10px; }
.ai-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-soft { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 500; background: #FFFFFF; color: #3A414C; }

/* 6. 이용권 구매 행 (상세) */
.buy-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 68px; padding: 0 12px 0 10px; border: 0; border-radius: 16px; background: #F2F4F8; text-align: left; color: #0B0B0F; }
.buy-row:disabled { opacity: .55; }
.buy-row__icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: #FFFFFF; color: #1F4FE0; }
.buy-row__text { display: flex; flex-direction: column; gap: 1px; flex-grow: 1; min-width: 0; }
.buy-row__title { font-size: 14px; font-weight: 700; }
.buy-row__sub { font-size: 12px; color: #5B6472; }
.buy-row__price { flex-shrink: 0; font-size: 14px; font-weight: 700; }
.buy-row__chev { display: flex; color: #5B6472; }

/* 7. 구매 시트 내용 */
.msheet--fit { height: auto; }
.buy-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; touch-action: none; }
.buy-head h2 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; }
.buy-close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -10px; border: 0; background: none; color: #0B0B0F; }
.buy-grab { display: flex; justify-content: center; padding: 10px 0 0; cursor: grab; touch-action: none; }
.buy-grab span { width: 40px; height: 4px; border-radius: 2px; background: #D5DAE3; }
.buy-options { display: flex; flex-direction: column; gap: 8px; }
.buy-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; box-sizing: border-box; border: 0; border-radius: 16px; background: #F2F4F8; text-align: left; color: #0B0B0F; }
.buy-option[aria-checked="true"] { background: #EAF0FF; box-shadow: inset 0 0 0 1.5px #1F4FE0; }
.buy-option:disabled { opacity: .5; }
.buy-option__radio { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; box-sizing: border-box; border-radius: 11px; border: 2px solid #C9CFDA; background: #FFFFFF; }
.buy-option[aria-checked="true"] .buy-option__radio { border-color: #1F4FE0; }
.buy-option[aria-checked="true"] .buy-option__radio::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: #1F4FE0; }
.buy-summary { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: #F2F4F8; font-size: 13px; color: #5B6472; }
.buy-summary div { display: flex; justify-content: space-between; }
.buy-summary b { color: #0B0B0F; }
.buy-note { margin: 10px 2px 0; font-size: 11px; line-height: 16px; color: #8A93A3; }
.buy-foot { padding: 8px 20px 20px; background: #FFFFFF; }
.btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 26px; background: #1F4FE0; color: #FFFFFF; font-size: 16px; font-weight: 700; box-shadow: 0 8px 18px rgba(31, 79, 224, 0.30); }
.btn-primary:disabled { background: #C9CFDA; box-shadow: none; }

/* 8. 빈 상태 */
.empty-note { padding: 28px 8px; text-align: center; font-size: 13px; line-height: 19px; color: #5B6472; }

@media (prefers-reduced-motion: reduce) {
  .dim, .ai-list { transition: none !important; }
  .msheet { animation: none; }
}
@media (max-width: 430px) {
  .sbar { display: none; }
  .modal { position: fixed; z-index: 80; }
}

/* 9. 내 이용권 행 (이용권 화면) */
.pass-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.pass-row__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: #F2F4F8; color: #1F4FE0; }
.pass-row__text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.pass-row__name { font-size: 15px; line-height: 21px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-row__sub { font-size: 12px; line-height: 17px; color: #5B6472; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-tag { display: inline-flex; align-items: center; height: 24px; flex-shrink: 0; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #E1E5EC; color: #5B6472; }
.pass-tag--on { background: #1F4FE0; color: #FFFFFF; }
