/* карточка-блок "выберите даты" */
.date-block {
  max-width: 480px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1px solid #EFEFEF;
}

.date-block h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1F2A24;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.date-block .sub {
  color: #4A5B4E;
  font-size: 0.85rem;
  margin-bottom: 24px;
  border-left: 2px solid #E7B42C;
  padding-left: 12px;
}

/* навигация по месяцам */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #2A6B4E;
  width: 32px;
  height: 32px;
  border-radius: 40px;
  transition: 0.2s;
}

.calendar-nav button:hover {
  background: #F0F4EC;
}

.month-year {
  font-weight: 500;
  color: #1F2A24;
}

/* сетка календаря */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8B9A8C;
  margin-bottom: 12px;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.1s;
  color: #1F2A24;
  background: #FFFFFF;
  border: 1px solid transparent;
}

/* свободная дата */
.calendar-day.available {
  background: #FFFFFF;
  border: 1px solid #D9E0D9;
}

.calendar-day.available:hover {
  background: #F0F4EC;
  border-color: #2A6B4E;
}

/* занятая дата */
.calendar-day.booked {
  background: #F5F5F5;
  color: #B0B8B0;
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: #EFEFEF;
}

/* выбранная дата */
.calendar-day.selected {
  background: #2A6B4E;
  color: white;
  border-color: #2A6B4E;
}

/* пустые ячейки (дни прошлого/следующего месяца) */
.calendar-day.empty {
  visibility: hidden;
  pointer-events: none;
}

/* результат выбора */
.selected-info {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #D9E0D9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.date-output {
  font-size: 0.9rem;
  color: #2A6B4E;
  font-weight: 500;
  background: #F0F4EC;
  padding: 6px 14px;
  border-radius: 40px;
}

.book-btn {
  background: #2A6B4E;
  border: none;
  padding: 8px 20px;
  border-radius: 40px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}

.book-btn:hover {
  background: #1E4D38;
}

.legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.7rem;
  color: #6F7E6F;
}

.legend span::before {
  content: "●";
  margin-right: 6px;
  font-size: 0.7rem;
}

.legend .free::before {
  color: #2A6B4E;
  content: "○";
  font-size: 0.8rem;
}

.legend .occupied::before {
  color: #B0B8B0;
  content: "◌";
}