html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --booking-font-base: 15px;
  --booking-font-sm: 13px;
  --booking-font-xs: 11px;
  --booking-radius: 18px;
  --booking-gap: 14px;
  --booking-input-height: 46px;
  --booking-button-height: 48px;
}

#booking-modal {
  --booking-bg: #07111f;
  --booking-surface: #0f1a2a;
  --booking-card: #111827;
  --booking-border: rgba(255, 255, 255, 0.12);
  --booking-text: #ffffff;
  --booking-muted: #9ca3af;
  --booking-accent: #a3e635;
  --booking-danger: #ef4444;
}

body.booking-modal-open {
  overflow: hidden;
}

.booking-panel {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  max-height: 88vh;
  font-size: var(--booking-font-base);
}

.booking-content {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.booking-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.booking-header {
  padding: 24px 28px 18px;
}

.booking-header h3 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
}

.booking-content {
  padding: 22px 28px;
}

.booking-footer {
  padding: 16px 28px;
}

.booking-panel input,
.booking-panel select,
.booking-panel textarea,
.booking-panel button {
  font-size: var(--booking-font-base);
}

.booking-panel input,
.booking-panel select,
.booking-panel textarea {
  min-height: var(--booking-input-height);
  padding: 10px 14px;
  border-radius: calc(var(--booking-radius) - 2px);
}

.booking-panel label,
.booking-panel p,
.booking-panel span {
  font-size: inherit;
}

.booking-stay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--booking-gap);
}

.booking-date-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-mobile-date-summary {
  display: none;
}

.booking-date-summary-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 26, 42, 0.9);
  border-radius: 16px;
  padding: 14px;
}

.booking-date-summary-card span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.booking-date-summary-card strong,
.booking-date-summary-card .booking-date-summary-value {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: #fff;
}

.booking-counter-card {
  padding: 18px;
  border-radius: var(--booking-radius);
}

.booking-counter-value {
  height: 58px;
  font-size: 32px;
}

.booking-counter-btn {
  width: 42px;
  height: 42px;
}

.booking-footer button,
.booking-secondary-btn {
  min-height: 46px;
  padding: 0 22px;
}

.booking-secondary-btn {
  border-radius: 999px;
  font-size: var(--booking-font-sm);
}

.booking-stepper-mobile {
  margin-top: 12px;
}

.booking-stepper-mobile #booking-step-mobile-label {
  font-size: var(--booking-font-sm);
}

.booking-stepper-mobile #booking-step-mobile-short {
  font-size: var(--booking-font-xs);
}

.booking-stepper-mobile .h-1\.5,
.booking-stepper-mobile .h-1 {
  height: 5px;
}

.booking-stepper-desktop [data-step-circle] {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.booking-stepper-desktop [data-step-node-label] {
  font-size: 13px;
}

.booking-contact-form {
  max-width: 640px;
  margin-inline: auto;
}

.booking-contact-form textarea {
  min-height: 96px;
}

.booking-contact-form label {
  margin-bottom: 6px;
}

.booking-phone-field .iti {
  display: block;
  width: 100%;
  --iti-border-color: var(--booking-border);
  --iti-dropdown-bg: var(--booking-surface);
  --iti-hover-color: rgba(255, 255, 255, 0.06);
  --iti-dialcode-color: rgba(255, 255, 255, 0.55);
  --iti-search-icon-color: rgba(255, 255, 255, 0.45);
  --iti-arrow-color: rgba(255, 255, 255, 0.62);
  --iti-spacer-horizontal: 10px;
  --iti-arrow-padding: 8px;
}

.booking-phone-field .iti__tel-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--booking-border);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(12, 19, 33, 0.98));
  color: var(--booking-text);
  border-radius: 22px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 18px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.booking-phone-field .iti__tel-input:focus {
  outline: none;
  border-color: var(--booking-accent);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.08);
}

.booking-phone-field .iti--allow-dropdown .iti__tel-input,
.booking-phone-field .iti--separate-dial-code .iti__tel-input {
  padding-left: 136px;
}

.booking-phone-field .iti__country-container {
  padding: 0;
}

.booking-phone-field .iti__selected-country {
  height: 100%;
  padding: 0 10px 0 12px;
  border-radius: 22px;
  color: var(--booking-text);
  background: transparent;
}

.booking-phone-field .iti__selected-country:hover,
.booking-phone-field .iti__selected-country:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.booking-phone-field .iti__selected-country-primary {
  gap: 10px;
  padding: 0 8px 0 10px;
}

