.calendar {
  flex: 1 1 45%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 300px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #b6895b;
  color: white;
  padding: 8px 10px; /* reduced from 12px */
  font-weight: bold;
  font-size: 14px; /* slightly smaller font */
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #e0e0e0;
}

.day {
  background: white;
  min-height: 35px; /* reduced from 50px */
  text-align: center;
  padding: 4px 0; /* reduced from 10px 0 */
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-size: 13px; /* slightly smaller font */
}

.day:hover {
  transform: scale(1.05);
}

.day.inactive {
  background: #f0f0f0;
  color: #aaa;
  cursor: default;
}

.day.booked {
  background: #fce4e4;
  color: #a33;
  cursor: default;
}

.day.available {
  background: #eaf9ea;
  color: #2d662d;
}

.day.selected {
  background: #ffe08a !important;
  color: black;
  font-weight: bold;
}

.calendar-grid div:nth-child(-n + 7) {
  font-weight: bold;
  background: #f9f9f9;
  cursor: default;
  color: #555;
  font-size: 12px;
}
.calendar-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    flex-wrap: nowrap; /* keep side-by-side by default */
}

.calendar {
    flex: 1 1 50%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 240px; /* was 300px */
}

/* On small screens, stack calendars vertically */
@media (max-width: 550px) {
    .calendar-wrapper {
        flex-wrap: wrap;
    }
    .calendar {
        flex: 1 1 100%;
    }
}