/*
 * LUCA MOBILE FOUNDATION 1A — app shell + mobile nav foundation.
 *
 * "Einfach außen. Stark im Kern." Not a redesign of style.css (which stays completely untouched by this file) -
 * a small, additive layer on top of it, scoped to mobile widths only. Loaded on the two public-facing layouts
 * that share theme_1/header.blade.php + theme_1/footer.blade.php (resources/views/frontend/theme_1/app.blade.php
 * and resources/views/frontend/user/layout/app.blade.php, the Family/customer dashboard shell) - never on
 * Provider or Back Admin layouts, which don't include this stylesheet at all.
 *
 * Breakpoints match this ticket's own product reference: Mobile 0-575, Large Mobile 576-767 (both covered by the
 * single <768px media query below - this Foundation does not yet differentiate the two), Tablet 768-1023
 * (untouched by this file - a future phase), Desktop >=1024 (untouched - every rule below either lives inside a
 * max-width:767.98px query or targets a brand-new class with no desktop markup to match).
 */

:root {
    /* Luca Hat Spaß brand palette. Redeclared here (not reused from family-area-shell.css's --family-* tokens)
       because that file only loads on the Family layout - this Foundation loads on public pages too, and needs
       to be self-sufficient on both. Values are identical to the canonical brand palette; nothing new invented. */
    --luca-green: #6eaa89;
    --luca-coral: #e8665d;
    --luca-turquoise: #8acac7;
    --luca-dark-red: #a3312e;
    --luca-yellow: #f2bd48;
    --luca-mint: #9fdfd7;
    --luca-blue: #5e7da2;
    --luca-ink: #302d2a;

    /* Mobile layout tokens (section 7B of the Mobile Foundation 1A ticket). */
    --luca-mobile-page-padding: 16px;
    --luca-mobile-header-height: 56px;
    --luca-mobile-bottom-nav-height: 60px;
    --luca-mobile-radius: 16px;
    --luca-mobile-card-radius: 14px;
    --luca-mobile-gap: 12px;
    --luca-mobile-shadow: 0 -2px 20px rgba(48, 45, 42, 0.08);

    /* Safe-area foundation (section 7C). env() with a 0px fallback is inert on any device without a notch/home
       indicator - these only ever resolve non-zero on devices that report one, and only when the viewport meta
       tag includes viewport-fit=cover (added to app.blade.php / frontend/user/layout/app.blade.php alongside
       this ticket - the one minimal, necessary change to the existing viewport tag; user-scalable=0 is
       untouched). Consumed below by the mobile header and bottom nav; also available for a future sticky
       booking CTA. */
    --luca-mobile-safe-top: env(safe-area-inset-top, 0px);
    --luca-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ====================================================================================
   D. PUBLIC MOBILE APP HEADER FOUNDATION
   CSS-only polish of the EXISTING header markup/logic (theme_1/header.blade.php) - no JS, no structural
   rewrite, no change to which actions render or when. Makes the already-sticky `.header` (style.css:7690,
   position: sticky/fixed, top: 0) sit correctly below a device notch and feel more compact/app-like below the
   768px boundary. Desktop (>=768px, and especially >=1024px) is untouched: every rule here is inside this query.
   ==================================================================================== */
@media (max-width: 767.98px) {
    .header {
        padding-top: var(--luca-mobile-safe-top);
    }

    .header .navbar.header-nav {
        min-height: var(--luca-mobile-header-height);
        padding-top: 6px;
        padding-bottom: 6px;
    }

    /* Tap target: the existing hamburger toggle (#mobile_btn) already works via style.js/bootstrap - only its
       box size/alignment changes here, never its click behavior. ~44px is the accepted comfortable minimum
       (section 9/11). */
    .header #mobile_btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* MOBILE NAV/HERO FIXES: the hamburger bars used var(--primary) (style.css's own site-wide brand color
       variable) - left alone, since redefining it here would repaint every other element that reads it, on
       Mobile and Desktop alike. Scoped to just this icon's own 3 bars instead, reusing #244d3b - the same
       dark-green derived from the brand green (#6eaa89) this Home track's own newer CSS (luca-mobile-home-v2.css)
       already established for Mobile text/focus states, for one consistent "dark green" across the two files. */
    .header #mobile_btn .bar-icon span {
        background-color: #244d3b;
    }

    /* The bell / user-menu dropdown block (header.blade.php's "Show this if user is logged in" list) is already
       d-none below lg by the existing markup - account access on mobile already happens through the hamburger
       panel's own mobile-only list items (Dashboard/Übersicht, Einstellungen, Logout), untouched here. This
       Foundation does not change which actions are directly visible vs. behind the hamburger - only later
       phases (1B+) should revisit that IA decision.
    */

    /* MOBILE FOUNDATION 1B — B. header visual polish: site-wide (every page loads this file, not just Home -
       unlike the hero/search polish below, which is Home-specific and lives in luca-mobile-home.css instead).
       style.css already sizes .logo img down to 45px at <=991.98px (!important) - this tightens it further,
       specifically at the mobile boundary, for a more compact/app-like bar; !important is required to win over
       that existing !important rule, not a new hack. Alignment/click behavior of the hamburger and both logo
       links are completely untouched - CSS sizing/spacing only. */
    .header-landing .logo img {
        max-height: 32px !important;
    }

    .header .navbar-header {
        align-items: center;
        gap: 8px;
    }
}

