@charset "utf-8";
/* =====================================================================
   숙박기간 캘린더 공용 스타일 — 실시간 예약(/reserve) 본문 + 메인 [언제 머무실까요?] 레이어 팝업
   동작: /js/reserve/stay-cal.js, 마크업: templates/reserve/fragments.html :: stayCal
   ===================================================================== */
.rsv-cal { margin-top: 14px; border: 1px solid #e5e0d6; border-radius: 6px; background: #fff; padding: 18px 20px 20px; }
.rsv-cal-head { text-align: center; margin-bottom: 14px; }
.rsv-cal-head .st { font-size: 16px; font-weight: 700; color: #222; min-height: 24px; }
.rsv-cal-head .st.pick { color: var(--ton-sun); }
.rsv-cal-head .st i { font-style: normal; margin-left: 6px; padding: 2px 10px; border-radius: 100px; background: var(--ton-brown); color: #fff; font-size: 13px; }
.rsv-cal-head .gd { margin-top: 2px; font-size: 13px; color: #999; }
.rsv-cal-body { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.rsv-cal-nav { position: absolute; top: -4px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: var(--ton-brown); font-size: 18px; line-height: 1; z-index: 2; }
.rsv-cal-nav:disabled { opacity: .3; cursor: default; }
.rsv-cal-nav.prev { left: 0; } .rsv-cal-nav.next { right: 0; }
.rsv-month h4 { text-align: center; font-size: 17px; font-weight: 700; color: #222; height: 28px; margin-bottom: 8px; font-family: Poppins, var(--ton-k-font); }
.rsv-month table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rsv-month th { height: 30px; background: #f6f3ee; font-size: 12px; font-weight: 400; color: #666; }
.rsv-month th:first-child { color: var(--ton-sun); } .rsv-month th:last-child { color: var(--ton-sat); }
.rsv-month td { padding: 2px 0; text-align: center; vertical-align: top; }
.rsv-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; min-height: 56px; padding: 4px 0 2px; border: 0; background: none; color: #222; font-size: 14px; line-height: 1.3; }
.rsv-day .num { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 500; position: relative; z-index: 1; }
.rsv-day .sub { font-size: 10px; color: #a08a60; letter-spacing: -.3px; min-height: 13px; white-space: nowrap; }
.rsv-day.sun .num, .rsv-day.hol .num { color: var(--ton-sun); }
.rsv-day.sat .num { color: var(--ton-sat); }
.rsv-day:disabled { cursor: default; }
.rsv-day.off .num { color: #ccc !important; }
.rsv-day.off .sub { color: #bbb; }
.rsv-day.full .sub { color: #c55; }
.rsv-day.in-range::before, .rsv-day.hover-range::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 32px; background: var(--ton-hl); }
.rsv-day.hover-range::before { background: #f1ebdf; }
.rsv-day.ci::before { left: 50%; } .rsv-day.co::before { right: 50%; }
.rsv-day.ci.co::before { display: none; }
.rsv-day.ci .num, .rsv-day.co .num { background: var(--ton-brown); color: #fff !important; font-weight: 700; }
.rsv-day .lb { font-size: 10px; color: var(--ton-sun); font-weight: 700; min-height: 13px; }
.rsv-day:not(:disabled):hover .num { box-shadow: 0 0 0 1px var(--ton-brown) inset; }
.rsv-cal-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; margin-top: 10px; font-size: 12px; color: #888; }
.rsv-cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; background: var(--ton-brown); }
.rsv-cal-legend .l-range::before { background: var(--ton-hl); border-radius: 2px; }
.rsv-cal-legend .l-off::before { background: #ddd; }
.rsv-cal-note { margin-top: 10px; font-size: 13px; color: #888; }
.rsv-cal-loading { position: absolute; inset: 0; background: rgba(255,255,255,.6); display: none; align-items: center; justify-content: center; z-index: 3; }
.rsv-cal.loading .rsv-cal-loading { display: flex; }

/* 레이어 팝업(메인 날짜 검색) */
.ton-calpop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.55); }
.ton-calpop[hidden] { display: none; }
.ton-calpop-box { position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 8px; padding: 24px 24px 20px; box-sizing: border-box; color: #222; }
.ton-calpop-tit { font-size: 18px; font-weight: 700; padding-right: 40px; }
.ton-calpop-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: #555; }
.ton-calpop .rsv-cal { margin-top: 12px; border: 0; padding: 0; }
body.ton-calpop-open { overflow: hidden; }

@media (max-width: 768px) {
  .rsv-cal { padding: 14px 10px; }
  .rsv-cal-body { grid-template-columns: 1fr; }
  .rsv-cal-body .rsv-month + .rsv-month { display: none; }
  /* 팝업: 모바일은 화면 전체 레이어 */
  .ton-calpop { padding: 0; align-items: stretch; }
  .ton-calpop-box { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 18px 14px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
  .ton-calpop .rsv-cal { flex: 1; }
}
