:root {
  --pwa-surface: rgba(255, 255, 255, 0.96);
  --pwa-surface-soft: rgba(255, 255, 255, 0.86);
  --pwa-border: rgba(23, 32, 42, 0.1);
  --pwa-text: #17202a;
  --pwa-muted: #667085;
  --pwa-primary: #d53b33;
  --pwa-primary-dark: #b72d28;
  --pwa-success: #1f8f62;
  --pwa-warning: #b7791f;
  --pwa-shadow: 0 12px 28px rgba(15, 23, 42, 0.13);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overscroll-behavior-y: none;
}

.page-content {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

#footer-bar {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: saturate(1.2) blur(16px);
}

#footer-bar a {
  min-height: 56px;
  touch-action: manipulation;
}

.btn,
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.input-style.has-borders input,
.input-style.has-borders select,
.input-style.has-borders textarea {
  min-height: 52px;
  font-size: 16px !important;
}

.input-style.has-borders textarea {
  min-height: 104px;
}

.number-stepper-field {
  position: relative;
}

.number-stepper-wrapper {
  display: block;
  width: 100%;
}

.number-stepper-field > input[type="number"],
.number-stepper-field > .form-control[type="number"] {
  width: 100%;
  display: block;
  padding-right: 98px !important;
  border-color: rgba(47, 128, 237, 0.78) !important;
  border-radius: 12px !important;
  -moz-appearance: textfield;
}

.number-stepper-field:focus-within > input[type="number"],
.number-stepper-field:focus-within > .form-control[type="number"] {
  border-color: #2f80ed !important;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.16) !important;
}

.number-stepper-field > input[type="number"].is-invalid,
.was-validated .number-stepper-field > input[type="number"]:invalid {
  border-color: #ea5b7d !important;
  box-shadow: 0 0 0 3px rgba(234, 91, 125, 0.13) !important;
}

.number-stepper-field > input[type="number"]::-webkit-outer-spin-button,
.number-stepper-field > input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.number-stepper-controls {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 90px;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(47, 128, 237, 0.78);
  border-left: 1px solid rgba(47, 128, 237, 0.28);
  border-radius: 0 12px 12px 0;
  background: #fff;
}

.number-stepper-field:focus-within .number-stepper-controls {
  border-color: #2f80ed;
  border-left-color: rgba(47, 128, 237, 0.35);
}

.number-stepper-field:has(> input[type="number"].is-invalid) .number-stepper-controls,
.was-validated .number-stepper-field:has(> input[type="number"]:invalid) .number-stepper-controls {
  border-color: #ea5b7d;
  border-left-color: rgba(234, 91, 125, 0.35);
}

.number-stepper-button {
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #17202a;
  font-size: 13px;
  line-height: 1;
  touch-action: manipulation;
}

.number-stepper-button + .number-stepper-button {
  border-left: 1px solid rgba(47, 128, 237, 0.2);
}

.number-stepper-button:focus,
.number-stepper-button:hover {
  background: rgba(47, 128, 237, 0.1);
  color: #0f5fc7;
  outline: none;
}

.number-stepper-button:disabled {
  color: #98a2b3;
  background: rgba(238, 242, 244, 0.75);
}

.menu-box-bottom.menu-box-detached {
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  max-height: calc(100vh - 28px - env(safe-area-inset-bottom));
}

.booking-page {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(132px + env(safe-area-inset-bottom));
  color: var(--pwa-text);
}

.page-content.booking-has-sticky-cta,
.page-content:has(.booking-sticky-cta) {
  transform: none !important;
}

.booking-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 4px 2px 2px;
}

