/* Booking popups on the homepage and room pages; inline availability calendars keep their theme. */
body.wellness-datepick-theme .datepick-popup {
  z-index: 10050 !important;
  max-width: calc(100vw - 24px);
}

body.wellness-datepick-theme .datepick-popup .mphb-datepicker-light-blue.mphb-datepick-popup {
  box-sizing: border-box;
  width: 344px !important;
  max-width: calc(100vw - 24px);
  padding: 12px;
  overflow: hidden;
  border: 1px solid #4a4034;
  border-radius: 14px;
  background: #24221f;
  color: #f5f0e8;
  box-shadow: 0 18px 48px rgb(0 0 0 / 38%);
  font-size: 14px;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-nav {
  display: flex;
  width: 100%;
  margin: 0 0 8px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #332f29;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-nav a {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 4px;
  background: transparent;
  color: #eee5d8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-nav a:hover {
  background: #b78d56;
  color: #211910;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-nav a.datepick-cmd-today {
  background: #b78d56;
  color: #211910;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-nav a.datepick-disabled {
  opacity: .42;
  cursor: default;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month-row {
  width: 100%;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month {
  float: none;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  margin: 0 0 6px;
  border: 0;
  background: transparent;
  color: #f5f0e8;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month-header select {
  width: auto;
  max-width: 57%;
  height: 34px;
  padding: 4px 22px 4px 9px;
  border: 1px solid #51483b;
  border-radius: 6px;
  background-color: #302d28;
  color: #f5f0e8;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
  background: transparent;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month th,
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td {
  width: 14.285%;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month th,
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month th span {
  color: #c8bfb2;
  font-size: 12px;
  font-weight: 600;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td a,
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  color: #f5f0e8;
  font-size: 14px;
  line-height: 1;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td a.mphb-selectable-date,
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td a.datepick-weekend {
  background: transparent !important;
  color: #f5f0e8 !important;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td a:hover,
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td a.datepick-highlight {
  background: #43392c !important;
  color: #fff7eb !important;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td .datepick-today {
  box-shadow: inset 0 0 0 1px #b78d56;
  background: #352f27;
  color: #f5f0e8;
  font-weight: 700;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td .datepick-selected,
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup.mphb-check-out-datepick .datepick-month td .mphb-check-in-date:not(.mphb-past-date) {
  background: #b78d56 !important;
  color: #211910 !important;
  font-weight: 700;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td .mphb-past-date,
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td .mphb-not-available-date,
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td .mphb-booked-date:not(.mphb-selectable-date),
body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-month td .mphb-unselectable-date {
  background: transparent;
  color: #888179;
  text-decoration: none;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-ctrl {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px 4px 0;
  border: 0;
  border-top: 1px solid #4a4034;
  background: transparent;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-ctrl::before {
  display: none;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-ctrl a {
  width: auto;
  min-height: 30px;
  padding: 4px 6px;
  background: transparent;
  color: #d9b785;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

body.wellness-datepick-theme .datepick-popup .mphb-datepick-popup .datepick-ctrl a:hover {
  background: #39332b;
  color: #f5f0e8;
}

@media (max-width: 600px) {
  body.wellness-datepick-theme .datepick-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: min(344px, calc(100vw - 24px));
    transform: translate(-50%, -50%);
  }

  body.wellness-datepick-theme .datepick-popup .mphb-datepicker-light-blue.mphb-datepick-popup {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

/* Room availability calendar: two distinct month cards, with the original
   free, booked and changeover-day semantics preserved. */
body.single-mphb_room_type .mphb-calendar.mphb-datepick {
  width: 100%;
  max-width: 100%;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  padding: 18px;
  border: 1px solid #4a4034;
  border-radius: 16px;
  background: #24221f;
  color: #f5f0e8;
  box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
  font-size: 14px;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0 0 16px;
  padding: 5px;
  border: 0;
  border-radius: 10px;
  background: #332f29;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  width: auto;
  padding: 7px 11px;
  border-radius: 7px;
  background: transparent;
  color: #eee5d8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-nav .datepick-cmd-prev {
  justify-content: flex-start;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-nav .datepick-cmd-next {
  justify-content: flex-end;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-nav .datepick-cmd-today {
  justify-content: center;
  background: #b78d56;
  color: #211910;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-nav a:not(.datepick-disabled):hover {
  background: #4a4034;
  color: #fff7eb;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-nav .datepick-cmd-today:hover {
  background: #c9a271;
  color: #211910;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-nav .datepick-disabled {
  opacity: .42;
  cursor: default;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month {
  float: none;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  padding: 12px !important;
  border: 1px solid #484137;
  border-radius: 12px;
  background: #2d2a26;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin: 0 0 8px !important;
  border: 0;
  background: transparent;
  color: #f5f0e8;
  font-size: 15px;
  font-weight: 700;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month-header select {
  width: auto;
  max-width: 58%;
  height: 34px;
  padding: 4px 20px 4px 8px;
  border: 1px solid #51483b;
  border-radius: 7px;
  background: #38342e;
  color: #f5f0e8;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month table {
  width: 100%;
  height: auto !important;
  margin: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 3px;
  background: transparent;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month th,
body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td {
  width: 14.285%;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month th,
body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month th span {
  color: #c8bfb2;
  font-size: 12px;
  font-weight: 600;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .mphb-date-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  background: #39352f;
  color: #f5f0e8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .mphb-extra-date,
body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .mphb-past-date {
  background: transparent !important;
  color: #817b72 !important;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .mphb-available-date {
  background: #c6e5cf !important;
  color: #193326 !important;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .mphb-booked-date,
body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .mphb-not-available-date {
  background: #d9aaa2 !important;
  color: #33201d !important;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .mphb-available-date.mphb-date-check-out {
  background: linear-gradient(135deg, #d9aaa2 0 49%, #c6e5cf 51% 100%) !important;
  color: #25231f !important;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .mphb-booked-date.mphb-date-check-in:not(.mphb-date-check-out) {
  background: linear-gradient(135deg, #c6e5cf 0 49%, #d9aaa2 51% 100%) !important;
  color: #25231f !important;
}

body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month td .datepick-today {
  box-shadow: inset 0 0 0 2px #b78d56;
  font-weight: 700;
}

body.single-mphb_room_type .wellness-availability-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 12px 0 0;
  color: #e9e2d8;
  font-size: 13px;
}

body.single-mphb_room_type .wellness-availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.single-mphb_room_type .wellness-availability-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

body.single-mphb_room_type .wellness-availability-legend .is-available {
  background: #c6e5cf;
}

body.single-mphb_room_type .wellness-availability-legend .is-booked {
  background: #d9aaa2;
}

body.single-mphb_room_type .wellness-availability-legend .is-changeover {
  background: linear-gradient(135deg, #c6e5cf 0 49%, #d9aaa2 51% 100%);
}

body.single-mphb_room_type .wellness-day-tooltip {
  position: fixed;
  z-index: 999999;
  box-sizing: border-box;
  width: max-content;
  max-width: min(240px, calc(100vw - 16px));
  padding: 9px 12px;
  border: 1px solid #b78d56;
  border-radius: 8px;
  background: #171613;
  box-shadow: 0 8px 22px #0008;
  color: #fff8ee;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.single-mphb_room_type .wellness-day-tooltip[hidden] {
  display: none;
}

@media (max-width: 767px) {
  body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick {
    padding: 12px;
  }

  body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.single-mphb_room_type .mphb-calendar.mphb-datepick .datepick-month {
    padding: 10px !important;
  }
}
