:root {
    --brand-brown: #7a1f12;
    --brand-brown-dark: #5f180e;
    --brand-cream: #fff8ef;
    --surface: #fffdf8;
    --surface-soft: #f4ece4;
    --text: #241f1c;
    --muted: #6d655f;
    --border: rgb(122 31 18 / 14%);
    --focus: #1f67b1;
    --shadow: 0 1.1rem 3rem rgb(55 34 23 / 18%);
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html { scroll-behavior: smooth; }

body {
    background: #eadbd3;
    color: var(--text);
    font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.poi-detail-shell {
    background: var(--brand-cream);
    box-shadow: var(--shadow);
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

.detail-nav {
    align-items: center;
    background: rgb(255 248 239 / 94%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: max(0.2rem, env(safe-area-inset-top)) 1rem 0.2rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.back-to-map,
.language-switcher a {
    align-items: center;
    color: var(--brand-brown);
    display: inline-flex;
    font-weight: 750;
    min-height: 44px;
    text-decoration: none;
}

.back-to-map {
    gap: 0.4rem;
}

.language-switcher {
    display: flex;
    gap: 0.35rem;
}

.language-switcher a {
    border: 1px solid var(--border);
    border-radius: 999px;
    justify-content: center;
    min-width: 44px;
    padding: 0 0.7rem;
}

.language-switcher a[aria-current="page"] {
    background: var(--brand-brown);
    color: #fff;
}

.detail-status {
    color: var(--muted);
    margin: 0;
    padding: 1rem;
}

.poi-content {
    background: var(--brand-cream);
}

.poi-hero {
    aspect-ratio: 4 / 3;
    background: #eadbd3;
    overflow: hidden;
    position: relative;
    width: min(100%, 48rem);
    margin-inline: auto;
}

.poi-hero[hidden],
.poi-hero-fallback[hidden] {
    display: none;
}

.poi-hero-fallback {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    text-align: center;
}

.poi-hero-gallery {
    height: 100%;
    position: relative;
}

.poi-hero-gallery-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.poi-hero-gallery-track::-webkit-scrollbar { display: none; }
.poi-hero-gallery-track:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

.poi-hero-slide {
    align-items: center;
    background: var(--surface-soft);
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

.poi-hero-slide img {
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

.poi-hero-slide--fallback { color: var(--muted); font-weight: 700; }
.poi-hero-gallery-count {
    background: rgb(36 31 28 / 72%);
    border-radius: 999px;
    bottom: .7rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    left: .7rem;
    padding: .3rem .55rem;
    position: absolute;
}

.poi-hero-actions {
    bottom: .7rem;
    display: flex;
    gap: .55rem;
    position: absolute;
    right: .7rem;
}

.poi-hero-action {
    align-items: center;
    background: rgb(255 253 248 / 94%);
    border: 1px solid var(--brand-brown);
    border-radius: 50%;
    color: var(--brand-brown);
    cursor: pointer;
    display: inline-flex;
    height: 3.1rem;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: .75rem;
    width: 3.1rem;
}

.poi-hero-action img { height: 100%; width: 100%; }
.poi-hero-action:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.poi-detail-body {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 58rem;
    padding: 1.15rem 1rem calc(3rem + env(safe-area-inset-bottom));
}

.poi-heading h1 {
    color: var(--brand-brown-dark);
    font-size: clamp(2rem, 8vw, 3.4rem);
    letter-spacing: -0.035em;
    line-height: 0.98;
    margin: 0.35rem 0 0.8rem;
    overflow-wrap: anywhere;
}

/* PATCH-063 — typology above the name: coloured text only (no background, badge or border), no motion.
   --poi-type-color is the category marker colour, darkened by poi_heading_type_v1.js only when
   needed to reach WCAG AA on the cream background. */
.poi-type {
    background: none;
    border: 0;
    color: var(--poi-type-color, var(--muted));
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin: 0;
    overflow-wrap: anywhere;
    padding: 0;
    text-transform: uppercase;
}

.poi-type[hidden] { display: none; }

.poi-type + h1 { margin-top: 0.2rem; }

.detail-language {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.lead {
    color: #3f3732;
    font-size: clamp(1.05rem, 3.8vw, 1.25rem);
    line-height: 1.55;
    margin: 1rem 0 0;
}

.detail-section {
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.detail-section h2 {
    color: var(--brand-brown-dark);
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
}

.poi-sections-launch {
    background: linear-gradient(135deg, var(--brand-brown-dark), var(--brand-brown));
    border: 0;
    border-radius: 1.15rem;
    box-shadow: 0 .8rem 1.8rem rgb(95 24 14 / 20%);
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: grid;
    gap: .25rem;
    padding: 1rem 1.15rem .9rem;
    text-align: left;
    transition: transform 180ms ease, box-shadow 180ms ease;
    width: 100%;
}

.poi-sections-launch:hover { box-shadow: 0 1rem 2.2rem rgb(95 24 14 / 26%); transform: translateY(-2px); }
.poi-sections-launch:active { transform: scale(.99); }
.poi-sections-launch:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.poi-sections-eyebrow,
.poi-section-slide-eyebrow { color: #e8c5a9; font-size: .72rem; font-weight: 850; letter-spacing: .1em; margin: 0; text-transform: uppercase; }
.poi-sections-title { font-size: clamp(1.25rem, 4vw, 1.8rem); font-weight: 850; letter-spacing: -.02em; }
.poi-sections-summary { color: rgb(255 255 255 / 82%); font-size: .95rem; }
.poi-sections-launch-footer { align-items: center; display: flex; font-size: .8rem; font-weight: 750; justify-content: space-between; margin-top: .3rem; }
.poi-sections-launch-icon { align-items: center; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; display: inline-flex; font-size: 1.1rem; height: 2rem; justify-content: center; width: 2rem; }

.poi-sections-dialog[hidden] { display: none; }
.poi-sections-dialog { inset: 0; position: fixed; z-index: 100; }
.poi-sections-backdrop { background: rgb(36 31 28 / 65%); inset: 0; position: absolute; }
.poi-sections-sheet { background: var(--brand-cream); border-radius: 1.35rem 1.35rem 0 0; bottom: 0; box-shadow: 0 -1rem 3rem rgb(36 31 28 / 25%); box-sizing: border-box; display: flex; flex-direction: column; left: 0; max-height: min(92dvh, 56rem); overflow: hidden; padding: max(.8rem, env(safe-area-inset-top)) max(.9rem, env(safe-area-inset-right)) max(.8rem, env(safe-area-inset-bottom)); position: absolute; right: 0; animation: sections-sheet-in 240ms cubic-bezier(.2,.8,.2,1); }
@keyframes sections-sheet-in { from { opacity: 0; transform: translateY(3rem); } to { opacity: 1; transform: translateY(0); } }
body.poi-sections-open { overflow: hidden; }

.poi-map-choice[hidden] { display: none; }
.poi-map-choice { inset: 0; position: fixed; z-index: 110; }
.poi-map-choice-backdrop { background: rgb(36 31 28 / 65%); inset: 0; position: absolute; }
.poi-map-choice-sheet { background: var(--brand-cream); border-radius: 1.25rem 1.25rem 0 0; bottom: 0; box-shadow: 0 -1rem 3rem rgb(36 31 28 / 25%); box-sizing: border-box; padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); position: absolute; width: 100%; }
.poi-map-choice-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: .8rem; }
.poi-map-choice-header h2 { color: var(--brand-brown-dark); font-size: 1.2rem; margin: 0; }
.poi-map-choice-actions { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.poi-sections-dialog-header { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.poi-sections-dialog-header h2 { color: var(--brand-brown-dark); font-size: clamp(1.45rem, 5vw, 2.3rem); letter-spacing: -.035em; line-height: 1; margin: .25rem 0 0; }
.poi-sections-close { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; color: var(--brand-brown-dark); cursor: pointer; display: inline-flex; flex: 0 0 auto; font-size: 1.7rem; height: 2.75rem; justify-content: center; line-height: 1; min-height: 44px; min-width: 44px; width: 2.75rem; }
.poi-sections-close:focus-visible,
.poi-section-controls button:focus-visible,
.poi-section-dots button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.poi-sections-hint { color: var(--muted); font-size: .8rem; margin: .75rem 0 .55rem; }
.poi-sections-progress { align-items: center; display: flex; gap: .75rem; justify-content: space-between; margin-bottom: .65rem; }
.poi-sections-progress > span { color: var(--brand-brown-dark); font-size: .82rem; font-weight: 850; min-width: 4rem; }
.poi-section-dots { align-items: center; display: flex; gap: .35rem; justify-content: flex-end; }
.poi-section-dots button { background: var(--surface-soft); border: 0; border-radius: 99px; cursor: pointer; height: .5rem; min-height: .5rem; min-width: .5rem; padding: 0; transition: background 160ms ease, width 160ms ease; width: .5rem; }
.poi-section-dots button[aria-selected="true"] { background: var(--brand-brown); width: 1.35rem; }
.poi-section-track { display: flex; flex: 1 1 auto; gap: .8rem; min-height: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: .2rem .1rem .9rem; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.poi-section-track::-webkit-scrollbar { display: none; }
.poi-section-track:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.poi-section-slide { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; box-sizing: border-box; display: flex; flex: 0 0 calc(100% - 1.7rem); flex-direction: column; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scroll-snap-align: start; touch-action: pan-x pan-y; }
.poi-section-media { align-items: center; background: var(--surface-soft); display: flex; flex: 0 0 min(34vh, 18rem); justify-content: center; overflow: hidden; position: relative; }
.poi-section-media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.poi-section-attribution { border-left: .2rem solid var(--brand-brown); }
.poi-section-attribution a { text-decoration: underline; }
.poi-section-media--fallback { flex-basis: 5.5rem; min-height: 5.5rem; }
.poi-section-fallback { align-items: center; color: var(--brand-brown); display: flex; flex-direction: column; font-weight: 850; gap: .45rem; letter-spacing: .08em; text-transform: uppercase; }
.poi-section-fallback-ornament { align-items: center; border: 1px solid var(--brand-brown); border-radius: 50%; display: inline-flex; font-size: 1.2rem; height: 2.4rem; justify-content: center; width: 2.4rem; }
.poi-section-slide-body { flex: 0 0 auto; min-height: 0; overflow: visible; padding: 1.05rem 1.1rem 1.2rem; }
.poi-section-slide-body h3 { color: var(--brand-brown-dark); font-size: clamp(1.35rem, 5vw, 2rem); letter-spacing: -.025em; line-height: 1.05; margin: .35rem 0 .75rem; }
.poi-section-slide-body p { line-height: 1.65; margin: 0; }
.poi-section-linked-link { color: var(--brand-brown-dark); display: inline-block; font-weight: 800; margin-top: 1rem; text-decoration: underline; text-underline-offset: .2em; }
.poi-section-demo-label { color: var(--muted); font-size: .75rem; font-weight: 750; margin-top: 1rem !important; }
.poi-section-controls { align-items: center; display: grid; gap: .55rem; grid-template-columns: auto 1fr auto; margin-top: .1rem; }
.poi-section-controls button { background: var(--surface); border: 1px solid var(--brand-brown); border-radius: .7rem; color: var(--brand-brown); cursor: pointer; min-height: 46px; min-width: 46px; }
.poi-section-controls button:disabled { cursor: default; opacity: .4; }
.poi-section-controls-label { color: var(--muted); font-size: .76rem; font-weight: 750; text-align: center; }

.detail-section p {
    line-height: 1.65;
}

.preserve-lines {
    white-space: pre-line;
}

.detail-section--actions {
    border-top: 0;
    margin-top: 1.25rem;
    padding-top: 0;
}

.poi-artwork-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.poi-artwork-anchors[hidden],
.poi-artwork-anchor[hidden] {
    display: none !important;
}

.poi-artwork-anchor {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--brand-brown);
    border-radius: 999px;
    color: var(--brand-brown-dark);
    display: inline-flex;
    gap: .45rem;
    min-height: 2.5rem;
    padding: .45rem .8rem;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.poi-artwork-anchor:hover,
.poi-artwork-anchor:focus-visible {
    background: var(--brand-brown);
    color: var(--surface);
}

.poi-artwork-anchor:active { transform: translateY(1px); }
.poi-artwork-anchor-icon { font-size: 1rem; line-height: 1; }
.poi-artwork-anchor-label { font-size: .82rem; font-weight: 750; }
.poi-artwork-anchor-arrow { font-size: .95rem; line-height: 1; }

#poi-artworks-section,
#poi-authors-section,
#poi-routes-section {
    scroll-margin-top: 1.5rem;
}

#poi-artworks-section:focus,
#poi-authors-section:focus,
#poi-routes-section:focus { outline: 2px solid var(--brand-brown); outline-offset: .35rem; }

.poi-artworks-grid,
.poi-authors-grid,
.poi-routes-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poi-load-more {
    background: var(--surface);
    border: 1px solid var(--brand-brown);
    border-radius: .7rem;
    color: var(--brand-brown);
    cursor: pointer;
    display: block;
    font: inherit;
    font-weight: 750;
    margin: 1rem auto 0;
    min-height: 46px;
    padding: .6rem 1.2rem;
}

.poi-load-more[hidden] { display: none; }
.poi-load-more:disabled { cursor: default; opacity: .5; }
.poi-load-more:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.poi-artwork-card,
.poi-author-card,
.poi-route-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 .35rem 1rem rgb(36 31 28 / 7%);
    min-width: 0;
    overflow: hidden;
}

.poi-route-card-cover { aspect-ratio: 16 / 9; background: var(--surface-soft); display: block; object-fit: cover; width: 100%; }
.poi-route-card-cover--fallback { align-items: center; color: var(--brand-brown-dark); display: flex; font-weight: 700; justify-content: center; }
.poi-route-card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem; }
.poi-route-card-body h3 { margin: 0; }
.poi-route-card-body p { margin: 0; }
.poi-route-card-meta { color: var(--muted); font-size: .82rem; }
.poi-route-card-link { color: var(--brand-brown); font-weight: 750; margin-top: auto; }

.poi-artwork-card-media {
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.poi-artwork-card-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.poi-artwork-card-media--placeholder {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 750;
    padding: 1rem;
    text-align: center;
}

.poi-artwork-card-body,
.poi-author-card {
    padding: .9rem;
}

.poi-artwork-card h3,
.poi-author-card h3 {
    color: var(--brand-brown-dark);
    font-size: 1.05rem;
    line-height: 1.15;
    margin: 0;
}

.poi-artwork-card p,
.poi-author-card p {
    line-height: 1.45;
    margin: .5rem 0 0;
}

.poi-artwork-card-authors { font-weight: 700; }
.poi-artwork-card-meta,
.poi-author-card-count { color: var(--muted); font-size: .82rem; }
.poi-artwork-card-link,
.poi-author-card-link { display: inline-block; margin-top: .75rem; text-decoration: underline; }

.poi-author-card { display: flex; flex-direction: column; }
.poi-author-card-link { margin-top: auto; padding-top: .75rem; }

.navigation-actions {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.navigation-actions[data-action-count="1"] { grid-template-columns: 1fr; }
.navigation-actions[data-action-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.navigation-action {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--brand-brown);
    border-radius: 0.8rem;
    box-sizing: border-box;
    color: var(--brand-brown);
    display: flex;
    flex-direction: column;
    font-weight: 800;
    gap: 0.25rem;
    justify-content: center;
    min-height: 68px;
    min-width: 0;
    padding: 0.55rem 0.35rem;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.navigation-action--italyart { background: var(--brand-brown); color: #fff; }
.poi-action-icon { font-size: 1.2rem; line-height: 1; }
.poi-provider-icon { display: block; height: 32px; object-fit: contain; width: 32px; }
.poi-action-label { font-size: 0.73rem; line-height: 1.15; overflow-wrap: anywhere; }
.navigation-action:hover { filter: brightness(1.06); }
.navigation-action:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.poi-attribution {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    padding-top: .75rem;
}

.poi-attribution-entry { margin: 0 0 .8rem; }
.poi-attribution-entry p { display: inline; margin: 0 .55rem 0 0; }

/* PATCH-070.B1 — credit for the coordinates (OpenStreetMap, ODbL) when the POI declares that provenance */
.poi-location-attribution {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

.poi-location-attribution a { color: inherit; }

.structured-list {
    column-gap: 1rem;
    display: grid;
    grid-template-columns: minmax(7.5rem, 0.32fr) 1fr;
    margin: 0;
    row-gap: 0.55rem;
}

.structured-list dt {
    color: var(--muted);
    font-weight: 700;
}

.structured-list dd {
    margin: 0;
    white-space: pre-line;
}

#poi-description article {
    display: block;
}

#poi-description article > :first-child {
    margin-top: 0;
}

#poi-description article > :last-child {
    margin-bottom: 0;
}

#poi-description p {
    margin: 0 0 0.85rem;
}

#poi-description h2,
#poi-description h3 {
    font-weight: 700;
    line-height: 1.25;
    margin: 1.35rem 0 0.6rem;
}

#poi-description h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
#poi-description h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

#poi-description ul,
#poi-description ol {
    margin: 0.4rem 0 0.9rem;
    padding-left: 1.4rem;
}

#poi-description li {
    margin: 0.25rem 0;
}

#poi-description img {
    display: block;
    max-width: 100%;
    height: auto;
}

#poi-description figure {
    box-sizing: border-box;
    max-width: 100%;
    margin: 1rem 0;
}

#poi-description figure[data-image-size="small"] { width: 40%; }
#poi-description figure[data-image-size="medium"] { width: 70%; }
#poi-description figure[data-image-size="large"] { width: 100%; }
#poi-description figure[data-image-align="center"] { margin-left: auto; margin-right: auto; }
#poi-description figure[data-image-align="right"] { margin-left: auto; margin-right: 0; }

#poi-description figcaption {
    color: var(--muted);
    font-size: 0.9rem;
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.navigation-action:active,
.language-switcher a:active,
.back-to-map:active {
    transform: scale(0.97);
}

@media (min-width: 700px) {
    body {
        background:
            linear-gradient(90deg, #eadbd3 0, #eadbd3 18%, #f6eee9 18%, #f6eee9 100%);
    }

    .poi-detail-shell {
        margin-left: auto;
        max-width: 56rem;
        min-height: 100vh;
    }

    .poi-hero { aspect-ratio: 16 / 10; }

    .poi-detail-body {
        padding: 1.6rem 2rem 4rem;
    }

    .poi-sections-sheet { border-radius: 1.35rem; bottom: 50%; left: 50%; max-height: min(82vh, 52rem); max-width: 58rem; right: auto; transform: translate(-50%, 50%); width: min(calc(100% - 3rem), 58rem); }
    .poi-section-slide { flex-basis: calc(100% - 3rem); }
    @keyframes sections-sheet-in { from { opacity: 0; transform: translate(-50%, calc(50% + 2rem)); } to { opacity: 1; transform: translate(-50%, 50%); } }
}

@media (min-width: 1100px) {
    .poi-detail-shell {
        max-width: 64rem;
    }

}

@media (max-width: 420px) {
    .navigation-action { min-height: 64px; padding-inline: 0.25rem; }
    .poi-action-label { font-size: 0.68rem; }

    .detail-nav {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .poi-detail-body {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .poi-artwork-anchor { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 900px) {
    .poi-artworks-grid,
    .poi-authors-grid,
    .poi-routes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .poi-artworks-grid,
    .poi-authors-grid,
    .poi-routes-grid { grid-template-columns: 1fr; }
}

/* PATCH-062 — floating shortcuts: bottom right, above the content, below every dialog (z-index 100+) */
.poi-floating-nav {
    align-items: flex-end;
    bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.75rem));
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: max(1rem, calc(env(safe-area-inset-right) + 0.75rem));
    transform: translateY(0.5rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    visibility: hidden;
    z-index: 40;
}

.poi-floating-nav[data-visible="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
    visibility: visible;
}

body.poi-sections-open .poi-floating-nav { display: none; }

.poi-floating-action {
    align-items: center;
    background: var(--brand-brown);
    border: 2px solid var(--brand-cream);
    border-radius: 999px;
    box-shadow: 0 0.4rem 1.2rem rgb(36 31 28 / 28%);
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 3rem;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-decoration: none;
    width: 3rem;
}

.poi-floating-action[hidden] { display: none; }
.poi-floating-action:hover { background: var(--brand-brown-dark); }
.poi-floating-action:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.poi-floating-action--unavailable,
.poi-floating-action--unavailable:hover { background: #5f5853; cursor: not-allowed; }

.poi-floating-action svg {
    fill: none;
    height: 1.4rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1.4rem;
}

.poi-floating-note {
    background: var(--text);
    border-radius: 0.75rem;
    box-shadow: 0 0.4rem 1.2rem rgb(36 31 28 / 28%);
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0;
    max-width: min(15rem, calc(100vw - 2rem));
    padding: 0.5rem 0.7rem;
}

.poi-floating-note[hidden] { display: none; }

/* the last section is never covered by the shortcuts */
.poi-detail-shell[data-floating-nav="ready"] .poi-detail-body { padding-bottom: calc(9rem + env(safe-area-inset-bottom)); }
.poi-heading h1 { scroll-margin-top: 4.5rem; }

@media (prefers-reduced-motion: reduce) {
    .poi-floating-nav,
    .poi-floating-nav[data-visible="true"] { transform: none; }

    .poi-detail-shell {
        animation: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .poi-sections-sheet { animation: none; }
}

/* PHARMACY-INFO-01 — indicative hours and contacts on pharmacy cards (no live status) */
.poi-pharmacy-section .pharmacy-disclaimer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: .9rem;
    margin: .75rem 0 0;
    padding: .65rem .8rem;
}
.poi-pharmacy-section .pharmacy-empty { color: var(--muted); margin: 0; }
.poi-pharmacy-section .pharmacy-phone,
.poi-pharmacy-section .pharmacy-website { color: var(--brand-brown-dark); font-weight: 700; overflow-wrap: anywhere; }
.poi-pharmacy-section .pharmacy-source { color: var(--muted); font-size: .8rem; margin: .6rem 0 0; }
.poi-pharmacy-section .pharmacy-source a { color: inherit; }

/* POI-DEFAULT-01 — category fallbacks: «Immagine illustrativa» on the image, «Informazioni generali» on the text */
.poi-default-media-label {
    background: rgb(36 31 28 / 72%);
    border-radius: .3rem;
    bottom: .6rem;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    left: .6rem;
    padding: .15rem .5rem;
    pointer-events: none;
    position: absolute;
}
.poi-default-text-note { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .02em; margin: 0 0 .35rem; text-transform: uppercase; }
