/**
 * 경주시티투어 예약 페이지 전용 스타일
 * index.php 모듈 분리 시 head에서 로드
 */
/* Custom scrollbar for modal content */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #e2e8f0;
  border-radius: 20px;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #374151;
}
/* Tour product slider */
.tour-slider-container {
  position: relative;
}
.tour-slider {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem;
}
.tour-slider::-webkit-scrollbar {
  display: none;
}
.tour-card {
  flex: 0 0 calc((100% - 3.75rem) / 6);
  min-width: 130px;
  max-width: 150px;
}
@media (max-width: 768px) {
  .tour-card {
    flex: 0 0 calc((100% - 1.5rem) / 3);
    min-width: 100px;
    max-width: 130px;
  }
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.slider-btn:hover {
  background: #0d9fe7;
  border-color: #0d9fe7;
  color: white;
}
.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.slider-btn.prev {
  left: -16px;
}
.slider-btn.next {
  right: -16px;
}
/* 확인 모달 표시 시 Tailwind .hidden 우선 덮어쓰기 */
#confirm-modal.is-open,
#confirm-back-modal.is-open,
#refresh-modal.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ========== 예약/조회 상단 헤더·스테퍼 (모바일 정리) ========== */
.booking-header {
  flex-wrap: wrap;
}
@media (max-width: 639px) {
  .booking-header {
    gap: 0.75rem;
  }
  .booking-stepper {
    width: 100%;
    justify-content: center;
  }
}
.booking-stepper .step-circle {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
}
@media (min-width: 640px) {
  .booking-stepper .step-circle {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

/* 푸터 이전화면 버튼 (PC/모바일 공통 왼쪽 하단) */
.booking-footer .btn-prev {
  flex: 0 0 auto;
}
/* Step1 푸터: 모바일에서 현재 선택상황을 위쪽 한 줄로 분리 */
@media (max-width: 639px) {
  .booking-footer-step1 {
    flex-wrap: wrap;
  }
  .booking-footer-step1 .btn-prev-step1.hidden {
    display: none !important;
  }
  .booking-footer-step1 [id="selection-status"] {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}
.booking-footer #next-step-btn,
.booking-footer button[onclick*="submitBooking"] {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 639px) {
  .booking-footer #next-step-btn,
  .booking-footer button[onclick*="submitBooking"] {
    flex: 1 1 auto;
  }
}

/* 결제 모달·완료 화면 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#payment-card-modal:not(.hidden),
#payment-completion-screen:not(.hidden) {
  display: flex !important;
}

/* 개인정보 활용 동의 모달: 줄바꿈·가독성 */
.privacy-modal-content {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.7;
}
.privacy-modal-content br {
  content: "";
  display: block;
  margin-bottom: 0.25em;
}

/* 결제 수단 선택: 체크된 옵션에 테두리·배경·색상 적용 (primary #0d9fe7) */
.payment-option-label {
  box-shadow: none;
}
.payment-option-label:has(input:checked) {
  border-width: 2px;
  border-color: #0d9fe7;
  background-color: rgba(13, 159, 231, 0.05);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.dark .payment-option-label:has(input:checked) {
  background-color: rgba(13, 159, 231, 0.1);
}
.payment-option-label:has(input:checked) .payment-option-text {
  font-weight: 700;
  color: #0f172a;
}
.dark .payment-option-label:has(input:checked) .payment-option-text {
  color: #fff;
}
.payment-option-label:has(input:checked) .payment-option-icon {
  color: #0d9fe7;
}

/* Easy payment 옵션: 영문 모드 전용 노출 */
.payment-option-intl-only { display: none !important; }
html.booking-locale-en .payment-option-intl-only { display: flex !important; }

/* 무통장(은행송금): 국문 예약에서만 노출 (영문은 카드·간편결제만) */
html.booking-locale-en .payment-option-ko-only { display: none !important; }

/* ========== 간편결제 provider 버튼 그리드 (해외 간편결제 모달) ========== */
.intlpay-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .intlpay-provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.intlpay-provider-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 0.75rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.intlpay-provider-btn:hover:not(:disabled) {
  border-color: #0d9fe7;
  box-shadow: 0 4px 12px rgba(13, 159, 231, 0.15);
  transform: translateY(-1px);
}
.intlpay-provider-btn:disabled,
.intlpay-provider-btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: #f8fafc;
  color: #94a3b8;
  border-color: #e5e7eb;
  opacity: 0.85;
}
.intlpay-provider-btn .intlpay-provider-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.intlpay-provider-btn .intlpay-provider-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: #94a3b8;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.intlpay-provider-btn.is-active .intlpay-provider-badge {
  background: #0d9fe7;
}
.dark .intlpay-provider-btn {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
.dark .intlpay-provider-btn:disabled,
.dark .intlpay-provider-btn[aria-disabled="true"] {
  background: #0b1220;
  color: #64748b;
}

/* ========== 5단계 버튼 그리드 (PC: 박스형 5개, 모바일: 세로 5개) ========== */
.step-buttons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  border: 2px solid #e2e8f0;
  background: white;
  color: #334155;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 120px;
  position: relative;
}
@media (max-width: 768px) {
  .step-buttons-grid {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }
  .step-buttons-grid .step-btn {
    flex-direction: row;
    min-height: 60px;
    padding: 0.375rem 0.5rem;
    gap: 0.5rem;
    border-radius: 0.5rem;
    justify-content: flex-start;
    text-align: left;
  }
  .step-buttons-grid .step-btn .step-btn-icon {
    font-size: 1rem;
    flex-shrink: 0;
  }
  .step-buttons-grid .step-btn .step-btn-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    line-height: 1.2;
  }
  .step-buttons-grid .step-btn .step-btn-text .step-btn-label {
    flex-shrink: 0;
    font-size: 0.7rem;
  }
  .step-buttons-grid .step-btn .step-btn-text .step-btn-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.25rem;
  }
  .step-buttons-grid .step-btn .step-btn-check {
    font-size: 1rem;
    flex-shrink: 0;
  }
}
.dark .step-btn {
  border-color: #475569;
  background: #1e293b;
  color: #e2e8f0;
}
.step-btn:hover {
  border-color: #0d9fe7;
  background: rgba(13, 159, 231, 0.05);
  color: #0d9fe7;
}
.dark .step-btn:hover {
  background: rgba(13, 159, 231, 0.1);
}
.step-btn-pending .step-btn-icon {
  display: flex;
}
.step-btn-pending .step-btn-check {
  display: none;
}
.step-btn-completed {
  border-color: #0d9fe7;
  background: rgba(13, 159, 231, 0.1);
  color: #0d9fe7;
}
.dark .step-btn-completed {
  background: rgba(13, 159, 231, 0.15);
}
.step-btn-completed .step-btn-icon {
  display: none;
}
.step-btn-completed .step-btn-check {
  display: flex !important;
  color: #0d9fe7;
}
.step-btn-label {
  font-size: 0.75rem;
  opacity: 0.8;
}
.step-btn-title {
  font-size: 0.875rem;
  line-height: 1.3;
}
.step-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0d9fe7;
}
.step-btn-check {
  font-size: 1.5rem;
}

