/* Buscador de hoteles MuchoTurismo · versión común 1.0 */
:root {
  --mtb-accent: #c98a1a;
  --mtb-accent-dark: #a96f0f;
  --mtb-text: #252525;
  --mtb-muted: #6f6f6f;
  --mtb-border: #dedede;
  --mtb-bg: #ffffff;
  --mtb-soft: #fcf8f1;
  --mtb-range: #f5e7ce;
  --mtb-shadow: 0 -8px 28px rgba(0, 0, 0, .12);
  --mtb-radius: 8px;
}

.mt-booking,
.mt-booking * { box-sizing: border-box; }

.mt-booking {
  position: fixed;
  z-index: 99990;
  left: 0;
  right: 0;
  bottom: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--mtb-text);
}

.mt-booking__mobile-trigger { display: none; }

.mt-booking__panel {
  background: var(--mtb-bg);
  border-top: 3px solid var(--mtb-accent);
  box-shadow: var(--mtb-shadow);
}

.mt-booking__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) repeat(2, minmax(145px, 1fr)) minmax(150px, 1fr) minmax(165px, 1fr) minmax(170px, .9fr);
  gap: 10px;
  align-items: end;
}

.mt-booking__brand { align-self: center; }
.mt-booking__hotel { display: block; font: 700 18px/1.15 Georgia, serif; }
.mt-booking__benefit { display: block; margin-top: 4px; color: var(--mtb-accent-dark); font-size: 12px; font-weight: 700; }
.mt-booking__field { position: relative; min-width: 0; }
.mt-booking__label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--mtb-muted); }

.mt-booking__control,
.mt-booking__promo,
.mt-booking__search {
  width: 100%;
  min-height: 44px;
  border-radius: 5px;
  font-size: 14px;
}

.mt-booking__control,
.mt-booking__promo {
  border: 1px solid var(--mtb-border);
  background: #fff;
  color: var(--mtb-text);
  padding: 10px 12px;
}

button.mt-booking__control { text-align: left; cursor: pointer; }
.mt-booking__control:focus,
.mt-booking__promo:focus { outline: 2px solid rgba(201, 138, 26, .3); border-color: var(--mtb-accent); }

.mt-booking__search {
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  background: var(--mtb-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mt-booking__search:hover { background: var(--mtb-accent-dark); }

.mt-booking__calendar {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: 660px;
  min-height: 360px;
  padding: 16px;
  border: 1px solid var(--mtb-border);
  border-radius: var(--mtb-radius);
  background: #fff;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.mt-booking__calendar[hidden] { display: none !important; }
.mt-booking__calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mt-booking__calendar-title { font-size: 14px; font-weight: 800; }
.mt-booking__calendar-close,
.mt-booking__nav { border: 0; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; padding: 5px 8px; }
.mt-booking__months { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mt-booking__month-name { margin-bottom: 8px; text-align: center; font-weight: 800; text-transform: capitalize; }
.mt-booking__weekdays,
.mt-booking__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.mt-booking__weekdays span { padding: 5px 0; text-align: center; color: var(--mtb-muted); font-size: 11px; font-weight: 700; }
.mt-booking__days { grid-template-rows: repeat(6, 36px); min-height: 216px; }
.mt-booking__day { border: 0; background: transparent; cursor: pointer; font-size: 13px; }
.mt-booking__day:hover:not(:disabled) { background: var(--mtb-soft); }
.mt-booking__day:disabled { color: #c7c7c7; cursor: default; }
.mt-booking__day.is-range { background: var(--mtb-range); }
.mt-booking__day.is-start,
.mt-booking__day.is-end { border-radius: 50%; color: #fff; background: var(--mtb-accent); font-weight: 800; }
.mt-booking__day.is-empty { visibility: hidden; }
.mt-booking__calendar-help { margin: 12px 0 0; color: var(--mtb-muted); text-align: center; font-size: 12px; }

.mt-booking__guests-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: 290px;
  padding: 15px;
  border: 1px solid var(--mtb-border);
  border-radius: var(--mtb-radius);
  background: #fff;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.mt-booking__guests-popover[hidden] { display: none !important; }
.mt-booking__counter { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.mt-booking__counter + .mt-booking__counter { border-top: 1px solid #eee; }
.mt-booking__stepper { display: flex; align-items: center; gap: 10px; }
.mt-booking__stepper button { width: 30px; height: 30px; border: 1px solid var(--mtb-border); border-radius: 50%; background: #fff; cursor: pointer; font-size: 18px; }
.mt-booking__stepper output { min-width: 20px; text-align: center; font-weight: 800; }
.mt-booking__done { width: 100%; margin-top: 10px; padding: 9px; border: 0; border-radius: 4px; color: #fff; background: var(--mtb-accent); font-weight: 700; cursor: pointer; }

body.mt-booking-active { padding-bottom: 82px; }

@media (max-width: 991px) {
  body.mt-booking-active { padding-bottom: 64px; }
  .mt-booking__mobile-trigger {
    display: block;
    width: 100%;
    min-height: 58px;
    border: 0;
    padding: 12px 18px;
    color: #fff;
    background: var(--mtb-accent);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }
  .mt-booking__panel { display: none; max-height: calc(100vh - 58px); overflow-y: auto; }
  .mt-booking.is-open .mt-booking__panel { display: block; }
  .mt-booking__inner { width: 100%; padding: 15px; grid-template-columns: 1fr 1fr; }
  .mt-booking__brand,
  .mt-booking__field--guests,
  .mt-booking__field--promo,
  .mt-booking__field--submit { grid-column: 1 / -1; }
  .mt-booking__calendar { position: fixed; left: 10px; right: 10px; bottom: 68px; width: auto; max-height: calc(100vh - 90px); overflow-y: auto; }
  .mt-booking__guests-popover { position: fixed; left: 10px; right: 10px; bottom: 68px; width: auto; }
}

@media (max-width: 620px) {
  .mt-booking__inner { grid-template-columns: 1fr; }
  .mt-booking__brand,
  .mt-booking__field { grid-column: 1 !important; }
  .mt-booking__months { grid-template-columns: 1fr; }
  .mt-booking__month:last-child { display: none; }
  .mt-booking__calendar { min-height: 390px; }
}
