/* ==========================================================================
   픽카제주(PickCar Jeju) 렌터카 — 공통 디자인 시스템 (2026-07 브랜드 가이드)
   브랜드 컬러: 픽카 블루 #4C7DF0 / 체크 그린 #64C979(완료·확정 전용) /
   스카이 틴트 #EEF3FF / 잉크 그레이 #4B5563(본문, 순검정 금지) / 시그널 앰버 #F59E0B(실재고 전용)
   색 비율: 화이트 70 / 틴트 15 / 그레이 10 / 블루 4 / 그린 1 — 블루·그린은 아껴 쓴다
   모바일 360~430px Fluid, 데스크톱은 중앙 앱 프레임 + 브랜드 스테이지
   ========================================================================== */

:root {
  /* Color — 브랜드 규격 (블루 주조 + 체크 그린 강조) */
  --blue: #4c7df0;
  --blue-deep: #1d5bec;
  --blue-tint: #eef3ff;
  --blue-tint-2: #f6f9ff;
  --green: #64c979;
  --green-ink: #3e9b54;
  --green-bg: #eef9f1;
  --red: #ff6b6b;
  --red-bg: #fff0f0;
  --warn-bg: #fef3e2;
  --warn-text: #b45309;
  --amber: #f59e0b;      /* 시그널 앰버 — 팩트 기반 재고 희소성 표시 전용 */
  --amber-ink: #b45309;  /* 흰 배경 위 앰버 텍스트용 (대비 확보) */
  --purple-ink: #7c3aed;
  --purple-bg: #f5f0ff;
  --ink: #1f2937;
  --ink-sub: #4b5563;
  --ink-faint: #9ca3af;
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #e6e9ed;
  --input-bg: #f8f9fa;

  /* Radius / Shadow — 가이드: 카드 12~16px, 버튼 라운드(완전 pill 지양), 그림자 최소화 */
  --r-card: 14px;
  --r-btn: 10px;
  --r-btn-sm: 8px;
  --shadow-card: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 14px rgba(17, 24, 39, 0.04);
  --shadow-float: 0 8px 28px rgba(0, 40, 90, 0.16);

  /* Type scale — 가이드: 본문 최소 14px, 극소 캡션만 12px 허용 (40대 후반 타겟) */
  --fs-h1: 20px;
  --fs-h2: 16px;
  --fs-body1: 14px;
  --fs-body2: 14px;
  --fs-caption: 12px;

  --app-max: 430px;
  --tabbar-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: var(--fs-body1);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
input, select { font: inherit; letter-spacing: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
b, strong { font-weight: 600; } /* 가이드: UI 웨이트는 Regular/SemiBold 2단계만 */

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   앱 프레임 — 모바일 360~430px Fluid, 1024px~ 넓은 화면은 페이지별 컨테이너로 확장
   (검색+목록: .app-search / 예약·결제: .app-booking / 그 외: 기본 .app)
   -------------------------------------------------------------------------- */

.app {
  position: relative;
  max-width: var(--app-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: calc(var(--tabbar-h) + 18px);
}

.app.no-tabbar { padding-bottom: 24px; }

@media (min-width: 1024px) {
  .app {
    max-width: 720px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* --------------------------------------------------------------------------
   헤더
   -------------------------------------------------------------------------- */

.gnb {
  position: sticky; top: 0; z-index: 40;
  background: var(--blue-deep);
  color: #fff;
  padding: 0 16px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.gnb .brand { display: flex; align-items: center; gap: 8px; }
.gnb .brand svg { width: 30px; height: 30px; }
.gnb .brand b { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; } /* 워드마크 — 로고 전용 웨이트 */
.gnb .brand small { font-size: 10px; opacity: 0.72; display: block; line-height: 1.2; font-weight: 400; }
.gnb .gnb-actions { display: flex; align-items: center; gap: 4px; }
.gnb .icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
}
.gnb .icon-btn:active { background: rgba(255, 255, 255, 0.14); }

/* 서브페이지 헤더 (뒤로가기형) */
.subheader {
  position: sticky; top: 0; z-index: 40;
  background: var(--card);
  height: 54px;
  display: grid; grid-template-columns: 54px 1fr 54px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.subheader h1 { font-size: var(--fs-h2); font-weight: 600; text-align: center; }
.subheader .icon-btn { width: 54px; height: 54px; display: grid; place-items: center; color: var(--ink); }

/* --------------------------------------------------------------------------
   하단 고정 탭바 (MYP-001 스펙: position fixed bottom 0)
   -------------------------------------------------------------------------- */

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  max-width: var(--app-max); margin: 0 auto;
  height: var(--tabbar-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 600; color: var(--ink-faint);
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--blue); }
@media (min-width: 1024px) { .tabbar { display: none; } } /* GNB에 동일 기능 아이콘이 있어 데스크톱에서는 숨김 */

/* --------------------------------------------------------------------------
   공통 컴포넌트
   -------------------------------------------------------------------------- */

.wrap { padding: 12px 12px 0; display: grid; gap: 12px; }

.card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card h2.sec-title { font-size: var(--fs-h2); font-weight: 600; margin-bottom: 12px; }
.card .sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card .sec-head h2 { font-size: var(--fs-h2); font-weight: 600; margin: 0; }

/* 버튼 */
.btn-primary {
  width: 100%; height: 48px;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 15px;
  border-radius: var(--r-btn);
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover { background: #1f36a3; }
.btn-primary:active { background: var(--blue-deep); }
.btn-primary:disabled { background: #bcc6ea; cursor: not-allowed; }

.btn-light {
  height: 44px; padding: 0 16px;
  background: var(--card); color: var(--ink);
  border: 1px solid #e0e0e0; border-radius: var(--r-btn-sm);
  font-weight: 600; font-size: var(--fs-body1);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-light:active { background: var(--input-bg); }

.btn-cancel {
  height: 44px; padding: 0 16px;
  background: var(--red-bg); color: var(--red);
  border: 1px solid var(--red); border-radius: var(--r-btn-sm);
  font-weight: 600; font-size: var(--fs-body1);
  display: inline-flex; align-items: center; justify-content: center;
}

.btn-blue-sm {
  height: 44px; padding: 0 16px;
  background: var(--blue); color: #fff;
  border-radius: var(--r-btn-sm); font-weight: 600; font-size: var(--fs-body1);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}

/* 캡슐 칩 — 대여/반납 일시 등 (가이드: 연블루 캡슐) */
.chip-date {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-tint); color: var(--blue);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}

.badge {
  display: inline-flex; align-items: center;
  font-size: var(--fs-caption); font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
}
.badge.blue { background: var(--blue-tint); color: var(--blue); }
.badge.green { background: var(--green-bg); color: var(--green-ink); }
.badge.gray { background: var(--bg); color: var(--ink-sub); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.amber { background: var(--warn-bg); color: var(--amber-ink); }
.badge.purple { background: var(--purple-bg); color: var(--purple-ink); }

/* 사이트관리: 공지사항 / 혜택 및 이벤트 — 목록 */
.post-list { display: grid; }
.post-list a.post-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
}
.post-list a.post-row:last-child { border-bottom: 0; }
.post-list a.post-row .pr-title {
  font-size: var(--fs-body1); font-weight: 600; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-list a.post-row .pr-date { flex: none; font-size: var(--fs-caption); color: var(--ink-faint); }

/* 사이트관리: 공지사항 / 혜택 및 이벤트 — 상세 */
.post-detail .pd-title { font-size: var(--fs-h1); font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.post-detail .pd-date { font-size: var(--fs-caption); color: var(--ink-faint); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.post-detail .pd-body { font-size: var(--fs-body1); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.post-detail .pd-images { display: grid; gap: 10px; margin-top: 18px; }
.post-detail .pd-images img { width: 100%; border-radius: var(--r-btn-sm); }

/* 사이트관리: 자주찾는 질문 — 아코디언 */
.faq-acc { border-bottom: 1px solid var(--line); padding: 14px 2px; }
.faq-acc:last-child { border-bottom: 0; }
.faq-acc summary {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: var(--fs-body1); cursor: pointer; list-style: none;
}
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary .q-badge {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: var(--blue-tint); color: var(--blue); font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
}
.faq-acc summary .q-text { flex: 1; min-width: 0; }
.faq-acc summary .chev { flex: none; transition: transform 0.18s; color: var(--ink-faint); }
.faq-acc[open] summary .chev { transform: rotate(180deg); }
.faq-acc .faq-a {
  display: flex; gap: 10px; margin-top: 12px;
  font-size: var(--fs-body2); color: var(--ink-sub); line-height: 1.7; white-space: pre-wrap;
}
.faq-acc .faq-a .a-badge {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg); color: var(--ink-sub); font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
}

/* 주의사항 블록 */
.notice {
  display: flex; gap: 8px;
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px; line-height: 1.55; color: var(--warn-text); font-weight: 400;
}
.notice svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; }
.notice.green { background: var(--green-bg); color: var(--green-ink); }

/* 예약 유의사항 (업체 관리 설정 연동) */
.notice-list { display: grid; gap: 10px; }
.notice-row { border: 1px solid var(--bg); border-radius: 10px; padding: 12px 14px; }
.notice-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notice-row-head b { font-size: var(--fs-body1); font-weight: 600; }
.notice-row-detail { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-sub); white-space: pre-line; }

/* 대여 필수 조건 — 충족 확인 톤 (체크 그린 아이콘, 박스는 연한 그레이로 강조) */
.notice-row.cond { background: var(--bg); border-color: transparent; }
.cond-check-list { display: grid; gap: 7px; margin-top: 10px; }
.cond-check-list li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cond-check-list li svg { flex: none; color: var(--green-ink); }

/* 업체 정보 접기/펼치기 */
.co-info-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; background: none; border: none; padding: 0; font: inherit; color: inherit; text-align: left;
}
.co-info-toggle .chev { transition: transform 0.18s; flex: none; color: var(--ink-sub); }
.co-info-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.co-info-body { margin-top: 14px; }
.co-info-body[hidden] { display: none; }
.co-info-body.kv-list .kv .k { width: 96px; white-space: nowrap; }

/* 약관 동의 아코디언 (기본 접힘 — faq-acc와 동일한 시각 언어) */
.terms-list { display: grid; }
.terms-acc { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.terms-acc:last-child { border-bottom: 0; }
.terms-acc summary {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: var(--fs-body2); cursor: pointer; list-style: none;
}
.terms-acc summary::-webkit-details-marker { display: none; }
.terms-acc summary input[type="checkbox"] { flex: none; width: 18px; height: 18px; accent-color: var(--blue); }
.terms-acc summary .terms-label { flex: 1; min-width: 0; }
.terms-acc summary .chev { flex: none; transition: transform 0.18s; color: var(--ink-faint); }
.terms-acc[open] summary .chev { transform: rotate(180deg); }
.terms-acc .terms-body {
  margin-top: 10px; padding-left: 28px;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-sub); white-space: pre-line;
}

/* 입력 필드 */
.field { display: grid; gap: 6px; }
.field > label { font-size: var(--fs-body2); font-weight: 600; color: var(--ink); }
.field .hint { font-size: var(--fs-caption); color: var(--ink-sub); }
.input, .select {
  height: 46px; width: 100%;
  background: var(--input-bg); border: 1px solid transparent;
  border-radius: var(--r-btn); padding: 0 14px;
  font-size: var(--fs-body1); color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus, .select:focus { outline: none; border-color: var(--blue); background: var(--card); }
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}

/* 토글 스위치 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-body2); color: var(--blue); font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .track {
  width: 42px; height: 24px; border-radius: 999px; background: #d4dae1; transition: background 0.18s; position: relative; flex: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.18s;
}
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* 라디오/체크 리스트 행 */
.radio-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 4px; cursor: pointer;
}
.radio-row + .radio-row { border-top: 1px solid var(--bg); }
.radio-row input { position: absolute; opacity: 0; }
.radio-dot {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2px solid #cfd6dd; background: #fff; transition: border 0.12s;
  display: grid; place-items: center;
}
.radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform 0.14s; }
.radio-row input:checked ~ .radio-dot { border-color: var(--blue); }
.radio-row input:checked ~ .radio-dot::after { transform: scale(1); }
.radio-row .radio-label { flex: 1; font-weight: 600; font-size: var(--fs-body1); }
.radio-row .radio-sub { font-size: var(--fs-caption); color: var(--ink-sub); font-weight: 400; }

/* 구분선 */
.divider { border: 0; border-top: 1px solid var(--bg); margin: 12px 0; }
.divider.dashed { border-top-style: dashed; border-color: var(--line); }

/* 금액 행 */
.amount-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: var(--fs-body1); }
.amount-row .k { color: var(--ink-sub); }
.amount-row .v { font-weight: 600; }
.amount-row.total .k { color: var(--ink); font-weight: 600; }
.amount-row.total .v { color: var(--blue); font-weight: 600; font-size: 18px; }
.amount-row.today .v { color: var(--blue); font-weight: 600; font-size: 16px; }
.amount-row.spot .v { font-weight: 400; color: var(--ink-sub); }

/* --------------------------------------------------------------------------
   메인 — 히어로 & 검색
   -------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: #05203c; }
.hero video, .hero > img { width: 100%; height: 240px; object-fit: cover; object-position: center 70%; opacity: 0.92; }
.hero .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 22, 44, 0.55) 0%, rgba(4, 22, 44, 0.05) 45%, rgba(241, 243, 245, 0) 78%, var(--bg) 100%);
}
.hero .hero-copy { position: absolute; left: 18px; top: 22px; color: #fff; text-shadow: 0 2px 12px rgba(0, 20, 40, 0.45); }
.hero .hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 10px;
}
.hero .hero-copy .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero .hero-copy h1 { font-size: 23px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.hero .hero-copy p { font-size: 13px; opacity: 0.92; margin-top: 6px; font-weight: 400; }

/* 신뢰 배지 — 랜딩 첫 화면 + 결제 직전 화면 (가이드 톤앤보이스) */
.trust-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; padding: 5px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.92); color: var(--blue);
  text-shadow: none;
}
.trust-badge::before { content: "✓"; color: var(--green-ink); font-weight: 600; }

/* 검색 카드 (히어로에 겹침) */
.search-card { margin: -64px 12px 0; position: relative; z-index: 5; box-shadow: var(--shadow-float); }
.search-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; }
.search-grid .arrow { color: var(--ink-faint); padding-bottom: 13px; }
.search-when { display: grid; gap: 6px; }
.search-when > span { font-size: var(--fs-caption); font-weight: 600; color: var(--ink-sub); }
.when-btn {
  background: var(--input-bg); border-radius: var(--r-btn);
  padding: 9px 12px; text-align: left; width: 100%;
  display: grid; gap: 1px;
  border: 1px solid transparent;
}
.when-btn:focus-visible { border-color: var(--blue); }
.when-btn b { font-size: 14px; font-weight: 600; color: var(--blue); }
.when-btn small { font-size: 12px; color: var(--ink-sub); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip-toggle {
  font-size: 12px; font-weight: 600;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-sub);
  transition: all 0.13s;
  display: inline-flex; align-items: center; gap: 4px;
}
.chip-toggle[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); font-weight: 600; }
.search-card .btn-primary { margin-top: 14px; }
.search-meta { text-align: center; font-size: var(--fs-caption); color: var(--ink-sub); margin-top: 10px; }
.search-meta b { color: var(--blue); }
/* 총액 신뢰 문구 — "숨은 비용 없는 총액" (가이드 UX 원칙 3) */
.total-note { text-align: center; font-size: var(--fs-caption); color: var(--ink-faint); margin-top: 4px; }

/* 검색 카드 내부 순서 고정 — .search-top의 자식들은 데스크톱에서 그리드로 재배치되지만,
   모바일에서는 order로 항상 원래 순서(날짜→차종→상세필터→버튼→안내문구)를 유지한다 */
.search-card { display: flex; flex-direction: column; }
.search-top { display: contents; }
.search-note { display: contents; }
.search-top .search-grid { order: 1; }
.search-top .filter-chips { order: 2; }
.search-card > .adv-filter { order: 3; }
.search-top .filter-dirty-note { order: 4; }
.search-top #btnSearch { order: 5; }
.search-top .search-meta { order: 6; }
.search-top .total-note { order: 7; }

/* results-col은 모바일에서 투명한 래퍼(.wrap의 gap 간격을 그대로 물려받음) */
.results-col { display: contents; }

/* --------------------------------------------------------------------------
   검색+목록 화면(index.html) — 1024px~: 위쪽 큰 검색바 + 왼쪽 세부필터 사이드바 + 오른쪽 목록
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .app-search {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(300px, 340px) 1fr;
    grid-auto-flow: dense;
    column-gap: 28px;
    row-gap: 20px;
    align-items: start;
  }
  .app-search > .gnb,
  .app-search > .hero { grid-column: 1 / -1; }
  /* row-gap(20px)이 헤더-히어로 사이에도 적용돼 틈이 생기는 것만 상쇄 (다른 행 간격은 유지) */
  .app-search > .hero { margin-top: -20px; }

  /* search-card는 더 이상 하나의 박스가 아니라 search-top(전체 폭 검색바)과
     adv-filter(왼쪽 세부필터 사이드바) 두 개의 그리드 아이템으로 나뉜다 */
  .app-search > .search-card { display: contents; }

  .app-search .search-top {
    display: grid;
    grid-template-columns: 1fr 340px;
    column-gap: 24px;
    row-gap: 14px;
    align-items: stretch;
    grid-column: 1 / -1;
    grid-row: 3;
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 24px 28px;
    margin: 20px 0 0;
  }
  .app-search .search-top .search-grid { grid-column: 1; grid-row: 1; }
  .app-search .search-top #btnSearch {
    grid-column: 2; grid-row: 1;
    height: auto; margin-top: 0;
  }
  /* 차종 칩 옆으로 안내문구를 붙여서 카드 세로 길이를 줄인다 */
  .app-search .search-top .filter-chips { grid-column: 1; grid-row: 2; margin-top: 0; align-self: center; }
  .app-search .search-top .search-note {
    display: block;
    grid-column: 2; grid-row: 2;
    align-self: center;
    text-align: right;
  }
  .app-search .search-top .search-note .search-meta,
  .app-search .search-top .search-note .total-note { margin-top: 2px; }
  .app-search .search-top .search-note .search-meta:first-child { margin-top: 0; }

  /* 행 번호를 명시적으로 고정 — auto-placement 커서가 처리 순서에 따라 엉뚱한 행으로
     밀어내는 문제(요약카드 sticky 버그에서 겪은 것과 동일한 종류)를 원천 차단한다 */
  .app-search > .wrap { display: contents; }
  .app-search .wrap > .date-strip {
    /* 사이드바(상세필터) 위까지 덮지 않고 오른쪽 차량 리스트 컬럼 폭에만 맞춘다 */
    grid-column: 2;
    grid-row: 4;
    overflow-x: visible;
  }
  .app-search .wrap > .date-strip .date-tab { flex: 1; min-width: 0; }
  .app-search .wrap > .results-col {
    display: grid;
    gap: 12px;
    grid-column: 2;
    grid-row: 5;
  }

  .app-search .adv-filter {
    grid-column: 1;
    /* date-strip이 있는 4행부터 결과 리스트가 있는 5행까지 걸쳐서, 사이드바 윗면이
       인근날짜 박스들의 윗면과 맞도록 한다. (주의: -1은 grid-template-rows가 없으면
       "명시적 그리드의 마지막 줄" = 줄 1로 붕괴해 역방향 스팬이 되므로 반드시 닫힌 범위로 지정) */
    grid-row: 4 / 6;
    margin-top: 0; /* 모바일용 .adv-filter{margin-top:10px}가 데스크톱까지 새어들어와 정렬이 어긋나는 것 방지 */
    position: sticky;
    top: 76px;
    /* 상세 필터가 상시 노출되면서 뷰포트보다 길어질 수 있어, 사이드바 자체를 스크롤 가능한 영역으로 만든다 —
       페이지를 더 내리지 않아도 필터 영역에 마우스를 올리고 스크롤하면 필터 하단까지 볼 수 있다 */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 20px;
  }

  /* 상세 필터: 아코디언 대신 상시 노출 사이드바 */
  .app-search #advPanel[hidden] { display: block; }
  .app-search #advToggle {
    cursor: default;
    pointer-events: none;
  }
  .app-search #advToggle .adv-arrow { display: none; }
  /* 상시 노출 사이드바에서는 필터 적용 버튼을 그대로 두고, 모바일 전용 dirty 안내문은 숨기고
     대신 필터 적용 버튼 위의 dirty 안내문을 보여준다.
     (.app-search 접두사로 특이도를 올려야 함 — 아래 1283번째 줄 근처의 기본 규칙과 소스 순서상
     충돌해서, 접두사 없이 그냥 .adv-apply{display:block}만 쓰면 데스크톱에서도 안 보이는 버그가 났었다) */
  .app-search .adv-apply { display: block; }
  .filter-dirty-note { display: none; }
  .app-search #filterDirtyNoteDesktop { display: block; }
}