/* 투어 모달 리스트: 텍스트 전용 단일 열 */
.tour-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
  padding: 0.125rem;
}
.tour-card-modal {
  width: 100%;
  min-width: 0;
}
.tour-card-modal h4 {
  letter-spacing: -0.01em;
}
.tour-card-modal.ring-2 {
  border-color: transparent;
}

/* 현재 선택 내역 - 결제 예정 금액 상세 */
.summary-total-breakdown {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b7280;
}
.dark .summary-total-breakdown {
  color: #9ca3af;
}

/* 현재 선택 내역 - 선택된 값 스타일 */
#selection-summary .summary-value-selected {
  font-weight: 700;
  color: #0d9fe7;
}
.dark #selection-summary .summary-value-selected {
  color: #38bdf8;
}

/* 단계 모달 */
.step-modal {
  display: none;
}
.step-modal:not(.hidden) {
  display: flex !important;
}
.step-modal-content {
  animation: fadeIn 0.3s ease-out;
}

/* ========== 예약 인트로 (언어 선택) ========== */
.booking-intro {
  min-height: 100dvh;
}
/* 모바일: 로그인 바는 패널 상단 흐름·중앙 / PC: 우측 상단 고정 */
.booking-intro-panel .booking-auth-bar {
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  padding: 0.15rem 0.5rem 0.35rem;
  margin: 0 auto 0.15rem;
  position: relative;
  flex-shrink: 0;
  order: -1;
}
@media (min-width: 640px) {
  .booking-intro-panel .booking-auth-bar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: auto;
    width: auto;
    max-width: none;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    order: 0;
    z-index: 110;
  }
}
/* 홈 링크(cmtour.co.kr 복귀). 배치 규칙은 위 .booking-auth-bar 와 대칭 */
.booking-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem 0.6rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.booking-home-link:hover,
.booking-home-link:focus {
  background: rgba(15, 23, 42, 0.78);
  border-color: #fff;
  color: #fff;
}
.booking-home-link__icon {
  font-size: 1.6rem;
  line-height: 1;
}
/* 640px 미만: 인트로 패널 맨 윗줄 가운데 (로그인 바 order:-1 보다 앞) */
.booking-intro-panel .booking-home-link {
  order: -2;
  align-self: center;
  flex-shrink: 0;
  margin: 0 auto 0.6rem;
}
@media (min-width: 640px) {
  /* 로그인 바(우측 상단)와 대칭으로 좌측 상단 고정 */
  .booking-intro-panel .booking-home-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 110;
    margin: 0;
    font-size: 1.125rem;
    padding: 0.7rem 1.5rem 0.7rem 1.1rem;
  }
  .booking-home-link__icon {
    font-size: 1.75rem;
  }
}
/* 한글·영문 헤더 나란히 */
.booking-intro-head-bilingual__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.65rem;
  text-align: left;
  align-items: stretch;
}
@media (min-width: 640px) {
  .booking-intro-head-bilingual__grid {
    gap: 0.75rem 1rem;
  }
}
.booking-intro-head-bilingual__col {
  padding: 0.55rem 0.6rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-width: 0;
}
@media (min-width: 640px) {
  .booking-intro-head-bilingual__col {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
  }
}
.booking-intro-head-bilingual__title {
  margin: 0 0 0.3rem;
  font-size: clamp(0.78rem, 3.1vw, 1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) {
  .booking-intro-head-bilingual__title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }
}
@media (min-width: 768px) {
  .booking-intro-head-bilingual__title {
    font-size: 1.35rem;
  }
}
.booking-intro-head-bilingual__sub {
  margin: 0;
  font-size: clamp(0.65rem, 2.5vw, 0.82rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  .booking-intro-head-bilingual__sub {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}
.booking-intro-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}
@media (min-width: 640px) {
  .booking-intro-card {
    padding: 1.75rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
}
@media (min-width: 768px) {
  .booking-intro-card {
    padding: 2rem 2.25rem;
    border-radius: 2rem;
  }
}
.booking-intro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px -16px rgba(13, 159, 231, 0.2);
  border-color: rgba(13, 159, 231, 0.35);
}
@media (max-width: 639px) {
  .booking-intro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(13, 159, 231, 0.18);
  }
}
.booking-intro-flag-wrap {
  display: block;
  line-height: 0;
  background: #f1f5f9;
}
.booking-intro-flag-wrap--lg {
  width: 4rem;
  height: 2.67rem;
}
@media (min-width: 640px) {
  .booking-intro-flag-wrap--lg {
    width: 5.5rem;
    height: 3.67rem;
  }
}
@media (min-width: 768px) {
  .booking-intro-flag-wrap--lg {
    width: 6.5rem;
    height: 4.33rem;
  }
}
.booking-intro-flag-wrap:not(.booking-intro-flag-wrap--lg) {
  width: 2.5rem;
  height: 1.67rem;
}
@media (min-width: 640px) {
  .booking-intro-flag-wrap:not(.booking-intro-flag-wrap--lg) {
    width: 3.25rem;
    height: 2.17rem;
  }
}
@media (min-width: 768px) {
  .booking-intro-flag-wrap:not(.booking-intro-flag-wrap--lg) {
    width: 3.75rem;
    height: 2.5rem;
  }
}
.booking-intro-svg-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.booking-intro-svg-flag--sm {
  min-height: 100%;
}
#booking-shell:not(.hidden) {
  display: flex !important;
}

