.w3-cal {
  max-width: 400px;
  margin: 24px auto;
  padding: 12px 8px;
  direction: rtl;
  font-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.w3-cal-header {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.w3-cal-label {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.w3-cal-prev,
.w3-cal-next {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.w3-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 8px;
  gap: 3px;
  direction: rtl;
}

.w3-cal-weekday {
  text-align: center;
  font-size: 11px;
  color: #555555;
}

.w3-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  direction: rtl;
}

.w3-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  padding: 1px;
  font: inherit;
}

.w3-cal-day-number {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.w3-cal-cost {
  font-size: 10px;
  margin-top: 4px;
  color: inherit;
}

.w3-cal-day--none {
  background: #f0f0f0;
  color: #6e6e6e;
}

.w3-cal-day--available {
  background: #bff0cc;
  color: #1b6a2c;
}

.w3-cal-day--booked {
  background: #ffe5e5;
  color: #b3261e;
}

.w3-cal-day--other-month {
  opacity: 0.5;
}

.w3-cal-day--selected {
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.8) inset;
  border-color: #ff6b2c;
}

/* =============================================================================
   Calendar v2 (w3-cal2) - keep identical layout behavior to w3-cal.
   ============================================================================= */
.w3-cal2 {
  max-width: 400px;
  margin: 24px auto;
  padding: 12px 8px;
  direction: rtl;
  font-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.w3-cal2-header {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.w3-cal2-label {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
}

.w3-cal2-prev,
.w3-cal2-next {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.w3-cal2-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 8px;
  gap: 3px;
  direction: rtl;
}

.w3-cal2-weekday {
  text-align: center;
  font-size: 11px;
  color: #555555;
}

.w3-cal2-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  direction: rtl;
}

.w3-cal2-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  padding: 1px;
  font: inherit;
}

.w3-cal2-day-number {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.w3-cal2-day--none {
  background: #f0f0f0;
  color: #6e6e6e;
}

.w3-cal2-day--available {
  background: #bff0cc;
  color: #1b6a2c;
}

.w3-cal2-day--booked {
  background: #ffe5e5;
  color: #b3261e;
}

.w3-cal2-day--other-month {
  opacity: 0.5;
}

.w3-cal2-day--selected {
  box-shadow: 0 0 0 1px rgba(255, 107, 44, 0.8) inset;
  border-color: #ff6b2c;
}