/* 날짜 탭 스트립 */
.date-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-tab {
  flex: none; min-width: 74px;
  border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 8px 10px;
  display: grid; justify-items: center; gap: 1px;
}
.date-tab b { font-size: 13px; font-weight: 600; }
.date-tab span { font-size: 12px; color: var(--ink-sub); font-weight: 600; }
.date-tab.active { border-color: var(--blue); background: var(--blue); }
.date-tab.active b, .date-tab.active span { color: #fff; }

/* 정렬/결과 헤더 */
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.list-head .count { font-size: var(--fs-body2); color: var(--ink-sub); }
.list-head .count b { color: var(--blue); font-weight: 600; }
/* 실시간성 시각화 — "N분 전 확인된 가격" */
.list-head .price-age { display: block; font-size: var(--fs-caption); color: var(--ink-faint); margin-top: 1px; }
.sort-group { display: flex; gap: 2px; }
.sort-group button { font-size: 12px; color: var(--ink-faint); font-weight: 600; padding: 6px 7px; border-radius: 6px; }
.sort-group button.active { color: var(--ink); font-weight: 600; }
.sort-group button.active::before { content: "•"; color: var(--blue); margin-right: 3px; }

/* --------------------------------------------------------------------------
   차량 카드 (업체별 가격비교)
   -------------------------------------------------------------------------- */

.car-card { padding: 0; overflow: hidden; }
.car-card .car-top { display: flex; gap: 14px; padding: 16px 16px 10px; }
.car-card .car-visual {
  flex: none; width: 140px; height: 99px;
  background: linear-gradient(160deg, var(--blue-tint-2), var(--blue-tint));
  border-radius: 10px; display: grid; place-items: center;
}
.car-card .car-visual svg { width: 114px; height: auto; }
.car-card .car-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.car-card .car-visual:has(img) { background: var(--card); }
.car-card .car-title h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.car-card .car-title .car-fuel { margin-top: 2px; font-size: var(--fs-body2); font-weight: 600; color: var(--ink); }
.car-card .car-title .car-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; font-size: var(--fs-body2); color: var(--ink-sub); }
.car-card .car-title .car-meta span { display: inline-flex; align-items: center; gap: 3px; }
.car-card .car-tags { display: flex; gap: 4px; margin-top: 8px; }