/* ====================================================================================
   E. FAMILY / PUBLIC BOTTOM NAVIGATION — FOUNDATION
   Shell + navigation only. Real routes, resolved server-side in mobile-bottom-nav.blade.php - never invented.
   Hidden entirely on Admin (that layout never includes this stylesheet or the partial) and on Provider (same -
   provider/layout/app.blade.php does not load this file, so the class below never has a page to render into
   there even if markup were ever copy-pasted by mistake).
   ==================================================================================== */
.luca-mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    .luca-mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040; /* above the page (Bootstrap navbar ~1030), below Bootstrap modals (1055) and toasts */
        align-items: stretch;
        justify-content: space-between;
        background: #ffffff;
        border-top: 1px solid rgba(48, 45, 42, 0.08);
        box-shadow: var(--luca-mobile-shadow);
        padding-bottom: var(--luca-mobile-safe-bottom);
        height: calc(var(--luca-mobile-bottom-nav-height) + var(--luca-mobile-safe-bottom));
    }

    /* Applied to <body> only on pages that actually render the bottom nav (see the partial's own comment) -
       reserves clearance so the fixed bar never overlaps footer content or a page's last section. */
    body.luca-has-mobile-bottom-nav {
        padding-bottom: calc(var(--luca-mobile-bottom-nav-height) + var(--luca-mobile-safe-bottom));
    }

    /* Section 14: the bottom nav must never permanently hide the footer - it only adds scroll clearance above
       it (via body padding-bottom above), the footer itself is never touched/reduced/removed. */
}

.luca-mobile-bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 6px 4px 2px;
    color: var(--luca-ink);
    opacity: 0.75;
    text-decoration: none;
    font-family: 'Asap', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.luca-mobile-bottom-nav__item i {
    font-size: 21px;
    line-height: 1;
}

.luca-mobile-bottom-nav__item:hover,
.luca-mobile-bottom-nav__item:focus-visible {
    color: var(--luca-green);
    opacity: 1;
}

.luca-mobile-bottom-nav__item:focus-visible {
    outline: 2px solid var(--luca-green);
    outline-offset: -2px;
    border-radius: 8px;
}

/* Selected state = Luca Green (section 10), a subtle lift only - no bounce/scale-in animation. */
.luca-mobile-bottom-nav__item.active {
    color: var(--luca-green);
    opacity: 1;
    font-weight: 700;
    transform: translateY(-1px);
}

/* MOBILE APP NAVIGATION V2: Chat's unread badge - same small red pill already used by the Family
   sidebar (#sidebarCustomerChatBadge, booking-card-v2.css-adjacent styling elsewhere), reused here so
   it reads as the same "unread" language. Positioned over the icon, not the label, matching how most
   bottom-nav badges are drawn. notify.js only fills/clears this element where it exists in the DOM -
   see mobile-bottom-nav.blade.php and notify.js's own comments. */
