/* ==========================================================================
   Responsive — the scale contrast survives, the columns collapse
   ========================================================================== */

@media (max-width: 64rem) {
  .masthead__nav {
    display: none;
  }

  .masthead__toggle {
    display: inline-flex;
  }

  .masthead__cta {
    display: none;
  }

  .masthead__inner {
    grid-template-columns: auto 1fr;
  }

  .masthead__actions {
    justify-content: flex-end;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .site-footer__mark {
    max-width: none;
  }

  .site-footer__links {
    justify-content: flex-start;
    gap: 0.7rem 1.15rem;
  }

  .hero__facts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hero__fact {
    grid-column: span 2;
    border-top: 1px solid var(--color-line-on-dark);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .hero__fact:nth-child(-n + 3) {
    border-top: 0;
    padding-top: 1rem;
  }

  .hero__fact:nth-child(4),
  .hero__fact:nth-child(5) {
    grid-column: span 3;
  }

  .hero__fact:nth-child(3n + 1),
  .hero__fact:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }

  .gallery__headline,
  .view360__title,
  .faq__head,
  .faq__list {
    grid-column: 1 / -1;
  }

  .space__copy {
    max-width: 40rem;
  }

  .space__cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .amenities__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
  }

  .faq__head {
    position: static;
    width: 100%;
  }

  .faq__head .display {
    max-width: none;
  }

  .faq__list {
    width: 100%;
    min-width: 0;
  }

  .faq-trigger {
    padding-block: 1.25rem;
    padding-inline: 0;
    box-sizing: border-box;
  }
}

/* —— Phone —— */
@media (max-width: 42.5rem) {
  /* One booking entry point on small screens: the menu and the fixed control */

  .masthead__logo {
    gap: 0.625rem;
  }

  .masthead__logo-text {
    max-width: 11.5rem;
    font-size: 0.8125rem;
  }

  .hero {
    min-height: clamp(32rem, 90svh, 44rem);
    padding-bottom: var(--space-s);
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(20, 20, 18, 0.12) 0%, rgba(20, 20, 18, 0.55) 58%, rgba(20, 20, 18, 0.78) 100%);
  }

  .hero__title {
    max-width: none;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__fact {
    grid-column: auto;
  }

  .hero__fact:nth-child(4),
  .hero__fact:nth-child(5) {
    grid-column: auto;
  }

  .hero__fact:nth-child(-n + 3) {
    border-top: 1px solid var(--color-line-on-dark);
  }

  .hero__fact:nth-child(-n + 2) {
    border-top: 0;
  }

  .hero__fact:nth-child(3n + 1),
  .hero__fact:nth-child(4) {
    border-left: 1px solid var(--color-line-on-dark);
    padding-left: var(--gutter);
  }

  .hero__fact:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .hero__fact:last-child {
    grid-column: 1 / -1;
  }

  .amenities__list {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Plan viewer — keep usable height on phones */
  .plan__stage {
    height: clamp(16rem, 42vh, 24rem);
  }

  .gallery__stage {
    padding-inline: 0;
  }

  .gallery__toolbar,
  .gallery__dots {
    padding-inline: var(--page-pad);
  }

  .gallery__track {
    gap: 0;
  }

  .gallery__stage::after {
    display: none;
  }

  .tile {
    flex-basis: 100vw;
    aspect-ratio: 5 / 4;
  }

  .tile__shell,
  .tile__inner {
    border-radius: 0;
  }

  /* Booking — stacked popup on phone */
  .booking__panel {
    align-items: stretch;
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right))
      max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  }

  .booking__form {
    width: 100%;
    max-height: min(92svh, 100%);
    height: auto;
    border-radius: 0.85rem;
  }

  .booking__chrome {
    padding: 0.55rem 0.55rem 0;
  }

  .booking__close {
    width: 2.25rem;
    height: 2.25rem;
  }

  .booking__split {
    grid-template-columns: 1fr;
  }

  .booking__calendar-col {
    order: -1;
    padding: 3rem 1rem 1.25rem;
  }

  .booking__info {
    padding: 1.15rem 1rem 1.5rem;
  }

  .booking__info-inner {
    gap: 0.75rem;
    height: auto;
    min-height: 0;
    padding-right: 0;
  }

  .booking__title {
    font-size: clamp(1.45rem, 1.2rem + 1.5vw, 1.85rem);
    padding-right: 2.5rem;
  }

  .booking__lead {
    font-size: 0.9375rem;
  }

  .booking__steps {
    gap: 0.4rem;
  }

  .booking__steps li {
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .booking__meta-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .booking-meta {
    padding: 0.55rem 0.5rem;
    border-radius: 0.45rem;
  }

  .booking-meta__label {
    font-size: 0.625rem;
  }

  .booking-meta__value {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    line-height: 1.2;
  }

  .booking__callback {
    margin-top: 0.75rem;
    gap: 0.45rem;
  }

  .booking__calendar-col .drp {
    max-width: none;
    gap: 0.75rem;
    min-height: 0;
    align-content: start;
  }

  .booking__controls {
    padding: 0.9rem;
    gap: 0.65rem;
  }

  .booking__messenger-row {
    grid-template-columns: 1fr 1fr;
  }

  .booking__fab {
    width: 4.25rem;
    height: 4.25rem;
    align-self: flex-end;
    margin: 0;
  }

  .booking__fab-icon {
    width: 1.95rem;
    height: 1.95rem;
  }

  .drp__caption {
    font-size: 1.05rem;
  }

  .drp__weekdays span {
    padding-block: 0.35rem;
    font-size: 0.75rem;
  }

  .drp__grid {
    gap: 0.2rem;
  }

  .drp__day-num {
    inset: 0.1rem;
    font-size: 0.8125rem;
  }

  .faq-trigger {
    align-items: center;
    gap: 0.75rem;
    padding-block: 1.15rem;
    padding-inline: 0;
  }

  .faq-trigger__label {
    padding-right: 0.5rem;
  }

  .faq-icon {
    width: 1.125rem;
    height: 1.125rem;
    margin-inline-end: 0;
  }

  .faq-answer {
    padding-bottom: 1.15rem;
    padding-right: 0;
    max-width: none;
  }

  .lightbox__nav {
    position: absolute;
    bottom: 0;
  }

  .lightbox__nav:first-of-type {
    left: 0;
  }

  .lightbox__nav:last-of-type {
    right: 0;
  }
}