.vendor-list { padding: 0 8px; }
.vendor-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px; border-radius: 8px; cursor: pointer;
  font-size: var(--fs-body2);
}
.vendor-row input { position: absolute; opacity: 0; }
.vendor-row .radio-dot { width: 18px; height: 18px; }
.vendor-row .radio-dot::after { width: 8px; height: 8px; }
.vendor-row .vendor-cond { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vendor-row .vendor-cond b { font-weight: 600; color: var(--ink); font-size: 13px; }
.vendor-row .vendor-cond small { color: var(--ink-sub); font-size: 12px; }
.vendor-row .vendor-price { text-align: right; flex: none; }
.vendor-row .vendor-price del { display: block; font-size: 12px; color: var(--ink-faint); }
.vendor-row .vendor-price b { font-size: 13px; font-weight: 600; }
.vendor-row input:checked ~ .radio-dot { border-color: var(--blue); }
.vendor-row input:checked ~ .radio-dot::after { transform: scale(1); }
.vendor-row[aria-checked="true"] { background: var(--blue-tint-2); }
.vendor-row[aria-checked="true"] .vendor-cond b { color: var(--blue); font-weight: 600; }
.vendor-more { width: 100%; padding: 10px; font-size: 12px; color: var(--ink-sub); font-weight: 600; }

.car-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--bg);
}
.car-cta .price-final { display: grid; gap: 0; }
.car-cta .price-final small { font-size: 12px; color: var(--ink-sub); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.car-cta .price-final strong { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.car-cta .price-final strong em { font-style: normal; font-size: 13px; font-weight: 600; }
.car-cta .btn-blue-sm { padding: 0 18px; height: 46px; border-radius: var(--r-btn); flex: none; }

/* 이벤트 스트립 배너 */
.promo-strip {
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  color: #fff; border-radius: var(--r-card);
  padding: 13px 16px; display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-card);
}
.promo-strip b { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.promo-strip svg { flex: none; }

/* --------------------------------------------------------------------------
   예약 정보 (booking)
   -------------------------------------------------------------------------- */

.book-hero { display: flex; gap: 14px; align-items: center; }
.book-hero .car-visual { flex: none; width: 120px; height: 84px; background: linear-gradient(160deg, var(--blue-tint-2), var(--blue-tint)); border-radius: 12px; display: grid; place-items: center; }
.book-hero .car-visual:has(img) { background: var(--card); }
.book-hero .car-visual svg { width: 100px; height: auto; }
.book-hero h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.3; }
.book-hero .sub { font-size: var(--fs-body2); color: var(--ink-sub); margin-top: 3px; }
.book-hero .vendor-tag-btn {
  display: inline-flex; margin-top: 7px; background: none; border: none; padding: 0; cursor: pointer;
}
.book-hero .vendor-tag-btn .badge { gap: 4px; }
.book-hero .vendor-tag-btn .info-dot { color: var(--blue); font-size: 12px; line-height: 1; }

/* 섹션 제목 옆 정보 아이콘 (누르면 안내 다이얼로그) */
.info-icon-btn {
  display: inline-flex; vertical-align: middle; margin-left: 4px;
  color: var(--ink-faint); background: none; border: none; padding: 0; cursor: pointer;
}
.info-icon-btn svg { width: 15px; height: 15px; }
.photo-note { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }
.book-period { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--blue-tint-2); border-radius: 10px; padding: 11px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.book-period svg { color: var(--ink-faint); }


.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; }
.opt-grid li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-body2); padding: 7px 2px; font-weight: 400; }
.opt-grid li svg { flex: none; color: var(--blue-deep); width: 17px; height: 17px; }
.opt-grid li.off { color: #c3cad1; }
.opt-grid li.off svg { color: #d4dae1; }

/* 자차 면책 카드 */
.ins-card {
  border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 14px; cursor: pointer; transition: border 0.14s, background 0.14s;
  display: grid; gap: 10px;
}
.ins-card + .ins-card { margin-top: 10px; }
.ins-card .ins-head { display: flex; align-items: center; gap: 8px; }
.ins-card .ins-head b { font-size: 15px; font-weight: 600; }
.ins-card .ins-head .badge { font-size: 12px; }
.ins-card .ins-head .ins-right { margin-left: auto; font-size: var(--fs-body2); font-weight: 600; color: var(--ink-sub); }
.ins-card .ins-desc { font-size: 12px; color: var(--ink-sub); }
.ins-card .ins-btn {
  height: 42px; border-radius: var(--r-btn);
  border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.ins-card.selected { border-color: var(--blue); background: var(--blue-tint-2); }
.ins-card.selected .ins-btn { background: var(--blue); border-color: var(--blue); color: #fff; }
.ins-card.selected .ins-head .ins-right { color: var(--blue); }

/* 자차보험 보장 비교표 */
#insTable:not(:empty) { margin-bottom: 12px; }
.ins-table { width: 100%; border-collapse: collapse; text-align: center; table-layout: fixed; }
.ins-table th, .ins-table td {
  border: 1px solid var(--line); padding: 10px 4px;
  font-size: 12.5px; font-weight: 400;
}
.ins-table thead th { background: var(--input-bg); font-weight: 600; font-size: 12px; }
.ins-table tbody th { background: var(--input-bg); font-weight: 600; font-size: 12px; color: var(--ink-sub); }
.ins-table thead th.sel { color: var(--blue); background: var(--blue-tint-2); }
.ins-table td.sel { color: var(--blue); background: var(--blue-tint-2); font-weight: 600; }
.ins-table td.no { color: var(--ink-faint); font-weight: 400; }
.ins-help-btn {
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px;
  border-radius: 50%; border: 1.2px solid var(--ink-faint);
  color: var(--ink-sub); font-size: 12px; font-weight: 600; line-height: 1;
}

/* 보장 항목 세부 사항 팝업 */
.ins-help-list { padding: 16px; gap: 14px; }
.ins-help-list .help-row { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: baseline; }
.ins-help-list .help-row b { font-size: 13px; font-weight: 600; }
.ins-help-list .help-row p { font-size: 12.5px; color: var(--ink-sub); line-height: 1.55; }
.ins-help-list .help-foot {
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint); line-height: 1.5;
}

.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 추가 요청 카테고리 */
.extra-list li { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.extra-list li:first-child { margin-top: 0; }
.extra-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-align: left; }
.extra-list .ex-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-tint-2); color: var(--blue-deep); display: grid; place-items: center; }
.extra-list .ex-body { flex: 1; }
.extra-list .ex-body b { font-size: var(--fs-body1); font-weight: 600; display: block; }
.extra-list .ex-body span { font-size: var(--fs-caption); color: var(--ink-sub); }
.extra-list .chev { color: var(--ink-faint); flex: none; }
.extra-empty {
  border: 1.5px dashed var(--line); border-radius: 10px;
  padding: 18px; text-align: center; font-size: 12px; color: var(--ink-faint); line-height: 1.6;
  margin-bottom: 12px;
}

/* 하단 고정 CTA 바 */
.cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  max-width: var(--app-max); margin: 0 auto;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
/* 신뢰 배지 — 결제 직전 화면 상단 라인 */
.cta-bar .cta-trust {
  flex-basis: 100%; text-align: center;
  font-size: var(--fs-caption); font-weight: 600; color: var(--ink-sub);
  padding-bottom: 2px;
}
.cta-bar .cta-trust::before { content: "✓ "; color: var(--green-ink); }
/* 무료취소 기한 + 결항 환불 안내 — 결제 버튼 바로 위 한 줄 (spec 5, 9번) */
.cta-bar .cta-assure {
  flex-basis: 100%; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--blue);
  padding-bottom: 2px;
}
.cta-bar .cta-assure .info-dot {
  display: inline-flex; margin-left: 2px; color: var(--blue); text-decoration: underline; font-size: 12px;
}
.cta-bar .cta-price { flex: none; display: grid; }
.cta-bar .cta-price small { font-size: 12px; color: var(--ink-sub); font-weight: 600; }
.cta-bar .cta-price strong { font-size: 19px; font-weight: 600; color: var(--blue); }
.cta-bar .btn-primary { flex: 1; }
.app.has-ctabar { padding-bottom: 150px; } /* cta-bar 실측 높이(신뢰 라인+취소기한 라인+가격/버튼) + 안전 여백 반영 */
@media (min-width: 1024px) {
  /* 고정 바 대신 sticky로 정상 흐름에 놓여 부모 .app 폭을 그대로 따라감 (콘텐츠를 덮지 않으므로 여백 보정 불필요) */
  .cta-bar {
    position: sticky;
    max-width: none;
    margin: 0;
    left: auto; right: auto; bottom: 0;
  }
  .app.has-ctabar { padding-bottom: 24px; }
}

