/* ==========================================================================
   세차로 (clean-car) — 공통 스타일
   Claude Design 프로젝트(238f9bcd) 의 7개 화면에서 공통으로 쓰이는
   토큰 / 레이아웃 / 컴포넌트 정의.
   ========================================================================== */

/* --- 디자인 토큰 ---------------------------------------------------------- */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;

  --text: #17202b;
  --muted: #6b7684;
  --faint: #9aa5b1;

  --primary: #1b6ff2;
  --primary-dark: #0f54c4;
  --primary-soft: #eaf1fe;
  --primary-soft-2: #e3edfa;

  --green: #0e9f6e;
  --star: #ffb020;

  --line: #e2e8f0;        /* 카드 · 칩 테두리 */
  --line-input: #dde3ea;  /* 입력 필드 테두리 */
  --line-header: #eaeff3; /* 헤더 구분선 */
  --line-row: #f0f3f7;    /* 리스트 행 구분선 */
  --line-dash: #cbd4de;   /* 점선 테두리 */

  --chip-bg: #f0f4f8;
  --ph-fg: #93aece;       /* 사진 플레이스홀더 글자색 */

  --radius: 12px;
  --page: 640px;
}

/* --- 리셋 / 기본 ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    "Apple SD Gothic Neo", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

button {
  font-family: inherit;
}

::placeholder {
  color: var(--faint);
}

/* --- 레이아웃 ------------------------------------------------------------- */
.page {
  min-height: 100vh;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
}

.spacer {
  flex: 1;
}

.section {
  padding: 20px 20px 0;
}

.section--tight {
  padding: 16px 20px 4px;
}

.section--loose {
  padding: 28px 20px 0;
}

.stack {
  display: grid;
  gap: 12px;
}

.stack--sm {
  display: grid;
  gap: 10px;
}

/* --- 상단바 --------------------------------------------------------------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line-header);
}

.appbar__inner {
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
}

.appbar__title {
  font-size: 16px;
  font-weight: 700;
}

.appbar__icon {
  display: flex;
  align-items: center;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.region-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--chip-bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 16px;
}

.region-pill:hover {
  color: var(--text);
}

.region-pill__caret {
  color: var(--muted);
  font-size: 10px;
}

/* --- 타이포 --------------------------------------------------------------- */
.h1 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

.h2 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.h2--gap {
  margin-bottom: 12px;
}