.luca-mobile-bottom-nav__item {
    position: relative;
}

.luca-mobile-bottom-nav__badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--luca-coral);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Desktop protection (section 7F, explicit and redundant with the max-width query above on purpose - makes the
   guarantee readable on its own without having to reason about cascade order). */
@media (min-width: 768px) {
    .luca-mobile-bottom-nav {
        display: none !important;
    }

    body.luca-has-mobile-bottom-nav {
        padding-bottom: 0;
    }
}

/* ==================== Footer (Home + Services), REAL-DEVICE POLISH ====================
   footer.blade.php renders unconditionally on every page (see that file's own comment) and carries
   no page-specific class of its own - unlike the hero/listing sections, which do. footer.blade.php
   gained ONE small, route-gated class instead - request()->routeIs(['home', 'services']) - true
   only on the two pages this Mobile track has closed so far; every other page (Events, Rentals,
   Family, Provider, Admin) keeps this exact same footer, completely unchanged, at every width.
   Originally Services-only (luca-footer--services-mobile, from an earlier ticket); renamed
   luca-footer--mobile-compact and moved here from luca-mobile-services.css once a second page
   (Home) needed it too, so this file stays the one home for every truly cross-page mobile concern
   (matching how the bottom nav above lives here too) rather than one page's file reaching into
   another's.

   MOBILE CLOSURE 1.2 - ROOT CAUSE FOUND (not assumed): padding/gap tightening alone (the rules
   below this comment, from an earlier ticket) did not remove the "enorme zona vacía" real-device
   screenshots kept showing between "In deiner Nähe" and the copyright/legal line, because padding
   was never the real cause. DOM/computed-style forensics on the live preview (both / and /services,
   both measured 980px for .footer-top) found: .footer-top > .container:nth-of-type(2) > .row is
   802px tall, and EVERY px of it is real - 5 admin-configured columns (brand+Instagram, then 4
   @foreach ($footers) link groups: "Für Familien"/178px, "Für Anbieter"/142px, "Rechtliches"/142px,
   "Kontakt & Community"/117px, measured individually) correctly stacking full-width because no
   col-sm-* class exists to stop them below md (768px) - Bootstrap's own .row > * universal rule,
   not a bug. The fix is therefore content-visibility, not spacing: footer.blade.php marks the 3
   columns judged non-essential for a mobile app shell (name-matched, NOT position-matched - see
   that file's own comment for why: admin-configured column order can change, and "Rechtliches"
   carries Impressum, a German Impressumspflicht legal requirement confirmed reachable NOWHERE else
   on mobile, so it - and the brand/Instagram block - stay visible unconditionally). Nothing is
   deleted: hidden columns stay server-rendered in the DOM (display:none, not a JS toggle, not
   removed markup), so they remain exactly as indexable as before.

   MOBILE CLOSURE 1.2 FOLLOW-UP - a real AOS (Animate On Scroll, aos.css/aos.js, loaded site-wide)
   interaction this file's own earlier comment wrongly ruled out ("no stray AOS state was involved")
   - checked again here with a real, incremental mouse-wheel scroll (not an instant scrollTo() JS
   jump, which does not reliably fire the scroll events/IntersectionObserver callbacks AOS's own
   trigger depends on - confirmed by reproducing the SAME stuck state via scrollTo() and watching it
   resolve correctly under a real scroll). Every footer-top/[data-aos] element (the wrapper itself
   plus all 5 columns, visible or not) starts at opacity:0 + transform:translateY(100px) until AOS's
   JS detects it entering the viewport and adds .aos-animate. On a real device with a fast scroll
   fling, a slow JS thread, or any other reason that detection doesn't fire promptly, the footer's
   own dark background (bg-dark) renders immediately while its TEXT stays invisible against it -
   exactly "zona oscura vacía" (an empty-looking dark area), not a layout/height bug: transform/
   opacity never add real document height (confirmed: .footer-top's own computed height was already
   content-accurate, 531px, in both the stuck and the settled state) - only visibility is at stake.
   Neutralized entirely for the footer specifically (Desktop's own fade-up entrance keeps working
   everywhere else AOS is used) rather than left dependent on scroll-trigger timing a mobile user's
   device/connection/gesture speed cannot be guaranteed to hit the way this check's own instant
   scrollTo() calls first failed to. */