/* --------------------------------------------------------------------------
   예약정보/결제 화면(booking.html, checkout.html) — 1024px~:
   본문 + 오른쪽 sticky 결제 요약 카드
   -------------------------------------------------------------------------- */

/* 요약카드+CTA를 한 덩어리로 묶는 래퍼 — 모바일에서는 완전히 투명(그리드 자식으로만 동작) */
.book-summary { display: contents; }
.book-main { display: contents; }

@media (min-width: 1024px) {
  .app-booking { max-width: 1080px; }

  /* .wrap 자체가 2컬럼 그리드 — 왼쪽은 본문 전체를 한 덩어리(book-main)로,
     오른쪽은 요약카드+CTA를 한 덩어리(book-summary)로 묶어서 컬럼당 아이템 1개씩만 두면
     row 높이가 서로 얽히지 않는다 */
  .app-booking > .wrap {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 380px);
    /* book-summary(요약카드)가 DOM상 book-main보다 먼저 나오면서 컬럼2를 먼저 차지해,
       sparse 배치 커서가 row2로 넘어가버려 book-main이 밀리는 문제 방지 */
    grid-auto-flow: dense;
    column-gap: 24px;
    align-items: start;
  }
  .app-booking > .wrap > .book-main {
    display: grid;
    gap: 12px;
    grid-column: 1;
  }
  .app-booking > .wrap > .book-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-column: 2;
    align-self: start;
    position: sticky;
    top: 78px;
  }

  /* CTA는 더 이상 고정 바가 아니라 book-summary 안에서 자연스럽게 쌓이는 카드 */
  .app-booking .book-summary > .cta-bar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    backdrop-filter: none;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
  }
  /* 넓은 화면에서는 하단 고정 바가 아니라 여유 있는 카드라, 버튼도 모바일 기준(48px)보다
     훨씬 시원하게(약 3.5배) 키운다. flex:1(위 754번째 줄, flex-basis:0%)을 그대로 두면
     .cta-bar가 auto-height 컨테이너라 grow할 여백이 없어 오히려 버튼이 쪼그라드므로
     flex:none으로 늘려서 height가 실제로 적용되게 한다 */
  .app-booking .book-summary > .cta-bar .btn-primary {
    flex: none;
    height: 84px;
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   예약/결제 (checkout)
   -------------------------------------------------------------------------- */

.kv-list { display: grid; gap: 9px; }
.kv-list .kv { display: flex; gap: 12px; font-size: var(--fs-body1); }
.kv-list .kv .k { flex: none; width: 72px; color: var(--ink-sub); }
.kv-list .kv .v { font-weight: 600; }
.kv-list .kv .v.blue { color: var(--blue); font-weight: 600; }

/* 가상계좌 확장 폼 */
.va-form { background: var(--input-bg); border-radius: 10px; padding: 14px; margin: 4px 4px 10px 34px; display: grid; gap: 12px; }
.va-form .field > label { font-size: 12px; }
.va-form .input, .va-form .select { background: var(--card); border: 1px solid var(--line); height: 44px; }
.va-form .input:focus, .va-form .select:focus { border-color: var(--blue); }
.receipt-opts { display: flex; gap: 14px; }
.receipt-opts .radio-row { padding: 4px 0; border: 0; }
.receipt-opts .radio-row .radio-label { font-size: 13px; font-weight: 400; }

.pay-benefit { font-size: var(--fs-caption); color: var(--blue); font-weight: 600; }

.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-sub); cursor: pointer; padding: 2px; }
.agree-row input { width: 17px; height: 17px; accent-color: var(--blue); flex: none; margin-top: 1px; }
.agree-row b { color: var(--ink); }