/* 전역 배경: cmtour 메인 비주얼 Swiper (fade) */
#booking-page-bg {
  background-color: #0f172a;
}
.booking-bg-swiper {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}
.booking-bg-swiper .swiper-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.booking-bg-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  transform: scale(1.04);
  will-change: opacity;
}

/* 나의예약조회: 텍스트 링크가 아닌 배지형 버튼 (배경 사진 위 가독성 확보) */
.booking-auth-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: linear-gradient(135deg, #12a5f0 0%, #0d9fe7 55%, #0b7cb5 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s ease, border-color 0.2s ease;
}
.booking-auth-badge-btn:hover,
.booking-auth-badge-btn:focus {
  filter: brightness(1.08);
  border-color: #fff;
  color: #fff;
}
.booking-auth-badge-btn__icon {
  font-size: 1.05rem;
  line-height: 1;
}
@media (min-width: 640px) {
  .booking-auth-badge-btn {
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    font-size: 0.875rem;
  }
  .booking-auth-badge-btn__icon {
    font-size: 1.15rem;
  }
}
/* 아주 좁은 화면에서는 영문 병기를 줄바꿈 없이 유지하기 위해 살짝 축소 */
@media (max-width: 380px) {
  .booking-auth-badge-btn {
    padding: 0.35rem 0.6rem 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
}
/* 인트로 회원 링크 (바 레이아웃은 위 .booking-intro-panel .booking-auth-bar) */
.booking-auth-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.booking-auth-link:hover {
  color: #fff;
}
a.booking-auth-link--a {
  text-decoration: underline;
}
.booking-intro-card--locked {
  opacity: 0.58;
  cursor: not-allowed;
  filter: saturate(0.85);
}
.booking-intro-card--locked:hover {
  transform: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
}
body.booking-auth-modal-open {
  overflow: hidden;
}
.booking-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.booking-auth-modal.hidden {
  display: none !important;
}
.booking-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
/* 세션 종료 알림은 예약 셸·결제 모달(z-index 99999) 위에 떠야 한다 */
.booking-auth-modal--top {
  z-index: 100010;
}
.booking-auth-session-msg {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line; /* 안내 문구의 줄바꿈(\n) 유지 */
}
.booking-auth-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.35rem 1.35rem;
}
/* 아이디 로그인 + 소셜 버튼 동시 배치 시 폭 확장 */
.booking-auth-modal__panel--login {
  max-width: 26rem;
  max-height: min(90vh, 36rem);
  overflow-y: auto;
}
.booking-auth-modal__panel--wide {
  max-width: 36rem;
  max-height: min(85vh, 32rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* 나의 예약: 모바일·소형 화면에서 가로로 넉넉히 (작은 22rem 기본에서 확장) */
.booking-auth-modal__panel--orders {
  max-width: min(100vw - 0.4rem, 42rem);
  width: min(100%, 42rem);
  /**
   * 검색 결과 유무에 따라 모달 크기가 출렁이지 않도록 높이를 고정한다.
   * (결과 0건일 때 패널이 내용 높이로 쪼그라들던 문제)
   */
  height: min(88vh, 40rem);
  max-height: min(88vh, 40rem);
  min-height: 0;
  padding: 0.9rem 0.8rem 1rem;
}
@media (min-width: 480px) {
  .booking-auth-modal__panel--orders {
    padding: 1.1rem 1.1rem 1.2rem;
  }
}
.booking-auth-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.booking-auth-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}
.booking-auth-modal__x {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}
.booking-auth-modal__x:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.booking-auth-modal__error {
  font-size: 0.875rem;
  color: #b91c1c;
  margin: 0 0 0.75rem;
}
.booking-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.booking-auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}
.booking-auth-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.9375rem;
}
.booking-auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  cursor: pointer;
}
.booking-auth-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.booking-auth-btn {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.booking-auth-btn--ghost {
  background: #f1f5f9;
  color: #475569;
}
.booking-auth-btn--primary {
  background: #0d9fe7;
  color: #fff;
}
.booking-auth-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
/**
 * 결과 0건·로딩 중에도 남은 공간을 채워 모달 높이를 그대로 유지한다.
 * .hidden 이 style.css 에서 display:none !important 라 숨김 처리와 충돌하지 않는다.
 */
.booking-auth-orders-loading,
.booking-auth-orders-empty {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}
/* 결과가 없을 때 빈 목록이 공간을 나눠 갖지 않도록 → 안내문이 정중앙에 오게 */
.booking-auth-orders-list:empty {
  flex: 0 0 auto;
}
.booking-auth-orders-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  margin-top: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------------------------
   나의예약조회: 기간 검색 UI + 페이지네이션
   모달 패널이 flex column 이므로 검색·페이저는 shrink 되지 않게 두고
   가운데 목록(.booking-auth-orders-list)만 스크롤되게 한다.
--------------------------------------------------------------------------- */
.booking-orders-search {
  flex-shrink: 0;
  padding: 0.6rem 0.65rem 0.7rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.booking-orders-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
}
.booking-orders-quick__btn {
  padding: 0.45rem 0.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.booking-orders-quick__btn:hover {
  border-color: #0d9fe7;
  color: #0d9fe7;
}
.booking-orders-quick__btn.is-active {
  background: #0d9fe7;
  border-color: #0d9fe7;
  color: #fff;
}
.booking-orders-product {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.5rem;
}
.booking-orders-product__select {
  width: 100%;
  padding: 0.42rem 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 600;
}
.booking-orders-range {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.booking-orders-range__field {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}
.booking-orders-range__label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
}
.booking-orders-range__input {
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.8125rem;
  font-family: inherit;
}
.booking-orders-range__tilde {
  padding-bottom: 0.5rem;
  color: #94a3b8;
  font-weight: 700;
}
.booking-orders-range__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  padding: 0.45rem 0.7rem;
  border: none;
  border-radius: 0.5rem;
  background: #0d9fe7;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}
.booking-orders-range__submit:hover {
  background: #0b8bcc;
}
.booking-orders-range__submit .material-symbols-outlined {
  font-size: 1.05rem;
}
.booking-orders-summary {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
/* 검색 결과 건수만 강조 */
.booking-orders-summary__count {
  color: #0d9fe7;
  font-size: 0.875rem;
  font-weight: 800;
}
.booking-orders-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding-top: 0.6rem;
  margin-top: 0.4rem;
  border-top: 1px solid #e2e8f0;
}
.booking-orders-pager.hidden {
  display: none;
}
.booking-orders-pager__btn {
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  background: #fff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.booking-orders-pager__btn:hover:not(:disabled):not(.is-current) {
  border-color: #0d9fe7;
  color: #0d9fe7;
}
.booking-orders-pager__btn.is-current {
  background: #0d9fe7;
  border-color: #0d9fe7;
  color: #fff;
  cursor: default;
}
.booking-orders-pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.booking-orders-pager__gap {
  padding: 0 0.15rem;
  color: #94a3b8;
}
/* 좁은 화면: 빠른 기간 2열, 날짜는 세로로 쌓고 검색 버튼은 전체 폭 */
@media (max-width: 479px) {
  .booking-orders-quick {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-orders-range {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .booking-orders-range__field {
    flex: 1 1 calc(50% - 0.8rem);
  }
  .booking-orders-range__submit {
    flex: 1 1 100%;
    justify-content: center;
    padding: 0.55rem 0.7rem;
  }
  .booking-orders-pager__btn {
    min-width: 1.9rem;
    padding: 0.35rem 0.35rem;
  }
}
/* 아코디언: 예약 건별 요약/상세 */
.booking-auth-acc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.booking-auth-acc__item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  overflow: hidden;
}
.booking-auth-acc__trigger {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 0.7rem 0.75rem 0.8rem;
  font: inherit;
  color: #0f172a;
  cursor: pointer;
}
.booking-auth-acc__trigger:hover {
  background: #f1f5f9;
}
.booking-auth-acc__trigger[aria-expanded="true"] {
  border-bottom: 1px solid #e2e8f0;
}
.booking-auth-acc__trigger-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.booking-auth-acc__subj {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}
/* 상세내역보기 ↔ 다시 닫기 + 화살표 (버튼형) */
.booking-auth-acc__expand-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex-shrink: 0;
  max-width: 11rem;
  padding: 0.32rem 0.5rem 0.32rem 0.6rem;
  border: 1.5px solid #0d9fe7;
  border-radius: 9999px;
  background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
  box-shadow: 0 1px 2px rgba(13, 159, 231, 0.15);
  line-height: 1.2;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.booking-auth-acc__trigger:hover .booking-auth-acc__expand-cta {
  background: #e0f2fe;
  border-color: #0b8bcc;
  box-shadow: 0 2px 6px rgba(13, 159, 231, 0.22);
}
.booking-auth-acc__trigger[aria-expanded="true"] .booking-auth-acc__expand-cta {
  background: #f0f9ff;
  border-color: #0b8bcc;
}
.booking-auth-acc__cta-txt {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0d9fe7;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.booking-auth-acc__cta-close {
  display: none;
}
.booking-auth-acc__trigger[aria-expanded="true"] .booking-auth-acc__cta-open {
  display: none;
}
.booking-auth-acc__trigger[aria-expanded="true"] .booking-auth-acc__cta-close {
  display: inline;
}
.booking-auth-acc__chev {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  color: #0d9fe7;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 0.1rem;
  transform-origin: center;
  transition: transform 0.2s ease, color 0.15s ease;
}
.booking-auth-acc__trigger[aria-expanded="true"] .booking-auth-acc__chev {
  transform: rotate(90deg);
  color: #0369a1;
}
/* 접힘: 예약정보·예약자·이용요금·상태·결제 요약 */
.booking-auth-acc__summary {
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr);
  column-gap: 0.5rem;
  row-gap: 0.35rem;
  align-items: start;
  width: 100%;
  padding-top: 0.45rem;
  border-top: 1px solid #e2e8f0;
}
.booking-auth-acc__summary-row {
  display: contents;
}
.booking-auth-acc__sum-l {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.35;
  padding-top: 0.05rem;
}
.booking-auth-acc__sum-v {
  font-size: 0.78rem;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}
.booking-auth-acc__sum-v--em {
  font-weight: 800;
  color: #0d9fe7;
  font-size: 0.88rem;
}
.booking-auth-acc__sum-sch {
  display: block;
  color: #334155;
  font-size: 0.76rem;
}
.booking-auth-acc__status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0d9fe7;
  background: rgba(13, 159, 231, 0.1);
  padding: 0.12rem 0.45rem;
  border-radius: 0.35rem;
}
.booking-auth-acc__panel {
  display: none;
  padding: 0.7rem 0.8rem 0.85rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  color: #334155;
}
.booking-auth-acc__panel[hidden] {
  display: none !important;
}
.booking-auth-acc__panel.is-open {
  display: block !important;
}
.booking-auth-dl {
  margin: 0 0 0.65rem;
}
.booking-auth-dl__row {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e2e8f0;
  align-items: flex-start;
}
.booking-auth-dl__row:last-of-type {
  border-bottom: none;
}
.booking-auth-dl__dt {
  flex: 0 0 5.2rem;
  font-weight: 700;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.4;
}
.booking-auth-dl__dd {
  flex: 1;
  margin: 0;
  min-width: 0;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.8125rem;
}
.booking-auth-order-rooms {
  margin: 0.45rem 0 0.65rem;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #334155;
}
.booking-auth-acc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.booking-auth-acc__actions .booking-auth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  text-decoration: none;
}
.booking-auth-acc__actions .booking-auth-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0d9fe7;
}
.booking-auth-acc__actions .booking-auth-chip--primary {
  background: #0d9fe7;
  border-color: #0d9fe7;
  color: #fff;
}
.booking-auth-acc__actions .booking-auth-chip--primary:hover {
  background: #0b8bcc;
  border-color: #0b8bcc;
  color: #fff;
}
.booking-auth-acc__actions .booking-auth-chip--danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff1f2;
}
.booking-auth-acc__form {
  margin-top: 0.65rem;
  padding: 0.5rem 0.55rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.booking-auth-acc__form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}
