/* V369 — calendario condiviso per le prenotazioni Rental */
.rental-booking{
  width:min(1600px,100%);
  margin:clamp(74px,8vw,132px) auto 0;
  padding:clamp(38px,5vw,76px) 0 0;
  border-top:1px solid rgba(255,255,255,.14);
  color:#f5f5f3;
}
.rental-booking-header{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  align-items:end;
  gap:clamp(30px,5vw,86px);
  margin-bottom:clamp(34px,4vw,58px);
}
.rental-booking-eyebrow{
  margin:0 0 14px;
  color:#9b9b9f;
  font-size:12px;
  font-weight:800;
  letter-spacing:.22em;
}
.rental-booking-header h3{
  margin:0;
  font:700 clamp(56px,7vw,112px)/.82 Rajdhani,Inter,sans-serif;
  letter-spacing:-.055em;
  text-transform:uppercase;
}
.rental-booking-header h3 span{color:var(--green)}
.rental-booking-intro{
  display:grid;
  gap:22px;
  padding-bottom:5px;
}
.rental-booking-intro>p{
  max-width:620px;
  margin:0;
  color:#aaaab0;
  font-size:17px;
  line-height:1.75;
}
.rental-booking-live{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width:max-content;
  color:#b9b9bf;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.rental-booking-live i{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#8f8f94;
  box-shadow:0 0 0 5px rgba(143,143,148,.1);
}
.rental-booking-live[data-state="connected"] i{
  background:#42d47f;
  box-shadow:0 0 0 5px rgba(66,212,127,.12),0 0 18px rgba(66,212,127,.45);
}
.rental-booking-live[data-state="offline"] i{background:#e51b2a}
.rental-booking-grid{
  display:grid;
  grid-template-columns:minmax(440px,.92fr) minmax(520px,1.08fr);
  min-height:720px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(2,2,3,.86);
  box-shadow:0 35px 110px rgba(0,0,0,.46);
}
.rental-calendar-panel,
.rental-slots-panel{
  min-width:0;
  padding:clamp(28px,3vw,50px);
}
.rental-calendar-panel{
  border-right:1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 12% 5%,rgba(229,27,42,.1),transparent 31%),
    linear-gradient(145deg,rgba(19,19,21,.94),rgba(6,6,7,.98));
}
.rental-slots-panel{background:linear-gradient(155deg,rgba(12,12,14,.96),rgba(3,3,4,.99))}
.rental-calendar-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  min-height:72px;
  margin-bottom:30px;
}
.rental-calendar-toolbar span,
.rental-selected-day span{
  display:block;
  margin-bottom:8px;
  color:#828289;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
}
.rental-calendar-toolbar strong,
.rental-selected-day strong{
  display:block;
  font:700 clamp(28px,2.6vw,42px)/1 Rajdhani,Inter,sans-serif;
  letter-spacing:-.025em;
  text-transform:uppercase;
}
.rental-calendar-nav{display:flex;gap:8px}
.rental-calendar-nav button{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:0;
  background:#0a0a0b;
  color:#fff;
  font-size:21px;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.rental-calendar-nav button:hover:not(:disabled),
.rental-calendar-nav button:focus-visible{border-color:#fff;background:#18181a}
.rental-calendar-nav button:disabled{opacity:.28;cursor:not-allowed}
.rental-calendar-weekdays,
.rental-calendar-days{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}
.rental-calendar-weekdays{gap:5px;margin-bottom:7px}
.rental-calendar-weekdays span{
  padding:8px 3px;
  color:#717178;
  text-align:center;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
}
.rental-calendar-days{gap:6px}
.rental-calendar-day,
.rental-calendar-empty{
  position:relative;
  min-width:0;
  aspect-ratio:1;
}
.rental-calendar-day{
  border:1px solid rgba(255,255,255,.08);
  border-radius:0;
  background:rgba(255,255,255,.018);
  color:#d9d9dc;
  font:700 clamp(15px,1.25vw,20px)/1 Rajdhani,Inter,sans-serif;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.rental-calendar-day:hover:not(:disabled){transform:translateY(-2px);border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.055)}
.rental-calendar-day.is-today{box-shadow:inset 0 0 0 1px rgba(255,255,255,.34)}
.rental-calendar-day.is-selected{border-color:var(--green);background:var(--green);color:#fff;box-shadow:0 12px 30px rgba(229,27,42,.18)}
.rental-calendar-day:disabled{color:#48484e;background:transparent;cursor:not-allowed}
.rental-calendar-count{
  position:absolute;
  right:5px;
  bottom:5px;
  display:grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:999px;
  background:#fff;
  color:#050505;
  font:800 9px/1 Inter,sans-serif;
}
.rental-calendar-day.is-selected .rental-calendar-count{background:#050505;color:#fff}
.rental-calendar-note{
  margin:22px 0 0;
  color:#77777e;
  font-size:12px;
  line-height:1.6;
}
.rental-selected-day{
  padding-bottom:25px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.rental-slots-instruction{
  margin:25px 0 18px;
  color:#a3a3aa;
  font-size:14px;
  line-height:1.6;
}
.rental-hour-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:7px;
}
.rental-hour-button{
  min-width:0;
  min-height:76px;
  padding:10px 5px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:0;
  background:#09090a;
  color:#fff;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,transform .2s ease;
}
.rental-hour-button strong{
  display:block;
  font:700 clamp(18px,1.6vw,25px)/1 Rajdhani,Inter,sans-serif;
}
.rental-hour-button small{
  display:block;
  min-height:14px;
  margin-top:8px;
  color:#77777f;
  font-size:9px;
  line-height:1.25;
}
.rental-hour-button:hover:not(:disabled){transform:translateY(-2px);border-color:rgba(255,255,255,.48)}
.rental-hour-button.is-selected{border-color:var(--green);background:rgba(229,27,42,.15)}
.rental-hour-button.has-bookings:after{
  content:"";
  display:block;
  width:6px;
  height:6px;
  margin:8px auto 0;
  border-radius:50%;
  background:var(--green);
}
.rental-hour-button:disabled{opacity:.3;cursor:not-allowed}
.rental-booking-access{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:26px;
  padding:20px 0;
  border-top:1px solid rgba(255,255,255,.1);
  border-bottom:1px solid rgba(255,255,255,.1);
}
.rental-booking-access p{
  max-width:560px;
  margin:0;
  color:#aaaab0;
  font-size:14px;
  line-height:1.6;
}
.rental-booking-login{
  flex:0 0 auto;
  min-height:48px;
  padding:0 18px;
  border:1px solid #fff;
  border-radius:0;
  background:transparent;
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  cursor:pointer;
}
.rental-booking-login:hover{background:#fff;color:#050505}
.rental-booking-form{margin-top:27px}
.rental-booking-form fieldset{min-width:0;margin:0;padding:0;border:0}
.rental-booking-form legend{
  margin-bottom:13px;
  color:#8a8a91;
  font-size:11px;
  font-weight:800;
  letter-spacing:.17em;
}
.rental-vehicle-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.rental-vehicle-option{display:block;min-width:0;margin:0;cursor:pointer}
.rental-vehicle-option input{position:absolute;opacity:0;pointer-events:none}
.rental-vehicle-option>span{
  display:block;
  min-height:76px;
  padding:15px;
  border:1px solid rgba(255,255,255,.1);
  background:#080809;
  transition:border-color .2s ease,background .2s ease;
}
.rental-vehicle-option strong{
  display:block;
  font:700 21px/1 Rajdhani,Inter,sans-serif;
}
.rental-vehicle-option small{
  display:block;
  margin-top:8px;
  color:#73737a;
  font-size:10px;
}
.rental-vehicle-option input:checked+span{border-color:var(--green);background:rgba(229,27,42,.11)}
.rental-vehicle-option input:focus-visible+span{outline:2px solid #fff;outline-offset:3px}
.rental-booking-notice{
  display:grid;
  grid-template-columns:20px 1fr;
  align-items:start;
  gap:12px;
  margin:18px 0 0;
  color:#9d9da4;
  font-size:12px;
  line-height:1.55;
  cursor:pointer;
}
.rental-booking-notice input{
  width:18px;
  height:18px;
  margin:1px 0 0;
  accent-color:var(--green);
}
.rental-booking-submit{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:58px;
  margin-top:20px;
  padding:0 20px;
  border:0;
  border-radius:0;
  background:var(--green);
  color:#fff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
  cursor:pointer;
}
.rental-booking-submit span{font-size:24px}
.rental-booking-submit:hover:not(:disabled){background:#c81523}
.rental-booking-submit:disabled{opacity:.45;cursor:wait}
.rental-booking-status{
  min-height:22px;
  margin:18px 0 0;
  color:#a8a8af;
  font-size:13px;
  line-height:1.6;
}
.rental-booking-status:empty{display:none}
.rental-booking-status[data-kind="error"]{color:#ff9ba5}
.rental-booking-status[data-kind="success"]{color:#7cdda5}
.rental-bookings-list{
  display:grid;
  gap:8px;
  margin-top:18px;
}
.rental-bookings-heading{
  margin:0 0 3px;
  color:#86868d;
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
}
.rental-booking-empty{
  margin:0;
  padding:18px;
  border:1px dashed rgba(255,255,255,.13);
  color:#797980;
  font-size:13px;
  line-height:1.6;
}
.rental-booking-row{
  display:grid;
  grid-template-columns:minmax(120px,.8fr) minmax(150px,1.2fr) auto auto;
  align-items:center;
  gap:14px;
  min-height:58px;
  padding:11px 14px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.025);
}
.rental-booking-row.is-own{border-color:rgba(229,27,42,.34);background:rgba(229,27,42,.055)}
.rental-booking-person{
  min-width:0;
  overflow:hidden;
  color:#fff;
  font-size:14px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rental-booking-vehicle{color:#a8a8ae;font-size:13px}
.rental-booking-time{
  color:#fff;
  font:700 21px/1 Rajdhani,Inter,sans-serif;
}
.rental-booking-cancel{
  min-height:34px;
  padding:0 11px;
  border:1px solid rgba(255,255,255,.2);
  background:transparent;
  color:#d8d8dc;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.rental-booking-cancel:hover{border-color:#ff6d79;color:#fff}
.rental-booking-loading{
  margin:0;
  color:#8f8f96;
  font-size:13px;
}
@media(max-width:1120px){
  .rental-booking-grid{grid-template-columns:1fr}
  .rental-calendar-panel{border-right:0;border-bottom:1px solid rgba(255,255,255,.1)}
  .rental-calendar-day,.rental-calendar-empty{aspect-ratio:auto;min-height:62px}
}
@media(max-width:760px){
  .rental-booking{margin-top:68px;padding-top:38px}
  .rental-booking-header{grid-template-columns:1fr;gap:24px}
  .rental-booking-header h3{font-size:clamp(52px,13vw,76px)}
  .rental-booking-intro>p{font-size:15px}
  .rental-calendar-panel,.rental-slots-panel{padding:24px 18px}
  .rental-calendar-toolbar strong,.rental-selected-day strong{font-size:31px}
  .rental-calendar-nav button{width:44px;height:44px}
  .rental-calendar-days{gap:4px}
  .rental-calendar-day,.rental-calendar-empty{min-height:48px}
  .rental-hour-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .rental-hour-button{min-height:68px}
  .rental-vehicle-options{grid-template-columns:1fr}
  .rental-booking-access{align-items:stretch;flex-direction:column}
  .rental-booking-login{width:100%}
  .rental-booking-row{grid-template-columns:minmax(0,1fr) auto}
  .rental-booking-vehicle{grid-column:1/2}
  .rental-booking-time{grid-column:2/3;grid-row:1/2}
  .rental-booking-cancel{grid-column:2/3;grid-row:2/3}
}
@media(max-width:420px){
  .rental-calendar-panel,.rental-slots-panel{padding-inline:13px}
  .rental-calendar-toolbar{align-items:flex-start}
  .rental-calendar-toolbar strong{font-size:26px}
  .rental-calendar-day,.rental-calendar-empty{min-height:43px}
  .rental-calendar-weekdays span{font-size:8px}
  .rental-hour-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  .rental-calendar-day,.rental-hour-button{transition:none}
}
