/* Shared Altruate date calendar (Explore filters + Create activity) */

.altruate-date-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px 8px 10px;
  border: 1px solid #f5f6fa;
  border-radius: 12px;
  background: #ffffff;
}

.altruate-date-summary__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.altruate-date-summary__text {
  flex: 1 1 auto;
  min-width: 0;
  color: #2c3038;
  font-size: 15px;
  line-height: 1.3;
}

.altruate-date-summary.is-empty .altruate-date-summary__text {
  color: #737478;
}

.altruate-date-summary__clear {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f5f6fa;
  cursor: pointer;
}

.altruate-date-summary__clear img {
  display: block;
  width: 14px;
  height: 14px;
}

.altruate-calendar {
  width: 100%;
  padding: 8px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgb(43 44 52 / 8%);
}

.altruate-calendar__month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
}

.altruate-calendar__title {
  flex: 1 1 auto;
  margin: 0;
  color: #2c3038;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.altruate-calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2c3038;
  cursor: pointer;
}

.altruate-calendar__nav:hover {
  background: #f5f6fa;
}

.altruate-calendar__nav:active {
  transform: scale(0.96);
}

.altruate-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-radius: 8px 8px 0 0;
  background: #2dbe7b;
  overflow: hidden;
}

.altruate-calendar__weekdays span {
  display: grid;
  height: 40px;
  place-items: center;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
}

.altruate-calendar__weekdays span:nth-child(6),
.altruate-calendar__weekdays span:nth-child(7) {
  color: #b1ffda;
}

.altruate-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 0 0 8px 8px;
  background: #f5f6fa;
  overflow: visible;
}

.altruate-calendar__day {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: #2c3038;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  overflow: visible;
  isolation: isolate;
}

.altruate-calendar__day--muted {
  color: #bfbfbf;
}

.altruate-calendar__day--disabled {
  color: #d5d6d8;
  cursor: not-allowed;
  background: #fafafa;
}

.altruate-calendar__day--in-range {
  background: #defff0;
  color: #108b88;
}

.altruate-calendar__day--start,
.altruate-calendar__day--end,
.altruate-calendar__day--single {
  color: #ffffff;
  font-weight: 600;
  background: #ffffff;
  box-shadow: none;
}

.altruate-calendar__day--start::before,
.altruate-calendar__day--end::before,
.altruate-calendar__day--single::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  border-radius: 999px;
  background: #2dbe7b;
  box-shadow: inset 0 0 0 1px rgb(16 139 136 / 12%);
  pointer-events: none;
}

.altruate-calendar__day--start.altruate-calendar__day--in-range::before {
  border-radius: 999px 4px 4px 999px;
  inset: 3px 0 3px 3px;
}

.altruate-calendar__day--end.altruate-calendar__day--in-range::before {
  border-radius: 4px 999px 999px 4px;
  inset: 3px 3px 3px 0;
}

.altruate-calendar__day:hover:not(.altruate-calendar__day--start):not(.altruate-calendar__day--end):not(.altruate-calendar__day--single):not(.altruate-calendar__day--disabled) {
  background: #f5fffa;
}

.altruate-calendar__day--today:not(.altruate-calendar__day--single):not(.altruate-calendar__day--start):not(.altruate-calendar__day--end) {
  font-weight: 600;
  box-shadow: none;
}

.altruate-calendar__day--today:not(.altruate-calendar__day--single):not(.altruate-calendar__day--start):not(.altruate-calendar__day--end)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 3px;
  box-sizing: border-box;
  border: 2px solid #2dbe7b;
  border-radius: 6px;
  pointer-events: none;
}

.altruate-calendar__day-events {
  position: absolute;
  z-index: 1;
  bottom: 5px;
  left: 50%;
  display: flex;
  gap: 3px;
  transform: translateX(-50%);
  pointer-events: none;
}

.altruate-calendar__day-event-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #2dbe7b;
}

