/* Calendario de disponibilidad — integrado sin cambiar el diseño principal */
.avail-cal {
  margin-bottom: 0.65rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.avail-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.avail-cal__title {
  font-size: 0.92rem;
  font-weight: 600;
}

.avail-cal__nav {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(24, 216, 255, 0.12);
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.avail-cal__week,
.avail-cal__grid {
  display: grid;
  /* minmax(0,1fr) evita que el contenido mínimo (tap/aspect-ratio)
     fuerce columnas más anchas que el contenedor. */
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  width: 100%;
  max-width: 100%;
}

.avail-cal__week {
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  opacity: 0.65;
  text-align: center;
}

.avail-cal__cell {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.avail-cal__cell--empty {
  background: transparent;
  pointer-events: none;
}

.avail-cal__cell--ok {
  background: rgba(46, 196, 182, 0.18);
}

.avail-cal__cell--low {
  background: rgba(245, 158, 11, 0.22);
}

.avail-cal__cell--full,
.avail-cal__cell--blocked,
.avail-cal__cell--past {
  opacity: 0.35;
  cursor: not-allowed;
}

.avail-cal__cell--selected {
  outline: 2px solid #18d8ff;
  outline-offset: 1px;
}

.avail-cal__cell:disabled {
  cursor: not-allowed;
}

.avail-cal__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.9rem;
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  opacity: 0.85;
}

.avail-cal__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.avail-cal__dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.avail-cal__dot--ok { background: #2ec4b6; }
.avail-cal__dot--low { background: #f59e0b; }
.avail-cal__dot--no { background: rgba(255, 255, 255, 0.25); }

/* El input nativo alimenta el form; el calendario es la UI visible. */
.booking-field--calendar .booking-date-fallback,
.checkout-field--calendar .booking-date-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.booking-field--calendar,
.checkout-field--calendar {
  position: relative;
}

.checkout-field--calendar .checkout-input-wrap {
  margin-top: 0.35rem;
}

@media (max-width: 480px) {
  .avail-cal__cell { font-size: 0.72rem; }
}