.lead {
  margin-top: 6px;
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

.body {
  font-size: 15px;
  line-height: 24px;
}

.count {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.num {
  font-variant-numeric: tabular-nums;
}

.link-sm {
  font-size: 13px;
  font-weight: 600;
}

.link-md {
  font-size: 14px;
  font-weight: 600;
}

.center-link {
  text-align: center;
  padding: 16px 0 0;
}

.hint {
  font-size: 12px;
  color: var(--faint);
  line-height: 18px;
}

.hint--center {
  text-align: center;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb strong {
  color: var(--text);
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 20px 12px;
}

/* --- 카드 ----------------------------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
}

.card--clip {
  overflow: hidden;
}

.card--pad {
  padding: 14px 16px;
}

/* --- 뱃지 / 칩 ------------------------------------------------------------ */
.badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}

.badge--biz {
  color: #ffffff;
  background: var(--green);
  padding: 2px 6px;
}

.badge--indiv {
  color: var(--muted);
  border: 1px solid var(--line-dash);
  padding: 1px 5px;
}

.badge--log {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 2px;
}

.badge--inline {
  vertical-align: 2px;
}

.stars {
  color: var(--star);
  font-size: 13px;
  letter-spacing: 1px;
  margin-left: 2px;
}

.star {
  color: var(--star);
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 10px;
  border-radius: 14px;
}

.tag--neutral {
  color: var(--muted);
  background: var(--chip-bg);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 18px;
}

/* 선택 가능한 칩 (button 요소) */
.chip--toggle {
  color: var(--muted);
  cursor: pointer;
}

.chip--toggle[aria-pressed="true"] {
  color: #ffffff;
  font-weight: 700;
  background: var(--primary);
  border-color: var(--primary);
}

/* 링크형 칩은 지역 목록에서 사용 */
a.chip {
  padding: 9px 14px;
}

a.chip:hover {
  color: var(--text);
  border-color: var(--primary);
}

/* --- 필터 탭 -------------------------------------------------------------- */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.filter {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 18px;
  cursor: pointer;
}

.filter[aria-selected="true"] {
  font-weight: 700;
  color: #ffffff;
  background: var(--text);
  border-color: var(--text);
}

/* --- 사진 플레이스홀더 ----------------------------------------------------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-fg);
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #d7e4f2, #edf3fa);
}

.ph--2 {
  background: linear-gradient(135deg, #dce8f0, #f0f5fa);
}
.ph--3 {
  background: linear-gradient(135deg, #d2dfec, #eaf1f8);
}
.ph--4 {
  background: linear-gradient(135deg, #d9e3ee, #eef3f9);
}

.ph--4x3 {
  aspect-ratio: 4 / 3;
}
.ph--1x1 {
  aspect-ratio: 1;
}

/* --- 아바타 --------------------------------------------------------------- */
.avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-soft-2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.avatar--user {
  background: var(--chip-bg);
  color: var(--muted);
}

.avatar--lg {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

/* --- 업체 카드 (가로 캐러셀) ----------------------------------------------- */
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 8px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.shop-card {
  flex: 0 0 168px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  display: block;
}

.shop-card:hover {
  color: var(--text);
}

.shop-card__body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 4px;
}

.shop-card__name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-card__name > span:first-child {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card__meta {
  font-size: 12px;
  color: var(--muted);
}

.shop-card__meta b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.shop-card__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* --- 업체 리스트 행 (지역 페이지) ------------------------------------------ */
.shop-row {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
}

.shop-row:hover {
  color: var(--text);
}

.shop-row__thumb {
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  font-size: 11px;
}

.shop-row__info {
  display: grid;
  gap: 3px;
  align-content: center;
}

.shop-row__name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-row__name b {
  font-size: 15px;
}

/* --- 후기 헤더 ------------------------------------------------------------ */
.post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.post-head--bare {
  padding: 0;
}

.post-head__text {
  display: grid;
  gap: 1px;
}

.post-head__title {
  font-size: 14px;
  font-weight: 700;
}

.post-head__sub {
  font-size: 12px;
  color: var(--muted);
}

.post-body {
  padding: 12px 16px 14px;
  display: grid;
  gap: 6px;
}

.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.photo-grid-3 .ph {
  border-radius: 8px;
}

/* --- before / after 비교 슬라이더 ------------------------------------------ */
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eaeff5;
  touch-action: none;
}

.ba__after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e3f0ff, #f6faff 60%, #eaf3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ph-fg);
  font-size: 14px;
  font-weight: 600;
}

/* BEFORE 레이어는 컨테이너 전체를 덮고 clip-path 로 잘라낸다.
   width 로 자르면 안쪽 <img> 가 함께 찌그러져 두 사진의 배율이 어긋난다. */
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba__before span {
  color: #8b97a6;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* 사진이 들어간 경우 — 두 레이어 모두 컨테이너를 꽉 채운다 */
.ba__after > img,
.ba__before > img,
.ba__after > .ph,
.ba__before > .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 두 번째 카드용 밝은 변형 (플레이스홀더일 때만 의미가 있다) */
.ba--alt .ba__before > .ph {
  background: linear-gradient(135deg, #5a6472, #39424e);
  color: #96a1b0;
}

.ba__tag {
  position: absolute;
  top: 10px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.ba__tag--before {
  left: 10px;
  background: rgba(23, 32, 43, 0.65);
}

.ba__tag--after {
  right: 10px;
  background: rgba(27, 111, 242, 0.85);
}

.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #ffffff;
  transform: translateX(-1px);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba__handle span {
  transform: rotate(45deg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.ba__range {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
}

.ba__range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
}

/* 후기 상세 — 큰 사이즈 변형 */
.ba--lg .ba__after,
.ba--lg .ba__before span {
  font-size: 15px;
}

.ba--lg .ba__tag {
  top: 12px;
  font-size: 12px;
  padding: 4px 10px;
}

.ba--lg .ba__tag--before {
  left: 12px;
}

.ba--lg .ba__tag--after {
  right: 12px;
}

.ba--lg .ba__handle {
  width: 44px;
  height: 44px;
}

.ba--lg .ba__handle span {
  font-size: 13px;
}

/* --- 상세 정보 리스트 ------------------------------------------------------ */
.spec {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px 16px;
}

.spec__row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-row);
}

.spec__row:last-child {
  border-bottom: none;
}

.spec__key {
  font-size: 14px;
  color: var(--muted);
}

.spec__val {
  font-size: 14px;
  font-weight: 600;
}

/* 가격표 */
.pricing {
  display: grid;
}

.pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-row);
  font-size: 15px;
}

.pricing__row:last-child {
  border-bottom: none;
}

.pricing__row b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pricing__row .muted {
  font-weight: 700;
  color: var(--muted);
}

/* 설정형 리스트 (업체 관리) */
.settings {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px 16px;
}

.settings__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-row);
  color: var(--text);
  min-height: 44px;
}

