/* Unified non-sticky nav glass effect, matching the start page. */
.hero-header:not(.is-sticky-header) .main-nav,
.site-header:not(.is-sticky-header) .main-nav,
.site-header:not(.is-sticky-header) .nav {
  gap: 10px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.14);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-header:not(.is-sticky-header) .main-nav a,
.site-header:not(.is-sticky-header) .main-nav a,
.site-header:not(.is-sticky-header) .nav a {
  padding: 12px 16px;
  color: #fdf8ee;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
}

.hero-header:not(.is-sticky-header) .main-nav a:hover,
.hero-header:not(.is-sticky-header) .main-nav a:focus-visible,
.site-header:not(.is-sticky-header) .main-nav a:hover,
.site-header:not(.is-sticky-header) .main-nav a:focus-visible,
.site-header:not(.is-sticky-header) .nav a:hover,
.site-header:not(.is-sticky-header) .nav a:focus-visible {
  background: rgba(255, 253, 248, 0.18);
  color: #ffffff;
  outline: none;
}

.hero-header:not(.is-sticky-header) .main-nav a[aria-current="page"],
.site-header:not(.is-sticky-header) .main-nav a[aria-current="page"],
.site-header:not(.is-sticky-header) .nav a[aria-current="page"] {
  color: #ffffff;
}

:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-soft: 680ms;
  --motion-slow: 900ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .site-header {
    animation: alpineHeaderIn 720ms var(--motion-ease) both;
  }

  html.motion-ready .motion-reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    filter: blur(5px);
    transition:
      opacity var(--motion-soft) var(--motion-ease),
      transform var(--motion-soft) var(--motion-ease),
      filter var(--motion-soft) var(--motion-ease);
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform, filter;
  }

  html.motion-ready .motion-reveal[data-motion="fade"] {
    transform: translate3d(0, 0, 0);
  }

  html.motion-ready .motion-reveal[data-motion="left"] {
    transform: translate3d(-28px, 0, 0);
  }

  html.motion-ready .motion-reveal[data-motion="right"] {
    transform: translate3d(28px, 0, 0);
  }

  html.motion-ready .motion-reveal[data-motion="scale"] {
    transform: translate3d(0, 18px, 0) scale(0.975);
  }

  html.motion-ready .motion-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  html.motion-ready .hero h1,
  html.motion-ready .hero .eyebrow,
  html.motion-ready .hero .hero-kicker,
  html.motion-ready .hero-copy > p:not(.hero-kicker),
  html.motion-ready .hero-content > p:not(.eyebrow) {
    text-rendering: geometricPrecision;
  }

  html.motion-ready .hero-media,
  html.motion-ready .hero-slides,
  html.motion-ready .hero::before {
    animation: alpineHeroSettle var(--motion-slow) var(--motion-ease) both;
  }

  html.motion-ready .card,
  html.motion-ready .price-card,
  html.motion-ready .booking-card,
  html.motion-ready .apartment-card,
  html.motion-ready .highlight-card,
  html.motion-ready .legal-section,
  html.motion-ready .fact,
  html.motion-ready .facts-feature,
  html.motion-ready .alpine-footer-nav a,
  html.motion-ready .alpine-footer-contact-row,
  html.motion-ready .alpine-footer-cta,
  html.motion-ready .btn,
  html.motion-ready .button-primary,
  html.motion-ready .button-secondary,
  html.motion-ready .book-pill,
  html.motion-ready .nav-book {
    transition:
      transform 220ms ease,
      box-shadow 220ms ease,
      background-color 220ms ease,
      border-color 220ms ease,
      color 220ms ease;
  }

  html.motion-ready .card:hover,
  html.motion-ready .price-card:hover,
  html.motion-ready .booking-card:hover,
  html.motion-ready .apartment-card:hover,
  html.motion-ready .highlight-card:hover,
  html.motion-ready .legal-section:hover,
  html.motion-ready .fact:hover,
  html.motion-ready .facts-feature:hover {
    transform: translateY(-4px);
  }

  html.motion-ready .card img,
  html.motion-ready .apartment-card img,
  html.motion-ready .gallery-trigger img,
  html.motion-ready .floorplan-trigger img {
    transition: transform 900ms var(--motion-ease), filter 900ms var(--motion-ease);
  }

  html.motion-ready .card:hover img,
  html.motion-ready .apartment-card:hover img,
  html.motion-ready .gallery-trigger:hover img,
  html.motion-ready .floorplan-trigger:hover img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
  }

  html.motion-ready .btn:hover,
  html.motion-ready .button-primary:hover,
  html.motion-ready .button-secondary:hover,
  html.motion-ready .book-pill:hover,
  html.motion-ready .nav-book:hover,
  html.motion-ready .alpine-footer-cta:hover {
    transform: translateY(-2px);
  }
}

