/* Booking section (form card + illustrated map) and shared dark form controls (.r-form),
   also used by the popups. */

/* ---------- Dark form controls ---------- */
.r-form__field { position: relative; min-width: 0; }
.r-form__input {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 400 16px/1 var(--r-font);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.r-form__input::placeholder { color: rgba(255, 255, 255, .6); opacity: 1; }
.r-form__input:focus { border-color: #dcc088; background-color: rgba(255, 255, 255, .09); }
.r-form__input::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); cursor: pointer; }
.r-form__input[type="date"] { color-scheme: dark; }
.r-form__select {
  padding-right: 44px;
  background-image: url("../img/booking/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px 14px;
  cursor: pointer;
}
.r-form__select:invalid, .r-form__select.is-empty { color: rgba(255, 255, 255, .6); }
.r-form__select option { color: var(--r-navy); }
.r-form__field.is-error .r-form__input,
.r-form__field.is-error.r-form__stepper { border-color: #f0a08a; }
.r-form__msg {
  position: absolute;
  left: 20px;
  top: calc(100% + 4px);
  font: 400 12px/1.3 var(--r-font);
  color: #f0a08a;
  white-space: nowrap;
  pointer-events: none;
}

.r-form__stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}
.r-page .r-form__step {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  border: 1px solid rgba(220, 192, 136, .6);
  color: #a9843f;
  font: 400 16px/1 var(--r-font);
  transition: background .2s, color .2s;
}
.r-form__step:hover { background: rgba(220, 192, 136, .16); color: #dcc088; }
.r-form__step-value { font: 400 16px/1 var(--r-font); color: rgba(255, 255, 255, .6); white-space: nowrap; }
.r-form__stepper.has-value .r-form__step-value { color: #fff; }

.r-form__consent { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.r-form__consent-input { position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; }
.r-form__check {
  flex: none;
  width: 22px;
  height: 22px;
  background: url("../img/booking/check-off.svg") center / 100% 100% no-repeat;
  transition: transform .2s;
}
.r-form__consent-input:checked + .r-form__check {
  background-image: url("../img/booking/check-mark.svg"), url("../img/booking/check-on.svg");
  background-size: 100% 100%, 100% 100%;
  animation: r-booking-pop .3s var(--r-ease);
}
.r-form__consent-input:focus-visible + .r-form__check { outline: 2px solid var(--r-gold); outline-offset: 3px; border-radius: 50%; }
.r-form__consent.is-error .r-form__check { box-shadow: 0 0 0 2px #f0a08a; border-radius: 50%; }
.r-form__consent-text { font: 400 14px/normal var(--r-font); color: rgba(255, 255, 255, .7); text-align: left; }
.r-form__consent-text a { color: #dcc088; text-decoration: underline; text-underline-offset: 2px; }
@keyframes r-booking-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

.r-page .r-form__submit { padding: 0 30px; font-size: 20px; font-weight: 500; font-family: var(--r-font-head); color: var(--r-ink); }
.r-page .r-form__submit:disabled { opacity: .35; cursor: not-allowed; filter: none; }
.r-form__submit.is-loading { opacity: .7; cursor: progress; }
.r-form__submit .r-arrow { width: 18px; height: 18px; }
.r-form__error { margin-top: 12px; font: 400 14px/1.4 var(--r-font); color: #f0a08a; }

/* ---------- Section ---------- */
.r-booking { position: relative; background: #fff; padding-top: 24px; overflow: hidden; }
.r-booking__card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(139.83deg, #1e2c68 25.32%, #0c1434 61.93%, #03050e 81.48%);
  color: #fff;
}
.r-booking__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.r-booking__title {
  display: flex;
  flex-direction: column;
  font: 300 60px/1.04 var(--r-font-head);
  letter-spacing: -.03em;
  color: #fff;
  white-space: nowrap;
}
.r-booking__title em {
  font-style: normal;
  background: var(--r-gold-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}
.r-booking__sub { font: 300 18px/1.5 var(--r-font); color: rgba(255, 255, 255, .7); text-align: right; max-width: 360px; }

.r-booking__fields { display: flex; align-items: flex-start; gap: 12px; }
.r-booking__fields > .r-form__field { flex: 1 1 0; }
.r-booking__submit { flex: none; height: 58px; }
.r-booking__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; }
.r-booking__call { font: 400 15px/normal var(--r-font); color: rgba(255, 255, 255, .7); white-space: nowrap; }
.r-booking__call a { font-weight: 500; color: #fff; }

.r-booking__done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 118px; animation: r-booking-rise .6s var(--r-ease) both; }
.r-booking__done[hidden] { display: none; }
.r-booking__done-title { font: 300 34px/1.1 var(--r-font-head); color: var(--r-gold-text); letter-spacing: -.02em; }
.r-booking__done-text { font: 300 18px/1.5 var(--r-font); color: rgba(255, 255, 255, .8); max-width: 720px; }
.r-page .r-booking__again { height: 48px; padding: 0 24px; font-size: 16px; }
@keyframes r-booking-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Illustrated map ---------- */
.r-booking__map {
  position: relative;
  height: 617px;
  margin-top: -182px; /* map starts at the middle of the form card */
  overflow: hidden;
  background: #faf6ed;
}
.r-booking__art { position: absolute; inset: 0; pointer-events: none; }
.r-booking__art img { display: block; max-width: none; }
.r-booking__art-l { position: absolute; top: 0; bottom: 0; left: -27.2%; right: -27.2%; width: 154.4%; height: 100%; }
.r-booking__art-river { position: absolute; top: 51.44%; bottom: 28.24%; left: -29.71%; right: -30.71%; }
.r-booking__art-river img { position: absolute; top: -24.32%; bottom: -24.31%; left: -1.48%; right: -1.48%; width: 102.96%; height: 148.63%; }
.r-booking__art-river--line img { top: -1.28%; bottom: -1.28%; left: 0; right: 0; width: 100%; height: 102.56%; }
.r-booking__art-houses { position: absolute; top: 25%; bottom: 17.92%; left: 12.9%; right: 24.43%; }
.r-booking__art-houses img { position: absolute; top: -.23%; left: 0; width: 100%; height: 100.46%; }

.r-booking__pin {
  position: absolute;
  z-index: 1;
  left: 50.7%;
  top: 365px;
  width: 44px;
  height: 56px;
}
.r-booking__pin img { position: relative; z-index: 1; width: 44px; height: 56px; filter: drop-shadow(0 8px 12px rgba(10, 18, 48, .25)); }
.r-booking__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 64px;
  height: 22px;
  margin-left: -32px;
  border-radius: 50%;
  border: 1px solid #c9a562;
  opacity: 0;
  animation: r-booking-pulse 2.4s ease-out infinite;
}
@keyframes r-booking-pulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.r-js .r-booking__pin[data-reveal] { transform: translateY(-40px); }
.r-js .r-booking__pin[data-reveal].is-in { transform: none; transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }

.r-booking__map-inner { position: relative; z-index: 2; height: 100%; }
.r-booking__route {
  position: absolute;
  top: 278px;
  left: max(var(--r-gutter), env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 28px;
  border-radius: 22px;
  background: #fff;
  color: var(--r-ink);
}
.r-booking__route-title { font: 300 30px/normal var(--r-font-head); letter-spacing: -.02em; }
.r-booking__address { font: 400 18px/normal var(--r-font); white-space: nowrap; }
.r-page .r-booking__address-note { margin-top: -8px; font: 400 14px/1.5 var(--r-font); color: var(--r-ink-60); }
.r-page .r-booking__route-btn { padding: 0 30px; font-family: var(--r-font-head); color: var(--r-cream); }
.r-booking__route-btn .r-arrow { width: 18px; height: 18px; }

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .r-booking { padding-top: 0; }
  .r-booking__card { padding: 40px; background: linear-gradient(109.39deg, #1e2c68 25.32%, #0c1434 61.93%, #03050e 81.48%); }
  .r-booking__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .r-booking__title { font-size: 48px; }
  .r-booking__sub { text-align: left; }
  .r-booking__fields { flex-wrap: wrap; }
  .r-booking__fields > .r-form__field,
  .r-booking__submit { flex: 1 1 100%; }
  .r-booking__fields > .r-booking__f-date,
  .r-booking__fields > .r-booking__f-time { flex: 1 1 calc(50% - 6px); }
  .r-booking__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .r-booking__map { height: 572px; margin-top: -80px; }
  .r-booking__pin { left: 72.92%; top: 297px; }
  .r-booking__route { top: 112px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .r-booking__card { padding: 32px 24px; gap: 24px; background: linear-gradient(100.77deg, #1e2c68 25.32%, #0c1434 61.93%, #03050e 81.48%); }
  .r-booking__title { font-size: 40px; }
  .r-booking__sub { font-size: 15px; }
  .r-form__input, .r-form__stepper, .r-booking__submit { height: 54px; }
  .r-booking__submit { font-size: 20px; }
  .r-booking__foot { gap: 14px; margin-top: 24px; }
  .r-booking__done-title { font-size: 30px; }
  .r-booking__map { height: 520px; margin-top: -80px; }
  .r-page .r-booking__route-btn { height: 58px; padding: 0 30px; font-size: 20px; }
  .r-booking__pin { left: 66.67%; top: 386px; }
  .r-booking__route { top: 112px; padding: 24px; }
  .r-booking__route-title { font-size: 26px; letter-spacing: -.02em; }
}

/* base.css resets `.r-page button` / `.r-page a` (0,1,1), which beats single-class .r-btn variants. */
.r-page .r-btn--gold { background: var(--r-gold-grad); color: var(--r-navy); }
.r-page .r-btn--navy { background: var(--r-navy-grad); color: var(--r-cream); }
.r-page .r-btn--outline { border: 1px solid var(--r-gold); color: var(--r-gold-text); }
.r-page .r-btn--outline:hover { background: var(--r-gold-grad); border-color: transparent; color: var(--r-navy); }