/* --------------------------------------------------------------------------
   마이페이지 (MYP-001)
   -------------------------------------------------------------------------- */

/* 로딩 스크린 */
.loading-screen {
  position: fixed; inset: 0; z-index: 90;
  max-width: var(--app-max); margin: 0 auto;
  background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.35s;
}
.loading-screen.hide { opacity: 0; pointer-events: none; }
.loading-screen .mascot-wrap { animation: bob 1.1s ease-in-out infinite; margin-bottom: 8px; }
.loading-screen .mascot-wrap svg { width: 88px; height: 88px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.loading-screen .load-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.loading-screen .load-sub { font-size: 12.5px; color: var(--ink-sub); font-weight: 400; }
.loading-screen .load-dots { display: flex; gap: 5px; margin-top: 14px; }
.loading-screen .load-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: dotjump 1s infinite; }
.loading-screen .load-dots i:nth-child(2) { animation-delay: 0.15s; }
.loading-screen .load-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotjump { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }
@media (min-width: 1024px) { .loading-screen { position: absolute; max-width: none; } }

/* 브랜드 로더 — P 로고 + 점프 도트 (차량 조회·결제 승인 등 대기 상태 공통) */
.brand-loader { display: grid; justify-items: center; padding: 4px 0; }
.brand-loader svg { width: 56px; height: 56px; }
.brand-loader .logo-check { transform-origin: 61px 64px; animation: checkpop 1.15s ease-in-out infinite; }
.brand-loader .load-dots { display: flex; gap: 5px; margin-top: 12px; }
.brand-loader .load-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: dotjump 1s infinite; }
.brand-loader .load-dots i:nth-child(2) { animation-delay: 0.15s; }
.brand-loader .load-dots i:nth-child(3) { animation-delay: 0.3s; }
.brand-loader .loader-ticker { position: relative; width: 100%; max-width: 280px; height: 18px; margin-top: 8px; overflow: hidden; }
.brand-loader .loader-ticker p {
  position: absolute; left: 0; right: 0; top: 0; margin: 0; text-align: center;
  font-size: var(--fs-body2); color: var(--ink-sub);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}
