/* Base container styles */
.calendar-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Calendar layout */
.custom-calendar {
  --day-size: calc(100% / 7);
  width: 100%;
  overflow: visible;
  --vc-rounded-lg: 0.5rem;
  --vc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --vc-c-day-content-hover-bg: rgba(239, 68, 68, 0.1);
  --vc-c-day-content-active-bg: rgba(239, 68, 68, 0.1);
}

.calendar-wrapper .vc-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  padding: 0 2.5rem;
  text-align: center;
  width: 100%;
  cursor: pointer;
  pointer-events: auto;
}

.calendar-wrapper .vc-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Make buttons circular */
  cursor: pointer;
  color: rgb(var(--color-success, 34, 197, 94));
  background: transparent;
  border: 1px solid rgb(var(--color-success, 34, 197, 94));
  transition: all 0.2s;
  pointer-events: auto;
  z-index: 10;
}

.calendar-wrapper .vc-arrow:hover {
  background-color: rgba(var(--color-success, 34, 197, 94), 0.1);
  border-color: rgb(var(--color-success, 34, 197, 94));
}

.calendar-wrapper .vc-arrow.is-left {
  position: absolute;
  left: 1rem;
}

.calendar-wrapper .vc-arrow.is-right {
  position: absolute;
  right: 1rem;
}

/* Month selection popover */
.calendar-wrapper .vc-popover-content.vc-title-popover {
  display: block !important;
  pointer-events: auto !important;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.calendar-wrapper .vc-popover-content.vc-title-popover .vc-nav-container {
  padding: 1rem;
  width: 280px;
  pointer-events: auto;
}

.calendar-wrapper .vc-popover-container {
  display: block !important;
}

.calendar-wrapper .vc-nav-container,
.calendar-wrapper .vc-nav-header,
.calendar-wrapper .vc-nav-items {
  pointer-events: auto;
}

/* Navigation items default state */
.calendar-wrapper .vc-nav-item {
  background-color: oklch(0.985 0.001 106.423) !important;
  color: #374151 !important;
}

/* Navigation item hover state */
.calendar-wrapper .vc-nav-item:hover:not(.is-active):not(.is-current) {
  background-color: oklch(0.95 0.052 163.051) !important;
  color: #374151 !important;
}
.calendar-wrapper .vc-nav-item:hover.is-current {
  background-color: transparent !important;
  color: #374151 !important;
}

/* Navigation item active state */
.calendar-wrapper .vc-nav-item.is-active {
  background-color: oklch(0.696 0.17 162.48) !important;
  color: white !important;
}

/* Navigation current item state */
.calendar-wrapper .vc-nav-item.vc-focus:focus-within {
  color: oklch(0.696 0.17 162.48) !important;
  box-shadow: 0 0 0 2px oklch(0.765 0.177 163.223) !important;
}

/* Navigation current item state */
.calendar-wrapper .vc-nav-item.is-current {
  color: oklch(0.696 0.17 162.48) !important;
  outline-color: oklch(0.896 0.17 162.48) !important;
  background-color: transparent !important;
}

/* Navigation items - ensure text is always visible */
.calendar-wrapper .vc-nav-item.is-active,
.calendar-wrapper .vc-nav-item.is-active:hover,
.calendar-wrapper .vc-nav-item.is-active:focus,
.calendar-wrapper .vc-nav-item.is-active:focus-within {
  color: white !important;
}

.calendar-wrapper .vc-nav-item.is-current {
  background-color: transparent !important;
  color: oklch(0.696 0.17 162.48) !important;
}

.calendar-wrapper .vc-nav-item.is-current:hover,
.calendar-wrapper .vc-nav-item.is-current:focus,
.calendar-wrapper .vc-nav-item.is-current:focus-within {
  color: oklch(0.696 0.17 162.48) !important;
}

/* Hide day popovers */
.calendar-wrapper .vc-day .vc-popover-content,
.calendar-wrapper .vc-day .vc-popover-caret {
  display: none !important;
}

/* Calendar grid */
.calendar-wrapper .vc-pane-container {
  width: 100%;
  overflow: visible;
  pointer-events: none;
}

.calendar-wrapper .vc-pane {
  pointer-events: none;
}

.calendar-wrapper .vc-weeks {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 0 !important;
  padding-bottom: 5px;
}

.calendar-wrapper .vc-week {
  display: flex;
  width: 100%;
}

/* Day cells - update default background color for ALL days to ultra light */
.calendar-wrapper .vc-day {
  flex: 1;
  position: relative;
  min-width: unset !important;
  min-height: 50px;
  background-color: white !important; /* Ultra light background for ALL days */
  border: 1px solid #ffffff;
  border-radius: 4px !important;
  cursor: pointer !important;
  pointer-events: auto;
}

/* unavailable dates text color */
.calendar-wrapper .custom-day-content.unavailable-date {
    color: oklch(0.709 0.01 56.259);
    text-decoration: line-through;
}
.calendar-wrapper .custom-day-content.unavailable-date .day-number {
    font-weight: 400;
}

/* available date */
.custom-day-content:not(.unavailable-date) {
    background-color: oklch(0.985 0 0);
}

/* selectetd date */
.vc-day.is-selected .custom-day-content:not(.unavailable-date) {
    background-color: oklch(0.696 0.17 162.48);
}

/* Style for days outside the current month - keep using same base color */
.calendar-wrapper .vc-day.is-not-in-month {
  pointer-events: none !important;
  cursor: default !important;
}

.calendar-wrapper .vc-day.is-not-in-month * {
  pointer-events: none !important;
  cursor: default !important;
}

.calendar-wrapper .vc-day.is-not-in-month .vc-day-content,
.calendar-wrapper .vc-day.is-not-in-month .custom-day-content {
  pointer-events: none !important;
  cursor: default !important;
}

/* Day content */
.calendar-wrapper .vc-day-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0;
  transform: none;
  font-weight: 500;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.calendar-wrapper .custom-day-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2px;
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 2;
  border-radius: 5px !important;
  height: 100%;
  padding: 6px 0;
  position: relative;
}

