/* Marburg Cabin - OwnerRez booking bar
   Scoped to .mc-bookbar and the picker/panel it creates, so the theme's own
   styles keep control of the hero bar's frame, colours and placement. */

.mc-bookbar--live {
  position: relative;
}

/* The buttons that replace the native date inputs. */
.mc-bookbar__trigger {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  opacity: 0.6;
}

.mc-bookbar__trigger.is-set {
  opacity: 1;
  font-weight: 600;
}

.mc-bookbar__trigger.is-active {
  box-shadow: 0 0 0 2px currentColor;
  border-radius: 6px;
  opacity: 1;
}

/* ------------------------------------------------------------- the picker */

.mc-cal {
  position: absolute;
  z-index: 9999;
  top: calc(100% + 10px);
  left: 0;
  width: min(680px, calc(100vw - 32px));
  background: #fff;
  color: #222;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  padding: 16px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
}

.mc-cal[hidden] {
  display: none;
}

.mc-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mc-cal__title {
  font-weight: 600;
}

.mc-cal__nav {
  appearance: none;
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}

.mc-cal__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.mc-cal__months {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .mc-cal__months {
    grid-template-columns: 1fr 1fr;
  }
}

.mc-cal__month-name {
  text-align: center;
  font-weight: 600;
  margin-bottom: 6px;
}

.mc-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mc-cal__dow {
  text-align: center;
  font-size: 11px;
  color: #777;
  padding-bottom: 4px;
}

.mc-cal__pad {
  min-height: 44px;
}

.mc-cal__day {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 4px 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font: inherit;
  color: #222;
}

.mc-cal__day:hover:not(:disabled) {
  background: #f2f2f2;
}

.mc-cal__num {
  font-size: 14px;
  font-weight: 500;
}

.mc-cal__rate {
  font-size: 10px;
  color: #767676;
  letter-spacing: -0.2px;
}

.mc-cal__day.is-off {
  cursor: default;
  color: #c8c8c8;
}

.mc-cal__day.is-off .mc-cal__rate {
  display: none;
}

.mc-cal__day.is-booked .mc-cal__num {
  text-decoration: line-through;
}

.mc-cal__day.is-loading .mc-cal__num {
  opacity: 0.35;
}

.mc-cal__day.is-between {
  background: #f0f0f0;
  border-radius: 0;
}

.mc-cal__day.is-start,
.mc-cal__day.is-end {
  background: #1f2937;
  color: #fff;
}

.mc-cal__day.is-start .mc-cal__rate,
.mc-cal__day.is-end .mc-cal__rate {
  color: rgba(255, 255, 255, 0.75);
}

.mc-cal__status {
  margin-top: 10px;
  font-size: 13px;
  color: #444;
  min-height: 1.2em;
}

.mc-cal__status[hidden] {
  display: none;
}

.mc-cal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.mc-cal__clear {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 4px;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  color: #444;
}

.mc-cal__done {
  appearance: none;
  background: #1f2937;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------- primary call to action */

/* The theme already paints this rust (#A55E42). Pinned here so the live bar
   stays on brand even if the theme changes underneath it. */
.mc-bookbar--live .mc-bookbar__btn {
  background: #A55E42;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------ secondary inquiry */

.mc-bookbar__inquire {
  margin: 8px auto 0;
  max-width: 420px;
  text-align: center;
}

.mc-bookbar__inquire-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 2px 4px;
  font: inherit;
  font-size: 13px;
  color: #5A5048;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.mc-bookbar__inquire-link:hover,
.mc-bookbar__inquire-link:focus-visible {
  color: #A55E42;
}

/* ------------------------------------------------------------ price block */

.mc-bookbar__price {
  margin: 12px auto 0;
  max-width: 420px;
}

.mc-bookbar__price[hidden] {
  display: none;
}

.mc-price {
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.mc-price__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.mc-price__row--total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #e5e5e5;
  font-weight: 700;
  font-size: 16px;
}

.mc-price__label {
  color: #555;
}

.mc-price__row--total .mc-price__label {
  color: #222;
}

.mc-price__amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mc-price__note {
  margin-top: 6px;
  font-size: 12px;
  color: #6b6b6b;
}

/* ----------------------------------------------------------- reserve sheet */

body.mc-sheet-open {
  overflow: hidden;
}

.mc-sheet {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.mc-sheet__panel {
  background: #fff;
  border-radius: 16px;
  width: min(560px, 100%);
  max-height: min(860px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.mc-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.mc-sheet__title {
  min-width: 0;
}

.mc-sheet__title-main {
  font-weight: 700;
  font-size: 15px;
  color: #1F2328;
  margin-bottom: 3px;
}

.mc-sheet__title-sub {
  font-weight: 500;
  font-size: 12px;
  color: #555A60;
}

.mc-sheet__close {
  appearance: none;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 0 4px;
}

.mc-sheet__frame {
  border: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 520px;
  background: #fff;
}

@media (max-width: 600px) {
  .mc-sheet {
    padding: 0;
    align-items: stretch;
  }

  .mc-sheet__panel {
    border-radius: 0;
    max-height: 100%;
    width: 100%;
  }
}
