/* Selected improvements 4, 5, 6, 7. Original desktop stylesheet is preserved. */
html { scroll-behavior: smooth; }

.hero__nav a[href] {
  text-underline-offset: 5px;
  transition: color 200ms ease;
}
.hero__nav a[href]:focus-visible {
  outline: 2px solid #29351f;
  outline-offset: 5px;
}
.booking-steps__cta,
.final-stay__cta {
  transition: background-color 220ms ease, filter 220ms ease;
}
.booking-steps__cta .booking-steps__arrow,
.final-stay__cta .final-stay__arrow {
  transition: transform 220ms ease;
}
.booking-steps__cta:active,
.final-stay__cta:active { filter: brightness(0.92); }

@media (hover: hover) and (pointer: fine) {
  .hero__nav a[href]:hover { text-decoration: underline; }
  .booking-steps__cta:hover .booking-steps__arrow,
  .final-stay__cta:hover .final-stay__arrow { transform: translateX(4px); }
}

/* Let the section follow its actual content as answers are opened or closed. */
.faq { height: auto; padding: calc(262 * var(--q)) 0 calc(16 * var(--q)); }
.faq__panel {
  position: relative;
  inset: auto;
  height: auto;
  margin: 0 calc(70 * var(--q));
}
.faq-item { display: block; height: auto; padding: 0 0 calc(21 * var(--q)); }
.faq-item summary {
  display: block;
  position: relative;
  min-height: calc(53 * var(--q));
  padding: calc(19 * var(--q)) 0 0 calc(86 * var(--q));
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { align-self: start; }
.faq-item summary:focus-visible { outline: 2px solid #53624a; outline-offset: 4px; border-radius: 4px; }
.faq-item:not([open]) { padding-bottom: calc(19 * var(--q)); }
.faq-item:not([open]) summary { min-height: calc(70 * var(--q)); }
.faq-item__marker { position: absolute; top: calc(19 * var(--q)); left: calc(3 * var(--q)); }
.faq-item__marker::after {
  content: "";
  position: absolute;
  width: calc(2 * var(--q));
  height: calc(18 * var(--q));
  background: #183d31;
  opacity: 1;
  transform: scaleY(1);
  transition: transform 180ms ease, opacity 180ms ease;
}
.faq-item[open] .faq-item__marker::after { transform: scaleY(0); opacity: 0; }
.faq-item__text { display: flow-root; }
.faq-item p { margin: calc(3 * var(--q)) 0 0 calc(86 * var(--q)); }
.faq-item[open] .faq-item__text { animation: answer-appear 180ms ease-out; }
.faq__cta {
  position: relative;
  inset: auto;
  transform: none;
  margin: calc(19 * var(--q)) auto 0;
}

.back-to-top {
  position: fixed;
  z-index: 20;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #c8d0c5;
  border-radius: 50%;
  color: #faf9f3;
  background: #1b3b31;
  box-shadow: 0 3px 12px rgb(7 24 15 / 12%);
  animation: top-appear 220ms ease-out;
}
.back-to-top[hidden] { display: none; }
.back-to-top:focus-visible { outline: 3px solid #d0cba0; outline-offset: 4px; }
.back-to-top:active { background: #29351f; }

@keyframes answer-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes top-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Only the selected controls and FAQ receive touch sizing; other blocks stay intact. */
@media (max-width: 767px) {
  .booking-steps { height: calc(828 * var(--b) + 60px); }
  .final-stay { min-height: calc(840 * var(--z) + 44px); }
  .booking-steps__cta,
  .final-stay__cta { min-width: 180px; min-height: 44px; font-size: 14px; gap: 12px; }
  .booking-steps__cta .booking-steps__arrow,
  .final-stay__cta .final-stay__arrow { width: 20px; height: 20px; }
  .faq { padding: 24px 16px 20px; }
  .faq__intro { position: static; }
  .faq__eyebrow { font-size: 11px; line-height: 18px; }
  .faq h2 { font-size: 25px; line-height: 1.2; white-space: normal; margin-top: 8px; }
  .faq__description { font-size: 14px; line-height: 1.5; margin-top: 12px; }
  .faq__description br, .faq-item p br { display: none; }
  .faq__panel { margin: 20px 0 0; padding: 0 16px; border-radius: 12px; }
  .faq-item, .faq-item:not([open]) { padding: 0; }
  .faq-item summary,
  .faq-item:not([open]) summary { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; min-height: 64px; padding: 14px 0; align-items: center; }
  .faq-item summary h3 { align-self: center; font-size: 16px; line-height: 1.4; letter-spacing: -0.2px; white-space: normal; }
  .faq-item__marker { position: relative; inset: auto; width: 32px; height: 32px; }
  .faq-item__marker::before { width: 12px; height: 2px; }
  .faq-item__marker::after { width: 2px; height: 12px; }
  .faq-item p { margin: 0 0 16px 44px; font-size: 14px; line-height: 1.5; white-space: normal; }
  .back-to-top { width: 44px; height: 44px; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* Shared feedback for every button, including controls awaiting integrations.
   Individual translate/scale preserve existing transform-based centering. */
main button,
main button[type]:disabled,
.booking-steps__cta,
.final-stay__cta,
.back-to-top { cursor: pointer; }

:is(main button, .booking-steps__cta, .final-stay__cta, .back-to-top) {
  transition: translate 220ms ease, scale 180ms ease, filter 220ms ease,
    background-color 220ms ease, border-color 220ms ease;
}
main button :is([class$="__arrow"], .hero__choose img) {
  transition: translate 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  :is(main button, .booking-steps__cta, .final-stay__cta, .back-to-top):hover {
    translate: 0 -2px;
    filter: brightness(1.08);
  }
  main button:hover :is([class$="__arrow"], .hero__choose img) { translate: 3px 0; }
  .cabins__previous:hover .cabins__arrow { translate: -3px 0; }
  .stay-card__button:hover { background-color: #e5eadc; border-color: #53624a; }
  .faq__cta:hover { background-color: rgb(255 255 255 / 8%); }
}
:is(main button, .booking-steps__cta, .final-stay__cta, .back-to-top):is(:active, .button-pressed) {
  translate: 0 1px;
  scale: 0.985;
  filter: brightness(0.95);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__nav a[href], .booking-steps__cta, .final-stay__cta,
  .booking-steps__arrow, .final-stay__arrow, .faq-item__marker::after { transition: none; }
  .faq-item[open] .faq-item__text, .back-to-top { animation: none; }
  .booking-steps__cta:hover .booking-steps__arrow,
  .final-stay__cta:hover .final-stay__arrow { transform: none; }
  :is(main button, .booking-steps__cta, .final-stay__cta, .back-to-top),
  main button :is([class$="__arrow"], .hero__choose img) { transition: none; }
  :is(main button, .booking-steps__cta, .final-stay__cta, .back-to-top):is(:hover, :active, .button-pressed),
  main button:hover :is([class$="__arrow"], .hero__choose img),
  .cabins__previous:hover .cabins__arrow { translate: none; scale: none; }
}
