/* --------------------------------------------------------------------------
 * Eagle Booking - booking form pickers: dates (daterangepicker) and guests
 * One design for the website and the admin (New Booking page, Calendar
 * popup): loaded after the library's daterangepicker.css on both.
 * Website-only phone layout: eb-responsive.css.
 * Since 1.4 (moved out of eb.css)
 ---------------------------------------------------------------------------*/

/* Date picker
 ---------------------------------------------------------------------------*/
.daterangepicker {
  color: #808080;
}

.daterangepicker.dropdown-menu {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #efefef;
  box-shadow: 0 12px 26px 0 rgba(178, 178, 178, .13);
  border-radius: 2px;
  z-index: 999;
}

.daterangepicker.dropdown-menu.dropup {
  margin-top: -8px;
}

/* A card: no arrow */
.daterangepicker.dropdown-menu:before,
.daterangepicker.dropdown-menu:after {
  display: none;
}

.daterangepicker .calendar {
  max-width: 370px;
}

.daterangepicker .calendar .calendar-title {
  margin: 5px 0;
  color: #b5bec4;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

.daterangepicker table,
.daterangepicker table tr,
.daterangepicker table td,
.daterangepicker table th {
  padding: 0;
  margin: 0;
  border-collapse: collapse !important;
}

.daterangepicker table {
  width: 100%;
  margin: 0;
  border-spacing: 2px;
  border-collapse: separate;
}

.daterangepicker .calendar td {
  width: 35px;
  height: 35px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 35px;
  border: 0;
  border-radius: 1px;
  position: relative;
}

.eb-page .daterangepicker .calendar td span {
  position: relative;
  z-index: 9;
}

.daterangepicker .calendar td.wrong-month {
  visibility: hidden;
}

.daterangepicker .calendar td.disabled,
.daterangepicker .calendar option.disabled {
  color: #ccc;
  text-decoration: none;
}

.single-eagle_rooms .daterangepicker .calendar td.available {
  color: #587f99;
  background: #e7f8fb;
}

.daterangepicker .calendar .calendar-table td.in-range {
  background: rgba(25, 161, 247, .6);
  color: #fff;
}

.single-eagle_rooms .daterangepicker .calendar td.booked {
  color: #fd7285;
  background: #fde7f1;
}

.single-eagle_rooms .daterangepicker .calendar td.booked {
  color: #fd7285;
  background: #fde7f1;
}

.single-eagle_rooms .daterangepicker .calendar td.semi-available {
  /* position: relative;
  overflow: hidden;
  background: #fde7f1 !important; */
}

.single-eagle_rooms .daterangepicker .calendar td.semi-available:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #fde7f1;
  z-index: 1;
}

.daterangepicker .calendar .calendar-table td.start-date,
.daterangepicker .calendar .calendar-table td.active,
.daterangepicker .calendar .calendar-table td.active:hover {
  background: #19a1f7;
  position: relative;
  color: #fff;
  z-index: 9 !important;
}

.daterangepicker td.start-date.end-date {
  border-radius: 0;
}

.daterangepicker .calendar td.end-date {
  background: #19a1f7;
  color: #fff;
}

.daterangepicker .calendar th {
  font-size: 14px;
  font-weight: 600;
  line-height: 30px;
}

.daterangepicker .calendar th.month {
  font-weight: 800;
}

.daterangepicker_input {
  display: none;
}

