.clickable-block {
  cursor: pointer;
  transition: background 0.2s ease;
}

.clickable-block:hover {
  background: #f8fafc;
}

.block-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  font-weight: 600;
  display: block;
}

.selected-dates-display {
  font-weight: 600;
  color: #0f172a;
  margin-top: 2px;
  font-size: 0.95rem;
}

/* Estilos del Modal */
.sashii-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sashii-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sashii-modal-window {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.sashii-modal-overlay.is-active .sashii-window {
  transform: translateY(0);
}

.sashii-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sashii-modal-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
}

/* Calendario Interior */
.sashii-modal-body {
  padding: 20px;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-controls h4 {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.nav-month-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.nav-month-btn:hover {
  background: #f1f5f9;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
  text-align: center;
}

/* Celdas de Días */
.calendar-day-cell {
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  position: relative;
  user-select: none;
  border-radius: 4px;
}

.calendar-day-cell:hover:not(.disabled) {
  background: #f1f5f9;
}

.calendar-day-cell.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day-cell.selected {
  background: #0f172a !important;
  color: #fff !important;
  font-weight: bold;
  border-radius: 4px;
}

.calendar-day-cell.in-range {
  background: #f1f5f9;
  border-radius: 0;
}

/* Contenedor de Estado de la API */
.api-status-container {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.api-status-container.success {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.api-status-container.error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.api-status-container.loading {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

/* Footer */
.sashii-modal-footer {
  padding: 15px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
}

.button-clear {
  background: transparent;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  color: #475569;
  font-weight: 500;
}

.button-apply {
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.button-apply:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}



/* --- Contador de personas --- */
.sashii-guests-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.sashii-counter-field,
.sashii-guests-counter-button {
  width: 65px;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
}

.sashii-guests-counter-button {
  width: 30px;
}

.sashii-limit-text {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

/* --- Indicadores visuales de disponibilidad --- */
.calendar-day-cell.available {
  background: #d1fae5;
  color: #065f46;
  font-weight: 600;
  position: relative;
}

.calendar-day-cell.available::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #059669;
}

.calendar-day-cell.available:hover:not(.selected) {
  background: #a7f3d0;
}

.calendar-day-cell.unavailable {
  background: #fee2e2;
  color: #991b1b;
  cursor: not-allowed;
  text-decoration: line-through;
  position: relative;
}

.calendar-day-cell.unavailable::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dc2626;
}

.calendar-day-cell.unavailable:hover {
  background: #fecaca;
}

/* Los estados seleccionados/in-range siempre van encima */
.calendar-day-cell.selected {
  background: #0f172a !important;
  color: #fff !important;
  font-weight: bold;
}

.calendar-day-cell.selected::after {
  display: none !important;
}

.calendar-day-cell.in-range {
  background: #f1f5f9;
  border-radius: 0;
}

.calendar-day-cell.in-range::after {
  display: none !important;
}