.pw-mobile-discovery,
.pw-mobile-discovery__icon {
    display: none;
}
@media (max-width: 767px) {
    .pw-mobile-discovery {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
        margin: 1rem auto;
    }
    .pw-mobile-discovery a {
        display: grid;
        min-height: 44px;
        place-items: center;
        padding: .5rem .25rem;
        border: 1px solid #e1d7c9;
        border-radius: .65rem;
        background: #fffdf9;
        color: #204937;
        font-weight: 700;
        text-align: center;
    }
    .pw-mobile-discovery a:focus-visible,
    .pw-mobile-install button:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }
}
.pw-mobile-install[hidden], .pw-mobile-install p[hidden] {
    display: none !important;
}
.pw-mobile-install button {
    min-height: 44px;
    padding: .5rem .75rem;
    text-align: left;
}
.pw-mobile-install p {
    margin: .25rem .75rem .75rem;
    font-size: .95rem;
}

.pw-mobile-app-panel {display:none;}
@media(max-width:767px){.pw-mobile-app-panel{display:block;max-width:640px;margin:1rem auto;padding:0 1rem;}}

/* The installed app keeps primary destinations within thumb reach. */
.pw-mobile-discovery a[aria-current] {
    background: #e7efe9;
    color: #173f2d;
    border-color: #a6bfb0;
}