@media (max-width: 767.98px) {
    /* Belt-and-suspenders: guarantees every footer column (hidden or visible) is immediately
       visible/positioned regardless of AOS's own scroll-trigger timing - see this block's own
       top comment for the real failure mode this closes. */
    .luca-footer--mobile-compact [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .luca-footer--mobile-compact .luca-footer-col--secondary {
        display: none;
    }

    .luca-footer--mobile-compact .footer-top {
        padding-top: 22px;
        padding-bottom: 8px;
    }

    .luca-footer--mobile-compact .footer-widget {
        margin-bottom: 20px !important;
    }

    /* "In deiner Nähe" (GEO region links - see web.home.pop_region) */
    .luca-footer--mobile-compact .container.mb-4.footer-widget h2,
    .luca-footer--mobile-compact .footer-widget h4 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }

    .luca-footer--mobile-compact .container.mb-4.footer-widget p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .luca-footer--mobile-compact .footer-instagram {
        margin-top: 4px;
    }

    .luca-footer--mobile-compact .footer-menu-three .footer-title-three {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .luca-footer--mobile-compact .footer-menu-three ul li {
        margin-bottom: 4px;
        font-size: 0.85rem;
    }

    .luca-footer--mobile-compact .footer-bottom-landing {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .luca-footer--mobile-compact .footer-copy-landing {
        font-size: 0.78rem;
        text-align: center;
        justify-content: center !important;
    }
}

/* ====================================================================================
   G. MOBILE NAVIGATION V3 — remove the app footer, move secondary nav into the hamburger drawer
   Public + Family only (this file's own established scope - never Provider/Back Admin, which don't load
   it). >=768px (both Tablet and Desktop) is completely untouched: every rule below lives inside the same
   max-width:767.98px query every other Mobile-only rule in this file already uses. Confirmed no competing
   `!important` exists on footer.footer-landing's own `display` (style.css/custom-style.css checked) or on
   .main-nav's own `display` (style.css checked, including its own existing <992px reformat rule) before
   trusting a plain override here.
   ==================================================================================== */
@media (max-width: 767.98px) {
    /* G1. The big Desktop-style footer disappears entirely on Mobile - server-side content (GEO region
       links, legal links, internal links) is completely untouched; Desktop/Tablet (>=768px) render it
       exactly as before. Visibility only, never deletion - satisfies the ticket's own explicit SEO/GEO
       safety requirement. */
    footer.footer-landing {
        display: none;
    }

    /* G2. The admin-configured CMS top-nav (<ul class="main-nav">, Desktop's own real inline nav bar at
       >=768px via navbar-expand-lg) is replaced on Mobile by the new .luca-mobile-drawer content below it
       in the DOM (see header.blade.php's own include) - hidden here, never removed server-side, so Desktop
       keeps rendering from the exact same markup it always has. */
    .main-menu-wrapper > ul.main-nav {
        display: none; /* .main-nav's own base rule (style.css) sets display:flex, unconditional, no
            !important, specificity (0,1,0) - this selector's (0,2,1) already wins on specificity alone,
            confirmed by reading that rule directly rather than assumed; no !important needed here. */
    }
}

/* G3. The new drawer content itself - intentionally NOT inside the mobile media query: Desktop never sees
   it because .luca-mobile-drawer only ever exists at this position in the DOM (mobile_nav_drawer.blade.php
   is unconditionally included, but see below for the Desktop safety net) and because .main-menu-wrapper
   itself only becomes visible/on-screen via the existing .menu-opened mechanism, which Desktop's own
   navbar-expand-lg behavior never triggers (the hamburger toggle #mobile_btn is itself only ever shown
   below lg by the existing theme CSS). The explicit >=768px hide directly below is a second, redundant
   guarantee anyway - same "readable on its own" belt-and-suspenders already used throughout this file. */
.luca-mobile-drawer {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 60px); /* 60px = .menu-header's own fixed height (style.css) - leaves the
        close button always on-screen and reachable, the drawer's own content scrolls under it. */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px 24px;
}

.luca-mobile-drawer__section {
    display: flex;
    flex-direction: column;
}

.luca-mobile-drawer__sep {
    margin: 14px 0;
    border: 0;
    border-top: 1px solid rgba(48, 45, 42, 0.08);
}

.luca-mobile-drawer__heading {
    margin: 2px 0 6px;
    font-family: 'Exo 2', 'Asap', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #77716b;
    text-transform: uppercase;
}

.luca-mobile-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 0;
    color: #302d2a;
    font-family: 'Asap', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.luca-mobile-drawer__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    flex: 0 0 28px;
    font-size: 18px;
    color: #6eaa89;
}