.brand-loader .loader-ticker p.ticker-enter { transform: translateY(100%); opacity: 0; }
.brand-loader .loader-ticker p.ticker-current { transform: translateY(0); opacity: 1; }
.brand-loader .loader-ticker p.ticker-exit { transform: translateY(-100%); opacity: 0; }
/* 촤라락 — 조회 중 업체를 아주 빠르게 훑고 지나가는 릴 연출 */
.brand-loader .loader-ticker p.ticker-fast { transition-duration: 0.1s; transition-timing-function: linear; }
/* 띵 — 실제 조회가 끝난 순간의 완료 연출 (체크 그린으로 확정감 강조) */
.brand-loader .loader-ticker p.ticker-done {
  color: var(--green-ink); font-weight: 700;
  animation: dingPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes dingPop {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  55% { transform: translateY(0) scale(1.15); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes checkpop { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.8); } }

/* 상태 아이콘 — 결제 완료(연두 체크가 그려짐) / 실패 */
.state-icon { width: 72px; height: 72px; margin: 0 auto; display: block; }
.state-icon.ok circle { fill: var(--green); }
.state-icon.ok path {
  stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; fill: none;
  stroke-dasharray: 58; stroke-dashoffset: 58; animation: checkdraw 0.5s 0.15s ease-out forwards;
}
@keyframes checkdraw { to { stroke-dashoffset: 0; } }
.state-icon.err circle { fill: var(--red); }
.state-icon.err path { stroke: #fff; stroke-width: 7; stroke-linecap: round; fill: none; }

.my-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.my-filters .select { background-color: var(--card); border: 1px solid var(--line); height: 42px; font-size: 13px; font-weight: 600; }

/* 예약 카드 */
.resv-card { padding: 16px; }
.resv-card .resv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.resv-card .resv-head time { font-size: var(--fs-caption); color: var(--ink-faint); }
.resv-body { display: flex; gap: 12px; }
.resv-body .car-visual { flex: none; width: 92px; height: 66px; background: linear-gradient(160deg, var(--blue-tint-2), var(--blue-tint)); border-radius: 10px; display: grid; place-items: center; }
.resv-body .car-visual svg { width: 76px; height: auto; }
.resv-body h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.resv-body .resv-info { margin-top: 6px; display: grid; gap: 2px; font-size: 12px; color: var(--ink-sub); }
.resv-body .resv-info b { color: var(--ink); font-weight: 600; }
.resv-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.resv-actions .btn-light, .resv-actions .btn-blue-sm, .resv-actions .btn-cancel { height: 42px; padding: 0; font-size: 13px; }
.resv-card.canceled .resv-body { opacity: 0.55; }

/* 결제내역 확장 */
.pay-detail { background: var(--input-bg); border-radius: 10px; padding: 12px 14px; margin-top: 10px; display: none; }
.pay-detail.open { display: block; }
.pay-detail .amount-row { font-size: 13px; padding: 3px 0; }

.empty-state { text-align: center; padding: 48px 16px 40px; color: var(--ink-sub); }
.empty-state svg { width: 72px; height: 72px; margin: 0 auto 14px; opacity: 0.9; }
.empty-state b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.empty-state p { font-size: 13px; margin-bottom: 18px; }
.empty-state .btn-blue-sm { padding: 0 22px; }

/* --------------------------------------------------------------------------
   모달 / 팝업
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 18, 28, 0.55);
  display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-backdrop.open { display: flex; animation: fadein 0.2s; }
@keyframes fadein { from { opacity: 0; } }
.modal {
  background: var(--bg); width: 100%; max-width: var(--app-max);
  max-height: 88dvh; overflow-y: auto;
  border-radius: 20px 20px 0 0;
  animation: slideup 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes slideup { from { transform: translateY(40px); opacity: 0.4; } }
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: 20px; max-height: 84dvh; }
}
.modal .modal-head {
  position: sticky; top: 0; z-index: 2;
  background: var(--card); border-bottom: 1px solid var(--line);
  height: 52px; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center;
  border-radius: 20px 20px 0 0;
}
.modal .modal-head h2 { text-align: center; font-size: 15px; font-weight: 600; }
.modal .modal-head .icon-btn { width: 52px; height: 52px; display: grid; place-items: center; color: var(--ink-sub); }
.modal .modal-body { padding: 12px; display: grid; gap: 12px; }

/* 대여기간 선택 팝업 (달력 + 24시간제 시간) */
.dt-body { padding: 10px 16px 20px; }
.dt-nav { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 2px; }
.dt-nav-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--input-bg); color: var(--ink-sub);
  font-size: 18px; font-weight: 600; line-height: 1;
  display: grid; place-items: center;
}
.dt-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.dt-month { margin-top: 14px; }
.dt-month + .dt-month { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dt-month h4 { text-align: center; font-size: 14px; font-weight: 600; margin-bottom: 12px; }

/* 위저드 달력(2개월)을 데스크톱·태블릿 가로 화면에서는 위아래 대신 좌우로 배치 —
   칸 크기 자체는 그대로 두고 배치만 바꾼다.
   (주의: .app 자체가 1024px 미만에서는 여전히 모바일 폭(430px)으로 고정돼 있어,
   그보다 낮은 기준을 쓰면 두 달력이 좁은 폭에 눌려 찌그러진다) */
@media (min-width: 1024px) {
  #wzCalendars { display: flex; gap: 32px; align-items: flex-start; }
  #wzCalendars .dt-month { flex: 1; min-width: 0; margin-top: 14px; }
  #wzCalendars .dt-month + .dt-month {
    margin-top: 14px;
    padding-top: 0;
    border-top: none;
    padding-left: 32px;
    border-left: 1px solid var(--line);
  }
}
.dt-weekrow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-sub); margin-bottom: 6px;
}
.dt-weekrow .sun { color: #e0483e; }
.dt-weekrow .sat { color: var(--blue); }
.dt-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.dt-day {
  position: relative; aspect-ratio: 1; width: 100%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--ink);
  border-radius: 50%; z-index: 1;
}
.dt-day.empty { cursor: default; }
.dt-day.sun { color: #e0483e; }
.dt-day.sat { color: var(--blue); }
.dt-day.holiday { color: #e0483e; }
.dt-day.past { color: var(--ink-faint); cursor: not-allowed; }
.dt-day.today { box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.dt-day.in-range, .dt-day.sel-start, .dt-day.sel-end {
  background: var(--blue); color: #fff; font-weight: 600; border-radius: 0;
}
.dt-day.sel-start { border-top-left-radius: 50%; border-bottom-left-radius: 50%; }
.dt-day.sel-end { border-top-right-radius: 50%; border-bottom-right-radius: 50%; }
.dt-day.sel-start.sel-end { border-radius: 50%; }

.dt-foot {
  position: sticky; bottom: 0; z-index: 2;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  display: grid; gap: 10px;
}
.dt-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dt-time-row + .dt-time-row { margin-top: 10px; }
.dt-time-field { display: grid; gap: 4px; }
.dt-time-field span { font-size: 12px; font-weight: 600; color: var(--ink-sub); }
.dt-sel-date { color: var(--blue); font-weight: 700; }
.dt-hint { font-size: 12px; color: var(--ink-faint); text-align: center; }
/* 날짜(대여일·반납일)를 다 고르면, 이어서 시간도 확인하시라고 잠깐 강조 —
   시간을 직접 건드리면(change) 바로 해제됨. 브랜드가이드상 깜빡이는 연출 금지라 1회성 펄스만 사용 */
#dtManualFields { border-radius: 12px; transition: background 0.25s, box-shadow 0.25s; }
#dtManualFields.attn {
  background: var(--blue-tint); box-shadow: 0 0 0 1.5px var(--blue);
  padding: 10px; animation: dtAttnPulse 0.4s ease-in-out 2;
}
@keyframes dtAttnPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }

/* 위저드(언제 이용하시나요?)의 시간 선택 영역 — "다음" 버튼과 같은 CTA 박스(.cta-bar) 안에
   렌더링되므로, 자체적으로 뜨는 카드가 아니라 그 박스 안에서 한 줄을 차지하는 영역이 된다 */
.cta-bar .dt-time-bar { flex-basis: 100%; padding-bottom: 10px; }
.dt-time-bar .select {
  height: 32px;
  padding: 0 22px 0 10px;
  font-size: 12.5px;
  background-position: right 8px center;
  background-size: 10px 7px;
}

/* 모달/위저드 제목 옆에 붙는 작은 Tip 토글 — 제목 행 안에서 인라인으로 붙고,
   펼친 내용은 레이아웃을 밀어내지 않도록 절대위치로 아래에 뜬다 */
.wiz-date-title, .modal-head-title {
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.modal-head-title { min-width: 0; }
.modal-head-title h2 { text-align: left; }
.dt-tip { position: relative; }
.dt-tip summary {
  display: inline-block; padding: 3px 7px; border-radius: 6px;
  background: var(--blue-tint);
  font-size: 11px; font-weight: 700; color: var(--blue); cursor: pointer; list-style: none;
}
.dt-tip summary::-webkit-details-marker { display: none; }
.dt-tip .dt-tip-body {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 8px; width: 300px; max-width: 84vw; z-index: 20;
  display: grid; gap: 14px; padding: 14px 15px;
  background: var(--card); border-radius: var(--r-btn);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.16);
  font-size: 14px; line-height: 1.6; text-align: left;
}
.dt-tip .dt-tip-qa { display: grid; gap: 5px; }
.dt-tip .dt-tip-q { color: var(--blue); font-weight: 600; }
.dt-tip .dt-tip-a { color: var(--ink); }
.dt-tip .dt-tip-q b, .dt-tip .dt-tip-a b { font-weight: 700; }

.dt-oohours-warn {
  padding: 10px 12px;
  background: #FFF7E8; border: 1px solid #FFE1B0; border-radius: var(--r-btn);
  font-size: 12.5px; line-height: 1.5; color: #8A5A00; text-align: center;
}

/* 이용정보 팝업 내부 */
.usage-greet { text-align: center; display: grid; gap: 2px; padding: 6px 0 2px; }
.usage-greet .mascot-sm svg { width: 46px; height: 46px; margin: 0 auto 6px; }
.usage-greet p { font-size: 13.5px; font-weight: 600; }
.usage-greet .u-name { font-size: 17px; font-weight: 600; color: var(--blue); margin-top: 6px; }
.usage-greet .u-phone { font-size: 15px; font-weight: 600; color: var(--blue); }
.usage-amounts .amount-row .v { color: var(--blue); font-weight: 600; }
.usage-amounts .amount-row.total-line { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.usage-sec-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.usage-sec-title .num { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.usage-addr { font-size: 13px; line-height: 1.6; }
.usage-addr b { font-weight: 600; }
.usage-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.usage-btns .btn-light, .usage-btns .btn-blue-sm { height: 42px; font-size: 13px; }
.usage-note { font-size: 12.5px; color: var(--ink-sub); line-height: 1.7; }
.usage-note b { color: var(--ink); }
.usage-note .path { background: var(--input-bg); border-radius: 8px; padding: 10px 12px; margin-top: 8px; font-size: 12px; }

/* 확인(취소) 다이얼로그 */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10, 18, 28, 0.55);
  display: none; align-items: center; justify-content: center; padding: 28px;
}
.dialog-backdrop.open { display: flex; animation: fadein 0.18s; }
.dialog {
  background: var(--card); border-radius: 16px; padding: 24px 20px 16px;
  width: 100%; max-width: 320px; text-align: center;
  animation: slideup 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.dialog h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.dialog p { font-size: 13px; color: var(--ink-sub); line-height: 1.6; margin-bottom: 18px; }
.dialog .dialog-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px); z-index: 99;
  transform: translateX(-50%) translateY(8px);
  background: rgba(17, 24, 39, 0.92); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --------------------------------------------------------------------------
   전체메뉴 (menu)
   -------------------------------------------------------------------------- */

.menu-banner { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); }
.menu-banner img { width: 100%; height: 150px; object-fit: cover; }
.menu-banner .mb-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 18px; color: #fff;
  background: linear-gradient(90deg, rgba(0, 45, 96, 0.78) 6%, rgba(0, 45, 96, 0.15) 70%);
}
.menu-banner .mb-overlay .badge { background: #ffe14d; color: #7a5b00; width: fit-content; margin-bottom: 8px; }
.menu-banner .mb-overlay b { font-size: 17px; font-weight: 600; line-height: 1.35; }
.menu-banner .mb-overlay span { font-size: 12px; opacity: 0.9; margin-top: 3px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-grid a {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 13px 6px 11px; display: grid; justify-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.quick-grid a svg { width: 22px; height: 22px; color: var(--blue); }

.menu-list { padding: 6px 4px; }
.menu-list li a, .menu-list li button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 13px 12px; font-size: var(--fs-body1); font-weight: 600; text-align: left;
}
.menu-list li + li { border-top: 1px solid var(--bg); }
.menu-list svg.mi { flex: none; width: 19px; height: 19px; color: var(--ink-sub); }
.menu-list .chev { margin-left: auto; color: var(--ink-faint); flex: none; }
.menu-list .badge { margin-left: auto; }
.menu-list .badge + .chev { margin-left: 8px; }
.menu-list .tag-new { font-size: 12px; font-weight: 600; background: var(--red); color: #fff; border-radius: 4px; padding: 2px 4px; }
.menu-cap { font-size: var(--fs-body2); font-weight: 600; color: var(--ink-sub); padding: 4px 6px 0; }

.menu-foot { text-align: center; font-size: 12px; color: var(--ink-faint); line-height: 1.7; padding: 10px 0 4px; }

/* 사업자 정보 (전자상거래법 표시 의무 — 상호/사업자등록번호/대표자/주소/유선번호) */
.biz-info {
  margin: 18px 0 6px; padding: 14px 4px 4px; border-top: 1px solid var(--line);
  text-align: center; font-size: 12px; color: var(--ink-faint); line-height: 1.9;
}
.biz-info b { color: var(--ink-sub); font-weight: 600; }

/* ==========================================================================
   고급 필터 (index 검색카드 — 상세 필터 접이식 패널)
   ========================================================================== */
.adv-filter { margin-top: 10px; }
.adv-toggle {
  width: 100%; display: flex; align-items: center; gap: 7px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--input-bg); font-size: 13px; font-weight: 600; color: var(--ink-sub);
}
.adv-toggle.open { border-color: var(--blue); color: var(--blue); background: var(--blue-tint-2); }
.adv-toggle .adv-arrow { margin-left: auto; display: flex; color: var(--ink-faint); transition: transform 0.18s ease; }
.adv-toggle.open .adv-arrow { transform: rotate(180deg); color: var(--blue); }
.adv-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.adv-count[hidden] { display: none; }
.adv-panel {
  margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--card); padding: 2px 14px 14px;
}
.adv-sec { padding: 13px 0 15px; }
.adv-sec + .adv-sec { border-top: 1px solid var(--bg); }
.adv-sec h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.adv-sec h4 small { font-size: 12px; font-weight: 400; color: var(--ink-faint); }
.adv-birth-row { display: flex; align-items: center; gap: 10px; }
/* 위저드(운전자 생년월일 스텝)에서 쓸 때는 상세필터와 달리 위 문구와의 간격이 필요 */
.wiz-birth-row { margin-top: 26px; }
/* 위저드는 상세필터와 달리 흰 카드 위가 아니라 페이지 배경(연회색) 위에 바로 놓여서,
   입력칸 기본 배경(연회색)과 거의 구분이 안 됨 — 흰색으로 대비를 준다 */
.wiz-birth-row .input,
.wiz-birth-row .select {
  background: var(--card);
}
.adv-birth-fields { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
/* font-size를 16px 이상으로 둬야 iOS Safari가 포커스 시 화면을 확대하지 않는다
   (14px 미만이면 자동 확대되고, 입력 후에도 원래 배율로 잘 안 돌아옴) */
.adv-birth-fields .input { flex: 1; min-width: 0; text-align: center; padding-left: 4px; padding-right: 4px; font-size: 16px; }
.adv-birth-fields .adv-birth-y { flex: 1.4; }
.adv-birth-sep { color: var(--ink-faint); font-weight: 600; }
.adv-age-sel { width: 100px; flex: none; font-size: 13px; padding: 0 24px 0 10px; background-position: right 8px center; }

.adv-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; }
.adv-checks[hidden] { display: none; }
.adv-checks-row { grid-template-columns: repeat(3, 1fr); }
.adv-career-sel { margin-top: 12px; }
.adv-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-sub); cursor: pointer; }
.adv-check input {
  appearance: none; -webkit-appearance: none; flex: none; cursor: pointer;
  width: 19px; height: 19px; border: 1.5px solid var(--line); border-radius: 5px; background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
}
.adv-check input:checked { background: var(--blue); border-color: var(--blue); }
.adv-check input:checked::after {
  content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.adv-check input:checked + span { color: var(--ink); font-weight: 600; }
.adv-check input.radio { border-radius: 50%; }
.adv-check input.radio:checked::after {
  content: ""; width: 9px; height: 9px; margin-top: 0;
  border: none; border-radius: 50%; background: #fff; transform: none;
}

/* 인원수 스텝퍼 (상세 필터 · 상담 위저드 공용, .lg는 위저드용 확대판) */
.party-stepper { display: flex; align-items: center; justify-content: center; gap: 14px; }
.party-stepper .party-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card);
  font-size: 18px; font-weight: 600; color: var(--ink-sub);
  display: grid; place-items: center;
}
.party-stepper .party-btn:active { border-color: var(--blue); color: var(--blue); }
.party-stepper .party-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.party-stepper .party-val { min-width: 84px; text-align: center; font-size: 15px; font-weight: 600; }
.party-stepper.lg { gap: 22px; margin-top: 10px; }
.party-stepper.lg .party-btn { width: 54px; height: 54px; font-size: 27px; }
.party-stepper.lg .party-val { min-width: 120px; font-size: 23px; }

