/* Mobile homepage: image first, editorial copy, then a touch-friendly search.
   Loaded only up to 768px. Desktop layout and booking logic are unchanged. */
@media (max-width: 768px) {
    body.home-page { background: var(--beige); }
    body.home-page .navbar,
    body.home-page .navbar.scrolled,
    body.home-page .navbar.menu-open {
        position: relative !important;
        display: flex;
        height: 94px;
        padding: 14px 20px !important;
        gap: 12px;
        background: #fff !important;
        color: var(--navy) !important;
        border-bottom: 1px solid var(--line);
        box-shadow: none !important;
        backdrop-filter: none;
    }
    body.home-page .navbar > .logo {
        position: relative;
        left: auto;
        margin-right: auto;
        transform: none;
    }
    body.home-page .navbar .logo-img {
        width: 178px;
        height: auto;
        max-height: 65px;
        object-fit: contain;
        filter: none !important;
    }
    body.home-page .mobile-search-link,
    body.home-page .navbar > .mobile-menu-btn {
        position: relative;
        display: flex;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        margin: 0;
        color: var(--navy);
        background: transparent;
        border: 1px solid var(--navy);
        border-radius: 50%;
        z-index: 1001;
    }
    .mobile-search-link svg { width: 22px; height: 22px; }
    body.home-page .mobile-menu-btn span { width: 17px; left: 11px; border-radius: 0; }
    body.home-page .mobile-menu-btn span:nth-child(1) { top: 14px; }
    body.home-page .mobile-menu-btn span:nth-child(2) { top: 19px; }
    body.home-page .mobile-menu-btn span:nth-child(3) { top: 24px; }
    body.home-page .mobile-menu-btn.active span:nth-child(1),
    body.home-page .mobile-menu-btn.active span:nth-child(3) { top: 19px; }
    body.home-page .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    body.home-page .nav-links { padding: 105px 22px 35px; overflow-y: auto; }
    body.home-page .hero {
        display: flex;
        height: auto !important;
        min-height: 0;
        padding: 20px 0 30px;
        background: var(--beige) !important;
        isolation: isolate;
    }
    body.home-page .hero::before {
        content: '';
        position: absolute;
        top: 8px;
        right: 0;
        left: 24px;
        height: clamp(210px, 61vw, 370px);
        background: var(--navy);
        z-index: -1;
    }
    body.home-page .hero .hero-bg {
        position: relative !important;
        width: calc(100% - 16px) !important;
        height: clamp(210px, 61vw, 370px) !important;
        min-height: 0 !important;
        margin-right: 16px;
        border-radius: 0 3px 3px 52px !important;
    }
    body.home-page .hero-bg img { object-position: 50% 65%; }
    body.home-page .hero-overlay { display: none !important; }
    body.home-page .hero-content {
        position: relative;
        inset: auto;
        height: auto !important;
        min-height: 0 !important;
        padding: 28px 22px 20px !important;
        color: var(--navy) !important;
    }
    body.home-page .hero-content .subtitle {
        margin-bottom: 10px;
        color: var(--navy) !important;
        font-size: 9px;
        letter-spacing: .16em;
        line-height: 1.6;
    }
    body.home-page .hero-content h1 {
        color: var(--navy) !important;
        font-family: var(--font-body) !important;
        font-size: clamp(29px, 7.9vw, 45px) !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        letter-spacing: -.025em !important;
    }
    body.home-page .hero-content .hero-gopetter {
        color: var(--navy) !important;
        font-size: 1.48em;
        line-height: .9;
    }
    body.home-page .hero-content p {
        max-width: 460px !important;
        margin: 12px 0 0 !important;
        font-size: 14px !important;
        line-height: 1.6;
        color: var(--text-soft) !important;
    }
    body.home-page .search-mask-container {
        position: relative;
        inset: auto;
        width: 100% !important;
        padding: 0 22px !important;
        background: transparent;
        scroll-margin-top: 18px;
    }
    body.home-page .hero .api-search-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 10px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    body.home-page .hero .api-search-field,
    body.home-page .hero .api-search-field:nth-of-type(1),
    body.home-page .hero .api-pets-toggle {
        min-width: 0;
        min-height: 70px;
        padding: 12px 14px !important;
        gap: 5px;
        border: 1px solid #d9cfbf !important;
        border-radius: 9px !important;
        background: #fff !important;
    }
    body.home-page .hero .api-search-field label {
        margin: 0 !important;
        font-size: 10px !important;
        font-weight: 400 !important;
        letter-spacing: .1em !important;
        color: var(--text-muted) !important;
    }
    body.home-page .hero .api-search-field input {
        width: 100%;
        min-width: 0;
        font-size: 15px !important;
    }
    body.home-page .hero .api-stepper-field { grid-column: 1 / -1; }
    body.home-page .hero .cust-select-btn {
        min-width: 0;
        min-height: 26px;
        font-size: 16px !important;
    }
    body.home-page .hero .cust-select-panel {
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        min-width: 0;
        max-height: 260px;
        overflow-y: auto;
        transform: none;
        animation: none;
        border-radius: 9px !important;
        box-shadow: 0 10px 30px rgba(0, 73, 123, .12);
    }
    body.home-page .hero .cust-option { min-height: 44px; padding: 10px 14px; }
    body.home-page .hero .api-pets-toggle,
    body.home-page .hero .api-access-field { min-height: 64px; cursor: pointer; }
    body.home-page .hero .api-pets-toggle.active,
    body.home-page .hero .api-access-field.active { background: var(--navy-soft) !important; border-color: var(--sea) !important; }
    body.home-page .hero #api-pets-value,
    body.home-page .hero #api-accessible { font-size: 15px; color: var(--navy); }
    body.home-page .hero .api-search-btn {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 54px;
        margin: 0 !important;
        padding: 14px 22px;
        border-radius: 9px !important;
        font-size: 17px;
    }
    body.home-page .hero-search-meta { margin-top: 20px; gap: 12px; }
    body.home-page .hero-rating-badge { flex-wrap: wrap; gap: 5px; font-size: 11px; }
    body.home-page .search-note { margin: 0; font-size: 11px; line-height: 1.6; }
    body.home-page .mobile-search-link:focus-visible,
    body.home-page .mobile-menu-btn:focus-visible,
    body.home-page .hero button:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
}
