/* Book page — keep each month’s dates inside its own card */
.book-cal-months {
  display: grid;
  gap: var(--space-5);
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* One column until there’s room for three equal month cards */
@media (min-width: 1100px) {
  .book-cal-months {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.book-cal-month {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-sizing: border-box;
}

.book-cal-month .month-title {
  text-align: center;
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-cal-month .month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.book-cal-month .month-grid .dow {
  min-width: 0;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 2px 0;
  overflow: hidden;
}

.book-cal-month .day-cell {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  line-height: 1;
  border-radius: var(--radius-xs);
  box-sizing: border-box;
  padding: 0;
}

.book-cal-month .day-cell.empty {
  background: transparent;
  border-color: transparent;
  visibility: hidden;
}

@media (max-width: 1099px) {
  .book-cal-months {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
  .book-cal-month .day-cell {
    font-size: 0.8rem;
  }
}


/* Stronger occupied days */
.book-cal-month .day-cell.pending {
  background: #c4a574;
  color: #2a2110;
  font-weight: 600;
  border-color: #8c6e3f;
}
.book-cal-month .day-cell.booked,
.book-cal-month .day-cell.confirmed {
  background: #5c3e3c;
  color: #f3efe6;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  border-color: #3d2827;
}
.book-cal-month .day-cell.blocked {
  background: #6e7a82;
  color: #f3efe6;
  font-weight: 600;
  border-color: #4a545b;
}
.book-cal-month .day-cell.open {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--fg);
}