@keyframes alpineHeaderIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes alpineHeroSettle {
  from {
    opacity: 0.86;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* staged-image-reveal v2 */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .motion-reveal[data-motion="image-soft"] {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(1.018);
    filter: saturate(0.96) brightness(1.015);
    clip-path: inset(0 0 18% 0 round 10px);
    transition:
      opacity 1050ms var(--motion-ease),
      transform 1150ms var(--motion-ease),
      filter 1150ms var(--motion-ease),
      clip-path 1150ms var(--motion-ease);
  }

  html.motion-ready .motion-reveal[data-motion="image-soft"].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1) brightness(1);
    clip-path: inset(0 0 0 0 round 0);
  }

  html.motion-ready picture.motion-reveal,
  html.motion-ready img.motion-reveal,
  html.motion-ready .gallery-trigger.motion-reveal,
  html.motion-ready .floorplan-trigger.motion-reveal,
  html.motion-ready .tour-frame.motion-reveal,
  html.motion-ready .gallery-grid > .motion-reveal {
    will-change: opacity, transform, filter, clip-path;
  }
}

/* missing-section-reveals v1 */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .season-card,
  html.motion-ready .season-button,
  html.motion-ready .cta-grid > *,
  html.motion-ready .cta-actions a,
  html.motion-ready .cta-visual,
  html.motion-ready .device-laptop,
  html.motion-ready .device-phone,
  html.motion-ready .tour-device-link,
  html.motion-ready .tour-badge {
    transition:
      opacity var(--motion-soft) var(--motion-ease),
      transform var(--motion-soft) var(--motion-ease),
      filter var(--motion-soft) var(--motion-ease),
      box-shadow 260ms ease;
  }

  html.motion-ready .season-card:hover,
  html.motion-ready .device-laptop:hover,
  html.motion-ready .device-phone:hover {
    transform: translateY(-6px);
  }

  html.motion-ready .tour-badge.is-visible {
    animation: alpineBadgeFloat 2400ms ease-in-out 900ms infinite;
  }
}

@keyframes alpineBadgeFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-5px); }
}

/* no-flash image reveal v1 */
@media (prefers-reduced-motion: no-preference) {
  .motion-reveal[data-motion="image-soft"]:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(1.018);
    filter: saturate(0.96) brightness(1.015);
    clip-path: inset(0 0 18% 0 round 10px);
  }
}

/* pitztal-prices-reveals v1 */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .motion-reveal[data-motion="pop"] {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.965);
    filter: blur(5px);
    transition:
      opacity 760ms var(--motion-ease),
      transform 820ms var(--motion-ease),
      filter 820ms var(--motion-ease),
      box-shadow 240ms ease;
  }

  html.motion-ready .motion-reveal[data-motion="pop"].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }

  html.motion-ready .feature-card,
  html.motion-ready .experience-card,
  html.motion-ready .info-card,
  html.motion-ready .timeline-step,
  html.motion-ready .contact-line {
    transition:
      opacity 760ms var(--motion-ease),
      transform 820ms var(--motion-ease),
      filter 820ms var(--motion-ease),
      box-shadow 240ms ease,
      border-color 240ms ease;
  }

  html.motion-ready .feature-card:hover,
  html.motion-ready .experience-card:hover,
  html.motion-ready .info-card:hover,
  html.motion-ready .timeline-step:hover {
    transform: translateY(-5px);
  }
}

/* no-flash welcome reveal v1 */
@media (prefers-reduced-motion: no-preference) {
  .welcome-copy .motion-reveal:not(.is-visible) {
    opacity: 0;
    transform: translate3d(-28px, 0, 0);
    filter: blur(5px);
  }
}