.calendar-wrapper .day-number {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1;
  font-size: 14px;
  font-weight: 500;
}

/* Price text styling - restored */
.calendar-wrapper .price-text {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  font-weight: normal;
}

/* Make sure text stays white on selected date */
.calendar-wrapper .vc-day.is-selected .custom-day-content,
.calendar-wrapper .vc-day.is-selected .day-number,
.calendar-wrapper .vc-day.is-selected .price-text {
  color: white !important;
  font-weight: 600 !important;
}

.calendar-wrapper .vc-day.is-selected .custom-day-content {
  color: #10b981; /* emerald-500 */
  font-weight: 600;
}

/* Today styles */
.calendar-wrapper .vc-day.is-today:not(.is-selected) .vc-day-content {
  background-color: rgba(var(--color-green), 0.1);
}

/* hover effect for available dates */
.calendar-wrapper .vc-day:not(.is-selected) .custom-day-content:not(.unavailable-date.in-month-unavailable):hover {
    background-color: oklch(0.95 0.052 163.051);
}

/* Update hover effect color */
.calendar-wrapper
  .vc-day:not(.is-selected):not(.is-not-in-month)
  .vc-day-content:hover {
  background-color: oklch(0.95 0.052 163.051) !important;
}

/* Make sure out-of-month days don't get hover effect */
.calendar-wrapper .vc-day.is-not-in-month .vc-day-content:hover {
  background-color: oklch(0.95 0.052 163.051) !important;
}

/* Remove border from calendar container */
.calendar-wrapper .vc-container {
  width: 100%;
  overflow: visible;
  border: none;
}

/* Weekday names styling */
.calendar-wrapper .vc-weekday {
  font-weight: 500;
  color: #4b5563;
}

/* Remove padding from header */
.calendar-wrapper .vc-header {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding: 10px 0;
}

/* Update weekdays padding */
.calendar-wrapper .vc-weekdays {
  padding: 14px 0 8px 0 !important;
}

/* Styling for unavailable dates - use the default background */
.unavailable-date {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed !important;
  opacity: 0.4;
}

/* Override calendar styling for disabled dates */
.vc-day.vc-disabled .vc-day-content {
  cursor: not-allowed !important;
  color: #9ca3af !important;
  opacity: 0.6;
}

/* Active date styles */
.vc-day-content:focus {
  background-color: rgba(16, 185, 129, 0.1) !important;
}