.booking-phone-field .iti__flag {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.booking-phone-field .iti__selected-dial-code,
.booking-phone-field .iti__arrow {
  color: rgba(255, 255, 255, 0.62);
}

.booking-phone-field .iti__selected-dial-code {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.booking-phone-field .iti__dropdown-content {
  width: min(320px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--booking-border);
  border-radius: 18px;
  background: var(--booking-surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.booking-phone-field .iti__country-list {
  width: 100%;
  max-height: 236px;
  background: transparent;
  color: var(--booking-text);
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.booking-phone-field .iti__search-input-wrapper {
  padding: 8px;
  background: var(--booking-surface);
}

.booking-phone-field .iti__search-input {
  width: 100%;
  margin: 0;
  border: 1px solid var(--booking-border);
  min-height: 44px;
  border-radius: 14px;
  background: var(--booking-card);
  color: var(--booking-text);
  box-shadow: none;
  font-size: 15px;
}

.booking-phone-field .iti__search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.booking-phone-field .iti__search-clear {
  color: rgba(255, 255, 255, 0.6);
}

.booking-phone-field .iti__search-clear:hover,
.booking-phone-field .iti__search-clear:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.booking-phone-field .iti__search-input + .iti__country-list {
  border-top: 1px solid var(--booking-border);
}

.booking-phone-field .iti__country {
  padding: 9px 12px;
  gap: 10px;
  font-size: 15px;
}

.booking-phone-field .iti__country.iti__highlight {
  background: rgba(255, 255, 255, 0.06);
}

.booking-phone-field .iti__country.iti__selected {
  background: rgba(255, 255, 255, 0.09);
}

.booking-phone-field .iti__dial-code {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.booking-phone-field .iti__country-list::-webkit-scrollbar {
  width: 10px;
}

.booking-phone-field .iti__country-list::-webkit-scrollbar-track {
  background: transparent;
}

.booking-phone-field .iti__country-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  background-clip: padding-box;
}

.booking-payment-card {
  padding: 14px 16px;
  border-radius: calc(var(--booking-radius) - 2px);
}

.booking-price-summary-card,
.booking-success-card {
  border-radius: calc(var(--booking-radius) - 2px);
}

.booking-dates-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 26, 42, 0.88);
  border-radius: 22px;
  padding: 14px;
}

.booking-date-summary-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.booking-inline-calendar {
  width: 100%;
}

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

.booking-calendar-month {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.booking-calendar-nav {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.booking-calendar-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-calendar-weekdays,
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.booking-calendar-weekdays {
  margin-bottom: 4px;
}

.booking-calendar-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  padding-bottom: 6px;
}

.booking-calendar-day {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.booking-calendar-day.is-muted {
  color: rgba(255, 255, 255, 0.25);
}

.booking-calendar-day.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.booking-calendar-day.is-unavailable {
  background: rgba(244, 63, 94, 0.22);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(244, 63, 94, 0.45);
  position: relative;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.booking-calendar-day.is-in-range {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
  border-color: rgba(34, 211, 238, 0.55);
  border-radius: 0;
}

.booking-calendar-day.is-start,
.booking-calendar-day.is-end,
.booking-calendar-day.is-single {
  background: #a3f02a;
  color: #07101d;
  border-color: #a3f02a;
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.2);
}

.booking-calendar-day.is-start {
  border-start-start-radius: 12px;
  border-end-start-radius: 12px;
}

.booking-calendar-day.is-end {
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
}

.booking-calendar-day.is-single {
  border-radius: 12px;
}

.booking-calendar-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.booking-calendar-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-calendar-legend-swatch.is-start {
  background: #a3f02a;
  border-color: #a3f02a;
}

.booking-calendar-legend-swatch.is-in-range {
  background: rgba(34, 211, 238, 0.45);
  border-color: rgba(34, 211, 238, 0.6);
}

.booking-calendar-legend-swatch.is-unavailable {
  background: rgba(244, 63, 94, 0.32);
  border-color: rgba(244, 63, 94, 0.5);
}

.booking-date-actions {
  margin-top: 12px;
}

.booking-error {
  margin-top: 12px;
  font-size: var(--booking-font-sm);
  color: #fda4af;
}

.booking-error.hidden {
  display: none;
}

@media (max-width: 640px) {
  .booking-panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .booking-header {
    position: sticky;
    top: 0;
    z-index: 11;
    background: rgba(7, 17, 31, 0.98);
    backdrop-filter: blur(12px);
    padding: 18px 18px 14px;
  }

  .booking-header h3 {
    font-size: 28px;
    line-height: 1.1;
  }

  .booking-content {
    overflow-y: auto !important;
    padding: 18px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .booking-footer {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  .booking-panel input,
  .booking-panel select,
  .booking-panel textarea {
    min-height: 46px;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 1rem;
  }

  .booking-stay-grid {
    grid-template-columns: 1fr;
  }

  .booking-counter-card {
    padding: 14px;
    border-radius: 18px;
  }

  .booking-counter-value {
    height: 52px;
    font-size: 28px;
  }

  .booking-counter-btn {
    width: 40px;
    height: 40px;
  }

  .booking-payment-card {
    padding: 12px 14px;
  }

  .booking-phone-field .iti--allow-dropdown .iti__tel-input,
  .booking-phone-field .iti--separate-dial-code .iti__tel-input {
    min-height: 50px;
    padding-top: 11px;
    padding-bottom: 11px;
    padding-left: 118px;
    padding-right: 16px;
    border-radius: 20px;
    font-size: 17px;
  }

  .booking-phone-field .iti__dropdown-content {
    width: min(300px, calc(100vw - 32px));
  }

  .booking-phone-field .iti__country-list {
    width: 100%;
    max-height: 220px;
  }

  .booking-phone-field .iti__selected-country {
    padding: 0 8px 0 10px;
    border-radius: 20px;
  }

  .booking-phone-field .iti__selected-country-primary {
    gap: 8px;
    padding: 0 6px 0 8px;
  }

  .booking-phone-field .iti__selected-dial-code {
    font-size: 14px;
  }

  .booking-phone-field .iti__search-input {
    min-height: 42px;
    font-size: 14px;
  }

  .booking-phone-field .iti__country {
    padding: 8px 10px;
    font-size: 14px;
  }

  .booking-dates-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .booking-calendar-day {
    min-height: 36px;
    border-radius: 11px;
    font-size: 13px;
  }

  .booking-calendar-weekdays,
  .booking-calendar-grid {
    gap: 3px;
  }

  .booking-calendar-nav {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .booking-date-summary-text {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .booking-secondary-btn {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .booking-panel .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 14px;
  }

  .booking-panel .space-y-5 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 12px;
  }
}

@media (min-width: 641px) {
  .booking-stepper-mobile {
    display: none;
  }
}

@media (max-width: 640px) {
  .booking-stepper-desktop {
    display: none;
  }
}