.altruate-calendar__day--single .altruate-calendar__day-event-dot,
.altruate-calendar__day--start .altruate-calendar__day-event-dot,
.altruate-calendar__day--end .altruate-calendar__day-event-dot {
  background: #ffffff;
}

.altruate-calendar__day:focus-visible {
  outline: 2px solid #108b88;
  outline-offset: 1px;
}

/* Explore class aliases (same visuals) */
.explore__date-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px 8px 10px;
  border: 1px solid #f5f6fa;
  border-radius: 12px;
  background: #ffffff;
}

.explore__date-summary-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.explore__date-summary-text {
  flex: 1 1 auto;
  min-width: 0;
  color: #2c3038;
  font-size: 15px;
  line-height: 1.3;
}

.explore__date-summary.is-empty .explore__date-summary-text {
  color: #737478;
}

.explore__date-clear {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f5f6fa;
  cursor: pointer;
}

.explore__date-clear img {
  display: block;
  width: 14px;
  height: 14px;
}

.explore__calendar {
  width: 100%;
  padding: 8px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgb(43 44 52 / 8%);
}

.explore__calendar-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
}

.explore__calendar-title {
  flex: 1 1 auto;
  margin: 0;
  color: #2c3038;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.explore__calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2c3038;
  cursor: pointer;
}

.explore__calendar-nav:hover {
  background: #f5f6fa;
}

.explore__calendar-nav:active {
  transform: scale(0.96);
}

.explore__calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-radius: 8px 8px 0 0;
  background: #2dbe7b;
  overflow: hidden;
}

.explore__calendar-weekdays span {
  display: grid;
  height: 40px;
  place-items: center;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
}

.explore__calendar-weekdays span:nth-child(6),
.explore__calendar-weekdays span:nth-child(7) {
  color: #b1ffda;
}

.explore__calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 0 0 8px 8px;
  background: #f5f6fa;
  overflow: visible;
}

.explore__calendar-day {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: #2c3038;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  overflow: visible;
  isolation: isolate;
}

.explore__calendar-day--muted {
  color: #bfbfbf;
}

.explore__calendar-day--disabled {
  color: #d5d6d8;
  cursor: not-allowed;
  background: #fafafa;
}

.explore__calendar-day--in-range {
  background: #defff0;
  color: #108b88;
}

.explore__calendar-day--start,
.explore__calendar-day--end,
.explore__calendar-day--single {
  color: #ffffff;
  font-weight: 600;
  background: #ffffff;
  box-shadow: none;
}

.explore__calendar-day--start::before,
.explore__calendar-day--end::before,
.explore__calendar-day--single::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  border-radius: 999px;
  background: #2dbe7b;
  box-shadow: inset 0 0 0 1px rgb(16 139 136 / 12%);
  pointer-events: none;
}

.explore__calendar-day--start.explore__calendar-day--in-range::before {
  border-radius: 999px 4px 4px 999px;
  inset: 3px 0 3px 3px;
}

.explore__calendar-day--end.explore__calendar-day--in-range::before {
  border-radius: 4px 999px 999px 4px;
  inset: 3px 3px 3px 0;
}

.explore__calendar-day:hover:not(.explore__calendar-day--start):not(.explore__calendar-day--end):not(.explore__calendar-day--single):not(.explore__calendar-day--disabled) {
  background: #f5fffa;
}

.explore__calendar-day--today:not(.explore__calendar-day--single):not(.explore__calendar-day--start):not(.explore__calendar-day--end) {
  font-weight: 600;
  box-shadow: none;
}

.explore__calendar-day--today:not(.explore__calendar-day--single):not(.explore__calendar-day--start):not(.explore__calendar-day--end)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 3px;
  box-sizing: border-box;
  border: 2px solid #2dbe7b;
  border-radius: 6px;
  pointer-events: none;
}

.explore__calendar-day:focus-visible {
  outline: 2px solid #108b88;
  outline-offset: 1px;
}
