/* ==========================================================================
   투어제주 렌터카 — 공통 디자인 시스템
   UI 스타일 가이드 기준: Primary #2440e8 / Deep #1a2fb8 / Pretendard
   모바일 360~430px Fluid, 데스크톱은 중앙 앱 프레임 + 브랜드 스테이지
   ========================================================================== */

:root {
  /* Color — 스타일 가이드 규격 */
  --blue: #2440e8;
  --blue-deep: #1a2fb8;
  --blue-tint: #e9edfd;
  --blue-tint-2: #f3f5fe;
  --red: #ff6b6b;
  --red-bg: #fff0f0;
  --warn-bg: #fff9e6;
  --warn-text: #ff8a00;
  --ink: #111111;
  --ink-sub: #666666;
  --ink-faint: #9aa3ad;
  --bg: #f1f3f5;
  --card: #ffffff;
  --line: #e6e9ed;
  --input-bg: #f8f9fa;

  /* Radius / Shadow */
  --r-card: 12px;
  --r-btn: 8px;
  --r-btn-sm: 6px;
  --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 (가이드 pt → px 근사) */
  --fs-h1: 20px;
  --fs-h2: 16px;
  --fs-body1: 14px;
  --fs-body2: 13px;
  --fs-caption: 11px;

  --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; }

: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; }
}

/* --------------------------------------------------------------------------
   데스크톱 스테이지: 배경 사진 + 좌측 브랜드 카피, 중앙-우측 앱 프레임
   -------------------------------------------------------------------------- */

.stage-brand { display: none; }

.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) {
  body {
    background: #0b2038 url("../assets/coastal-drive.jpg") center / cover no-repeat fixed;
  }
  body::before {
    content: "";
    position: fixed; inset: 0;
    background: linear-gradient(100deg, rgba(6, 24, 44, 0.82) 12%, rgba(6, 24, 44, 0.45) 46%, rgba(6, 24, 44, 0.62) 100%);
  }
  .stage-brand {
    display: block;
    position: fixed;
    left: max(48px, calc(50vw - 620px));
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 380px;
    z-index: 0;
  }
  .stage-brand .stage-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
  .stage-brand .stage-logo svg { width: 44px; height: 44px; }
  .stage-brand .stage-logo strong { font-size: 24px; font-weight: 800; }
  .stage-brand .stage-logo span { font-size: 12px; opacity: 0.75; display: block; }
  .stage-brand h2 { font-size: 34px; line-height: 1.32; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
  .stage-brand p { font-size: 15px; line-height: 1.65; opacity: 0.85; }
  .stage-brand .stage-badges { display: flex; gap: 8px; margin-top: 26px; }
  .stage-brand .stage-badges span {
    font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(4px);
  }
  .app {
    margin: 28px auto 28px calc(50vw + 40px);
    min-height: calc(100dvh - 56px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 14, 30, 0.55);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
  }
  .app > * { flex: none; }
  .app > .wrap { flex: 1 0 auto; align-content: start; }
  .app > .tabbar,
  .app > .cta-bar { margin-top: auto; position: sticky; bottom: 0; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .app { margin-left: auto; margin-right: 48px; }
}

/* --------------------------------------------------------------------------
   헤더
   -------------------------------------------------------------------------- */

.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: 17px; font-weight: 800; }
.gnb .brand small { font-size: 10px; opacity: 0.72; display: block; line-height: 1.2; font-weight: 500; }
.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: 700; 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: 11px; font-weight: 600; color: var(--ink-faint);
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--blue); }

/* --------------------------------------------------------------------------
   공통 컴포넌트
   -------------------------------------------------------------------------- */

.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: 700; 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: 700; margin: 0; }

/* 버튼 */
.btn-primary {
  width: 100%; height: 48px;
  background: var(--blue); color: #fff;
  font-weight: 700; 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: #1e39d6; }
.btn-primary:active { background: var(--blue-deep); }
.btn-primary:disabled { background: #c0caf7; 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: 700; 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: 700;
  padding: 6px 12px; border-radius: 999px;
}

.badge {
  display: inline-flex; align-items: center;
  font-size: var(--fs-caption); font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.badge.blue { background: var(--blue-tint); color: var(--blue); }
.badge.green { background: #e8f7ef; color: #12a154; }
.badge.gray { background: var(--bg); color: var(--ink-sub); }
.badge.red { background: var(--red-bg); color: var(--red); }

/* 사이트관리: 공지사항 / 혜택 및 이벤트 — 목록 */
.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: 800; 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: 700; 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: 800;
  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: 800;
  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: 500;
}
.notice svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; }

/* 예약 유의사항 (업체 관리 설정 연동) */
.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: 700; }
.notice-row-detail { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--ink-sub); white-space: pre-line; }

/* 업체 정보 접기/펼치기 */
.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; }

/* 입력 필드 */
.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: 500; }

/* 구분선 */
.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: 700; }
.amount-row.total .v { color: var(--blue); font-weight: 800; font-size: 18px; }
.amount-row.today .v { color: var(--blue); font-weight: 800; font-size: 16px; }
.amount-row.spot .v { font-weight: 500; color: var(--ink-sub); }