.booking-auth-acc__form input {
  width: 100%;
  font-size: 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  padding: 0.35rem 0.5rem;
}
@media print {
  .booking-auth-modal__backdrop,
  .booking-auth-modal__head .booking-auth-modal__x,
  .booking-auth-acc__trigger,
  .booking-auth-acc__actions,
  .booking-auth-acc__form {
    display: none !important;
  }
  .booking-auth-modal,
  .booking-auth-modal__panel--orders,
  .booking-auth-acc__panel,
  .booking-auth-acc__panel.is-open {
    position: static !important;
    height: auto !important; /* 화면용 고정 높이가 인쇄에 끌려오지 않도록 */
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }
}

/* 로그인 모달: 그누보드 #sns_login(skin/social/style.css) 보완 — 좌·우 여백만 조정 */
#booking-login-modal #sns_login {
  border: 0;
  margin-top: 0.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid #e2e8f0;
  clear: both;
  background: transparent;
}
#booking-login-modal #sns_login h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #475569;
  text-align: left;
  margin: 0 0 0.35rem;
  padding: 0;
}

/* ===== 댕댕투어(반려견 동반) 전용 ===== */
/* 영문(해외) 로케일에서는 댕댕투어 상품을 숨긴다 */
html.booking-locale-en .tour-card-modal[data-with-pet="1"] { display: none !important; }

/* 반려인 음료 select: ICE/HOT 색상 구분 (레거시 .drink-select 이식) */
.drink-select optgroup.hot-group { background-color: #fff5f5; color: #d32f2f; font-weight: bold; }
.drink-select optgroup.ice-group { background-color: #f0f8ff; color: #1976d2; font-weight: bold; }
.drink-select option.hot-option { background-color: #ffebee; color: #d32f2f; padding: 8px 12px; }
.drink-select option.ice-option { background-color: #e3f2fd; color: #1976d2; padding: 8px 12px; }
.drink-select option.hot-option:hover { background-color: #ffcdd2 !important; color: #b71c1c !important; }
.drink-select option.ice-option:hover { background-color: #bbdefb !important; color: #0d47a1 !important; }
@-moz-document url-prefix() {
  .drink-select option.hot-option { background-color: #ffebee; color: #d32f2f; }
  .drink-select option.ice-option { background-color: #e3f2fd; color: #1976d2; }
}
