/* Mobile chrome only. Home sections keep the original site.css layout,
   type, images, and scroll reveals — except overflow/chrome unification
   for the hamburger range (≤1050) and CSS fallbacks that do not change
   desktop (>1050) motion. */

:root {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --gutter: clamp(14px, 4vw, 22px);
}

.booking-dock-home,
.booking-dock-assist,
.mobile-nav-backdrop {
  display: none;
}

.ui-fit {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 1050px) {
  html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
  }

  body:not(.admin-route) {
    overflow-x: clip;
    max-width: 100%;
    padding-left: var(--safe-l);
    padding-right: var(--safe-r);
    padding-bottom: calc(18px + var(--safe-b));
  }

  body:not(.admin-route).mobile-nav-open,
  html:has(body:not(.admin-route).mobile-nav-open) {
    overflow: hidden;
  }

  body:not(.admin-route) #site-loader.loader-done {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body:not(.admin-route) .container,
  body:not(.admin-route) main,
  body:not(.admin-route) footer,
  body:not(.admin-route) section {
    max-width: 100%;
    min-width: 0;
  }

  body:not(.admin-route) .container {
    width: min(var(--max), calc(100% - (2 * var(--gutter)))) !important;
  }

  body:not(.admin-route) img,
  body:not(.admin-route) video,
  body:not(.admin-route) iframe {
    max-width: 100%;
  }

  body:not(.admin-route) main {
    padding-bottom: calc(108px + var(--safe-b));
    scroll-padding-bottom: calc(108px + var(--safe-b));
  }

  body:not(.admin-route) #journey {
    padding-bottom: calc(88px + var(--safe-b)) !important;
  }

  body:not(.admin-route) #contact.booking-section,
  body:not(.admin-route) #contact-page {
    padding-bottom: calc(108px + var(--safe-b)) !important;
  }

  body:not(.admin-route) #contact :is(input, textarea),
  body:not(.admin-route) #contact-page :is(input, textarea) {
    scroll-margin-bottom: calc(96px + var(--safe-b));
  }

  body:not(.admin-route) #contact .booking-meta span {
    min-width: 0;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
  }

  /* Keep decorative blobs inside the section so body.scrollWidth stays 320 */
  body:not(.admin-route) #my-perspective-home::after {
    right: 0;
  }

  /* Top bar: frosted glass capsule — brand left, controls right.
     Fully rounded pill on every phone width; desktop header unchanged. */
  body:not(.admin-route) header {
    position: sticky !important;
    top: 0 !important;
    z-index: 4000 !important;
    background: var(--ivory, #efe8e0) !important;
    border: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: var(--safe-t) 0 0 !important;
    overflow: visible !important;
  }

  body:not(.admin-route) header .nav {
    height: 58px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 6px 10px 6px 12px !important;
    gap: 8px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(54, 100, 96, .18) !important;
    background: #f9f6f1 !important;
    box-shadow:
      0 10px 28px rgba(68, 50, 43, .10),
      inset 0 1px 0 rgba(255, 255, 255, .55) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: auto !important;
    align-items: center !important;
    position: relative !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }

  body:not(.admin-route) header.is-scrolled .nav {
    height: 54px !important;
    background: #f9f6f1 !important;
    border-color: rgba(54, 100, 96, .22) !important;
    box-shadow:
      0 12px 30px rgba(68, 50, 43, .12),
      inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  }

  /* Dim brand/CTAs while menu is open — chrome stays (lang + X) */
  body:not(.admin-route).mobile-nav-open header .header-brand-cluster,
  body:not(.admin-route).mobile-nav-open header .brand,
  body:not(.admin-route).mobile-nav-open header .brand-lockup,
  body:not(.admin-route).mobile-nav-open header .header-phone-pill,
  body:not(.admin-route).mobile-nav-open header .social {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body:not(.admin-route) header .header-lang,
  body:not(.admin-route) .mobile-menu-toggle {
    position: relative;
    z-index: 6;
    pointer-events: auto !important;
  }

  body:not(.admin-route) header .header-lang.is-open {
    z-index: 16000;
  }

  body:not(.admin-route) header .header-brand-cluster {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: center !important;
    gap: 6px;
    height: 52px !important;
    /* Content-sized unit — do not stretch and leave empty space after the wordmark */
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 148px) !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    transform: none !important;
    overflow: visible !important;
    z-index: 1;
    pointer-events: auto;
  }

  body:not(.admin-route) header .brand {
    align-self: center;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: 42px !important;
    transform: none !important;
    gap: 0;
    flex: 0 0 auto !important;
    overflow: visible;
    align-items: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    z-index: 2;
    margin: 0 !important;
  }

  body:not(.admin-route) header .header-logo-hover {
    overflow: hidden;
  }

  /* Signature sits with logo as a balanced unit — optically centered in its box */
  body:not(.admin-route) header .brand-lockup {
    display: flex !important;
    align-self: center;
    width: auto !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: min(168px, 100%) !important;
    height: 36px !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    justify-content: center !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
    overflow: hidden !important;
    z-index: 1;
  }

  body:not(.admin-route) header .main-logo,
  body:not(.admin-route) header .header-logo-hover {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
  }

  body:not(.admin-route) header .signature-wordmark {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-height: 30px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  body:not(.admin-route) header .menu,
  body:not(.admin-route) header .social {
    display: none !important;
  }

  body:not(.admin-route) header .actions {
    margin-left: 0 !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    align-items: center;
    min-width: max-content;
    max-width: none;
    position: relative;
    z-index: 2;
    display: inline-flex !important;
  }

  body:not(.admin-route) header .phone.header-phone-pill,
  body:not(.admin-route) header .header-phone-pill {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid rgba(54, 100, 96, .2) !important;
    color: var(--green-dark) !important;
    position: relative;
    overflow: hidden !important;
    justify-content: center !important;
    align-items: center !important;
  }

  body:not(.admin-route) header .header-phone-pill span:last-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  /* Header book pill removed from top bar (bookingFloat + Περισσότερα only). */
  body:not(.admin-route) header .header-book-pill,
  body:not(.admin-route) header .header-book-icon,
  body:not(.admin-route) header .header-book-label {
    display: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  /* Flag language control + dropdown; hide old EL+EN+DE row in header */
  body:not(.admin-route) header .language-switch {
    display: none !important;
  }

  body:not(.admin-route) header .header-lang {
    position: relative;
    flex: 0 0 auto;
    z-index: 6;
  }

  /* Home cookie docks under the bar and can steal taps from the flag menu */
  body:not(.admin-route):has(.header-lang.is-open) .necessary-cookie-notice {
    pointer-events: none !important;
  }

  body:not(.admin-route) header .header-lang-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 999px;
    border: 1px solid rgba(54, 100, 96, .2);
    background: rgba(255, 255, 255, .92);
    color: var(--green-dark);
    font: inherit;
    cursor: pointer;
    flex: 0 0 40px;
  }

  body:not(.admin-route) header .header-lang-toggle .header-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  body:not(.admin-route) header .header-lang-toggle .flag-svg {
    display: block;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(54, 100, 96, .18);
  }

  body:not(.admin-route) header .header-lang-caret {
    display: none;
  }

  /* Keep code in DOM for JS sync, hide letters visually */
  body:not(.admin-route) header .header-lang-code {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  body:not(.admin-route) header .header-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(54, 100, 96, .16);
    background: rgba(255, 253, 249, .98);
    box-shadow: 0 14px 36px rgba(39, 49, 45, .16);
    backdrop-filter: blur(12px);
    display: grid;
    gap: 2px;
    z-index: 16000;
    pointer-events: auto !important;
  }

  body:not(.admin-route) header .header-lang-dropdown[hidden] {
    display: none !important;
  }

  body:not(.admin-route) header .header-lang-option {
    appearance: none;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--green-dark);
    font: inherit;
    font-size: .88rem;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(54, 100, 96, .12);
  }

  body:not(.admin-route) header .header-lang-option:hover,
  body:not(.admin-route) header .header-lang-option:focus-visible {
    background: rgba(54, 100, 96, .1);
  }

  body:not(.admin-route) header .header-lang-option.is-active {
    background: rgba(54, 100, 96, .14);
  }

  body:not(.admin-route) header .header-lang-option .flag-svg {
    display: block;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(54, 100, 96, .18);
    flex: 0 0 auto;
  }

  body:not(.admin-route) header .header-lang-option-code {
    margin-left: auto;
    font-size: .72rem;
    letter-spacing: .06em;
    opacity: .62;
  }

  body:not(.admin-route) header .lang-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    flex: 0 0 auto;
    font-size: .68rem;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  body:not(.admin-route) header .lang-btn.is-active {
    color: #fff !important;
    background: var(--green-dark) !important;
  }

  body:not(.admin-route) .mobile-menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    flex-shrink: 0;
    gap: 5px;
    background: #fff !important;
    border: 1px solid rgba(54, 100, 96, .2) !important;
    transition: background .24s ease, border-color .24s ease, transform .24s ease;
  }

  body:not(.admin-route) .mobile-menu-toggle span {
    width: 16px;
    height: 1.8px;
    background: var(--green-dark);
    transform-origin: center;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, background .2s ease;
  }

  body:not(.admin-route) .mobile-menu-toggle[aria-expanded="true"] {
    background: var(--green-dark) !important;
    border-color: var(--green-dark) !important;
  }

  body:not(.admin-route) .mobile-menu-toggle[aria-expanded="true"] span {
    background: #fff;
  }

  body:not(.admin-route) .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.8px) rotate(45deg) !important;
  }

  body:not(.admin-route) .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(.4) !important;
  }

  body:not(.admin-route) .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.8px) rotate(-45deg) !important;
  }

  /* Full-viewport sheet under header chrome — no main-site gap above the menu */
  body:not(.admin-route) .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 12900;
    background: rgba(28, 36, 34, .34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s ease;
  }

  body:not(.admin-route).mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body:not(.admin-route) .mobile-nav-backdrop[hidden] {
    display: none !important;
  }

  body:not(.admin-route) .mobile-navigation {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 12950 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    /* Prefer % / -webkit-fill-available over 100dvh — dvh + overflow:hidden
       on html/body is a known Mobile Safari blank/freeze trigger. */
    height: 100% !important;
    height: -webkit-fill-available !important;
    min-height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background:
      radial-gradient(120% 70% at 100% 0%, rgba(54, 100, 96, .10), transparent 55%),
      linear-gradient(180deg, #f7f3ee 0%, #f1ebe3 100%) !important;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -8px, 0);
    pointer-events: none;
    transition:
      opacity .28s ease,
      transform .34s cubic-bezier(.22, 1, .36, 1),
      visibility 0s linear .34s;
  }

  body:not(.admin-route) .mobile-navigation.is-open,
  body:not(.admin-route).mobile-nav-open .mobile-navigation:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    transition:
      opacity .28s ease,
      transform .34s cubic-bezier(.22, 1, .36, 1),
      visibility 0s;
  }

  /* CRITICAL (iOS): never keep a full-screen fixed layer at display:flex when
     [hidden]. An invisible inset:0 sheet freezes/crashes Mobile Safari. */
  body:not(.admin-route) .mobile-navigation[hidden] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
  }

  body:not(.admin-route) .mobile-navigation-inner {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Clear sticky header chrome (lang + X) while sheet covers full viewport */
    padding: calc(var(--dd-header-offset, 64px) + 6px) 0 calc(10px + var(--safe-b));
    overflow: hidden;
  }

  body:not(.admin-route) .mobile-nav-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 var(--gutter) 6px;
  }

  body:not(.admin-route) .mobile-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px 0 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--green-dark);
    font: inherit;
    font-size: .95rem;
    font-weight: 650;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body:not(.admin-route) .mobile-nav-back:active {
    background: rgba(41, 79, 76, .08);
  }

  /* Header hamburger already morphs to X — hide duplicate sheet X */
  body:not(.admin-route) .mobile-nav-sheet-close {
    display: none !important;
  }

  body:not(.admin-route) .mobile-nav-sheet-close:active {
    background: var(--green-dark);
    color: #fff;
    border-color: var(--green-dark);
  }

  body:not(.admin-route) .mobile-nav-scroll {
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100% - var(--dd-header-offset, 64px) - 132px - var(--safe-b));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  body:not(.admin-route) .mobile-nav-kicker {
    flex: 0 0 auto;
    margin: 0 6px 2px;
    font-size: .68rem;
    letter-spacing: .2em;
    font-weight: 750;
    text-transform: uppercase;
    color: #7a6d64;
    opacity: 0;
    transform: translateY(8px);
  }

  body:not(.admin-route) .mobile-nav-links {
    display: grid;
    align-content: start;
    gap: 2px;
    flex: 0 0 auto;
    min-height: 0;
  }

  body:not(.admin-route) .mobile-nav-secondary {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(54, 100, 96, .12);
    gap: 2px;
  }

  body:not(.admin-route) .mobile-nav-secondary a {
    font-size: 1.02rem;
    font-weight: 600;
    color: #3d524f;
  }

  body:not(.admin-route) .mobile-navigation .mobile-nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1.18rem;
    font-weight: 650;
    letter-spacing: -.01em;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--green-dark);
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition:
      background .2s ease,
      color .2s ease,
      transform .2s ease;
  }

  body:not(.admin-route).mobile-nav-open .mobile-nav-kicker,
  body:not(.admin-route).mobile-nav-open .mobile-navigation .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity .38s cubic-bezier(.22, 1, .36, 1),
      transform .38s cubic-bezier(.22, 1, .36, 1),
      background .2s ease,
      color .2s ease;
    transition-delay: calc(.05s + (var(--nav-i, 0) * .045s));
  }

  body:not(.admin-route).mobile-nav-open .mobile-nav-kicker {
    transition-delay: .04s;
  }

  body:not(.admin-route) .mobile-navigation .mobile-nav-links a:active {
    transform: scale(.985);
  }

  body:not(.admin-route) .mobile-navigation .mobile-nav-links a.is-current {
    background: rgba(41, 79, 76, .1);
    color: #1f3d3a;
    box-shadow: inset 3px 0 0 var(--green-dark);
  }

  body:not(.admin-route) .mobile-nav-foot {
    flex: 0 0 auto;
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 10px var(--gutter) calc(10px + var(--safe-b));
    background: transparent;
    border-top: 0;
    opacity: 0;
    transform: translateY(12px);
  }

  body:not(.admin-route).mobile-nav-open .mobile-nav-foot {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .36s ease .18s, transform .36s cubic-bezier(.22, 1, .36, 1) .18s;
  }

  body:not(.admin-route) .mobile-nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid rgba(54, 100, 96, .2);
    background: #fff;
    font-size: .98rem !important;
    font-weight: 650;
    border-radius: 14px;
    text-decoration: none;
    color: var(--green-dark);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
  }

  body:not(.admin-route) .mobile-book {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    background: var(--green-dark) !important;
    color: #fff !important;
    font-size: 1.02rem !important;
    font-weight: 650;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(41, 79, 76, .22);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }

  body:not(.admin-route) .mobile-nav-phone:active,
  body:not(.admin-route) .mobile-book:active {
    transform: scale(.98);
  }

  body:not(.admin-route) .mobile-nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
    padding: 4px 0 2px;
  }

  body:not(.admin-route) .mobile-nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(54, 100, 96, .22);
    background: rgba(255, 255, 255, .88);
    color: var(--green-dark);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
  }

  body:not(.admin-route) .mobile-nav-social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
  }

  body:not(.admin-route) .mobile-nav-social-link:hover,
  body:not(.admin-route) .mobile-nav-social-link:focus-visible {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
  }

  body:not(.admin-route) .mobile-nav-social-link:active {
    transform: scale(.96);
  }

  @media (max-height: 640px) {
    body:not(.admin-route) .mobile-navigation-inner {
      padding-top: calc(var(--dd-header-offset, 64px) + 2px);
    }

    body:not(.admin-route) .mobile-nav-toolbar {
      padding-bottom: 2px;
    }

    body:not(.admin-route) .mobile-nav-scroll {
      flex: 1 1 auto;
      gap: 8px;
      padding-top: 2px;
      padding-bottom: 4px;
    }

    body:not(.admin-route) .mobile-nav-kicker {
      font-size: .62rem;
      letter-spacing: .16em;
      margin-bottom: 0;
    }

    body:not(.admin-route) .mobile-navigation .mobile-nav-links a {
      min-height: 44px;
      font-size: 1.05rem;
      padding: 8px 12px;
    }

    body:not(.admin-route) .mobile-nav-secondary {
      padding-top: 6px;
      margin-top: 0;
    }

    body:not(.admin-route) .mobile-nav-foot {
      gap: 6px;
      padding-top: 8px;
      padding-bottom: calc(4px + var(--safe-b));
      /* Pull CTAs up toward the links on short folds */
      margin-top: 0;
      background: #f7f3ee;
    }

    body:not(.admin-route) .mobile-nav-phone,
    body:not(.admin-route) .mobile-book {
      min-height: 46px;
      font-size: .94rem !important;
    }
  }

  @media (min-width: 700px) {
    body:not(.admin-route) .mobile-nav-scroll {
      gap: 16px;
      padding: 14px var(--gutter) 16px;
      max-width: 520px;
      margin: 0 auto;
      width: 100%;
    }

    body:not(.admin-route) .mobile-navigation .mobile-nav-links a {
      min-height: 52px;
      font-size: 1.22rem;
    }

    body:not(.admin-route) .mobile-nav-foot {
      max-width: 520px;
      margin: 0 auto;
      width: 100%;
      gap: 10px;
      box-sizing: border-box;
    }
  }

  /* Booking float stays bottom-right on mobile; only hide the home-dock helper */
  body:not(.admin-route) .booking-dock-home,
  body:not(.admin-route) .booking-dock-assist {
    display: none !important;
  }

  body:not(.admin-route) .booking-float,
  body:not(.admin-route) #bookingFloat {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    right: max(12px, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
    bottom: calc(12px + var(--safe-b)) !important;
    z-index: 1200 !important;
  }

  body:not(.admin-route) .back-to-top-bubble {
    display: none !important;
  }

  /* Hide FAB entirely while the chat panel is open — no overlap with gate/CTA. */
  /* Speech bubble: under sticky top bar → above FAB, full remaining viewport */
  /* Reclaim FAB band while open (FAB is hidden). */
  /* One-row chips so conversation keeps vertical room on 9:16 */
  /* display:flex !important above must not defeat [hidden] while AI gate is up */
  /* Copy scrolls; CTA stays pinned inside the gate — never overflow-y on the gate itself. */
  /* Tablet width: readable chat column instead of edge-to-edge sheet */
  @media (min-width: 641px) {
  }

  /* Floating controls are hidden before acknowledgement, so the notice can use
     the full bottom edge without reserving dead space for the FAB. */
  body:not(.admin-route) .necessary-cookie-notice {
    bottom: 0 !important;
    z-index: 1600 !important;
  }
  /* Keep the same predictable edge-to-edge placement on the home route. */
  body:not(.admin-route):has(#necessaryCookieNotice):has(#home.is-active) .necessary-cookie-notice {
    top: auto !important;
    bottom: 0 !important;
  }
  body:not(.admin-route).mobile-nav-open .necessary-cookie-notice {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  /* Short landscape: compact chrome so lead/CTAs/contact title stay in the fold.
     Portrait 320×568 is untouched (orientation). Do not change desktop >1050. */
  @media (max-height: 500px) and (orientation: landscape) {
    body:not(.admin-route) header .nav {
      height: 52px !important;
    }
    body:not(.admin-route) header .brand {
      height: 48px !important;
    }
    body:not(.admin-route) header .brand-lockup {
      height: 32px !important;
      width: auto !important;
      max-width: min(140px, 100%) !important;
      justify-content: flex-start !important;
    }
    body:not(.admin-route) header .main-logo,
    body:not(.admin-route) header .header-logo-hover {
      width: 36px !important;
      height: 36px !important;
      flex-basis: 36px;
    }
    body:not(.admin-route) header .signature-wordmark {
      height: 26px !important;
      max-height: 28px !important;
      max-width: 100% !important;
    }
    body:not(.admin-route) header .phone.header-phone-pill,
    body:not(.admin-route) header .header-phone-pill,
    body:not(.admin-route) .mobile-menu-toggle {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;
      min-height: 40px !important;
    }
    body:not(.admin-route) header .header-lang-toggle {
      width: 40px !important;
      min-width: 40px !important;
      max-width: 40px !important;
      height: 40px !important;
      flex-basis: 40px;
      padding: 0 !important;
    }

    :root {
      --dd-header-offset: calc(52px + env(safe-area-inset-top, 0px));
    }

    body:not(.admin-route) #home.hero {
      padding: 8px 0 16px !important;
    }
    body:not(.admin-route) #home .hero-grid {
      grid-template-columns: minmax(0, 1.2fr) minmax(120px, .8fr) !important;
      gap: 14px !important;
      align-items: center !important;
    }
    body:not(.admin-route) #home h1 {
      font-size: clamp(1.45rem, 7vh, 2.05rem) !important;
      line-height: 1.05 !important;
      margin: 0 0 4px !important;
    }
    body:not(.admin-route) #home h2 {
      font-size: 1rem !important;
      margin: 0 0 6px !important;
    }
    body:not(.admin-route) #home .lead {
      font-size: .82rem !important;
      line-height: 1.35 !important;
      margin: 0 !important;
    }
    body:not(.admin-route) #home .hero-actions {
      flex-direction: column !important;
      align-items: flex-start !important;
      flex-wrap: nowrap !important;
      gap: 6px !important;
      margin-top: 8px !important;
    }
    body:not(.admin-route) #home .hero-actions .btn {
      width: auto !important;
      min-height: 36px;
      padding: 6px 14px;
    }
    body:not(.admin-route) #home .portrait {
      height: min(210px, calc(100svh - 64px)) !important;
      border-radius: 16px !important;
    }

    body:not(.admin-route) #contact.booking-section {
      padding: 20px 0 88px !important;
      scroll-margin-top: calc(56px + var(--safe-t));
    }
    body:not(.admin-route) #contact .booking-editorial h3 {
      font-size: clamp(1.45rem, 6.4vh, 2.1rem) !important;
      line-height: 1.08 !important;
    }

    body:not(.admin-route) #contact-page.contact-page-v2 {
      padding: 8px 0 96px !important;
      overflow-anchor: none;
    }
    body:not(.admin-route) #contact-page .contact-hero {
      min-height: 0 !important;
      padding: 14px 16px 18px !important;
      grid-template-columns: 1fr !important;
      align-items: start !important;
      overflow: visible !important;
    }
    body:not(.admin-route) #contact-page .contact-hero-figure {
      display: none !important;
    }
    body:not(.admin-route) #contact-page .contact-hero-copy {
      padding-bottom: 8px !important;
      padding-right: 72px !important;
    }
    body:not(.admin-route) #contact-page .contact-breadcrumb {
      margin-bottom: 6px !important;
    }
    body:not(.admin-route) #contact-page .contact-hero h1 {
      font-size: clamp(1.45rem, 7.4vh, 2.2rem) !important;
      line-height: 1.06 !important;
    }
    body:not(.admin-route) #contact-page .contact-hero-actions {
      margin-top: 8px !important;
    }
    body:not(.admin-route) #contact-page .contact-hero-actions .contact-phone-pill,
    body:not(.admin-route) #contact-page .contact-email-pill {
      min-height: 40px !important;
      padding: 0 14px !important;
      font-size: .88rem !important;
    }

    /* FAB covers H1 on short landscape contact page only — keep it on home. */
    body:not(.admin-route) .mobile-navigation-inner {
      padding-top: calc(52px + var(--safe-t));
    }
    body:not(.admin-route) .mobile-nav-scroll {
      gap: 8px;
      padding-top: 2px;
    }
  }

  @media (max-height: 360px) and (orientation: landscape) {
    body:not(.admin-route) #home .hero-grid {
      grid-template-columns: 1fr !important;
    }
    body:not(.admin-route) #home .portrait {
      display: none !important;
    }
  }

  @media (max-width: 360px) {
    body:not(.admin-route) header .nav {
      padding: 5px 8px 5px 10px !important;
      gap: 6px !important;
      border-radius: 999px !important;
    }
    body:not(.admin-route) header .brand {
      gap: 0;
      height: 40px !important;
    }
    body:not(.admin-route) header .header-brand-cluster {
      gap: 4px;
    }
    body:not(.admin-route) header .brand-lockup {
      width: auto !important;
      max-width: min(148px, 100%) !important;
      justify-content: center !important;
      margin-left: 0 !important;
    }
    body:not(.admin-route) header .main-logo,
    body:not(.admin-route) header .header-logo-hover {
      width: 40px !important;
      height: 40px !important;
      flex: 0 0 40px;
    }
    body:not(.admin-route) header .signature-wordmark {
      height: auto !important;
      max-height: 28px !important;
      max-width: 100% !important;
    }
    body:not(.admin-route) header .actions {
      gap: 3px !important;
    }
    body:not(.admin-route) header .header-lang-toggle {
      width: 40px !important;
      min-width: 40px !important;
      max-width: 40px !important;
      height: 40px !important;
      flex-basis: 40px;
      padding: 0 !important;
    }
    body:not(.admin-route) header .phone.header-phone-pill,
    body:not(.admin-route) header .header-phone-pill,
    body:not(.admin-route) .mobile-menu-toggle {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;
      min-height: 40px !important;
    }
    body:not(.admin-route) .mobile-menu-toggle {
      flex: 0 0 40px;
    }
  }

  /* Privacy-consent checkbox: bigger tap target + breathing room on phones. */
  body:not(.admin-route) .privacy-consent {
    gap: 12px;
    padding: 12px;
    font-size: .88rem;
  }
  body:not(.admin-route) .privacy-consent input {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }
}