.settings__item:last-child {
  border-bottom: none;
}

.settings__item:hover {
  color: var(--text);
}

.settings__label {
  display: grid;
  gap: 2px;
}

.settings__label > span:first-child {
  font-size: 15px;
  font-weight: 600;
}

.settings__label > span:last-child {
  font-size: 12px;
  color: var(--muted);
}

.settings__action {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* --- 버튼 ----------------------------------------------------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.btn--outline {
  background: var(--surface);
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--link {
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  justify-self: start;
  padding: 0;
  height: 44px;
}

.btn--lg {
  height: 56px;
}
.btn--md {
  height: 52px;
}
.btn--sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* --- 폼 ------------------------------------------------------------------- */
.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  color: var(--muted);
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line-input);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  outline: none;
  color: var(--text);
}

.input {
  height: 48px;
  padding: 0 14px;
}

.textarea {
  padding: 12px 14px;
  line-height: 24px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  border-color: var(--primary);
}

.input--tall {
  height: 52px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.input--price {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.input--dashed {
  border: 1px dashed var(--line-dash);
  background: transparent;
}

.input--code {
  height: 64px;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* 검색창 */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  height: 48px;
}

.search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

/* --- 선택형 옵션 카드 ------------------------------------------------------ */
.optcard {
  text-align: left;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}

.optcard--compact {
  padding: 14px 16px;
}

.optcard:hover {
  border-color: var(--primary);
}

/* 테두리 두께 대신 box-shadow 로 강조 → 선택 시 레이아웃이 밀리지 않음 */
.optcard[aria-pressed="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px var(--primary-soft);
}

.optcard__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.optcard__desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 18px;
}

/* --- 업로드 슬롯 ---------------------------------------------------------- */
.upload {
  border: 1.5px dashed var(--line-dash);
  border-radius: var(--radius);
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  aspect-ratio: 4 / 3;
}

.upload:hover {
  border-color: var(--primary);
}

.upload--after {
  border-color: #a9c4f0;
  background: #f4f8fe;
}

.upload--square {
  aspect-ratio: 1;
  gap: 4px;
}

.upload__plus {
  font-size: 22px;
  color: var(--faint);
}

.upload--after .upload__plus {
  color: var(--primary);
}

.upload__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.upload--after .upload__label {
  color: var(--primary);
}

.upload--square .upload__plus {
  font-size: 20px;
}

.upload--square .upload__label {
  font-size: 12px;
  font-weight: 600;
}

.upload__hint {
  font-size: 11px;
  color: var(--faint);
}

/* --- 하단 고정 CTA -------------------------------------------------------- */
.actionbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface);
  border-top: 1px solid var(--line-header);
}

.actionbar__inner {
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}

/* --- 배너 ----------------------------------------------------------------- */
.banner {
  display: block;
  margin: 24px 20px 32px;
  background: var(--text);
  border-radius: var(--radius);
  padding: 20px;
  color: #ffffff;
}

.banner:hover {
  color: #ffffff;
}

.banner__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner__sub {
  font-size: 13px;
  color: #aeb8c4;
}

/* --- 빈 상태 -------------------------------------------------------------- */
.empty {
  margin: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
}

.empty__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty__sub {
  font-size: 13px;
  color: var(--muted);
}

/* --- 업체 관리 대시보드 ---------------------------------------------------- */
.profile {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile__pic {
  position: relative;
  flex-shrink: 0;
}

.profile__pic .ph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 11px;
}

.profile__edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.profile__edit:hover {
  background: var(--primary-dark);
}

.profile__info {
  display: grid;
  gap: 3px;
}

.profile__name {
  font-size: 16px;
  font-weight: 800;
}

.profile__meta {
  font-size: 12px;
  color: var(--muted);
}

.profile__meta b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.profile__url {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: grid;
  gap: 2px;
}

.stat__label {
  font-size: 12px;
  color: var(--muted);
}

