.villa_calendars .wp-block-columns {
  display: flex;
  flex-wrap: nowrap;
  /* Prevent wrapping to maintain side-by-side layout */
  justify-content: space-between;
}
.villa_calendars .wp-block-column.previous_three_months,
.villa_calendars .wp-block-column.next_three_months {
  flex-basis: 50%;
  /* Each column takes exactly 50% width */
  max-width: 50%;
  /* Prevent exceeding 50% */
  flex-grow: 0;
  /* Prevent growing beyond 50% */
  flex-shrink: 0;
  /* Prevent shrinking below 50% */
  margin-left: 0;
  /* Remove default margins */
  margin-right: 0;
}
.villa_calendars .widget_calendar .calendar_wrap table {
  width: 100%;
  border-spacing: 1px;
}
.villa_calendars .widget_calendar .calendar_wrap table caption {
  font-weight: bold;
  padding: 10px;
  text-align: center;
  margin-bottom: 5px;
}
.villa_calendars .widget_calendar .calendar_wrap table th,
.villa_calendars .widget_calendar .calendar_wrap table td {
  border: 1px solid #ffffff;
  padding: 3px !important;
  text-align: center;
  min-width: 40px;
}
.villa_calendars .widget_calendar .calendar_wrap table th {
  text-transform: uppercase;
}
.villa_calendars .widget_calendar .calendar_wrap table td {
  font-size: 1.1em;
}
.villa_calendars .widget_calendar .calendar_wrap table td.available {
  color: #39342d;
  background: #ffffff;
}
.villa_calendars .widget_calendar .calendar_wrap table td.booked {
  color: #a84426;
  background: #fadfda;
}
.villa_calendars .widget_calendar .calendar_wrap table td.check-in {
  background: linear-gradient(to left top, #fadfda 50%, #ffffff 50%) no-repeat;
  color: #a84426;
}
.villa_calendars .widget_calendar .calendar_wrap table td.check-out {
  background: linear-gradient(to left top, #ffffff 50%, #fadfda 50%) no-repeat;
  color: #a84426;
}
.villa_calendars .widget_calendar .calendar_wrap table td.empty {
  background: #ffffff;
}
.villa_calendars .widget_calendar .calendar_wrap .separator {
  height: 1px;
  margin: 20px 0;
}
.villa_calendars .widget_calendar .calendar_wrap .separator .hr-inner {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.villa_calendars .cle-calendar-loading,
.villa_calendars .cle-calendar-error {
  text-align: center;
  padding: 20px;
  color: #a84426;
}
.villa_calendars .cle-calendar-error {
  font-style: italic;
}
@media screen and (max-width: 1000px) {
  .villa_calendars .widget_calendar .calendar_wrap table th,
  .villa_calendars .widget_calendar .calendar_wrap table td {
    padding: 5px;
    min-width: 32px;
    font-size: 0.85em;
  }
}
@media screen and (max-width: 767px) {
  .villa_calendars .wp-block-column.previous_three_months,
  .villa_calendars .wp-block-column.next_three_months {
    flex-basis: 50%;
    max-width: 50%;
    flex-grow: 0;
    flex-shrink: 0;
  }
  .villa_calendars .widget_calendar .calendar_wrap table th,
  .villa_calendars .widget_calendar .calendar_wrap table td {
    padding: 4px;
    min-width: 28px;
    font-size: 0.8em;
  }
  .villa_calendars .widget_calendar .calendar_wrap table caption {
    font-size: 0.9em;
  }
}
.villa-calendar-book {
  position: relative;
  margin: 0 auto;
  overflow: visible !important;
}
.villa-calendar-book .booking-calendar-wrapper {
  width: 100%;
  max-width: 600px;
  z-index: 100;
  background: #ffffff;
  padding: 10px;
}
.villa-calendar-book .booking-calendar-wrapper.sticky {
  position: fixed !important;
  top: 20px !important;
  max-width: 600px !important;
  z-index: 1000 !important;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.villa-calendar-book .booking-calendar-heading {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: bold;
  color: #39342d;
  text-align: center;
}
.villa-calendar-book .booking-dates {
  display: flex;
  gap: 10px;
}
.villa-calendar-book .check-in-wrapper,
.villa-calendar-book .check-out-wrapper {
  flex: 1;
  position: relative;
}
.villa-calendar-book .booking-calendar-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(220, 219, 213, 0.3);
  border-radius: 4px;
  cursor: pointer;
  background-color: #ffffff;
  color: #39342d;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 2px;
  transition: border-color 0.2s ease;
  background-image: url('/wp-content/plugins/cabolaestancia-availability/assets/css/../img/datepicker.svg') !important;
  background-position: right 10px center !important;
  background-repeat: no-repeat !important;
  background-size: 20px 20px !important;
}
.villa-calendar-book .booking-calendar-input:focus {
  outline: none;
  border-color: rgba(220, 219, 213, 0.5);
}
.villa-calendar-book .booking-calendar-input::placeholder {
  color: #8f8271;
}
.villa-calendar-book .booking-calendar-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 1px;
  background: #ffffff;
  border: 1px solid rgba(220, 219, 213, 0.3);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: none;
  padding: 5px;
}
.villa-calendar-book .booking-calendar-popup.is-open {
  display: block;
}
.villa-calendar-book .booking-calendar-popup .calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-weight: bold;
  color: #39342d;
}
.villa-calendar-book .booking-calendar-popup .calendar-header .prev-month,
.villa-calendar-book .booking-calendar-popup .calendar-header .next-month {
  background: none;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  color: #39342d;
  padding: 0 5px;
}
.villa-calendar-book .booking-calendar-popup .calendar-header .prev-month:hover,
.villa-calendar-book .booking-calendar-popup .calendar-header .next-month:hover {
  color: #000000;
}
.villa-calendar-book .booking-calendar-popup .calendar-header .month-title {
  font-size: 0.9em;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .weekday {
  text-align: center;
  font-size: 0.8em;
  text-transform: uppercase;
  color: #39342d;
  background: #ffffff;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day {
  text-align: center;
  font-size: 0.9em;
  border: 1px solid #ffffff;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.available {
  color: #39342d;
  background: #ffffff;
  cursor: pointer;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.available:hover {
  background: #f2f2f2;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.booked {
  color: #a84426;
  background: #fadfda;
  cursor: not-allowed;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.check-in {
  background: linear-gradient(to left top, #fadfda 50%, #ffffff 50%) no-repeat;
  color: #a84426;
  cursor: pointer;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.check-in:hover {
  filter: brightness(90%);
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.check-out {
  background: linear-gradient(to left top, #ffffff 50%, #fadfda 50%) no-repeat;
  color: #a84426;
  cursor: pointer;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.check-out:hover {
  filter: brightness(90%);
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.disabled {
  color: #bbb4aa;
  background: #ffffff;
  cursor: not-allowed;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.selected {
  background: #e6e6e6;
  color: #39342d;
  font-weight: bold;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.today {
  border: 1px solid #a84426;
}
.villa-calendar-book .booking-calendar-popup .calendar-grid .day.empty {
  background: #ffffff;
}
.villa-calendar-book .booking-guests {
  display: flex;
  gap: 10px;
}
.villa-calendar-book .booking-guests .select-wrapper {
  flex: 1;
  position: relative;
}
.villa-calendar-book .booking-guests .select-wrapper::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #39342d;
  pointer-events: none;
}
.villa-calendar-book .booking-guests .select-wrapper select {
  width: 100%;
  padding: 8px 12px;
  padding-right: 30px;
  border: 1px solid rgba(220, 219, 213, 0.3);
  border-radius: 4px;
  background-color: #ffffff;
  color: #39342d;
  font-size: 14px;
  line-height: 1.5;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.villa-calendar-book .booking-guests .select-wrapper select:focus {
  outline: none;
  border-color: rgba(220, 219, 213, 0.5);
}
.villa-calendar-book .booking-notification {
  display: none;
  margin: 10px 0;
  padding: 10px;
  background-color: rgba(250, 223, 218, 0.3);
  border-radius: 4px;
  text-align: center;
}
.villa-calendar-book .booking-notification p {
  margin: 0;
  font-size: 1em;
  color: #a84426;
}
.villa-calendar-book .booking-totals {
  margin-top: 20px;
}
.villa-calendar-book .booking-totals .rate-details {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 4px;
  border: 1px solid rgba(220, 219, 213, 0.3);
}
.villa-calendar-book .booking-totals .rate-details .price-row {
  justify-content: space-between;
  margin-bottom: 5px;
}
.villa-calendar-book .booking-totals .rate-details .price-row .price-label {
  text-align: left;
  color: #39342d;
}
.villa-calendar-book .booking-totals .rate-details .price-row .price-value {
  text-align: right;
  color: #39342d;
}
.villa-calendar-book .booking-totals .rate-details .price-row.total {
  font-weight: bold;
  font-size: 1.1em;
  border-top: 1px solid rgba(220, 219, 213, 0.5);
  padding-top: 10px;
  margin-top: 10px;
}
.villa-calendar-book .booking-totals .rate-details .deposit-info {
  background-color: rgba(245, 245, 245, 0.46);
  border-radius: 4px;
  padding: 10px;
  margin: 10px 0;
}
.villa-calendar-book .booking-totals .rate-details .deposit-info .price-label {
  line-height: normal;
}
.villa-calendar-book .booking-totals .rate-details .deposit-info .price-label em {
  font-size: 0.8em;
}
.villa-calendar-book .booking-totals .rate-details .high-season-note {
  font-size: 0.8em;
  margin: 10px 0;
  padding: 5px;
  background-color: #fff8f4;
  border-left: 3px solid #cda18f;
}
.villa-calendar-book .booking-totals .rate-details .special-offer {
  font-size: em;
  margin: 10px 0;
  padding: 5px;
  background-color: #e0f1b5;
  border-left: 3px solid #8baf5b;
}
.villa-calendar-book .booking-totals .rate-details .special-offer strong {
  color: #39342d;
}
.villa-calendar-book .booking-totals .rate-details .book-now-btn {
  width: 100%;
  padding: 12px;
  background-color: #8d4529;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}
.villa-calendar-book .booking-totals .rate-details .book-now-btn:hover {
  background-color: #793b23;
}
.villa-calendar-book .booking-totals .rate-details .book-now-btn:focus {
  outline: none;
  background-color: #793b23;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .villa-calendar-book .booking-calendar-input,
  .villa-calendar-book .booking-calendar-popup,
  .villa-calendar-book .select-wrapper select {
    border-width: 0.5px;
  }
}
@media screen and (max-width: 767px) {
  .villa-calendar-book .booking-totals {
    margin-bottom: 6em;
  }
}
