/* ==========================================================
   여성전용마사지 — 공통 스타일
   모바일 우선 · 앱형 셸 · 크롤러 친화(콘텐츠는 전부 정적 HTML)
   ========================================================== */

/* ---------- 디자인 토큰 ---------- */
:root {
  --primary:       #F58A9E;
  --primary-light: #FDE8ED;
  --primary-deep:  #E5637E;
  --bg:            #EEEEF2;
  --surface:       #FFFFFF;
  --text:          #2B2B2E;
  --text-sub:      #8E8E93;
  --border:        #F2E4E8;

  --radius-card:   20px;
  --radius-btn:    999px;
  --shadow-card:   0 4px 16px rgba(0, 0, 0, .06);
  --shadow-float:  0 6px 20px rgba(245, 138, 158, .45);

  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --shell-max: 480px;
  --tabbar-h: 72px;
}

/* ---------- 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 앱 셸 ---------- */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, .08);
}
.shell main {
  padding: 12px 16px calc(var(--tabbar-h) + 24px);
}

/* ---------- 상단 헤더 ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg);
}
.app-header .title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  flex: 1;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}
.icon-btn svg { width: 20px; height: 20px; }
.header-pill {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-deep);
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius-btn);
  padding: 6px 12px;
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(120deg, #FDE8ED 0%, #FBD3DE 55%, #F8BFCF 100%);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
}
.hero::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.65), rgba(255,255,255,0) 70%);
}
.hero h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero p {
  font-size: 13px;
  color: #6E5A60;
  margin-bottom: 16px;
  max-width: 70%;
}
.btn-pill {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 10px rgba(245, 138, 158, .4);
}

/* ---------- 칩(필터/빠른 이동) ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 2px 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--surface);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.chip.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ---------- 카드 리스트 ---------- */
.card-list { display: grid; gap: 12px; padding-top: 12px; }
.card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card .thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  flex-shrink: 0;
}
.card .thumb svg { width: 24px; height: 24px; }
.card .body { flex: 1; min-width: 0; }
.card .body h2, .card .body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.card .body p {
  font-size: 12px;
  color: var(--text-sub);
}
.card .action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-deep);
  background: var(--primary-light);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  white-space: nowrap;
}
.card .action.link-only {
  background: none;
  padding: 8px 0;
}

/* ---------- 상세 페이지: 이미지 카드 ---------- */
.media-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(160deg, #F6DDE1 0%, #EEC9CF 50%, #E4B4BD 100%);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card .overlay {
  position: relative;
  padding: 18px;
  background: linear-gradient(to top, rgba(60,30,40,.55), rgba(60,30,40,0));
  color: #fff;
}
.media-card h1 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-hot {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 3px 10px;
}
.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-radius: var(--radius-btn);
  padding: 5px 10px;
}
.badge.badge-primary {
  background: var(--primary);
  color: #fff;
}

/* ---------- 아코디언 (details/summary — JS 없이 크롤링 가능) ---------- */
.accordion { display: grid; gap: 12px; padding-top: 16px; }
.accordion details {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  flex-shrink: 0;
}
.accordion summary .thumb svg { width: 20px; height: 20px; }
.accordion summary .label { flex: 1; }
.accordion summary h2 { font-size: 15px; font-weight: 700; }
.accordion summary p { font-size: 12px; color: var(--text-sub); }
.accordion summary .chev {
  color: var(--text-sub);
  transition: transform .2s;
  flex-shrink: 0;
}
.accordion details[open] summary .chev { transform: rotate(180deg); }
.accordion .content {
  padding: 0 16px 18px;
  font-size: 13px;
  color: #55555A;
}
.accordion .content p + p { margin-top: 8px; }
.accordion .content ol { padding-left: 18px; }
.accordion .content li { margin-top: 6px; }

/* ---------- 신뢰 배지 스트립 ---------- */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-deep);
}
.trust-strip svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- 빠른 이동 박스 ---------- */
.quick-box {
  background: rgba(253, 232, 237, .55);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-top: 12px;
}
.quick-box h2 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.quick-box .chips { padding: 0; overflow: visible; flex-wrap: wrap; }

/* ---------- 풀폭 CTA ---------- */
.cta-full {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--radius-card);
  margin-top: 20px;
  box-shadow: var(--shadow-float);
}

/* ---------- 하단 탭바 ---------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-max);
  height: var(--tabbar-h);
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
  display: flex;
  align-items: stretch;
  z-index: 30;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-sub);
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--primary-deep); font-weight: 600; }
.tabbar .fab {
  position: relative;
  top: -18px;
  flex: 0 0 76px;
  align-self: flex-start;
  height: 76px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-float);
  border: 5px solid var(--bg);
  font-size: 10.5px;
  font-weight: 600;
  gap: 2px;
}
.tabbar .fab svg { width: 24px; height: 24px; }

/* ---------- 섹션 타이틀 ---------- */
.section-title {
  font-size: 15px;
  font-weight: 700;
  padding: 20px 2px 4px;
}

/* ---------- 푸터 ---------- */
.site-footer {
  padding: 24px 16px calc(var(--tabbar-h) + 16px);
  font-size: 11px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.7;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.site-footer nav a { text-decoration: underline; }