/* Final non-sticky navigation parity: frosted grey pill like the homepage reference. */
@media (min-width: 861px) {
  .hero-header:not(.is-sticky-header) .main-nav,
  .site-header:not(.is-sticky-header) .main-nav,
  .site-header:not(.is-sticky-header) .nav {
    gap: 10px !important;
    min-height: 56px !important;
    padding: 6px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(110, 117, 116, 0.58) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(12px) saturate(128%) !important;
    backdrop-filter: blur(12px) saturate(128%) !important;
  }

  .hero-header:not(.is-sticky-header) .main-nav a,
  .site-header:not(.is-sticky-header) .main-nav a,
  .site-header:not(.is-sticky-header) .nav a {
    padding: 12px 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fffdf8 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: normal !important;
  }

  .hero-header:not(.is-sticky-header) .main-nav a:hover,
  .hero-header:not(.is-sticky-header) .main-nav a:focus-visible,
  .site-header:not(.is-sticky-header) .main-nav a:hover,
  .site-header:not(.is-sticky-header) .main-nav a:focus-visible,
  .site-header:not(.is-sticky-header) .nav a:hover,
  .site-header:not(.is-sticky-header) .nav a:focus-visible,
  .hero-header:not(.is-sticky-header) .main-nav a[aria-current="page"],
  .site-header:not(.is-sticky-header) .main-nav a[aria-current="page"],
  .site-header:not(.is-sticky-header) .nav a[aria-current="page"] {
    background: transparent !important;
    color: #ffffff !important;
    outline: none !important;
  }

  .hero-header:not(.is-sticky-header) .main-nav a[aria-current="page"]::after,
  .site-header:not(.is-sticky-header) .main-nav a[aria-current="page"]::after,
  .site-header:not(.is-sticky-header) .nav a[aria-current="page"]::after {
    content: none !important;
    display: none !important;
  }

  .hero-header:not(.is-sticky-header) .main-nav a.book-pill,
  .site-header:not(.is-sticky-header) .main-nav a.book-pill,
  .site-header:not(.is-sticky-header) .nav a.nav-book {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 13px 18px !important;
    border-radius: 999px !important;
    background: rgba(255, 251, 243, 0.98) !important;
    color: #496f86 !important;
    box-shadow: none !important;
  }

  .hero-header:not(.is-sticky-header) .main-nav a.book-pill:hover,
  .hero-header:not(.is-sticky-header) .main-nav a.book-pill:focus-visible,
  .site-header:not(.is-sticky-header) .main-nav a.book-pill:hover,
  .site-header:not(.is-sticky-header) .main-nav a.book-pill:focus-visible,
  .site-header:not(.is-sticky-header) .nav a.nav-book:hover,
  .site-header:not(.is-sticky-header) .nav a.nav-book:focus-visible,
  .hero-header:not(.is-sticky-header) .main-nav a.book-pill[aria-current="page"],
  .site-header:not(.is-sticky-header) .main-nav a.book-pill[aria-current="page"],
  .site-header:not(.is-sticky-header) .nav a.nav-book[aria-current="page"] {
    background: rgba(255, 251, 243, 0.98) !important;
    color: #496f86 !important;
  }
}

/* Keep the header/navigation sharp like the start page. */
@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .hero-header,
  html.motion-ready .site-header {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  html.motion-ready .hero-header *,
  html.motion-ready .site-header * {
    filter: none !important;
  }

  html.motion-ready .hero-header.is-sticky-header .brand-logo,
  html.motion-ready .site-header.is-sticky-header .brand-logo {
    filter: brightness(0) saturate(100%) invert(42%) sepia(19%) saturate(1114%) hue-rotate(154deg) brightness(92%) contrast(90%) !important;
  }
}

.mobile-offcanvas {
  display: none;
}

.mobile-menu-toggle-created {
  display: none !important;
}