@media (max-width: 767px) {
    .pw-mobile-app-panel .pw-mobile-discovery {
        display: none;
    }

    .pw-mobile-standalone {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    .pw-mobile-standalone .pw-mobile-app-panel .pw-mobile-discovery {
        position: fixed;
        inset: auto 0 0;
        z-index: 90;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        min-height: calc(76px + env(safe-area-inset-bottom, 0px));
        max-width: none;
        margin: 0;
        padding: 7px max(6px, env(safe-area-inset-right, 0px))
            calc(7px + env(safe-area-inset-bottom, 0px))
            max(6px, env(safe-area-inset-left, 0px));
        border-top: 1px solid #ded3c7;
        background: #fffdf9;
        box-shadow: 0 -4px 16px #30251f14;
    }

    .pw-mobile-standalone .pw-mobile-discovery a {
        grid-template-rows: 30px auto;
        align-content: center;
        gap: 3px;
        box-sizing: border-box;
        min-height: 56px;
        padding: 3px 1px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #5b534b;
        font-size: .75rem;
        font-weight: 600;
        line-height: 1.2;
        overflow-wrap: anywhere;
        text-decoration: none;
    }

    .pw-mobile-standalone .pw-mobile-discovery__icon {
        display: grid;
        width: 42px;
        max-width: 100%;
        height: 30px;
        place-items: center;
        border-radius: 999px;
    }

    .pw-mobile-standalone .pw-mobile-discovery__icon svg {
        width: 24px;
        height: 24px;
    }

    .pw-mobile-standalone .pw-mobile-discovery a[aria-current] {
        background: #173f2d;
        color: #fffdf9;
        font-weight: 700;
    }

    .pw-mobile-standalone .pw-mobile-discovery a:focus-visible {
        outline-color: #173f2d;
        outline-offset: 2px;
    }

    .pw-mobile-standalone .pw-mobile-discovery a:not([aria-current]):is(:active, .pw-mobile-pending) {
        background: #edf3ec;
        color: #173f2d;
    }

    .entry-content .pw-mobile-discovery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .entry-content .pw-mobile-discovery a:first-child {
        display: none;
    }

    .entry-content .pw-mobile-discovery a {
        text-decoration: none;
    }
}

@media (max-width: 600px) {
    .entry-content .pw-home-pizzerias .pw-home-pizzerias__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .entry-content :is(.pw-home-pizzerias__body, .pw-home-journeys__card .pw-home-journeys__body) {
        padding: 16px;
    }

    .entry-content .pw-home-pizzerias__body .pw-home-pizzerias__profile {
        display: inline-flex;
        align-self: flex-start;
        align-items: center;
        min-height: 44px;
        padding-block: 6px;
    }

    .entry-content .pw-home-journeys__card .pw-home-journeys__image {
        aspect-ratio: 2 / 1;
    }

    body.pw-site-shell .pw-site-footer .pw-site-footer__inner {
        padding-inline: 16px;
    }

    body.pw-site-shell .pw-site-footer .pw-site-footer__grid {
        row-gap: 16px;
    }

    body.pw-site-shell .pw-site-footer .pw-site-footer__nav a {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 44px;
        padding-block: 4px;
    }
}

@media (max-width: 767px) and (display-mode: standalone) {
    html {
        scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 340px) and (max-width: 600px) {
    body.pw-site-shell .pw-site-footer .pw-site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.pw-site-shell .pw-site-footer .pw-site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .pw-mobile-app-panel {
        margin: 0 auto;
    }

    .entry-content .pw-mobile-discovery {
        margin-block: 12px 0;
    }
}

@media (max-width: 767px) {
    .pw-hero-carousel__images::before {
        display: none;
    }

    .pw-mobile-discovery a:active,
    .pw-mobile-discovery a.pw-mobile-pending {
        background: #d0e3d6;
        border-color: #547e65;
    }

    .pw-hero-search button[type="submit"].pw-mobile-pending {
        outline: 2px solid #fffdf9;
        outline-offset: -5px;
        filter: brightness(.85);
    }
}

@media (max-width: 767px) {
    body.pw-directory-refined.hp-template--listings-view-page .hp-form--listing-search {
        padding: 12px;
        margin-bottom: 16px;
    }

    body.pw-directory-refined.hp-template--listings-view-page .hp-form--listing-search input:is([type="text"], [type="search"]) {
        min-height: 48px;
        min-width: 0;
        font-size: 1rem;
    }

    body.pw-directory-refined.hp-template--listings-view-page .hp-form--listing-search button[type="submit"],
    body.pw-directory-refined .hp-button--listing-filter {
        min-height: 48px;
    }

    body.pw-directory-refined .hp-listing--view-block .pw-directory-card__explore,
    body.pw-directory-refined .hp-pagination a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
        min-width: 44px;
    }

    body.pw-directory-refined.hp-template--listings-view-page .hp-listing--view-block .pw-directory-card__explore:focus-visible {
        outline: 2px solid #244c38;
        outline-offset: 3px;
    }

    body.pw-directory-refined .pw-mobile-pending {
        filter: brightness(.85);
        outline: 2px solid currentColor;
        outline-offset: -3px;
    }

    .hp-listing--view-page .pw-profile-contacts > .hp-listing__attributes--primary {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr));
        gap: 8px 12px;
    }

    .hp-listing--view-page .pw-profile-contacts :is(a[href^="tel:"], .hp-listing__attribute--website a) {
        width: 100%;
        min-height: 48px;
    }

    .hp-listing--view-page .pw-profile-map-links__directions {
        min-height: 48px;
    }
}

@media (max-width: 600px) {
    .pw-city-detail--refined #pw-city-explore-naples {
        padding: 18px;
        border: 1px solid #e5dcd2;
        border-radius: 16px;
        background: #fff;
    }

    .pw-city-detail--refined #pw-city-explore-naples ol {
        display: grid;
        gap: 10px;
        margin: 12px 0 18px;
        padding: 0;
        list-style: none;
        counter-reset: pw-naples-stop;
    }

    .pw-city-detail--refined #pw-city-explore-naples li {
        position: relative;
        margin: 0;
        padding: 14px 14px 14px 48px;
        border: 1px solid #e5dcd2;
        border-radius: 12px;
        background: #faf6ef;
        counter-increment: pw-naples-stop;
        overflow-wrap: anywhere;
    }

    .pw-city-detail--refined #pw-city-explore-naples li::before {
        position: absolute;
        top: 14px;
        left: 13px;
        display: grid;
        width: 24px;
        height: 24px;
        place-items: center;
        border-radius: 50%;
        background: #c62828;
        color: #fff;
        content: counter(pw-naples-stop);
        font: 700 13px/1 var(--pw-font-body, sans-serif);
    }

    .pw-city-detail--refined #pw-city-explore-naples li a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: #a32222;
        text-underline-offset: 3px;
    }
}