/* 듀얼 레인지 슬라이더 — 트랙 하나에 range 인풋 2개를 겹쳐 범위 선택 */
.dual-range { position: relative; height: 32px; margin: 2px 4px 0; }
.dual-range .track, .dual-range .fill {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 6px; border-radius: 3px; pointer-events: none;
}
.dual-range .track { left: 0; right: 0; background: var(--line); }
.dual-range .fill { background: #8aa0f5; }
.dual-range input[type="range"] {
  -webkit-appearance: none; appearance: none;
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 100%; height: 0; margin: 0; background: none; outline: none; pointer-events: none;
}
.dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer;
  width: 23px; height: 23px; border-radius: 50%;
  background: #fff; border: 6.5px solid var(--blue); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: pointer;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 6.5px solid var(--blue); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.range-lbl { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 13px; margin-top: 8px; }
.range-lbl b { font-weight: 600; }
.range-lbl span { color: var(--ink-faint); }
.adv-price-note { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

.adv-actions { display: flex; gap: 8px; margin-top: 4px; }
/* 모바일에서는 "필터 적용" 버튼을 없애고 초기화만 남긴다 — 상세필터를 바꾸면 자동으로
   조용히 다시 그려져서 적용됐는지 헷갈리던 문제를 없애기 위해, 모바일은 아래
   "조건에 맞는 차량 보기" 버튼으로 재조회를 유도한다(.filter-dirty-note 참고).
   데스크톱/태블릿(≥1024px)에서는 상시 노출 사이드바라 이 버튼을 그대로 살려둔다(아래 미디어쿼리에서 복원) */
.adv-apply {
  display: none;
  flex: 3; padding: 10px;
  border: none; border-radius: var(--r-btn); background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 600;
}
.adv-apply:active { background: var(--blue-deep); }
/* dirty 안내 — 박스 없이 파란 텍스트만. 모바일은 검색 버튼(#filterDirtyNote) 위,
   데스크톱/태블릿은 필터 적용 버튼(#filterDirtyNoteDesktop) 위에 뜬다(둘 다 이 클래스 공유,
   어느 쪽을 보여줄지는 위 @media (min-width:1024px)에서 갈린다) */
.filter-dirty-note {
  font-size: 12.5px; font-weight: 600; color: var(--blue); text-align: center;
  /* 위(상세 필터 박스)와는 넉넉히, 아래(버튼, 자체 margin-top 14px 있음)와는 살짝만 띄운다 —
     #filterDirtyNoteDesktop은 다른 레이아웃 맥락이라 아래에서 margin을 따로 재정의한다 */
  margin: 22px 0 2px;
  /* 기본값(모든 글자 사이에서 줄바꿈 허용)이면 단어 중간이 잘려 보이므로, 공백에서만 줄바꿈되게 함 */
  word-break: keep-all;
}
/* 상세 필터 사이드바 안(모바일 기본은 숨김 — 위 .adv-apply와 같은 이유로 .app-search 접두사 필요) */
#filterDirtyNoteDesktop { display: none; margin: 0 0 10px; }
.adv-reset {
  flex: 1; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--ink-sub); white-space: nowrap;
}
.adv-reset:active { border-color: var(--blue); color: var(--blue); }

/* 상세 필터 안의 하위(중첩) 토글 — 자차보험 자세히 보기 / 차량 옵션 펼치기 */
.adv-toggle-sm { width: fit-content; padding: 0; border: none; background: none; }
.adv-toggle-sm.open { border: none; background: none; }
.adv-toggle-sm .adv-arrow { margin-left: 4px; }
.adv-toggle-link { margin-top: 9px; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.adv-toggle-link .adv-arrow { color: var(--blue); }
.adv-toggle-head { width: 100%; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.adv-toggle-head.open { color: var(--ink); }
.adv-toggle-head .adv-arrow { color: var(--ink-faint); }
.adv-toggle-head.open .adv-arrow { color: var(--ink-faint); }

#afIns.adv-checks { grid-template-columns: 1fr; }
#afIns .adv-check { align-items: flex-start; }
#afIns .adv-check span { display: flex; flex-direction: column; gap: 1px; }
.adv-check-desc { display: block; font-size: 11px; font-weight: 400; color: var(--ink-faint); margin-top: 1px; }
.ins-detail { margin-top: 10px; }
.ins-detail-foot { margin-top: 8px; font-size: 11px; color: var(--ink-faint); line-height: 1.5; }

/* ---------------- 영업시간 외(야간·조기) 안내 ---------------- */
.night-note {
  margin: 12px 0 0; padding: 11px 14px;
  background: #FFF7E8; border: 1px solid #FFE1B0; border-radius: var(--r-btn);
  font-size: 12.5px; line-height: 1.6; color: #8A5A00;
}
.notice-row-detail.night-fee {
  margin-top: 6px; padding: 8px 10px;
  background: #FFF7E8; border: 1px solid #FFE1B0; border-radius: var(--r-btn-sm);
  color: #8A5A00;
}
.notice-row-detail.night-fee b { color: #8A5A00; }
.notice-row-detail.warn {
  margin-top: 8px; padding: 8px 10px;
  background: #FFF1F0; border: 1px solid #FFCFCB; border-radius: var(--r-btn-sm);
  color: #B23B2E; font-weight: 600;
}

/* ==========================================================================
   상담형 위저드 (consult.html) — 토스식 원스텝 질문 흐름, 화면당 질문 1개
   ========================================================================== */
.wiz-app { display: flex; flex-direction: column; min-height: 100dvh; }
.wiz-progress { height: 3px; background: var(--line); flex: none; }
.wiz-progress > span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 0.3s ease; }
.wiz-step-label { font-size: 13px; font-weight: 600; color: var(--ink-sub); }
.wiz-body { flex: 1; display: flex; flex-direction: column; padding: 32px 24px 24px; }
.wiz-screen { flex: 1; display: flex; flex-direction: column; justify-content: center; animation: wizIn 0.25s ease; }
@keyframes wizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-screen h1 { font-size: 21px; font-weight: 600; line-height: 1.4; text-align: center; }
.wiz-screen .wiz-sub { font-size: 13.5px; color: var(--ink-sub); text-align: center; margin-top: 8px; }

.wiz-intro { align-items: center; text-align: center; }
.wiz-illustration { width: 88px; height: 88px; margin: 0 auto 22px; }
.wiz-illustration svg { width: 100%; height: 100%; }
.wiz-intro p { font-size: 14px; color: var(--ink-sub); line-height: 1.7; margin-top: 12px; }

.wiz-input-big {
  width: 100%; height: 56px; text-align: center;
  font-size: 20px; font-weight: 600; letter-spacing: 0.06em;
  border: 1.5px solid var(--line); border-radius: var(--r-btn); background: var(--input-bg);
  margin-top: 26px;
}
.wiz-input-big:focus { border-color: var(--blue); background: var(--card); }
.wiz-age-badge { display: block; text-align: center; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--blue); min-height: 20px; }
.wiz-error { display: block; text-align: center; margin-top: 8px; font-size: 12.5px; color: var(--red); min-height: 16px; }

.wiz-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.wiz-choice-box {
  border: 1.5px solid var(--line); border-radius: var(--r-card); background: var(--card);
  padding: 20px 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-sub);
}
.wiz-choice-box.active { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }

.wiz-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.wiz-cat-card {
  border: 1.5px solid var(--line); border-radius: var(--r-card); background: var(--card);
  padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.wiz-cat-card .wiz-cat-ill { width: 64px; height: 34px; }
.wiz-cat-card .wiz-cat-ill svg { width: 100%; height: 100%; }
.wiz-cat-card .wiz-cat-ill img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.wiz-cat-card b { font-size: 14px; font-weight: 600; }
.wiz-cat-card span { font-size: 11.5px; color: var(--ink-faint); line-height: 1.4; }
.wiz-cat-card.active { border-color: var(--blue); background: var(--blue-tint); }
.wiz-cat-card.active b { color: var(--blue); }
.wiz-skip-link {
  display: block; text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--ink-sub); text-decoration: underline; text-underline-offset: 3px;
}

.wiz-pet-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; margin-top: 26px;
}
.wiz-pet-card b { font-size: 14px; font-weight: 600; display: block; }
.wiz-pet-card span { font-size: 12px; color: var(--ink-faint); }
.wiz-switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line); flex: none; }
.wiz-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.wiz-switch.on { background: var(--blue); }
.wiz-switch.on::after { transform: translateX(18px); }
.wiz-opt-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; justify-content: center; }
.wiz-opt-chip {
  border: 1.5px solid var(--line); border-radius: 20px; padding: 9px 14px;
  font-size: 13px; font-weight: 600; color: var(--ink-sub); display: inline-flex; align-items: center; gap: 6px;
}
.wiz-opt-chip.active { border-color: var(--blue); background: var(--blue-tint); color: var(--blue); }