@media (max-width: 960px) {
  body.mobile-menu-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .hero-header .nav-wrap,
  .site-header .nav-wrap,
  .site-header .nav-panel {
    display: none !important;
  }

  .hero-header .mobile-menu-toggle,
  .site-header .mobile-menu-toggle,
  .menu-toggle.mobile-menu-toggle {
    position: relative !important;
    z-index: 30 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    margin-left: auto !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: 50% !important;
    background: rgba(255, 253, 248, 0.18) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
    cursor: pointer !important;
  }

  .hero-header .mobile-menu-toggle span,
  .site-header .mobile-menu-toggle span,
  .menu-toggle.mobile-menu-toggle span {
    display: block !important;
    width: 19px !important;
    height: 2px !important;
    margin: 3px auto !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .mobile-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 10%, rgba(246, 242, 235, 0.6), rgba(255, 255, 255, 0) 36%),
      linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #fbfaf8 100%);
    color: #222222;
    transform: translateX(100%);
    transition: transform 350ms ease;
    pointer-events: none;
  }

  .mobile-offcanvas.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .mobile-offcanvas-shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px 24px 48px;
    font-family: var(--sans, "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    -webkit-overflow-scrolling: touch;
  }

  .mobile-offcanvas-head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 118px;
    padding-top: 18px;
  }

  .mobile-offcanvas-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 170px;
    max-width: 48vw;
    color: #609bb8;
    line-height: 1;
    text-align: center;
    text-decoration: none;
  }

  .mobile-offcanvas-logo svg,
  .mobile-offcanvas-logo .brand-mark {
    display: block;
    width: 76px;
    height: 20px;
    margin: 0 auto 2px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .mobile-offcanvas-logo img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
    filter: brightness(0) saturate(100%) invert(61%) sepia(12%) saturate(1214%) hue-rotate(157deg) brightness(91%) contrast(88%) !important;
  }

  .mobile-offcanvas-logo .brand-subtitle {
    display: block;
    margin-top: 8px;
    color: #609bb8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .mobile-offcanvas-close {
    position: absolute;
    top: 0;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    cursor: pointer;
  }

  .mobile-offcanvas-close svg {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .mobile-offcanvas-nav {
    display: grid;
    gap: 0;
    margin-top: 18px;
  }

  .mobile-offcanvas-nav a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 22px;
    min-height: 60px;
    padding: 0 14px 0 18px;
    border-radius: 10px;
    color: #222222;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
  }

  .mobile-offcanvas-nav a.is-active {
    background: #f0f2f4;
  }

  .mobile-offcanvas-nav svg,
  .mobile-contact-row svg,
  .mobile-offcanvas-cta svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .mobile-offcanvas-nav a > svg:first-child {
    color: #609bb8;
  }

  .mobile-offcanvas-nav a > svg:last-child {
    justify-self: end;
    width: 22px;
    height: 22px;
    color: #1f1f1f;
    stroke-width: 1.7;
  }

  .mobile-offcanvas-contact {
    display: grid;
    gap: 24px;
    margin-top: 22px;
    padding-top: 34px;
    border-top: 1px solid #dddddd;
  }

  .mobile-contact-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    color: #2b2b2b;
    font-size: 15.5px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
    text-decoration: none;
  }

  .mobile-contact-row svg {
    color: #609bb8;
  }

  .mobile-offcanvas-cta {
    display: grid;
    grid-template-columns: 24px auto 24px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    margin-bottom: 0;
    border-radius: 7px;
    background: #609bb8;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
  }

  .mobile-offcanvas-cta svg {
    color: #ffffff;
    stroke-width: 1.55;
  }

  .mobile-offcanvas-cta svg:last-child {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 360px) {
  .mobile-offcanvas-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .mobile-offcanvas-nav a,
  .mobile-contact-row {
    gap: 18px;
  }

  .mobile-offcanvas-nav a {
    font-size: 16px;
  }
}

@media (max-height: 720px) and (max-width: 960px) {
  .mobile-offcanvas-shell {
    padding-bottom: 40px;
  }

  .mobile-offcanvas-head {
    min-height: 110px;
    padding-top: 8px;
  }

  .mobile-offcanvas-logo {
    width: 150px;
  }

  .mobile-offcanvas-nav {
    margin-top: 16px;
  }

  .mobile-offcanvas-nav a {
    min-height: 56px;
  }

  .mobile-offcanvas-contact {
    gap: 20px;
    margin-top: 18px;
    padding-top: 26px;
  }

  .mobile-offcanvas-cta {
    margin-top: 28px;
  }
}
