/* ===== Overview camere (dentro sezione Alloggio) ===== */
.szb-room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.szb-room-card { background: var(--bg, #FAFAF8); border: 1px solid var(--stone, #E8E2D9); border-radius: 10px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.szb-room-card:hover { box-shadow: 0 14px 40px rgba(30,27,24,.08); transform: translateY(-3px); }
.szb-room-photo {
  height: 170px; background: linear-gradient(135deg, #D8CFC4, #C4B5A4);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: rgba(30,27,24,.25); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; flex-direction: column;
}
.szb-room-body { padding: 22px 20px; }
.szb-room-name { font-size: 1rem; font-weight: 500; color: var(--ink, #1E1B18); margin-bottom: 6px; }
.szb-room-desc { font-size: .8rem; font-weight: 300; color: var(--ink-m, #6B6258); line-height: 1.6; margin-bottom: 14px; }
.szb-room-price { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--terra, #B5795A); margin-bottom: 16px; }
.szb-room-price span { font-family: 'Outfit', sans-serif; font-size: .76rem; color: var(--ink-lt, #A89E94); font-weight: 300; }
.szb-room-btn {
  display: block; width: 100%; text-align: center; background: var(--ink, #1E1B18); color: #fff;
  padding: 11px; border-radius: 6px; border: none; cursor: pointer;
  font-size: .8rem; font-weight: 500; font-family: 'Outfit', sans-serif; transition: background .2s;
}
.szb-room-btn:hover { background: var(--ink-m, #6B6258); }

/* ===== MODALE ===== */
.szb-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(30,27,24,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .25s;
}
.szb-modal-overlay.open { display: flex; opacity: 1; }
.szb-modal {
  background: var(--bg, #FAFAF8); border-radius: 16px; max-width: 980px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative; padding: 48px;
  transform: translateY(20px) scale(.98); transition: transform .3s;
}
.szb-modal-overlay.open .szb-modal { transform: translateY(0) scale(1); }
.szb-modal-close {
  position: absolute; top: 20px; right: 20px; background: var(--white, #fff);
  border: 1px solid var(--stone, #E8E2D9); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-m, #6B6258);
  transition: background .2s; z-index: 10;
}
.szb-modal-close:hover { background: var(--stone, #E8E2D9); }

.szb-modal-head { margin-bottom: 36px; }
.szb-room-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white, #fff); border: 1px solid var(--stone, #E8E2D9);
  padding: 7px 16px; border-radius: 100px; font-size: .76rem; color: var(--ink-m, #6B6258); margin-bottom: 18px;
}
.szb-modal-title { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--ink, #1E1B18); }
.szb-modal-title em { font-style: italic; }

.szb-booking-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }

/* Calendario */
.cal-card { background: var(--white, #fff); border: 1px solid var(--stone, #E8E2D9); border-radius: 12px; padding: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-month { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--ink, #1E1B18); }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--stone, #E8E2D9);
  background: var(--white, #fff); cursor: pointer; color: var(--ink-m, #6B6258); font-size: .9rem;
  transition: background .2s;
}
.cal-nav button:hover { background: var(--stone, #E8E2D9); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { font-size: .62rem; text-align: center; color: var(--ink-lt, #A89E94); letter-spacing: .04em; text-transform: uppercase; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .78rem; border-radius: 6px; cursor: pointer; color: var(--ink, #1E1B18);
  transition: background .15s, color .15s;
}
.cal-day.muted { visibility: hidden; cursor: default; }
.cal-day.past { color: var(--stone2, #D8D0C4); cursor: not-allowed; }
.cal-day.busy { background: var(--stone, #E8E2D9); color: var(--stone2, #D8D0C4); cursor: not-allowed; text-decoration: line-through; }
.cal-day:not(.busy):not(.muted):not(.past):hover { background: var(--stone, #E8E2D9); }
.cal-day.selected { background: var(--terra, #B5795A); color: #fff; }
.cal-day.in-range { background: rgba(181,121,90,.15); }
.cal-legend { display: flex; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stone, #E8E2D9); }
.cal-legend-item { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--ink-m, #6B6258); }
.cal-legend-box { width: 12px; height: 12px; border-radius: 3px; }
.cal-legend-box.free { background: var(--white, #fff); border: 1px solid var(--stone2, #D8D0C4); }
.cal-legend-box.busy { background: var(--stone, #E8E2D9); }
.cal-legend-box.sel { background: var(--terra, #B5795A); }

/* Riepilogo */
.summary-card { background: var(--white, #fff); border: 1px solid var(--stone, #E8E2D9); border-radius: 12px; padding: 26px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--stone, #E8E2D9); }
.summary-row:last-of-type { border-bottom: none; }
.summary-label { font-size: .76rem; color: var(--ink-m, #6B6258); }
.summary-val { font-size: .85rem; font-weight: 500; color: var(--ink, #1E1B18); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 16px; border-top: 2px solid var(--ink, #1E1B18); }
.summary-total-lbl { font-size: .82rem; color: var(--ink-m, #6B6258); }
.summary-total-val { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--terra, #B5795A); }

.guest-form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.gf { display: flex; flex-direction: column; gap: 5px; }
.gf label { font-size: .62rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-lt, #A89E94); }
.gf input {
  border: 1.5px solid var(--stone, #E8E2D9); border-radius: 6px; padding: 10px 13px;
  font-family: 'Outfit', sans-serif; font-size: .87rem; color: var(--ink, #1E1B18); outline: none;
  background: var(--bg, #FAFAF8); transition: border-color .2s;
}
.gf input:focus { border-color: var(--terra, #B5795A); background: var(--white, #fff); }
.gf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-submit {
  margin-top: 8px; width: 100%; background: var(--terra, #B5795A); color: #fff; border: none;
  padding: 14px; border-radius: 6px; font-size: .82rem; font-weight: 500; letter-spacing: .03em;
  cursor: pointer; transition: background .2s; font-family: 'Outfit', sans-serif;
}
.book-submit:hover { background: var(--terra-lt, #CFA08A); }
.book-submit:disabled { opacity: .6; cursor: default; }
.book-note { text-align: center; font-size: .68rem; color: var(--ink-lt, #A89E94); margin-top: 10px; line-height: 1.6; }
.szb-form-err { text-align: center; font-size: .8rem; color: #c0392b; margin-top: 8px; }

/* ===== Box conferma (dentro modale, step 2) ===== */
.cfm-wrap { max-width: 600px; margin: 0 auto; text-align: center; }
.cfm-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(181,121,90,.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.cfm-title { font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 300; color: var(--ink, #1E1B18); margin-bottom: 12px; }
.cfm-title em { font-style: italic; color: var(--terra, #B5795A); }
.cfm-sub { font-size: .88rem; font-weight: 300; color: var(--ink-m, #6B6258); line-height: 1.8; margin-bottom: 28px; }
.cfm-timer {
  display: inline-flex; align-items: center; gap: 10px;
  background: #FBF3E3; border: 1px solid #EADCB8; padding: 12px 22px; border-radius: 100px; margin-bottom: 32px;
}
.cfm-timer-icon { color: #C9A04A; }
.cfm-timer-text { font-size: .8rem; color: #C9A04A; }
.cfm-timer-text strong { font-weight: 600; }
.cfm-card { background: var(--white, #fff); border: 1px solid var(--stone, #E8E2D9); border-radius: 12px; padding: 26px; text-align: left; margin-bottom: 24px; }
.cfm-card-title { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terra, #B5795A); margin-bottom: 16px; }
.cfm-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--stone, #E8E2D9); }
.cfm-row:last-child { border-bottom: none; }
.cfm-row-label { font-size: .76rem; color: var(--ink-m, #6B6258); }
.cfm-row-val { font-size: .86rem; font-weight: 500; color: var(--ink, #1E1B18); }
.cfm-foot { font-size: .7rem; color: var(--ink-lt, #A89E94); line-height: 1.7; }
.cfm-btn-primary { background: var(--terra, #B5795A); color: #fff; padding: 13px 30px; border-radius: 6px; font-size: .82rem; font-weight: 500; }

@media (max-width: 860px) {
  .szb-room-grid { grid-template-columns: 1fr; }
  .szb-booking-grid { grid-template-columns: 1fr; gap: 24px; }
  .szb-modal { padding: 28px 20px; }
  .gf-row { grid-template-columns: 1fr; }
}