.daterangepicker label {
  color: #999;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

.daterangepicker label a {
  margin-left: 5px;
  color: #999;
}

.daterangepicker .booking-nights {
  display: block;
  clear: both;
  font-size: 14px;
  text-align: center;
  padding-top: 10px;
  border-top: 1px dashed #ebebeb;
}

.daterangepicker .eb-close-calendar {
  display: none;
}

/* Date picker - same Airbnb-style look as the availability calendar:
   plain cells, #5c5c5c numbers, struck-through grey unavailable/past days,
   dark circles for check-in/check-out with a light band between them.
   Selectors are deliberately one step stronger than the older picker
   colours here and in the themes (e.g. Himara's blue/pink cells). */
.daterangepicker.dropdown-menu {
  padding: 16px;
  border: 1px solid #ebebeb;
  /* Themes square a corner for the old arrow (e.g. Himara) */
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  color: #5c5c5c;
}

.daterangepicker.dropdown-menu .calendar th {
  color: #717171;
  font-size: 12px;
  font-weight: 600;
}

.daterangepicker.dropdown-menu .calendar th.month {
  color: #5c5c5c;
  font-size: 15px;
  font-weight: 700;
}

.daterangepicker.dropdown-menu .calendar th.prev.available,
.daterangepicker.dropdown-menu .calendar th.next.available {
  border-radius: 50%;
  color: #5c5c5c;
}

/* A circle drawn inside the cell, as for check-in/check-out: the cell is
   wider than tall (40 x 30), so a rounded background was an oval */
.daterangepicker.dropdown-menu .calendar th.prev.available:hover,
.daterangepicker.dropdown-menu .calendar th.next.available:hover {
  background: radial-gradient(circle closest-side, #f7f7f7 96%, transparent 100%);
}

/* No grid: themes that border every table (e.g. Zante) drew row lines and
   a frame around each month. */
.daterangepicker.dropdown-menu .calendar .calendar-table,
.daterangepicker.dropdown-menu .calendar .calendar-table table,
.daterangepicker.dropdown-menu .calendar .calendar-table thead,
.daterangepicker.dropdown-menu .calendar .calendar-table tbody,
.daterangepicker.dropdown-menu .calendar .calendar-table tr,
.daterangepicker.dropdown-menu .calendar .calendar-table th {
  border: 0;
  background: transparent;
}

.daterangepicker.dropdown-menu .calendar .calendar-table td {
  width: 40px;
  height: 40px;
  padding: 0;
  /* Height + vertical centring hold the number; a 40px line-height let
     some cells (e.g. today's) grow to 40.5px and nudge their row. */
  line-height: 1;
  vertical-align: middle;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5c5c5c;
  font-size: 14px;
  font-weight: 600;
}

.daterangepicker.dropdown-menu .calendar .calendar-table td.available:hover {
  background: transparent;
  color: #5c5c5c;
  box-shadow: inset 0 0 0 1px #5c5c5c;
}

/* Unavailable: booked, past, before/after the bookable window. */
.daterangepicker.dropdown-menu .calendar .calendar-table td.off,
.daterangepicker.dropdown-menu .calendar .calendar-table td.disabled,
.daterangepicker.dropdown-menu .calendar .calendar-table td.booked {
  background: transparent;
  color: #c4c4c4;
  font-weight: 400;
  text-decoration: line-through;
  box-shadow: none;
}

/* Check-out only: selectable as the last day, never as check-in. */
.daterangepicker.dropdown-menu .calendar .calendar-table td.semi-available {
  background: transparent;
  color: #b0b0b0;
  font-weight: 400;
}

.daterangepicker.dropdown-menu .calendar .calendar-table td.semi-available:after {
  display: none;
}

/* The stay: a light band (the same grey as the availability calendar's
   hover), with dark circles at both ends. */
.daterangepicker.dropdown-menu .calendar .calendar-table td.in-range {
  background: #f7f7f7;
  color: #5c5c5c;
  border-radius: 0;
}

/* Check-in/check-out: a dark circle drawn over half of the band, so the
   band runs on unbroken behind the circle (right half for check-in, left
   half for check-out), as on Airbnb. */
.daterangepicker.dropdown-menu .calendar .calendar-table td.start-date,
.daterangepicker.dropdown-menu .calendar .calendar-table td.end-date,
.daterangepicker.dropdown-menu .calendar .calendar-table td.active,
.daterangepicker.dropdown-menu .calendar .calendar-table td.active:hover {
  background: radial-gradient(circle closest-side, #5c5c5c 96%, transparent 100%);
  color: #fff;
  border-radius: 0;
  text-decoration: none;
  box-shadow: none;
}

/* Check-in: only once there is a stay to its right (a chosen check-out or
   hovered dates), otherwise a plain circle. */
.daterangepicker.dropdown-menu .calendar .calendar-table td.start-date:not(.end-date):has(+ td.in-range, + td.end-date, + td.hover-end) {
  background:
    radial-gradient(circle closest-side, #5c5c5c 96%, transparent 100%),
    linear-gradient(90deg, transparent 50%, #f7f7f7 50%);
}

.daterangepicker.dropdown-menu .calendar .calendar-table td.end-date:not(.start-date) {
  background:
    radial-gradient(circle closest-side, #5c5c5c 96%, transparent 100%),
    linear-gradient(90deg, #f7f7f7 50%, transparent 50%);
}

/* While choosing, the date under the mouse (hover-end, set in
   daterangepicker.js) is only outlined - a white circle with a dark ring at
   the end of the band - until it is clicked. */
.daterangepicker.dropdown-menu .calendar .calendar-table td.hover-end:not(.start-date) {
  background:
    radial-gradient(circle closest-side, #fff 88%, #5c5c5c 90%, #5c5c5c 96%, transparent 100%),
    linear-gradient(90deg, #f7f7f7 50%, transparent 50%);
  color: #5c5c5c;
  border-radius: 0;
  text-decoration: none;
  box-shadow: none;
}

/* The hovered date (and its tooltip) above every other date: selected
   dates and, on some pages, the date numbers carry their own z-index (up to
   9 !important) and were drawn over the tooltip. */
.daterangepicker.dropdown-menu .calendar .calendar-table td.available:hover,
.daterangepicker.dropdown-menu .calendar .calendar-table td.hover-end {
  position: relative;
  z-index: 30 !important;
}

/* Airbnb-style hover tooltips: "Check In" while picking the first date,
   "Check Out" while picking the second (labels set by eb.js, translated). */
.daterangepicker.dropdown-menu:not(.eb-picking-end) .calendar .calendar-table td.available:hover::before,
.daterangepicker.dropdown-menu.eb-picking-end .calendar .calendar-table td.hover-end::before {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  color: #5c5c5c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: none;
}

.daterangepicker.dropdown-menu:not(.eb-picking-end) .calendar .calendar-table td.available:hover::before {
  content: var(--eb-label-checkin, "Check In");
}

.daterangepicker.dropdown-menu.eb-picking-end .calendar .calendar-table td.hover-end::before {
  content: var(--eb-label-checkout, "Check Out");
}

/* Its own line height: inherited, it followed the page's text (the theme's
   on the website, WordPress's in the admin) */
.daterangepicker.dropdown-menu .booking-nights {
  color: #717171;
  border-top-color: #ebebeb;
  line-height: 28px;
}

/* Availability on its way (admin New Booking: room switched, form opened):
   the months fade back and can't be clicked while a spinner turns; they come
   back drawn with the new room's days (bookings.js) */
.daterangepicker.dropdown-menu .calendar {
  transition: opacity .2s ease;
}

.daterangepicker.dropdown-menu.eb-picker-loading .calendar {
  opacity: .3;
  pointer-events: none;
}

.daterangepicker .eb-picker-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  box-sizing: border-box;
  border: 3px solid #ebebeb;
  border-top-color: #5c5c5c;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
  animation: eb-picker-spin .7s linear infinite;
}

.daterangepicker.eb-picker-loading .eb-picker-loader {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease;
}

@keyframes eb-picker-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Guests picker: the date picker's card (the field itself is styled with its form)
 ---------------------------------------------------------------------------*/
.eb-guestspicker .eb-guestspicker-content {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99;
  display: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 280px;
  margin-top: 8px;
  padding: 4px 20px;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  color: #5c5c5c;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: auto;
}

.rtl .eb-guestspicker .eb-guestspicker-content {
  right: 0;
  left: auto;
  text-align: right;
}

.eb-guestspicker .eb-guestspicker-content.up {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 8px;
}

.eb-guestspicker.active .eb-guestspicker-content {
  display: block;
}

/* A row each: Adults, Children (or Guests) */
.eb-guestspicker .guests-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #ebebeb;
  -webkit-user-select: none;
  user-select: none;
}

.eb-guestspicker .guests-buttons:last-child {
  border-bottom: 0;
}

.eb-guestspicker .eb-guestspicker-content .description label {
  display: block !important;
  position: static;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #5c5c5c;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: normal;
  text-transform: none;
}

.eb-guestspicker .eb-guestspicker-content .ages {
  margin-top: 2px;
  color: #717171;
  font-size: 13px;
  line-height: 16px;
}

/* - number + */
.eb-guestspicker .guests-button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.eb-guestspicker .eb-guestspicker-content .guests-button input {
  width: 32px;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #5c5c5c;
  font-size: 15px;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  pointer-events: none;
}

/* Round buttons, drawn: no icon font */
.eb-guestspicker .plus,
.eb-guestspicker .minus {
  position: relative;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 1px solid #c4c4c4;
  border-radius: 50%;
  background: #fff;
  color: #5c5c5c;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.eb-guestspicker .plus:before,
.eb-guestspicker .plus:after,
.eb-guestspicker .minus:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  border-radius: 1px;
  background: currentColor;
}

.eb-guestspicker .plus:after {
  width: 2px;
  height: 10px;
  margin: -5px 0 0 -1px;
}

.eb-guestspicker .plus:hover,
.eb-guestspicker .minus:hover {
  border-color: #5c5c5c;
}

.eb-guestspicker .plus:active,
.eb-guestspicker .minus:active {
  background: #f7f7f7;
}

/* At a limit: greyed out, as the date picker's unavailable days */
.eb-guestspicker .plus.eb-disabled,
.eb-guestspicker .minus.eb-disabled {
  border-color: #ebebeb;
  background: #fff;
  color: #c4c4c4;
  cursor: not-allowed;
}
