/* Dates and guests dialogs, used by the unit and confirm-booking pages */
.modal-backdrop{ position: fixed; inset: 0; background: rgba(25,19,17,.5); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 20000; }
.modal-backdrop.show{ display: flex; animation: overlayIn .2s ease; }
.modal-card{ width: min(860px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(25,19,17,.24); padding: 28px; animation: modalUp .3s var(--ease); }
.guest-card{ width: min(480px, 100%); }
.modal-head{ display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.modal-title{ font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.modal-sub{ font-size: 15px; color: var(--muted); margin-top: 3px; }
.modal-mini-inputs{ display: flex; border: 1px solid #CFC5B8; border-radius: var(--r-sm); overflow: hidden; }
.mini-field{ padding: 9px 14px; min-width: 132px; }
.mini-field + .mini-field{ border-left: 1px solid #CFC5B8; }
.mini-label{ font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.mini-value{ font-size: 14.5px; color: var(--muted); }

.cal-nav{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-arrow{ width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--text); transition: background-color .15s; flex-shrink: 0; }
.cal-arrow:hover{ background: var(--hover); }
.cal-months{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; flex: 1; justify-items: center; }
.cal-month-title{ font-weight: 600; font-size: 15.5px; color: var(--text); }
.cal-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cal{ width: 100%; }
.cal .dow{ display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12.5px; color: var(--muted); padding: 6px 0; text-align: center; font-weight: 500; }
.cal .days{ display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; padding-top: 4px; }
.day{ height: 42px; border-radius: 999px; display: grid; place-items: center; font-size: 14.5px; font-weight: 500; cursor: pointer; user-select: none; transition: background-color .12s, color .12s; }
.day:hover:not(.empty):not(.disabled):not(.past):not(.booked):not(.selected){ box-shadow: inset 0 0 0 1.5px var(--text); }
.day.empty{ cursor: default; }
.day.disabled, .day.past, .day.booked{ color: #B9AEA3; font-weight: 400; cursor: not-allowed; text-decoration: line-through; }
.day.in-range{ background: var(--hover); border-radius: 0; }
.day.selected{ background: var(--btn); color: #FAF7F2; font-weight: 600; }

.modal-actions{ display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.guest-row{ display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.guest-title{ font-size: 16px; font-weight: 600; color: var(--text); }
.guest-sub{ color: var(--muted); margin-top: 1px; font-size: 14px; }
.qty{ display: flex; align-items: center; gap: 12px; }
.qty-btn{ width: 34px; height: 34px; border-radius: 999px; border: 1px solid #B9AEA3; background: #fff; cursor: pointer; color: var(--text); display: grid; place-items: center; transition: border-color .15s, transform .18s var(--spring); }
.qty-btn:hover:not(:disabled){ border-color: var(--text); }
.qty-btn:active:not(:disabled){ transform: scale(.92); }
.qty-btn:disabled{ opacity: .35; cursor: not-allowed; }
.qty-val{ width: 22px; text-align: center; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.guest-note{ margin: 16px 0 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

.skel{ background: rgba(94,80,72,.08); border-radius: 6px; position: relative; overflow: hidden; color: transparent !important; }
.skel::after{ content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer{ 100%{ transform: translateX(100%); } }

@media (max-width: 1024px){
  .modal-card{ width: min(500px, 100%); padding: 22px; }
  #calMonthB, #calB{ display: none; }
  .cal-months, .cal-grid{ grid-template-columns: 1fr; gap: 0; }
  .modal-head{ flex-direction: column; gap: 14px; }
  .modal-mini-inputs{ width: 100%; }
  .mini-field{ flex: 1; min-width: 0; }
}
@media (max-width: 600px){
  .modal-backdrop{ padding: 16px; }
  .modal-card{ width: 100%; padding: 18px; max-height: 88dvh; }
  .modal-actions .btn{ flex: 1; }
}