/* Mobile section / CTA presence (≤1050) */
@media (max-width: 1050px) {
  body:not(.admin-route) .mobile-enter {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity .55s cubic-bezier(.22, 1, .36, 1),
      transform .55s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--enter-delay, 0ms);
  }

  body:not(.admin-route) .mobile-enter.is-inview {
    opacity: 1;
    transform: translateY(0);
  }

  body:not(.admin-route) .hero-actions .btn,
  body:not(.admin-route) .service-reference-card,
  body:not(.admin-route) .perspective-card,
  body:not(.admin-route) .contact-phone-pill,
  body:not(.admin-route) .contact-email-pill,
  body:not(.admin-route) .mobile-book,
  body:not(.admin-route) .mobile-nav-phone {
    transition:
      transform .22s ease,
      box-shadow .22s ease,
      background .22s ease,
      border-color .22s ease,
      opacity .55s cubic-bezier(.22, 1, .36, 1);
  }

  body:not(.admin-route) .hero-actions .btn:active,
  body:not(.admin-route) .service-reference-card:active,
  body:not(.admin-route) .contact-phone-pill:active,
  body:not(.admin-route) .contact-email-pill:active {
    transform: scale(.98);
  }

  body:not(.admin-route) .service-reference-card:active {
    box-shadow: 0 8px 20px rgba(68, 50, 43, .1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-route) .mobile-navigation,
  body:not(.admin-route) .mobile-nav-backdrop,
  body:not(.admin-route) .mobile-menu-toggle,
  body:not(.admin-route) .mobile-menu-toggle span,
  body:not(.admin-route) .mobile-nav-kicker,
  body:not(.admin-route) .mobile-navigation .mobile-nav-links a,
  body:not(.admin-route) .mobile-nav-foot,
  body:not(.admin-route) .mobile-enter {
    transition: none !important;
    animation: none !important;
  }

  /* Only force opacity on the OPEN sheet — never on [hidden]/closed */
  body:not(.admin-route).mobile-nav-open .mobile-navigation:not([hidden]),
  body:not(.admin-route) .mobile-navigation.is-open {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body:not(.admin-route) .mobile-navigation[hidden],
  body:not(.admin-route):not(.mobile-nav-open) .mobile-navigation:not(.is-open) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: none !important;
  }
}

/* Loaded after site.css: preserve the cookie gate over the mobile dock rules. */
html body:not(.cookies-acked):not(.admin-route) #bookingFloat,
html body:not(.cookies-acked):not(.admin-route) .booking-float,
html body:not(.cookies-acked):not(.admin-route) #backToTopBubble,
html body:not(.cookies-acked):not(.admin-route) .scroll-promo,
html body:not(.cookies-acked):not(.admin-route) .scroll-promo-backdrop{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* Keep #bookingFloat visible on #contact / booking-route (phone + book stay available). */

html body.scroll-promo-open #bookingFloat,
html body.scroll-promo-open .booking-float,
html body.scroll-promo-open #backToTopBubble,
html body.scroll-promo-open .back-to-top-bubble{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