.booking-back,
.booking-icon-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--pwa-surface);
  color: var(--pwa-text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.booking-hero span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.booking-eyebrow {
  display: block;
  color: var(--pwa-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.booking-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 900;
}

.booking-hero p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.booking-card,
.booking-calendar {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--pwa-border);
  border-radius: 8px;
  background: var(--pwa-surface);
  box-shadow: var(--pwa-shadow);
}

.booking-calendar {
  overflow: hidden;
  padding: 0;
}

.booking-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.booking-section-title h2 {
  margin: 2px 0 0;
  color: var(--pwa-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.booking-section-title p {
  margin: 3px 0 0;
  color: var(--pwa-muted);
  font-size: 12px;
  line-height: 1.35;
}

.booking-section-title i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(213, 59, 51, 0.11);
  color: var(--pwa-primary);
}

.booking-form-grid {
  display: grid;
  gap: 12px;
}

.booking-form-grid .input-style {
  margin-bottom: 0 !important;
}

.booking-form-grid .input-style label,
.booking-date-row .input-style label {
  opacity: 1;
  transform: none;
}

.booking-calendar .cal-header {
  position: relative;
  padding: 12px 56px;
  background: var(--pwa-primary);
}

.booking-calendar .cal-title {
  margin: 0;
  height: auto;
  line-height: 1.3;
  background: transparent !important;
}

.booking-calendar .cal-title a {
  display: block;
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
}

.booking-calendar .calendar-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.booking-calendar .calendar-nav-prev {
  left: 8px;
}

.booking-calendar .calendar-nav-next {
  right: 8px;
}

.booking-calendar .cal-header-has-year .calendar-nav {
  top: 12px;
  transform: none;
}

.booking-calendar-year-controls {
  width: min(210px, 100%);
  min-height: 38px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 7px;
  margin: 10px auto 0;
}

.booking-calendar-year-select,
.booking-calendar .calendar-year-button {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.booking-calendar-year-select {
  width: 100%;
  padding: 0 28px 0 10px;
  text-align: center;
  text-align-last: center;
}

.booking-calendar-year-select option {
  color: var(--pwa-text);
  background: #fff;
}

.booking-calendar .calendar-year-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.booking-calendar .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(213, 59, 51, 0.92) !important;
}

.booking-calendar .cal-days a,
.booking-calendar .cal-dates a {
  float: none;
  width: auto;
}

.booking-calendar .cal-days a {
  height: 34px;
  line-height: 34px;
  font-size: 11px;
}

.booking-calendar .cal-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.booking-calendar .cal-dates a {
  min-height: 46px;
  line-height: 46px;
  font-size: 15px;
  touch-action: manipulation;
}

.booking-calendar .cal-dates a:nth-child(7n) {
  border-right: 0;
}

.booking-calendar .cal-selected {
  background: var(--pwa-primary);
  color: #fff !important;
  font-weight: 900;
}

.booking-calendar .cal-selected span {
  color: #fff;
}

.booking-calendar .cal-checkin,
.booking-calendar .cal-checkout {
  color: #fff !important;
  font-weight: 900;
}

.booking-calendar .cal-checkin {
  background: var(--pwa-success) !important;
}

.booking-calendar .cal-checkout {
  background: #2563eb !important;
}

.booking-calendar .cal-checkin span,
.booking-calendar .cal-checkout span {
  color: #fff;
}

.booking-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--pwa-border);
  background: rgba(248, 250, 251, 0.86);
}

.booking-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pwa-muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.booking-calendar-legend__swatch {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.booking-calendar-legend__swatch--checkin {
  background: var(--pwa-success);
}

.booking-calendar-legend__swatch--stay {
  background: var(--pwa-primary);
}

.booking-calendar-legend__swatch--checkout {
  background: #2563eb;
}

.booking-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.booking-sync-row > div:first-child {
  min-width: 0;
}

.booking-sync-row .ios-switch {
  width: 58px;
  min-width: 58px;
  height: 32px;
  margin: 0 !important;
  padding-left: 0;
  transform: none;
}

.booking-sync-row .ios-switch .custom-control-label {
  width: 58px;
  height: 32px;
  display: block;
  margin: 0;
  cursor: pointer;
}

.booking-sync-row .ios-switch label::before {
  margin-top: 0;
  margin-left: 0;
}

.booking-sync-row .ios-switch label::after {
  margin-top: -31px;
  margin-left: 1px;
}

.booking-sync-row h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.booking-sync-row p {
  margin: 2px 0 0;
  color: var(--pwa-muted);
  font-size: 12px;
}

.booking-date-list {
  display: grid;
  gap: 10px;
}

.booking-date-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--pwa-border);
  border-radius: 8px;
  background: #fff;
}

.booking-date-row__head,
.booking-summary-row,
.booking-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-date-row__head strong {
  color: var(--pwa-text);
  font-size: 14px;
  line-height: 1.35;
}

.booking-date-row__head span {
  display: block;
  color: var(--pwa-muted);
  font-size: 12px;
}

.booking-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-remove-date {
  width: 38px;
  height: 38px;
  min-width: 38px;
  color: var(--pwa-primary);
  box-shadow: none;
  background: rgba(213, 59, 51, 0.1);
}

.booking-summary-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(31, 143, 98, 0.08);
}

.booking-summary-row,
.booking-total-row {
  color: var(--pwa-muted);
  font-size: 13px;
}

.booking-summary-row strong,
.booking-total-row strong {
  color: var(--pwa-text);
  text-align: right;
}

.booking-total-row strong {
  color: var(--pwa-primary);
  font-size: 19px;
}

.booking-sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 97;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.15) blur(16px);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.12);
}