/* MOBILE NAV/HERO FIXES: Rechtliches accordion - native <details>/<summary>, no JS. The summary reuses
   __heading's exact look (uppercase/13px/#77716b) so closed state reads identically to before; only now
   it's a clickable 44px row with a chevron that rotates on [open]. */
.luca-mobile-drawer__legal {
    margin: 2px 0 0;
}

.luca-mobile-drawer__legal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    font-family: 'Exo 2', 'Asap', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: #77716b;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
}

.luca-mobile-drawer__legal-summary::-webkit-details-marker {
    display: none;
}

.luca-mobile-drawer__legal-summary:focus-visible {
    outline: 2px solid #244d3b;
    outline-offset: 2px;
    border-radius: 6px;
}

.luca-mobile-drawer__legal-chevron {
    font-size: 15px;
    color: #a09a92;
    transition: transform 0.18s ease;
}

.luca-mobile-drawer__legal[open] .luca-mobile-drawer__legal-chevron {
    transform: rotate(180deg);
}

.luca-mobile-drawer__legal-body {
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.luca-mobile-drawer__link--legal {
    /* min-height stays 44px (the same comfortable floor every other drawer link uses) - a prior ticket in
       this exact codebase (FAMILY BUCHUNGEN FINAL POLISH) already found 38px too small on mobile and
       reverted it to 44px; only the font-size/weight are reduced here for a visually secondary, denser
       list, never the tap target itself. */
    font-weight: 500;
    font-size: 14px;
    color: #555a61;
    padding-left: 40px; /* aligns under the icon+label rows above, without its own icon slot */
}

.luca-mobile-drawer__link--danger {
    color: #e8665d;
}

.luca-mobile-drawer__link--danger .luca-mobile-drawer__link-icon {
    color: #e8665d;
}

/* MOBILE FINAL CLEANUP: "Anbieter werden" reuses __link's own structure/tap-target but reads as a
   secondary, provider-facing action rather than a third identical guest-account link - muted color +
   its own thin top divider (lighter than the full __sep between sections) sets it apart from
   Einloggen/Registrieren just above without moving it into its own drawer section. */
.luca-mobile-drawer__link--provider {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(48, 45, 42, 0.06);
    color: #6b6456;
    font-weight: 600;
}

.luca-mobile-drawer__link--provider .luca-mobile-drawer__link-icon {
    color: #a08e5f;
}

.luca-mobile-drawer__copyright {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(48, 45, 42, 0.08);
    font-size: 12px;
    color: #a09a92;
    text-align: center;
}

@media (min-width: 768px) {
    /* Explicit and redundant with the DOM/trigger-based safety described in G3's own comment, on purpose -
       same "readable on its own" guarantee this file already uses for the bottom nav and footer-compact
       rules above. */
    .luca-mobile-drawer {
        display: none !important;
    }
}

/* ====================================================================================
   H. GLOBAL BACK-TO-TOP REMOVAL — one shared rule, every Public + Family Mobile page
   theme_1/app.blade.php's own <div class="back-to-top back-to-top-landing"> (a generic, site-wide
   "scroll to top" circle, colored via var(--primary), fixed bottom-right) is rendered unconditionally
   in the ONE shared layout every Public page and the Family dashboard already include - so one rule
   here, in this file (loaded on every page that layout renders, per this file's own established "Public
   + Family only" scope stated in section G above - never Provider/Back Admin, which don't load it
   either), covers Services/Events/Rentals/Details/Luca Tipps/Booking/Home/Family in one place, no
   per-page exception. A prior ticket hid it with the same selector but scoped to Home's own
   luca-mobile-home-v2.css instead - removed from there now that this global rule supersedes it (one
   place, not two). Desktop (>=768px) is untouched - this lives inside the same max-width:767.98px query
   every other Mobile-only rule in this file already uses, and the bottom nav (section E above) already
   covers in-app navigation, so a second floating control is redundant on Mobile regardless of page. */
/* BACK-TO-TOP, ALL VARIANTS: the rule above only matched .back-to-top-landing, which exists on the PUBLIC
   layout (theme_1/app.blade.php) alone. The FAMILY layout (user/layout/app.blade.php) renders a differently
   classed twin - <div class="back-to-top"><a class="back-to-top-icon ...">, the dark #111827 fixed circle (style.css
   .back-to-top-icon, bottom:30px / right:15px / z-index:9999, faded in by user-script.js's `.show`) - which
   .back-to-top-landing never matched, so it kept floating over the bottom nav on /user/bookinglist and every other
   Family page. The shared inner element .back-to-top-icon is present in BOTH layouts, so it is listed too: hiding
   the circle itself also covers any future wrapper class. Nothing else is selected - the bottom nav, the booking /
   chat controls and other FABs use different classes. */
@media (max-width: 767.98px) {
    .back-to-top,
    .back-to-top-landing,
    .back-to-top-icon {
        display: none !important;
    }
}

/* ====================================================================================
   MOBILE: no decorative colour stripe.
   theme_1/footer.blade.php opens with `<hr class="linear-line">` - a 10px four-colour bar (style.css) that sits OUTSIDE <footer>. On Mobile the footer is
   compacted (or hidden on the Family layout) and this bar was left floating near the end of the content as a loose rainbow line. Hidden on Mobile only;
   the dark footer (or the page's own end) is the separation. Desktop keeps the bar. The bottom nav is untouched.
   ==================================================================================== */
@media (max-width: 767.98px) {
    hr.linear-line {
        display: none;
    }
}


/* Public tablet shell: keep the same five navigation destinations as phones.
   Family tablet overrides live in its own stylesheet; Desktop starts at 1024px. */
@media (min-width: 768px) and (max-width: 1023.98px) {
    /* Use the same app drawer on every public tablet page, not only Home. */
    .home-ten .header .main-menu-wrapper > ul.main-nav {
        display: none !important;
    }

    .home-ten .header .luca-mobile-drawer {
        display: flex !important;
    }

    .home-ten .header .main-menu-wrapper {
        position: fixed;
        inset: 0 auto 0 0;
        width: 300px;
        max-width: 100vw;
        margin: 0;
        background: #fff;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 11111;
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .3s ease, visibility .3s;
    }

    html.menu-opened .home-ten .header .main-menu-wrapper {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .home-ten .header .menu-header {
        display: flex;
    }

    .home-ten .header #mobile_btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    body.home-ten.luca-has-mobile-bottom-nav {
        padding-bottom: calc(var(--luca-mobile-bottom-nav-height, 60px) + var(--luca-mobile-safe-bottom, 0px));
    }

    .home-ten .luca-mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        inset: auto 0 0;
        z-index: 1040;
        align-items: stretch;
        justify-content: space-between;
        background: #ffffff;
        border-top: 1px solid rgba(48, 45, 42, 0.08);
        box-shadow: var(--luca-mobile-shadow);
        padding-bottom: var(--luca-mobile-safe-bottom, 0px);
        height: calc(var(--luca-mobile-bottom-nav-height, 60px) + var(--luca-mobile-safe-bottom, 0px));
    }

    .home-ten footer.footer-landing,
    .home-ten hr.linear-line,
    .home-ten .back-to-top {
        display: none !important;
    }
}