.stat__value {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* --- 체크 리스트 ---------------------------------------------------------- */
.checklist__item {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 22px;
}

.checklist__item::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
}

/* --- 유틸 ----------------------------------------------------------------- */
.muted {
  color: var(--muted);
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.row-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   SSR 전용 추가분
   실제 사진(<img>)이 들어오면서 필요해진 규칙과, 시안에 없던 footer/접근성 요소.
   ========================================================================== */

/* BEFORE 레이어의 플레이스홀더는 "세차 전"이 드러나도록 어둡게 */
.ba__before > .ph {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  color: #8b97a6;
  font-size: 14px;
}

.ba--lg .ba__before > .ph,
.ba--lg .ba__after > .ph {
  font-size: 15px;
}

/* 스크린리더 전용 — h1 을 시각적으로 감추되 문서에는 남긴다 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 업체 카드 대표 사진 */
.shop-card > img,
.shop-card > .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* 지역 목록 행의 썸네일 — 바깥 span 이 크기를, 안쪽이 채움을 담당 */
.shop-row__thumb {
  display: block;
  overflow: hidden;
  position: relative;
}

.shop-row__thumb > img,
.shop-row__thumb > .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* 후기 사진 그리드 */
.photo-grid-3 > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.grid-2 > img.rounded,
.grid-2 > .ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* 업체 상세 상단 갤러리 */
.carousel > img.gallery__item,
.carousel > .ph {
  flex: 0 0 78%;
  border-radius: 12px;
  object-fit: cover;
  font-size: 13px;
}

.carousel > .shop-card.ph {
  flex: 0 0 168px;
}

/* 미니 카드 안 썸네일 */
.card img.rounded {
  border-radius: 10px;
}

/* --- footer (크롤링 경로 확보) ------------------------------------------- */
.footer {
  margin-top: 40px;
  padding: 28px 0 40px;
  background: #ffffff;
  border-top: 1px solid var(--line-header);
}

.footer .wrap {
  padding: 0 20px;
}

.footer__heading {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer__links {
  margin-bottom: 20px;
}

.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer__chips a {
  font-size: 13px;
  color: var(--muted);
}

.footer__chips a:hover {
  color: var(--primary);
}

.footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--faint);
}

/* 업체 상세 하단 고정바가 footer 를 가리지 않도록 */
.actionbar ~ .footer {
  padding-bottom: 96px;
}

/* ==========================================================================
   지역 선택기 (js/region-picker.js) — 시도 > 시군구 > 읍면동 드릴다운
   ========================================================================== */

.rp__overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(23, 32, 43, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.rp__sheet {
  width: 100%;
  max-width: var(--page);
  max-height: 84vh;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rp-up 0.18s ease-out;
}

@keyframes rp-up {
  from {
    transform: translateY(12px);
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp__sheet {
    animation: none;
  }
}

.rp__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-header);
}

.rp__title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.rp__back,
.rp__close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}

.rp__back:hover,
.rp__close:hover {
  background: var(--chip-bg);
  color: var(--text);
}

.rp__crumb {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: #fafbfc;
  border-bottom: 1px solid var(--line-row);
}

.rp__list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rp__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 15px 16px;
  border: none;
  border-bottom: 1px solid var(--line-row);
  background: transparent;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  min-height: 52px;
}

.rp__item:hover {
  background: #f7f9fb;
}

.rp__item--current {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-soft);
}

.rp__chev {
  color: var(--faint);
  font-size: 18px;
}

/* 다중 선택 모드 체크 표시 */
.rp__item--check::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-dash);
  border-radius: 6px;
}

.rp__item--check[aria-pressed="true"] {
  color: var(--primary);
  font-weight: 700;
}

.rp__item--check[aria-pressed="true"]::after {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.rp__loading {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.rp__footer {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-header);
}

.rp__footer .btn {
  width: 100%;
}

.rp__footer .btn:disabled {
  background: var(--line);
  color: var(--faint);
  cursor: default;
}

/* 헤더의 지역 칩이 button 으로 렌더될 때도 링크와 같아 보이도록 */
button.region-pill {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* --- 전화번호 인증 오류 --- */
.auth-error {
  font-size: 13px;
  line-height: 20px;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  padding: 10px 12px;
}

/* reCAPTCHA 배지가 하단 고정 CTA 를 가리지 않도록 */
.grecaptcha-badge {
  visibility: hidden;
}
