/* Evidenziazione migliorata giorni occupati */
.booked-day a.ui-state-default {
  background-color: #d9534f !important;  /* rosso forte */
  color: #fff !important;                 /* testo bianco */
  pointer-events: none;                   /* non cliccabili */
  opacity: 0.8;                           /* leggera trasparenza */
  border-radius: 4px !important;         /* angoli arrotondati */
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);  /* ombra interna per profondità */
}

/* Hover sugli altri giorni per contrasto: */
.ui-datepicker td a.ui-state-default:not(.booked-day):hover {
  background-color: #5cb85c !important;   /* verde brillante al passaggio */
  color: #fff !important;
}

/* Rimuove l’effetto “spuntato” sui giorni bloccati */
.booked-day a.ui-state-default .ui-state-active {
  background-color: #d9534f !important;
  color: #fff !important;
}

/* Per differenziare i giorni non selezionabili per check-in/checkout */
.ui-datepicker td.ui-state-disabled span {
  background-color: #f0f0f0 !important;
  color: #999 !important;
  opacity: 0.5 !important;
  cursor: not-allowed;
}

input[name="date_departure"]:disabled {
  background-color: #f3f3f3;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.checkout-disabled {
  background-color: #f3f3f3 !important;
  color: #999 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.booked-day a.ui-state-default {
  background: linear-gradient(145deg, #e74c3c, #c0392b) !important;
  color: #fff !important;
  border-radius: 4px;
  opacity: 0.9;
}

.wpbs-date.wpbs-booked {
  background: repeating-linear-gradient(
    135deg,
    #e74c3c,
    #e74c3c 6px,
    #c0392b 6px,
    #c0392b 12px
  ) !important;
  color: #fff !important;
  cursor: not-allowed !important;
  border-radius: 6px;
}

.wpbs-ota-booked {
  background: repeating-linear-gradient(
    135deg,
    #c0392b,
    #c0392b 6px,
    #e74c3c 6px,
    #e74c3c 12px
  ) !important;
  color: #fff !important;
  border-radius: 6px;
  cursor: not-allowed;
  transition: 0.2s ease all;
}

/* GIORNI BLOCCATI DALLE OTA (BOOKING, AIRBNB, GOOGLE CALENDAR) */
.wpbs-date.wpbs-ota-booked {
  background-color: #e74c3c !important; /* rosso vivo */
  border: 2px solid #c0392b !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  position: relative;
  transition: 0.3s ease;
}

.wpbs-date.wpbs-ota-booked .wpbs-date-number {
  color: #fff !important;
  font-weight: 700;
}

/* Effetto hover disattivo */
.wpbs-date.wpbs-ota-booked:hover {
  filter: brightness(0.9);
}