/* 항목별 박스 카드 — 체크 전에는 옅은 회색으로 흐리게(취소 내역 느낌), 체크되면 흰 박스로 살아난다 */
.wiz-checklist { display: grid; gap: 10px; max-width: 330px; margin: 0 auto; width: 100%; }
.wiz-checklist li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 600; color: var(--ink-faint);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 15px 16px;
  opacity: 0.65;
  transition: background 0.25s, color 0.25s, opacity 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.wiz-checklist li.done {
  color: var(--ink);
  background: var(--card);
  border-color: transparent;
  box-shadow: var(--shadow-card);
  opacity: 1;
}
/* 네모난 회색 빈 체크박스 → 체크되면 초록 체크가 켜짐 */
.wiz-check-dot {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--card); border: 1.5px solid #c3cad1;
  display: grid; place-items: center; flex: none;
  color: var(--green-ink);
  transition: border-color 0.2s, background 0.2s;
}
.wiz-checklist li.done .wiz-check-dot { border-color: var(--green); background: var(--green-bg); animation: wizPop 0.3s; }
.wiz-check-dot svg { width: 16px; height: 16px; opacity: 0; transition: opacity 0.15s; }
.wiz-checklist li.done .wiz-check-dot svg { opacity: 1; }
@keyframes wizPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.wiz-match-result { text-align: center; margin-top: 40px; animation: wizIn 0.3s ease; }
.wiz-match-result .wiz-result-icon { width: 56px; height: 56px; margin: 0 auto 14px; }
.wiz-match-result h2 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.wiz-match-result p { font-size: 13.5px; color: var(--ink-sub); line-height: 1.6; }
