/* MyHub Booking Widget - styles
   Namespaced under .mhbw so nothing leaks into Elementor. */

.mhbw, .mhbw * { box-sizing: border-box; }

.mhbw {
  --mhbw-yellow: #FFD400;
  --mhbw-yellow-hover: #F5C800;
  --mhbw-navy:   #1B2A5E;
  --mhbw-white:  #FFFFFF;
  --mhbw-muted:  #8A94A6;
  --mhbw-range:  #E6F6FD;
  --mhbw-line:   #ECEEF3;
  --mhbw-card:   #F1F2F4;

  font-family: Helvetica, Arial, sans-serif;
  color: var(--mhbw-navy);
}

/* ---- the card ---- */
.mhbw--room .mhbw__bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 24px;
}

.mhbw__field-wrap { position: relative; }

/* ---- accommodation selector: hidden when the shortcode locks a room ---- */
.mhbw--locked .mhbw__field-wrap[data-mhbw="cat"] { display: none; }

/* ---- outlined fields ---- */
.mhbw--room .mhbw__field {
  width: 100%;
  background-color: var(--mhbw-white);
  border: 2px solid var(--mhbw-navy);
  border-radius: 40px;
  height: 56px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--mhbw-navy);
  text-align: left;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.mhbw--room .mhbw__field:hover { box-shadow: 0 4px 14px rgba(27,42,94,.12); }
.mhbw--room .mhbw__field:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mhbw-range); }
.mhbw--room .mhbw__field.is-error { border-color: #E4572E; }

.mhbw__field-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mhbw--room .mhbw__field-label.is-placeholder { font-weight: 400; color: var(--mhbw-muted); }
.mhbw__field .mhbw__ic { flex: 0 0 auto; color: var(--mhbw-navy); transition: transform .15s ease; }
.mhbw--room .mhbw__field.is-open .mhbw__ic { transform: rotate(180deg); }

/* ---- full-width button ---- */
.mhbw--room .mhbw__search {
  width: 100%;
  justify-content: center;
  background: var(--mhbw-yellow);
  color: var(--mhbw-navy);
  border: none;
  border-radius: 40px;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background-color .15s ease, transform .05s ease;
}
.mhbw--room .mhbw__search:hover { background: var(--mhbw-yellow-hover); }
.mhbw--room .mhbw__search:active { transform: translateY(1px); }
.mhbw--room .mhbw__search:focus-visible { outline: 3px solid var(--mhbw-navy); outline-offset: 2px; }

/* ---- clear all ---- */
.mhbw--room .mhbw__clear-row { display: none; text-align: center; padding: 8px 0 0; }
.mhbw--room.has-input .mhbw__clear-row { display: block; }
.mhbw__clear {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--mhbw-navy); text-decoration: underline; padding: 4px;
}
.mhbw__clear:hover { opacity: .8; }

/* ---- optional heading ---- */
.mhbw__heading {
  margin: 0 0 16px;
  text-align: center;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  color: var(--mhbw-navy);
}

/* ---- popovers ---- */
.mhbw__pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  min-width: 0;
  background: var(--mhbw-white);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(27,42,94,.18);
  padding: 12px;
  z-index: 40;
}
.mhbw__pop[hidden] { display: none; }

/* accommodation list */
.mhbw__opt {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--mhbw-navy); padding: 12px 14px; border-radius: 12px;
}
.mhbw__opt:hover, .mhbw__opt.is-selected { background: var(--mhbw-range); }

/* guest steppers */
.mhbw__guest-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; }
.mhbw__guest-row + .mhbw__guest-row { border-top: 1px solid var(--mhbw-line); }
.mhbw__guest-name { font-size: 16px; font-weight: 700; color: var(--mhbw-navy); }
.mhbw__guest-sub  { font-size: 13px; font-weight: 400; color: var(--mhbw-muted); margin-top: 2px; }
.mhbw__stepper { display: flex; align-items: center; gap: 16px; }
.mhbw__step-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--mhbw-line); background: var(--mhbw-white);
  color: var(--mhbw-navy); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mhbw__step-btn:hover:not(:disabled) { border-color: var(--mhbw-navy); }
.mhbw__step-btn:disabled { opacity: .35; cursor: default; }
.mhbw__step-btn:focus-visible { outline: 2px solid var(--mhbw-navy); outline-offset: 1px; }
.mhbw__step-val { min-width: 18px; text-align: center; font-size: 16px; font-weight: 700; }
.mhbw__guest-done {
  width: 100%; margin-top: 6px; border: none; cursor: pointer;
  background: var(--mhbw-navy); color: #fff; border-radius: 12px;
  font-family: inherit; font-size: 15px; font-weight: 700; padding: 12px;
}

/* ---- calendar ---- */
.mhbw--room .mhbw__pop.mhbw__cal { padding: 12px 8px; left: -8px; right: -8px; }
.mhbw__cal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 12px; }
.mhbw__cal-title { font-size: 16px; font-weight: 700; }
.mhbw__cal-nav {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--mhbw-line);
  background: #fff; cursor: pointer; color: var(--mhbw-navy); font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.mhbw__cal-nav:hover:not(:disabled) { border-color: var(--mhbw-navy); }
.mhbw__cal-nav:disabled { opacity: .3; cursor: default; }

/* the overflow fix: minmax(0,1fr) + min-width:0 on children */
.mhbw__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}
.mhbw__cal-dow {
  min-width: 0;
  font-size: 12px; font-weight: 700; color: var(--mhbw-muted);
  text-align: center; padding: 6px 0;
}
.mhbw__cal-day {
  min-width: 0;
  height: 40px;
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--mhbw-navy);
  border-radius: 10px;
  padding: 0;
}
.mhbw__cal-day:hover:not(:disabled):not(.is-start):not(.is-end) { background: var(--mhbw-range); }
.mhbw__cal-day:disabled { color: #C7CDD8; cursor: default; }
.mhbw__cal-day.is-empty { visibility: hidden; }
.mhbw__cal-day.in-range { background: var(--mhbw-range); border-radius: 0; }
.mhbw__cal-day.is-start, .mhbw__cal-day.is-end { background: var(--mhbw-navy); color: #fff; }
.mhbw__cal-day.is-start { border-radius: 10px 0 0 10px; }
.mhbw__cal-day.is-end   { border-radius: 0 10px 10px 0; }
.mhbw__cal-day.is-single { border-radius: 10px; }
.mhbw__cal-hint { font-size: 13px; color: var(--mhbw-muted); text-align: center; padding: 10px 0 4px; }

@media (prefers-reduced-motion: reduce) {
  .mhbw *, .mhbw *::before, .mhbw *::after { transition: none !important; }
}
