/* Map Studio – map block on the site and in the editor. */
.devenzi-map-map { --devenzi-map-accent: #ff7a12; position: relative; }
.devenzi-map-stage { position: relative; height: 480px; overflow: hidden; border-radius: 18px; background: #ebe8e4; isolation: isolate; }
.devenzi-map-canvas { position: absolute; inset: 0; }
.devenzi-map-map.is-loading .devenzi-map-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%) #ebe8e4; background-size: 250% 100%; animation: devenzi-map-shimmer 1.4s linear infinite; pointer-events: none; }
@keyframes devenzi-map-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.devenzi-map-map .maplibregl-ctrl-group { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, .16); }
.devenzi-map-map .maplibregl-ctrl-attrib { font-size: 11px; }

/* Load after click: nothing comes from the map server before this button. */
.devenzi-map-consent { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 20px; text-align: center; background: radial-gradient(circle at 30% 30%, #f3efe9, #dcd6cf); color: #1c191d; }
.devenzi-map-consent[hidden] { display: none; }
.devenzi-map-consent::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 48px 48px; }
.devenzi-map-consent > div { position: relative; max-width: 340px; padding: 24px; border-radius: 16px; background: rgba(255, 255, 255, .88); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); }
.devenzi-map-consent p { margin: 0 0 14px; color: #5d5650; font-size: 14px; line-height: 1.5; }
.devenzi-map-consent button { padding: 10px 18px; border: 0; border-radius: 11px; background: var(--devenzi-map-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.devenzi-map-consent button:focus:not(:focus-visible) { outline: none; }

/* Editor only: the bar shown while an area or route is drawn. */

/* Pins in the accent colour, with an icon or a photo. The pin is the marker element itself, so it must stay
   absolutely positioned like every MapLibre marker – otherwise each pin is pushed down by the ones before it. */
.devenzi-map-pin { position: absolute; top: 0; left: 0; width: 40px; height: 40px; cursor: pointer; }
.devenzi-map-pin-body { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--devenzi-map-accent); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 255, 255, .92); transition: transform .2s; }
.devenzi-map-pin:hover .devenzi-map-pin-body { transform: rotate(-45deg) scale(1.08); }
.devenzi-map-pin-body > * { transform: rotate(45deg); }
.devenzi-map-pin svg { width: 18px; height: 18px; fill: none; stroke: var(--devenzi-map-pin-ink, #fff); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.devenzi-map-pin img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.devenzi-map-pin-shadow { position: absolute; left: 50%; bottom: -6px; width: 14px; height: 6px; margin-left: -7px; border-radius: 50%; background: rgba(0, 0, 0, .25); filter: blur(2px); }

/* Popup card. */
.devenzi-map-map .maplibregl-popup-content { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
/* Close: a plain "×" that comes alive on hover. With a photo on top it sits on a soft dark disc to stay visible. */
.devenzi-map-map .maplibregl-popup-close-button { display: grid; place-items: center; width: 28px; height: 28px; margin: 6px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8f8780; font: 300 22px/1 system-ui, sans-serif; cursor: pointer; transition: color .2s, background .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.devenzi-map-map .maplibregl-popup-close-button:hover { background: rgba(0, 0, 0, .06); color: #1c191d; transform: rotate(90deg); }
.devenzi-map-map .maplibregl-popup-content:has(.devenzi-map-card > :is(img, .devenzi-map-gallery):first-child) .maplibregl-popup-close-button { background: rgba(0, 0, 0, .35); color: #fff; }
.devenzi-map-map .maplibregl-popup { animation: devenzi-map-pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes devenzi-map-pop { from { opacity: 0; } }
.devenzi-map-card img { display: block; width: 100%; max-width: 280px; height: 130px; object-fit: cover; }
.devenzi-map-card-body { padding: 12px 14px 14px; color: #1c191d; font-size: 14px; line-height: 1.45; }
.devenzi-map-card-body > b { display: block; font-size: 15px; }
/* Without a photo the close button sits next to the title. */
.devenzi-map-card > .devenzi-map-card-body:first-child > b { padding-right: 26px; }
.devenzi-map-card-body span { display: block; margin-top: 2px; color: #6b635d; white-space: pre-line; }
.devenzi-map-card-body span.is-rich { white-space: normal; }
.devenzi-map-card-body span.is-rich p { margin: 0 0 6px; }
.devenzi-map-card-body span.is-rich ul, .devenzi-map-card-body span.is-rich ol { margin: 4px 0 6px; padding-left: 18px; }
.devenzi-map-card-body span.is-rich a { display: inline; padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: 600; text-decoration: underline; }
/* Opening hours: the status, and the week when opened. */
.devenzi-map-hours { margin: 6px 0 2px; font-size: 13px; }
.devenzi-map-hours summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: #4b4540; }
.devenzi-map-hours summary::-webkit-details-marker { display: none; }
.devenzi-map-hours summary::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border: solid #9a918b; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.devenzi-map-hours[open] summary::after { transform: rotate(-135deg); }
.devenzi-map-hours summary b { display: inline; font-size: 13px; }
.devenzi-map-hours i, .devenzi-map-list-hours::before { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #d64545; }
.devenzi-map-hours i.is-open, .devenzi-map-list-hours.is-open::before { background: #1f9d55; }
.devenzi-map-hours table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.devenzi-map-hours th, .devenzi-map-hours td { padding: 2px 0; font-weight: 400; text-align: left; color: #6b635d; }
.devenzi-map-hours th { width: 44px; }
.devenzi-map-hours tr.is-today th, .devenzi-map-hours tr.is-today td { color: #1c191d; font-weight: 700; }
.devenzi-map-card-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.devenzi-map-card-body a { display: inline-block; padding: 7px 12px; border-radius: 9px; background: var(--devenzi-map-accent); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .2s, filter .2s; }
.devenzi-map-card-buttons a:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); filter: brightness(1.05); }
.devenzi-map-card-buttons a:active { transform: translateY(0) scale(.97); }
/* A place of the base map (station, shop …): its kind above the name, the way to it and the place on OpenStreetMap. */

/* Name under the pin. */
.devenzi-map-pin-label { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: #1c191d; font: 600 12px/1.4 system-ui, sans-serif; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); pointer-events: none; }

/* List of places next to (side) or below the map. */
/* Side by side when there is room for a 240px list and a 440px map, otherwise the list wraps above the map. */
.devenzi-map-map.has-list-side { display: flex; flex-wrap: wrap; gap: 14px; }
.devenzi-map-map.has-list-side .devenzi-map-list { order: -1; flex: 1 1 240px; max-height: var(--devenzi-map-h, 480px); overflow: auto; }
.devenzi-map-map.has-list-side .devenzi-map-stage { flex: 999 1 440px; }
/* A format: the height comes from the width (the box's own size is set on it). */
.devenzi-map-map.has-format .devenzi-map-stage { height: auto; }
/* With a format the map's height comes from its width: the list beside takes no height of its own and scrolls
   within the map's (above the map, on narrow screens, it keeps a little). */
.devenzi-map-map.has-format.has-list-side .devenzi-map-list { max-height: none; min-height: 200px; contain: size; }
.devenzi-map-map.has-format.has-list-side .devenzi-map-stage { align-self: flex-start; }
.devenzi-map-map.has-list-below .devenzi-map-list { margin-top: 14px; }
.devenzi-map-map.has-list-below .devenzi-map-list ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.devenzi-map-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.devenzi-map-list li[hidden] { display: none; }
.devenzi-map-list li button { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 12px; background: #fff; color: #1c191d; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.devenzi-map-list li button:hover { border-color: var(--devenzi-map-accent); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .3); transform: translateY(-1px); }
.devenzi-map-list li button:focus:not(:focus-visible) { outline: none; }
.devenzi-map-pin:focus { outline: none; }
.devenzi-map-pin:focus-visible .devenzi-map-pin-body { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--devenzi-map-accent, #f97316); }
/* The places as text for screen readers, when the map shows no list. */
.devenzi-map-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.devenzi-map-list b { display: block; font-size: 14px; }
.devenzi-map-list small { display: block; margin-top: 1px; color: #6b635d; font-size: 12.5px; }
.devenzi-map-list-hours { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; font-style: normal; font-weight: 600; color: #4b4540; }
.devenzi-map-list-hours::before { content: ""; width: 7px; height: 7px; }
.devenzi-map-list-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--devenzi-map-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--devenzi-map-accent) 20%, transparent); }
.devenzi-map-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.devenzi-map-chips button { padding: 5px 12px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 99px; background: #fff; color: #1c191d; font: 600 13px/1.4 system-ui, sans-serif; cursor: pointer; transition: border-color .15s, background .2s, color .2s, transform .15s; }
.devenzi-map-chips button:hover { border-color: var(--devenzi-map-accent); }
.devenzi-map-chips button:active { transform: scale(.95); }
.devenzi-map-chips button[aria-pressed="true"] { border-color: var(--devenzi-map-accent); background: var(--devenzi-map-accent); color: #fff; }
.devenzi-map-search { width: 100%; margin: 0 0 10px; padding: 9px 12px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 10px; font: inherit; box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
	.devenzi-map-map *, .devenzi-map-map .maplibregl-popup { transition: none !important; animation: none !important; }
}

/* Several photos: swipe through them, or use the arrows. */
.devenzi-map-gallery { position: relative; width: 280px; max-width: 100%; }
.devenzi-map-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.devenzi-map-slides::-webkit-scrollbar { display: none; }
.devenzi-map-slides img { flex: 0 0 100%; width: 100%; height: 150px; object-fit: cover; scroll-snap-align: start; }
.devenzi-map-gallery button { position: absolute; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; }
.devenzi-map-gallery button::before { content: ""; width: 7px; height: 7px; border: solid #1c191d; border-width: 0 2px 2px 0; }
.devenzi-map-gal-prev { left: 8px; }
.devenzi-map-gal-prev::before { transform: translateX(1px) rotate(135deg); }
.devenzi-map-gal-next { right: 8px; }
.devenzi-map-gal-next::before { transform: translateX(-1px) rotate(-45deg); }
.devenzi-map-gallery:hover button { opacity: 1; }
.devenzi-map-gallery button:hover { transform: scale(1.1); }
.devenzi-map-gallery.is-first .devenzi-map-gal-prev, .devenzi-map-gallery.is-last .devenzi-map-gal-next { opacity: 0 !important; pointer-events: none; }
.devenzi-map-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.devenzi-map-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: width .25s, background .25s, border-radius .25s; }
.devenzi-map-dots i.is-on { width: 16px; border-radius: 3px; background: #fff; }
@media (hover: none) { .devenzi-map-gallery button { display: none; } }

/* Pin sizes (--s, set per pin) and shapes: drop (default), circle, square or just the icon. */
.devenzi-map-pin { width: var(--s, 40px); height: var(--s, 40px); }
.devenzi-map-pin svg { width: calc(var(--s, 40px) * .45); height: calc(var(--s, 40px) * .45); }
.devenzi-map-pin img { width: calc(var(--s, 40px) - 8px); height: calc(var(--s, 40px) - 8px); }
.devenzi-map-pin-label { top: calc(var(--s, 40px) + 6px); }
.devenzi-map-pin.is-big { z-index: 2; }
.devenzi-map-pin--circle .devenzi-map-pin-body, .devenzi-map-pin--square .devenzi-map-pin-body, .devenzi-map-pin--icon .devenzi-map-pin-body { transform: none; }
.devenzi-map-pin--circle .devenzi-map-pin-body > *, .devenzi-map-pin--square .devenzi-map-pin-body > *, .devenzi-map-pin--icon .devenzi-map-pin-body > * { transform: none; }
.devenzi-map-pin--circle .devenzi-map-pin-body { border-radius: 50%; }
.devenzi-map-pin--square .devenzi-map-pin-body { border-radius: 30%; }
.devenzi-map-pin--circle:hover .devenzi-map-pin-body, .devenzi-map-pin--square:hover .devenzi-map-pin-body, .devenzi-map-pin--icon:hover .devenzi-map-pin-body { transform: scale(1.1); }
.devenzi-map-pin--circle .devenzi-map-pin-shadow, .devenzi-map-pin--square .devenzi-map-pin-shadow, .devenzi-map-pin--icon .devenzi-map-pin-shadow { display: none; }
.devenzi-map-pin--icon .devenzi-map-pin-body { background: transparent; box-shadow: none; }
.devenzi-map-pin--icon svg { width: calc(var(--s, 40px) * .75); height: calc(var(--s, 40px) * .75); stroke: var(--devenzi-map-accent); stroke-width: 2.4; filter: drop-shadow(0 0 1.2px #fff) drop-shadow(0 0 1.2px #fff) drop-shadow(0 0 1.2px #fff) drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.devenzi-map-pin--icon img { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, .3); }

/* "Near me" in the list, and the distance of each place. */
.devenzi-map-near { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 7px 12px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 99px; background: #fff; color: #1c191d; font: 600 13px/1.3 system-ui, sans-serif; cursor: pointer; transition: border-color .15s, background .2s, color .2s, transform .15s; }
.devenzi-map-near::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--devenzi-map-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--devenzi-map-accent) 25%, transparent); }
.devenzi-map-near:hover { border-color: var(--devenzi-map-accent); transform: translateY(-1px); }
.devenzi-map-near.is-on { border-color: var(--devenzi-map-accent); }
.devenzi-map-near.is-busy::before { animation: devenzi-map-pulse 1s ease-in-out infinite; }
@keyframes devenzi-map-pulse { 50% { transform: scale(.5); } }
.devenzi-map-list-dist { display: inline-block; margin: 2px 8px 0 0; color: var(--devenzi-map-accent); font-size: 12px; font-style: normal; font-weight: 700; }

/* Street View (Pro): the panorama slides over the map. */
.devenzi-map-sv { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: inherit; background: #111; opacity: 0; transform: scale(.96); transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.devenzi-map-sv.is-open { opacity: 1; transform: none; }
.devenzi-map-sv-view, .devenzi-map-sv-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.devenzi-map-sv-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1c191d; font: 400 22px/34px system-ui, sans-serif; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .2s; }
.devenzi-map-sv-close:hover { transform: scale(1.08) rotate(90deg); }
/* With its words ("Back to the map"): a clear pill. */
.devenzi-map-sv-close.has-text { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 38px; padding: 0 16px 0 13px; border-radius: 99px; font: 600 13.5px/1 system-ui, sans-serif; }
.devenzi-map-sv-close.has-text span { font-size: 17px; }
.devenzi-map-sv-close.has-text:hover { transform: translateY(-1px); background: #fff; }

/* Elementor's editor: the map with a button to the Map Studio. */
.devenzi-map-builder { position: relative; }
.devenzi-map-builder-edit { position: absolute; top: 12px; left: 12px; z-index: 6; padding: 8px 14px; border-radius: 99px; background: #1c191d; color: #fff !important; font: 700 13px/1.2 system-ui, sans-serif; text-decoration: none !important; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.devenzi-map-builder:hover .devenzi-map-builder-edit { opacity: 1; transform: none; }
.devenzi-map-builder-empty { padding: 28px; border: 2px dashed #d9d3cc; border-radius: 14px; color: #6b635d; font: 14px/1.5 system-ui, sans-serif; text-align: center; }

/* The head of a popup: the icon on a soft tile in the place's colour, the kind small above the name. */
.devenzi-map-card-body .devenzi-map-head { display: flex; align-items: center; gap: 12px; padding-right: 24px; }
.devenzi-map-card-body .devenzi-map-head + * { margin-top: 10px; }
.devenzi-map-card-body .devenzi-map-head-ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--devenzi-map-ic, var(--devenzi-map-accent)) 13%, #fff); color: var(--devenzi-map-ic, var(--devenzi-map-accent)); }
.devenzi-map-card-body .devenzi-map-head-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.devenzi-map-card-body .devenzi-map-head-name { min-width: 0; }
.devenzi-map-card-body .devenzi-map-head-name small { display: block; margin: 0; color: #8a817a; font-size: 12px; font-weight: 500; line-height: 1.3; }
.devenzi-map-card-body .devenzi-map-head-name b { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; }

/* Actions as small icon buttons: a soft square, the main one in the map's colour; the word shows on hover. */
.devenzi-map-card .devenzi-map-ib { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 12px; background: rgba(15, 23, 42, .06); color: #1c191d; box-shadow: none; text-decoration: none; cursor: pointer; transition: background .12s, transform .12s cubic-bezier(.2, .8, .2, 1); }
.devenzi-map-card .devenzi-map-ib:hover { background: rgba(15, 23, 42, .11); transform: translateY(-1px); filter: none; box-shadow: none; }
.devenzi-map-card .devenzi-map-ib:active { transform: scale(.94); }
.devenzi-map-card .devenzi-map-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.devenzi-map-card .devenzi-map-ib.is-main { background: var(--devenzi-map-accent); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--devenzi-map-accent) 70%, transparent); }
.devenzi-map-card .devenzi-map-ib.is-main:hover { background: var(--devenzi-map-accent); filter: brightness(1.06); }
.devenzi-map-card .devenzi-map-ib:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(15, 23, 42, .14); }
.devenzi-map-card .devenzi-map-ib[data-tip]:is(:hover, :focus-visible)::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 2; padding: 5px 8px; border-radius: 8px; background: #0f172a; color: #fff; font: 600 12px/1.2 system-ui, sans-serif; white-space: nowrap; pointer-events: none; transform: translateX(-50%); animation: devenzi-map-pop .12s; }
.devenzi-map-card .devenzi-map-ib[data-tip]:first-child::after { left: 0; transform: none; }
.devenzi-map-card .devenzi-map-ib[data-tip]:last-child:not(:first-child)::after { right: 0; left: auto; transform: none; }
/* Next to them the place's own link stays a word, as high as they are. */
.devenzi-map-card-buttons > a:not(.devenzi-map-ib) { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 12px; }

/* A popup with its own width: photos as wide as the card. */
.devenzi-map-card[style*="width"] img, .devenzi-map-card[style*="width"] .devenzi-map-gallery { width: 100%; max-width: none; }
/* Studio only: the handle at the popup's right edge to drag its width. */
.devenzi-map-map .maplibregl-popup-content .devenzi-map-pw { position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; width: 12px; cursor: ew-resize; touch-action: none; }
.devenzi-map-map .maplibregl-popup-content .devenzi-map-pw::after { content: ""; position: absolute; top: 50%; right: 4px; width: 4px; height: 30px; margin-top: -15px; border-radius: 2px; background: rgba(15, 23, 42, .22); opacity: 0; transition: opacity .12s; }
.devenzi-map-map .maplibregl-popup-content:hover .devenzi-map-pw::after { opacity: 1; }

/* Found photos (Wikimedia, Mapillary) carry their credit, small on the photo. */
.devenzi-map-photo, .devenzi-map-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.devenzi-map-slide img { width: 100%; }
/* The credit: a small © in the corner, opening to the full line on pointing or a tap. */
.devenzi-map-credit { position: absolute; right: 6px; bottom: 6px; display: flex; align-items: center; max-width: calc(100% - 12px); height: 20px; overflow: hidden; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff; font: 500 10px/20px system-ui, sans-serif; white-space: nowrap; cursor: default; outline: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.devenzi-map-credit b { flex: none; width: 20px; font-size: 11px; font-weight: 700; text-align: center; }
.devenzi-map-card-body .devenzi-map-credit small, .devenzi-map-credit small { display: block; max-width: 0; overflow: hidden; color: inherit; font: inherit; text-overflow: ellipsis; transition: max-width .25s ease, padding .25s ease; }
/* Pointing (on phones the tap counts as pointing) or the keyboard opens it – not the focus the popup sets itself. */
.devenzi-map-credit:hover small, .devenzi-map-credit:focus-visible small, .devenzi-map-credit:has(a:focus-visible) small { max-width: 240px; padding-right: 8px; }
.devenzi-map-credit:focus-visible { box-shadow: 0 0 0 2px #fff; }
.devenzi-map-card .devenzi-map-credit a { display: inline; padding: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