.booking-sticky-cta__inner {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-sticky-cta span {
  display: block;
  max-width: 48vw;
  overflow: hidden;
  color: var(--pwa-muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-sticky-cta strong {
  display: block;
  color: var(--pwa-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.booking-action {
  display: inline-flex;
  min-width: 136px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--pwa-primary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(213, 59, 51, 0.28);
}

.booking-action.is-disabled {
  background: #8d98a8;
  box-shadow: none;
}

.booking-sticky-cta .booking-action.is-disabled {
  pointer-events: auto;
}

.booking-confirm-menu {
  height: auto !important;
  max-height: calc(92vh - env(safe-area-inset-bottom));
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.18);
}

.booking-confirm-menu__shell {
  display: flex;
  max-height: calc(92vh - env(safe-area-inset-bottom));
  flex-direction: column;
}

.booking-confirm-menu__head {
  position: relative;
  margin: 0 !important;
  padding: 16px 58px 12px 16px;
  border-bottom: 1px solid var(--pwa-border);
}

.booking-confirm-menu__head p {
  margin: 5px 0 0;
  color: var(--pwa-muted);
  font-size: 12px;
  line-height: 1.35;
}

.booking-confirm-menu__head .close-menu {
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f2f5f7;
  color: var(--pwa-text);
  line-height: 38px;
  text-align: center;
}

.booking-confirm-menu__body {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 0;
}

.booking-confirm-menu__body > form:last-child {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 12px -14px 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--pwa-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.15) blur(16px);
}

.booking-confirm-menu__body > form:last-child .booking-action {
  margin-top: 0 !important;
}

.booking-confirm-menu .menu-title h1 {
  margin: 0;
  padding-right: 0;
  color: var(--pwa-text);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

.booking-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.booking-review-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--pwa-border);
  border-radius: 8px;
  background: #f8fafb;
}

.booking-review-item span {
  display: block;
  color: var(--pwa-muted);
  font-size: 11px;
  line-height: 1.25;
}

.booking-review-item strong {
  display: block;
  margin-top: 5px;
  color: var(--pwa-text);
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}

.booking-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--pwa-border);
}

.booking-price-row:first-child {
  border-top: 0;
}

.booking-price-row span {
  color: var(--pwa-muted);
  font-size: 12px;
}

.booking-price-row strong {
  color: var(--pwa-text);
  text-align: right;
}

.booking-price-row.is-total strong {
  color: var(--pwa-primary);
  font-size: 18px;
}

/* Legacy booking pages that still use the original calendar/card markup. */
.page-content .calendar {
  overflow: hidden;
  border: 1px solid var(--pwa-border);
  border-radius: 8px !important;
  background: var(--pwa-surface) !important;
  box-shadow: var(--pwa-shadow) !important;
}

.page-content .calendar .cal-header {
  position: relative;
  min-height: 58px;
  padding: 13px 56px;
  background: var(--pwa-primary);
}

.page-content .calendar .cal-title {
  margin: 0;
  height: auto;
  line-height: 1.3;
  background: transparent !important;
}

.page-content .calendar .cal-title a {
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
}

.page-content .calendar .cal-title-left,
.page-content .calendar .cal-title-right {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  line-height: 44px;
  text-align: center;
}

.page-content .calendar .cal-title-left {
  left: 8px;
}

.page-content .calendar .cal-title-right {
  right: 8px;
}

.page-content .calendar .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(213, 59, 51, 0.92) !important;
}

.page-content .calendar .cal-days a,
.page-content .calendar .cal-dates a {
  float: none;
  width: auto;
}

.page-content .calendar .cal-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.page-content .calendar .cal-dates a {
  min-height: 46px;
  line-height: 46px;
  font-size: 15px;
}

.page-content .calendar .cal-selected {
  background: var(--pwa-primary);
  color: #fff !important;
  font-weight: 900;
}

.page-content .card.card-style .cal-message {
  display: block;
}

.page-content .card.card-style {
  border: 1px solid var(--pwa-border);
  border-radius: 8px !important;
  box-shadow: var(--pwa-shadow) !important;
}

/* Shared mobile shell for legacy payment/detail pages. */
.page-content > .card.card-style,
.page-content > form > .card.card-style,
.page-content > .content-boxed {
  max-width: 640px;
  margin-right: auto !important;
  margin-left: auto !important;
}

.page-content > .card.card-style:first-of-type {
  margin-top: calc(12px + env(safe-area-inset-top)) !important;
}

.page-content .card.card-style .content {
  padding: 16px;
}

.page-content .card.card-style h1,
.page-content .card.card-style h2,
.page-content .card.card-style h3,
.page-content .card.card-style h4,
.page-content .card.card-style h5 {
  letter-spacing: 0;
}

.page-content .card.card-style h4:first-child,
.page-content .card.card-style .content > h4:first-child {
  margin-bottom: 8px;
  color: var(--pwa-text);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.page-content .card.card-style p {
  color: var(--pwa-muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-content .card.card-style .btn-full,
.page-content form .btn-full,
.page-content input[type="submit"].btn-full {
  min-height: 48px;
  border-radius: 8px !important;
  font-size: 13px;
  letter-spacing: 0;
}

.page-content .card.card-style img.polaroid-effect,
.page-content .card.card-style img.shadow-l {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.page-content .list-group.list-custom-small a,
.page-content .list-group.list-custom-large a {
  min-height: 48px;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.page-content .content-boxed {
  border: 1px solid var(--pwa-border);
  border-radius: 8px !important;
  background: var(--pwa-surface) !important;
  box-shadow: var(--pwa-shadow);
}

.page-content input[type="date"].form-control,
.page-content input[type="file"].form-control {
  min-height: 48px;
  border-radius: 8px;
  font-size: 16px;
}

@media (min-width: 700px) {
  .booking-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-form-grid .booking-field-full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .booking-page {
    padding-right: 10px;
    padding-left: 10px;
  }

  .booking-sticky-cta {
    padding-right: 10px;
    padding-left: 10px;
  }

  .booking-action {
    min-width: 118px;
    font-size: 12px;
  }
}