/* --------------------------------------------------------------------------
   메인 — 히어로 & 검색
   -------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: #05203c; }
.hero video, .hero > img { width: 100%; height: 240px; object-fit: cover; 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: 11px; font-weight: 700; 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: #37e08b; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero .hero-copy h1 { font-size: 23px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.hero .hero-copy p { font-size: 13px; opacity: 0.92; margin-top: 6px; font-weight: 500; }

/* 검색 카드 (히어로에 겹침) */
.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: 700; 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: 700; color: var(--blue); }
.when-btn small { font-size: 11px; 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: 700; }
.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); }

/* 날짜 탭 스트립 */
.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: 700; }
.date-tab span { font-size: 10px; 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: 800; }
.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: 800; }
.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: 800; line-height: 1.3; }
.car-card .car-title .car-fuel { margin-top: 2px; font-size: var(--fs-body2); font-weight: 800; 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: 11px; }
.vendor-row .vendor-price { text-align: right; flex: none; }
.vendor-row .vendor-price del { display: block; font-size: 10px; color: var(--ink-faint); }
.vendor-row .vendor-price b { font-size: 13px; font-weight: 700; }
.vendor-row .vendor-stock { flex: none; font-size: 10px; color: var(--red); font-weight: 700; width: 26px; text-align: right; }
.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: 700; }
.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: 10px; 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: 800; color: var(--ink); letter-spacing: -0.01em; }
.car-cta .price-final strong em { font-style: normal; font-size: 13px; font-weight: 700; }
.car-cta .btn-blue-sm { padding: 0 18px; height: 46px; border-radius: var(--r-btn); flex: none; }

/* 이벤트 스트립 배너 */
.promo-strip {
  background: linear-gradient(90deg, #1a2fb8, #2440e8);
  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: #ffe14d; font-weight: 800; }
.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: 800; line-height: 1.3; }
.book-hero .sub { font-size: var(--fs-body2); color: var(--ink-sub); margin-top: 3px; }
.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: 700; color: var(--blue); }
.book-period svg { color: var(--ink-faint); }

.cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.cond-grid li { display: flex; align-items: center; gap: 7px; font-size: var(--fs-body2); color: var(--ink); font-weight: 500; }
.cond-grid li svg { flex: none; color: var(--blue); }

.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: 500; }
.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: 800; }
.ins-card .ins-head .badge { font-size: 10px; }
.ins-card .ins-head .ins-right { margin-left: auto; font-size: var(--fs-body2); font-weight: 700; 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: 700; 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: 500;
}
.ins-table thead th { background: var(--input-bg); font-weight: 700; 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: 700; }
.ins-table td.no { color: var(--ink-faint); font-weight: 500; }
.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: 10px; font-weight: 700; 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: 700; }
.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: 11.5px; 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: 700; 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;
}
.cta-bar .cta-price { flex: none; display: grid; }
.cta-bar .cta-price small { font-size: 10px; color: var(--ink-sub); font-weight: 600; }
.cta-bar .cta-price strong { font-size: 19px; font-weight: 800; color: var(--blue); }
.cta-bar .btn-primary { flex: 1; }
.app.has-ctabar { padding-bottom: 96px; }
@media (min-width: 1024px) { .cta-bar { position: sticky; } }

/* --------------------------------------------------------------------------
   예약/결제 (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: 700; }

/* 가상계좌 확장 폼 */
.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: 500; }

.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: 800; color: var(--ink); }
.loading-screen .load-sub { font-size: 12.5px; color: var(--ink-sub); font-weight: 500; }
.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; } }

.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: 800; 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: 700; 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: 700; }
.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: 700; 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: 800; margin-bottom: 12px; }
.dt-weekrow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; font-size: 11px; font-weight: 700; 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.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: 800; 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-field { display: grid; gap: 4px; }
.dt-time-field span { font-size: 11px; font-weight: 700; color: var(--ink-sub); }
.dt-hint { font-size: 11px; color: var(--ink-faint); 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: 800; color: var(--blue); margin-top: 6px; }
.usage-greet .u-phone { font-size: 15px; font-weight: 700; color: var(--blue); }
.usage-amounts .amount-row .v { color: var(--blue); font-weight: 800; }
.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: 800; margin-bottom: 10px; }
.usage-sec-title .num { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.usage-addr { font-size: 13px; line-height: 1.6; }
.usage-addr b { font-weight: 700; }
.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: 800; 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: 800; 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: 11px; 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: 9px; font-weight: 800; background: var(--red); color: #fff; border-radius: 4px; padding: 2px 4px; }
.menu-cap { font-size: var(--fs-body2); font-weight: 700; color: var(--ink-sub); padding: 4px 6px 0; }

.menu-foot { text-align: center; font-size: 11px; color: var(--ink-faint); line-height: 1.7; padding: 10px 0 4px; }

/* ==========================================================================
   고급 필터 (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: 700; 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: 11px; font-weight: 800;
  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: 800; margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.adv-sec h4 small { font-size: 11px; font-weight: 500; color: var(--ink-faint); }
.adv-birth-row { display: flex; align-items: center; gap: 10px; }
.adv-birth-row .input { flex: 1; min-width: 0; }
.adv-age { font-size: 13px; font-weight: 800; color: var(--blue); white-space: nowrap; }

.adv-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 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: 700; }

/* 듀얼 레인지 슬라이더 — 트랙 하나에 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: 700; }
.range-lbl span { color: var(--ink-faint); }

.adv-reset {
  width: 100%; margin-top: 4px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card);
  font-size: 13px; font-weight: 700; color: var(--ink-sub);
}
.adv-reset:active { border-color: var(--blue); color: var(--blue); }
