/* Calendar presentation only; availability and booking handlers remain unchanged. */
.eko-home #calendar { background: #faf8f5 !important; }
.eko-home #calendar .eko-calendar-heading { margin: 0 0 24px; text-align: center; }
.eko-home #calendar .eko-calendar-heading h2 {
  margin: 0; color: var(--primary-color); font-size: 22px !important;
  font-weight: 600 !important; line-height: 1.35 !important; letter-spacing: normal;
}
.eko-home #calendar .eko-calendar-card {
  box-sizing: border-box; width: 100%; max-width: 560px;
  margin: 0 auto; padding: 20px; border: 1px solid #eee8e2; border-radius: 12px;
  background: #fff; box-shadow: 0 8px 28px rgba(32,37,43,.045);
}
.eko-home #calendar .eko-calendar-navigation {
  display: grid; grid-template-columns: 44px minmax(0,1fr) 44px;
  align-items: center; gap: 8px; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid #eee8e2;
}
.eko-home #calendar #month-year-display {
  min-width: 0; min-height: 52px; display: grid; place-items: center; margin: 0; color: #20252b;
  font-size: 18px !important; font-weight: 600 !important;
  line-height: 1.4 !important; text-align: center; letter-spacing: 0;
}
.eko-home #calendar .eko-calendar-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0;
  appearance: none; border: 0; border-radius: 50%; background: transparent;
  position: relative; isolation: isolate; color: #fff; box-shadow: none; cursor: pointer; touch-action: manipulation;
}
.eko-home #calendar .eko-calendar-arrow::before {
  content: ''; position: absolute; inset: 4px; z-index: -1;
  border-radius: 50%; background: #dd141f;
  transition: transform 180ms ease, background-color 180ms ease;
}
.eko-home #calendar .eko-calendar-arrow svg { display: block; width: 17px; height: 17px; }
.eko-home #calendar .eko-calendar-arrow:active::before { transform: scale(.93); }
.eko-home #calendar .eko-calendar-arrow:hover,
.eko-home #calendar .eko-calendar-arrow:active { color: #fff; }
.eko-home #calendar .eko-calendar-arrow:hover::before { background: #bd101b; }
.eko-home #calendar .eko-calendar-arrow:focus-visible,
.eko-home #calendar .eko-calendar-book:focus-visible {
  outline: 2px solid var(--primary-color); outline-offset: 3px;
}
.eko-home #calendar .calendar-grid {
  display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px;
}
.eko-home #calendar .eko-calendar-weekdays { margin: 0 0 4px; }
.eko-home #calendar .eko-calendar-weekdays > span {
  display: block; min-width: 0; padding: 4px 0; color: #777472;
  font-size: 11px !important; font-weight: 500 !important; line-height: 1.5;
  text-align: center;
}
.eko-home #calendar .cal-day {
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; position: relative; min-width: 0; height: 44px;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: #20252b; font-size: 15px; font-weight: 400; line-height: 1;
}
.eko-home #calendar .eko-calendar-date {
  display: grid; place-items: center; position: relative; box-sizing: border-box;
  flex: 0 0 auto; width: 36px; max-width: 100%; aspect-ratio: 1;
  margin: 0; padding: 0; border: 0; border-radius: 4px;
  font-size: 15px !important; font-weight: 400 !important; line-height: 1;
  color: inherit; background: transparent;
}
.eko-home #calendar .cal-day.booked .eko-calendar-date {
  background: #fff0f1; color: #dd141f; font-weight: 500 !important;
}
.eko-home #calendar .cal-day.past .eko-calendar-date { opacity: .4; }
.eko-home #calendar .cal-day.empty { visibility: hidden; }
.eko-home #calendar .eko-calendar-legend {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 8px 20px; margin: 16px 0 0; padding: 0;
}
.eko-home #calendar .eko-calendar-legend-item {
  display: inline-flex; align-items: center; gap: 6px; min-height: 18px;
  color: #706c69; font-size: 12px !important; font-weight: 400 !important; line-height: 1.5;
}
.eko-home #calendar .eko-calendar-legend-full {
  display: inline-block; box-sizing: border-box; flex: 0 0 12px;
  width: 12px; height: 12px; border: 1px solid #dd141f;
  border-radius: 4px; background: #fff0f1;
}
.eko-home #calendar .eko-calendar-book {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; width: 100%; min-height: 44px; margin: 20px 0 0;
  padding: 10px 14px; border: 0; border-radius: 6px;
  background: #dd141f; color: #fff; box-shadow: none;
  font-size: 14px !important; font-weight: 500 !important; line-height: 1.5;
  text-decoration: none; text-align: center; touch-action: manipulation;
}
.eko-home #calendar .eko-calendar-book svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.eko-home #calendar .eko-calendar-book span { font-size: inherit !important; font-weight: inherit; line-height: inherit; }
.eko-home #calendar .eko-calendar-book:hover,
.eko-home #calendar .eko-calendar-book:active { background: #bd101b; color: #fff; text-decoration: none; }
@media (max-width: 991.98px) {
  .eko-home #calendar.section-padding { padding: 40px 16px !important; }
  .eko-home #calendar > .container {
    width: 100%; max-width: none; padding-left: 0 !important; padding-right: 0 !important;
  }
  .eko-home #calendar .eko-calendar-card { padding: 16px; }
  .eko-home #calendar .cal-day { height: 40px; }
}

/* Keep all date cells and the calendar dimensions unchanged. */
.eko-home #calendar .eko-calendar-date.has-marker {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
}
.eko-home #calendar .eko-calendar-season {
  display: block; flex: 0 0 10px; width: 10px; height: 10px;
  margin: 0; padding: 0; pointer-events: none;
}
.eko-home #calendar .eko-calendar-season-snow { color: #7896a8; }
.eko-home #calendar .eko-calendar-season-sakura { color: #c96f8b; }
.eko-home #calendar .eko-calendar-season-autumn { color: #b87943; }
.eko-home #calendar .eko-calendar-season-lebaran { color: #5f8a68; }

/* Reserve six weeks so the legend and booking button stay at the same height. */
.eko-home #calendar #calendar-body { grid-template-rows: repeat(6,44px); }
@media (max-width: 991.98px) {
  .eko-home #calendar #calendar-body { grid-template-rows: repeat(6,40px); }
}

@keyframes ekoCalendarReveal { from { opacity: .35; } to { opacity: 1; } }
.eko-home #calendar #calendar-body.eko-calendar-reveal { animation: ekoCalendarReveal 180ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  .eko-home #calendar #calendar-body.eko-calendar-reveal { animation: none; }
  .eko-home #calendar .eko-calendar-arrow::before { transition: none; }
  .eko-home #calendar .eko-calendar-arrow:active::before { transform: none; }
}
