/*
 * LICM Tour Map — visitor viewer.
 * Matches the licm.org homepage (Elementor global kit):
 *   - Canada Type Gibson (inherited from the theme)
 *   - Buttons: 16px 24px, 4px radius, 700 weight, dark text.
 *     Yellow (Buy Tickets) / orange (Become a Member) hover to white;
 *     white buttons hover to peach.
 *   - LICM blue (#425CC7) is the main colour; the light blue from the header
 *     "Donate" button (#A8B9FF) is the background.
 * Every rule is scoped under .ltm-tour so the theme's global `button:hover`
 * (pink) can't leak in.
 */
.ltm-tour {
	--ltm-font: inherit;
	--ltm-blue: var(--e-global-color-primary, #425cc7);
	--ltm-yellow: var(--e-global-color-accent, #ffdd40);
	--ltm-orange: #ffa74a;
	--ltm-peach: #ffd3a4;
	--ltm-bg: #a8b9ff;                /* header Donate button */
	--ltm-sky: #d2e3ff;               /* homepage light-blue section */
	--ltm-cream: #f5ebe1;             /* homepage cream section */
	--ltm-navy: #1e243d;              /* homepage footer */
	--ltm-ink: var(--e-global-color-text, #21232c);
	--ltm-muted: #444a5c;
	--ltm-white: #fff;
	--ltm-radius: 4px;
	--ltm-card-radius: 12px;
	font-family: var(--ltm-font);
	color: var(--ltm-ink);
	font-size: 17px;
	line-height: 1.55;
	margin: 1.5em 0;
	padding: 24px;
	border-radius: var(--ltm-card-radius);
	background: var(--ltm-bg);
}
.ltm-tour *, .ltm-tour *::before, .ltm-tour *::after { box-sizing: border-box; }
.ltm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Button reset (beats the theme's button styles, including :hover/:focus). */
.ltm-tour button { font-family: inherit; font-size: inherit; text-transform: none; text-decoration: none; letter-spacing: .015em; margin: 0; cursor: pointer; }
/* Hover/focus only change colours: sizes come from each control's own rule, so nothing grows on hover. */
.ltm-tour button:hover,
.ltm-tour button:focus { text-decoration: none; }
.ltm-tour button:disabled { cursor: default; }
.ltm-tour :focus-visible { outline: 3px solid var(--ltm-navy); outline-offset: 2px; }
.ltm-ic { flex: none; display: block; }

/* ---- buttons: same as the homepage ---- */
.ltm-tour .ltm-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border: 0; border-radius: var(--ltm-radius); background: var(--ltm-yellow); color: var(--ltm-ink); font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: .015em; transition: background-color .3s, color .3s; }
.ltm-tour .ltm-btn-yellow { background: var(--ltm-yellow); }
.ltm-tour .ltm-btn-orange { background: var(--ltm-orange); }
.ltm-tour .ltm-btn-white { background: var(--ltm-white); }
.ltm-tour .ltm-btn-yellow:hover, .ltm-tour .ltm-btn-yellow:focus-visible,
.ltm-tour .ltm-btn-orange:hover, .ltm-tour .ltm-btn-orange:focus-visible { background: var(--ltm-white); color: var(--ltm-ink); }
.ltm-tour .ltm-btn-white:hover, .ltm-tour .ltm-btn-white:focus-visible { background: var(--ltm-peach); color: var(--ltm-ink); }
/* "In plan" state uses LICM blue. */
.ltm-tour .ltm-btn[aria-pressed="true"] { background: var(--ltm-blue); color: #fff; }
.ltm-tour .ltm-btn[aria-pressed="true"]:hover { background: var(--ltm-navy); color: #fff; }
.ltm-tour .ltm-btn-sm { padding: 12px 18px; font-size: 15px; gap: 12px; }
.ltm-tour .ltm-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px; background: var(--ltm-blue); color: #fff; font-size: 12px; vertical-align: middle; }
.ltm-tour .ltm-linkbtn,
.ltm-tour .ltm-linkbtn:hover,
.ltm-tour .ltm-linkbtn:focus { background: none; border: 0; padding: 0; color: var(--ltm-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.ltm-tour .ltm-linkbtn:hover, .ltm-tour .ltm-linkbtn:focus-visible { font-weight: 700; }

/* ---- top bar ---- */
.ltm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ltm-bar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ltm-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ltm-tour .ltm-tab, .ltm-floor-single { display: inline-flex; align-items: center; padding: 16px 24px; border: 0; border-radius: var(--ltm-radius); background: var(--ltm-white); color: var(--ltm-ink); font-weight: 700; font-size: 17px; line-height: 1; transition: background-color .3s, color .3s; }
.ltm-tour .ltm-tab:hover { background: var(--ltm-peach); color: var(--ltm-ink); }
.ltm-tour .ltm-tab[aria-selected="true"] { background: var(--ltm-blue); color: #fff; }
.ltm-tour .ltm-tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px; border-radius: 11px; background: var(--ltm-yellow); color: var(--ltm-ink); font-size: 12px; font-weight: 700; }

.ltm-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 6px; background: var(--ltm-white); }
.ltm-tour .ltm-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: var(--ltm-radius); background: transparent; color: var(--ltm-ink); font-weight: 700; font-size: 15px; line-height: 1; }
.ltm-tour .ltm-seg button:hover { background: var(--ltm-peach); color: var(--ltm-ink); }
.ltm-tour .ltm-seg button[aria-pressed="true"] { background: var(--ltm-blue); color: #fff; }

/* ---- category highlight chips (white buttons, blue when on) ---- */
/* One row of filters: text and padding scale with the space available; if they still don't fit, the row scrolls sideways. */
.ltm-filters { display: flex; flex-wrap: nowrap; gap: 6px; margin: -5px -5px 9px; padding: 5px; overflow-x: auto; scrollbar-width: thin; container-type: inline-size; }
.ltm-tour .ltm-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1 0 auto; padding: 10px clamp(8px, 1.3cqi, 18px); border: 0; border-radius: var(--ltm-radius); background: var(--ltm-white); color: var(--ltm-ink); font-size: clamp(12.5px, 1.8cqi, 15px); font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .3s, color .3s; }
.ltm-tour .ltm-chip .ltm-ic { color: var(--ltm-blue); width: 16px; height: 16px; }
.ltm-tour .ltm-chip:hover { background: var(--ltm-peach); color: var(--ltm-ink); }
.ltm-tour .ltm-chip.is-on, .ltm-tour .ltm-chip.is-on:hover { background: var(--ltm-blue); color: #fff; }
.ltm-tour .ltm-chip.is-on .ltm-ic { color: #fff; }
@media (max-width: 600px) {
	.ltm-tour { padding: 16px 12px; border-radius: 8px; }
	/* One swipeable row of chips on phones. */
	.ltm-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
	.ltm-filters::-webkit-scrollbar { display: none; }
	.ltm-tour .ltm-chip { font-size: 14px; padding: 11px 14px; }
}

/* ---- map: fits its box, no inner scrolling ---- */
.ltm-mapview { position: relative; }
.ltm-scroll { overflow: hidden; border-radius: var(--ltm-card-radius); background: var(--ltm-white); }
/* Zoomed in: drag to pan, scrollbars hidden. */
.ltm-scroll.is-zoomed { overflow: auto; cursor: grab; scrollbar-width: none; touch-action: pan-x pan-y; }
.ltm-scroll.is-zoomed::-webkit-scrollbar { display: none; }
.ltm-scroll.is-dragging { cursor: grabbing; user-select: none; }
.ltm-stage { position: relative; min-width: 100%; }
.ltm-mapimg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ltm-zones { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .2s; }
.ltm-zones polygon { fill: var(--zc); fill-opacity: .12; stroke: var(--zc); stroke-width: 2.5px; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
.ltm-zones.is-dim { opacity: .25; }
.ltm-zoom { position: absolute; z-index: 5; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ltm-tour .ltm-zoom button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--ltm-radius); background: var(--ltm-yellow); color: var(--ltm-ink); font-size: 22px; font-weight: 700; line-height: 1; box-shadow: 0 2px 6px rgba(30, 36, 61, .2); }
.ltm-tour .ltm-zoom button:hover { background: var(--ltm-white); color: var(--ltm-ink); }
.ltm-tour .ltm-tip { color: var(--ltm-ink); font-size: 15px; margin: 12px 2px 0; }
.ltm-empty { padding: 40px 16px; text-align: center; color: var(--ltm-muted); }

/* Live text labels: real text in the site font, scaled to the map width. */
.ltm-labels { position: absolute; inset: 0; pointer-events: none; }
.ltm-label { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); font-size: calc(var(--ltm-w, 800px) * var(--size, 2.2) / 100); line-height: 1.12; white-space: pre; text-align: center; color: var(--ltm-ink); font-weight: 400; }
.ltm-label.is-left { transform: translate(0, -50%) rotate(var(--rot, 0deg)); transform-origin: left center; text-align: left; }
.ltm-label.is-italic { font-style: italic; }
.ltm-label.is-bold { font-weight: 700; }
.ltm-label-zone { font-weight: 700; color: var(--zc, var(--ltm-blue)); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; white-space: pre-line; max-width: 30%; overflow-wrap: break-word; }

/* ---- pins ---- */
.ltm-tour .ltm-pin { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; padding: 0; display: grid; place-items: center; font-weight: 700; font-size: 16px; line-height: 1; box-shadow: 0 2px 8px rgba(30, 36, 61, .35); transition: transform .15s ease, opacity .15s ease; }
.ltm-tour .ltm-pin-exhibit, .ltm-tour .ltm-pin-exhibit:hover, .ltm-tour .ltm-pin-exhibit:focus { background: var(--ltm-blue); color: #fff; }
.ltm-tour .ltm-pin-rotating, .ltm-tour .ltm-pin-rotating:hover, .ltm-tour .ltm-pin-rotating:focus { background: var(--ltm-orange); color: var(--ltm-ink); }
.ltm-tour .ltm-pin-amenity, .ltm-tour .ltm-pin-amenity:hover, .ltm-tour .ltm-pin-amenity:focus { background: #fff; border-color: var(--ltm-blue); width: 36px; height: 36px; font-size: 18px; color: var(--ltm-ink); }
.ltm-tour .ltm-pin-amenity.ltm-grp-calm { color: var(--ltm-blue); }
.ltm-tour .ltm-pin .ltm-ic { width: 20px; height: 20px; }
.ltm-tour .ltm-pin-amenity .ltm-ic { width: 18px; height: 18px; color: var(--ltm-blue); }
.ltm-tour .ltm-pin-rotating .ltm-ic { width: 20px; height: 20px; color: var(--ltm-ink); }
.ltm-card-mark .ltm-ic { width: 20px; height: 20px; }
.ltm-print-helpers .ltm-ic { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; }
/* Calm (typically quieter) stops get the map's no-sound symbol as a badge. */
.ltm-pin-calm { position: absolute; left: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ltm-blue); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(30, 36, 61, .35); }
.ltm-tour .ltm-pin .ltm-pin-calm .ltm-ic { width: 14px; height: 14px; }
.ltm-tour .ltm-pin:hover, .ltm-tour .ltm-pin:focus-visible { transform: translate(-50%, -50%) scale(1.15); z-index: 4; }
/* Highlight mode: matching pins pop, everything else fades but stays tappable. */
.ltm-tour .ltm-pin.is-hl { transform: translate(-50%, -50%) scale(1.2); z-index: 3; box-shadow: 0 0 0 4px var(--ltm-yellow), 0 3px 10px rgba(30, 36, 61, .4); }
.ltm-tour .ltm-pin.is-hl:hover, .ltm-tour .ltm-pin.is-hl:focus-visible { transform: translate(-50%, -50%) scale(1.3); }
.ltm-tour .ltm-pin.is-dim { opacity: .25; transform: translate(-50%, -50%) scale(.8); box-shadow: none; }
.ltm-tour .ltm-pin.is-dim:hover, .ltm-tour .ltm-pin.is-dim:focus-visible { opacity: 1; }
.ltm-tour .ltm-pin.is-focus { z-index: 6; transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--ltm-blue), 0 4px 14px rgba(30, 36, 61, .45); animation: ltm-pulse 1.1s ease-out 3; }
@keyframes ltm-pulse { 0% { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--ltm-blue), 0 0 0 8px rgba(66, 92, 199, .55); } 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--ltm-blue), 0 0 0 26px rgba(66, 92, 199, 0); } }
.ltm-pin-planned { position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ltm-yellow); color: var(--ltm-ink); display: grid; place-items: center; border: 2px solid #fff; }
.ltm-tour .ltm-pin .ltm-pin-planned .ltm-ic { width: 12px; height: 12px; stroke-width: 3; }
.ltm-pin-360 { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); background: var(--ltm-yellow); color: var(--ltm-ink); font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 3px; letter-spacing: .02em; }

/* ---- list ---- */
.ltm-tour .ltm-list-h { font-size: 1.4em; font-weight: 700; line-height: 1.1; letter-spacing: 0; margin: 24px 0 12px; color: var(--ltm-ink); }
.ltm-tour .ltm-list-h:first-child { margin-top: 4px; }
.ltm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ltm-card { display: flex; gap: 14px; padding: 18px; border-radius: var(--ltm-card-radius); background: var(--ltm-white); }
.ltm-tour .ltm-card h4 { margin: 0; font-size: 1.15em; font-weight: 700; line-height: 1.2; color: var(--ltm-ink); }
.ltm-card-mark { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid transparent; }
.ltm-card-mark.ltm-pin-exhibit { background: var(--ltm-blue); color: #fff; }
.ltm-card-mark.ltm-pin-rotating { background: var(--ltm-orange); color: var(--ltm-ink); }
.ltm-card-mark.ltm-pin-amenity { border-color: var(--ltm-blue); background: #fff; color: var(--ltm-blue); }
.ltm-card-body { flex: 1; min-width: 0; }
.ltm-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ltm-tour .ltm-listview .ltm-btn[data-showmap] { box-shadow: inset 0 0 0 2px var(--ltm-ink); } /* outlined so it stands apart on the white card */
.ltm-tour .ltm-type { margin: 2px 0 0; color: var(--ltm-muted); font-size: 15px; }

.ltm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ltm-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--ltm-radius); font-size: 14px; font-weight: 700; background: var(--ltm-sky); color: var(--ltm-ink); }
.ltm-badge .ltm-ic { width: 16px; height: 16px; }
.ltm-lvl-1 { background: var(--ltm-sky); }
.ltm-lvl-2 { background: #fff1b3; }
.ltm-lvl-3 { background: var(--ltm-peach); }
.ltm-badge-quiet { background: var(--ltm-sky); }
.ltm-badge-quiet .ltm-ic { color: var(--ltm-blue); }
.ltm-badge-outdoor { background: var(--ltm-cream); }

/* ---- dialogs ---- */
.ltm-dialog { padding: 0; border: 0; border-radius: var(--ltm-card-radius); width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - 24px); color: var(--ltm-ink); background: var(--ltm-white); box-shadow: 0 20px 60px rgba(30, 36, 61, .4); font-family: var(--ltm-font); }
.ltm-plan { width: min(640px, calc(100vw - 24px)); }
.ltm-dialog::backdrop { background: rgba(30, 36, 61, .65); }
.ltm-dlg-inner { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.ltm-dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 12px; }
.ltm-tour .ltm-dlg-head h2 { margin: 2px 0 0; font-size: 1.75em; font-weight: 700; line-height: 1.1; color: var(--ltm-ink); }
.ltm-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ltm-blue); color: #fff; font-size: .6em; vertical-align: middle; }
.ltm-tour .ltm-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--ltm-radius); background: var(--ltm-sky); color: var(--ltm-ink); }
.ltm-tour .ltm-close:hover { background: var(--ltm-peach); color: var(--ltm-ink); }
.ltm-dlg-body { padding: 4px 22px 18px; overflow: auto; }
.ltm-tour .ltm-dlg-body h3 { font-size: 1.05em; font-weight: 700; margin: 16px 0 6px; color: var(--ltm-ink); }
.ltm-tour .ltm-dlg-body > :first-child h3, .ltm-tour .ltm-dlg-body > h3:first-child { margin-top: 10px; }
.ltm-dlg-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 22px; background: var(--ltm-bg); border-radius: 0 0 var(--ltm-card-radius) var(--ltm-card-radius); }
.ltm-360 { width: 100%; height: min(38vh, 340px); background: var(--ltm-navy); flex: none; }
.ltm-photo { width: 100%; max-height: 52vh; object-fit: cover; display: block; }
.ltm-hint { margin: 6px 22px 0; font-size: 14px; color: var(--ltm-muted); }
.ltm-when { font-weight: 700; color: var(--ltm-blue); margin: 10px 0 0; }
.ltm-desc { margin-top: 10px; }

.ltm-planlist { list-style: none; counter-reset: stop; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ltm-planitem { counter-increment: stop; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--ltm-card-radius); background: var(--ltm-sky); }
.ltm-planitem::before { content: counter(stop); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ltm-blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ltm-planinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ltm-planitem .ltm-badge { background: var(--ltm-white); }
.ltm-planbtns { display: flex; gap: 4px; align-items: center; }
.ltm-tour .ltm-planbtns .ltm-plan-map { width: auto; height: 42px; padding: 0 14px; display: inline-flex; margin-right: 4px; }
.ltm-sharedlist { margin: 8px 0 0; padding-left: 1.4em; }
.ltm-sharedlist li { margin: 2px 0; font-weight: 700; }
.ltm-tour .ltm-btn:disabled { opacity: .5; }
.ltm-tour .ltm-planbtns button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: var(--ltm-radius); background: var(--ltm-white); color: var(--ltm-ink); }
.ltm-tour .ltm-planbtns button:hover { background: var(--ltm-peach); color: var(--ltm-ink); }
.ltm-tour .ltm-planbtns button:disabled { opacity: .35; background: var(--ltm-white); }

@media (max-width: 600px) {
	.ltm-bar { flex-direction: column; align-items: stretch; }
	.ltm-bar-right { justify-content: space-between; }
	.ltm-tour .ltm-tab { padding: 14px 18px; }
	.ltm-tour .ltm-pin { width: 34px; height: 34px; font-size: 14px; }
	.ltm-tour .ltm-pin-amenity { width: 32px; height: 32px; font-size: 16px; }
	.ltm-planitem { flex-wrap: wrap; }
	.ltm-planbtns { width: 100%; }
	.ltm-tour .ltm-planbtns .ltm-plan-map { flex: 1; justify-content: space-between; }
	.ltm-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; border-radius: 0; margin: 0; height: 100%; }
	.ltm-dlg-inner { max-height: 100vh; height: 100%; }
	.ltm-dlg-foot { border-radius: 0; }
	.ltm-dlg-foot .ltm-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.ltm-tour .ltm-pin, .ltm-tour .ltm-btn, .ltm-tour .ltm-chip, .ltm-tour .ltm-tab, .ltm-zones { transition: none; }
	.ltm-tour .ltm-pin.is-focus { animation: none; }
}

/* ---- printable plan ---- */
.ltm-print { display: none; }
@media print {
	html.ltm-printing body > *:not(.ltm-print) { display: none !important; }
	html.ltm-printing .ltm-print { display: block; font: 14pt/1.45 "canada-type-gibson", system-ui, sans-serif; color: #000; }
	@page { margin: 14mm 14mm 16mm; }
	html.ltm-printing .ltm-print { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.ltm-print-head { display: flex; align-items: center; gap: 18pt; padding-bottom: 12pt; margin-bottom: 4pt; border-bottom: 3pt solid #425cc7; }
	.ltm-print-logo { width: 130pt; height: auto; flex: none; }
	.ltm-print h1 { font-size: 22pt; line-height: 1.15; margin: 0; color: #1e243d; }
	.ltm-print-list { list-style: none; padding: 0; margin: 0; }
	.ltm-print-list > li { display: flex; gap: 16pt; padding: 14pt 0; border-bottom: 1px solid #c9cfe0; break-inside: avoid; }
	.ltm-print-list img { width: 150pt; height: 105pt; object-fit: cover; border-radius: 8pt; flex: none; }
	.ltm-print-list h2 { font-size: 18pt; font-weight: 700; line-height: 1.2; margin: 0 0 6pt; color: #1e243d; }
	.ltm-print-num { color: #425cc7; }
	.ltm-print-floor { font-size: 13pt; font-weight: 400; color: #444a5c; }
	.ltm-print-list p { margin: 0 0 6pt; }
	.ltm-print-list ul { margin: 4pt 0 0; padding-left: 16pt; }
	.ltm-print .ltm-check { margin-top: 8pt; font-weight: 700; }
	.ltm-print-helpful { margin-top: 24pt; padding: 16pt 18pt 8pt; border-radius: 10pt; background: #eef2ff; break-inside: avoid; }
	.ltm-print-helpful h2 { font-size: 16pt; font-weight: 700; margin: 0 0 12pt; color: #1e243d; }
	.ltm-print-helpers { columns: 2; column-gap: 28pt; list-style: none; padding: 0; margin: 0; }
	.ltm-print-helpers li { display: flex; align-items: center; gap: 8pt; padding: 0 0 10pt; font-size: 12.5pt; break-inside: avoid; }
	.ltm-print-helpers .ltm-ic { flex: none; color: #425cc7; }
}

/* ---- Top bar: floor tabs, Map/List and My Visit Plan stay on one line on desktop ----
   Sizes scale with the bar's width (like the filter chips) so the row never wraps,
   including when a filter adds counts to the floor tabs. */
@media (min-width: 601px) {
	.ltm-bar { flex-wrap: nowrap; container-type: inline-size; }
	.ltm-tabs, .ltm-bar-right { flex-wrap: nowrap; }
	.ltm-tabs { gap: clamp(4px, 1cqi, 8px); }
	.ltm-bar-right { gap: clamp(6px, 1.2cqi, 10px); }
	.ltm-tour .ltm-bar .ltm-tab { padding: clamp(10px, 1.6cqi, 16px) clamp(12px, 2.4cqi, 24px); font-size: clamp(14px, 2.1cqi, 17px); white-space: nowrap; }
	.ltm-tour .ltm-bar .ltm-seg button { padding: clamp(9px, 1.4cqi, 12px) clamp(10px, 1.8cqi, 16px); font-size: clamp(13px, 1.9cqi, 15px); white-space: nowrap; }
	.ltm-tour .ltm-bar .ltm-btn-plan { padding: clamp(10px, 1.6cqi, 16px) clamp(12px, 2.2cqi, 24px); font-size: clamp(14px, 2.1cqi, 17px); gap: clamp(8px, 1.4cqi, 16px); white-space: nowrap; }
}

/* ---- Zoom buttons at their limit (fully in / fully out) ---- */
.ltm-tour .ltm-zoom button[aria-disabled="true"],
.ltm-tour .ltm-zoom button[aria-disabled="true"]:hover,
.ltm-tour .ltm-zoom button[aria-disabled="true"]:focus { background: #e3e5ec; color: #9aa0b2; box-shadow: none; cursor: default; }

/* ---- Focus colours ----
   The site theme (Elementor kit) turns every focused button blue. Focus stays on a button after it's
   clicked, or returns to it when a dialog closes, so keep each control's own colours while focused. */
.ltm-tour .ltm-btn-yellow:focus:not(:hover):not(:focus-visible) { background: var(--ltm-yellow); color: var(--ltm-ink); }
.ltm-tour .ltm-btn-orange:focus:not(:hover):not(:focus-visible) { background: var(--ltm-orange); color: var(--ltm-ink); }
.ltm-tour .ltm-btn-white:focus:not(:hover):not(:focus-visible) { background: var(--ltm-white); color: var(--ltm-ink); }
.ltm-tour .ltm-btn[aria-pressed="true"]:focus:not(:hover) { background: var(--ltm-blue); color: #fff; }
.ltm-tour .ltm-tab:focus:not(:hover) { background: var(--ltm-white); color: var(--ltm-ink); }
.ltm-tour .ltm-tab[aria-selected="true"]:focus { background: var(--ltm-blue); color: #fff; }
.ltm-tour .ltm-chip:focus:not(:hover) { background: var(--ltm-white); color: var(--ltm-ink); }
.ltm-tour .ltm-chip.is-on:focus { background: var(--ltm-blue); color: #fff; }
.ltm-tour .ltm-seg button:focus:not(:hover) { background: transparent; color: var(--ltm-ink); }
.ltm-tour .ltm-seg button[aria-pressed="true"]:focus { background: var(--ltm-blue); color: #fff; }
.ltm-tour .ltm-zoom button:focus:not(:hover):not([aria-disabled="true"]) { background: var(--ltm-yellow); color: var(--ltm-ink); }
.ltm-tour .ltm-close:focus:not(:hover) { background: var(--ltm-sky); color: var(--ltm-ink); }
.ltm-tour .ltm-planbtns button:focus:not(:hover) { background: var(--ltm-white); color: var(--ltm-ink); }
/* The count badge stays readable on a blue button. */
.ltm-tour .ltm-btn[aria-pressed="true"] .ltm-count { background: var(--ltm-white); color: var(--ltm-ink); }

/* ---- Phones (0.2.2): roomier map, compact controls, readable dialogs ---- */
.ltm-badges:empty { display: none; }
/* Pinch on the map zooms the map (viewer.js), not the whole page; one-finger swipes still scroll. */
.ltm-scroll { touch-action: pan-x pan-y; }
@media (max-width: 600px) {
	.ltm-tour { padding: 14px 10px; }

	/* Top bar: floors fill the first row; Map / List and My Visit Plan share the second. */
	.ltm-bar { gap: 8px; margin-bottom: 10px; }
	.ltm-tabs { flex-wrap: nowrap; gap: 6px; }
	.ltm-tour .ltm-bar .ltm-tab { flex: 1 1 0; justify-content: center; padding: 12px 8px; font-size: 15px; white-space: nowrap; }
	.ltm-bar-right { flex-wrap: nowrap; gap: 8px; }
	.ltm-seg { flex: none; }
	.ltm-tour .ltm-bar .ltm-seg button { gap: 6px; padding: 9px 10px; font-size: 14px; }
	.ltm-tour .ltm-bar .ltm-btn-plan { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 6px; padding: 10px 8px; font-size: 14px; white-space: nowrap; }
	.ltm-tour .ltm-bar .ltm-btn-plan > .ltm-ic { display: none; }
	.ltm-filters { margin-bottom: 6px; }

	/* Map: zoom buttons sit under the map (not over the pins); pinch or + to zoom. */
	.ltm-mapview:not([hidden]) { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 10px; }
	.ltm-mapview > .ltm-scroll { grid-column: 1 / -1; grid-row: 1; }
	.ltm-tour .ltm-mapview > .ltm-tip { grid-column: 1; grid-row: 2; margin: 10px 2px 0; font-size: 14px; line-height: 1.4; }
	.ltm-zoom { position: static; grid-column: 2; grid-row: 2; flex-direction: row; margin-top: 10px; }
	/* Zoomed in: the map becomes a window you drag around, so the controls stay on screen. */
	.ltm-scroll.is-zoomed { max-height: 70vh; max-height: 70svh; }

	.ltm-tour .ltm-pin { width: 30px; height: 30px; font-size: 13px; border-width: 2px; }
	.ltm-tour .ltm-pin-amenity { width: 28px; height: 28px; }
	.ltm-tour .ltm-pin .ltm-ic { width: 16px; height: 16px; }
	.ltm-tour .ltm-scroll.is-zoomed .ltm-pin { width: 36px; height: 36px; font-size: 15px; border-width: 3px; }
	.ltm-tour .ltm-scroll.is-zoomed .ltm-pin-amenity { width: 34px; height: 34px; }
	.ltm-tour .ltm-scroll.is-zoomed .ltm-pin .ltm-ic { width: 18px; height: 18px; }

	/* List view: full-width cards, buttons use the whole card width. */
	.ltm-list { grid-template-columns: 1fr; gap: 10px; }
	.ltm-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 14px; }
	.ltm-card-mark { grid-row: 1 / span 2; width: 32px; height: 32px; font-size: 14px; }
	.ltm-card-mark .ltm-ic { width: 18px; height: 18px; }
	.ltm-card-body { display: contents; }
	.ltm-card-body > * { grid-column: 2; }
	.ltm-tour .ltm-card .ltm-type { margin: 2px 0 0; font-size: 14px; }
	.ltm-card .ltm-badges, .ltm-card .ltm-card-actions { grid-column: 1 / -1; }
	.ltm-card .ltm-badges { margin-top: 10px; }
	.ltm-card .ltm-badge { font-size: 13px; padding: 4px 8px; }
	.ltm-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
	.ltm-tour .ltm-card-actions > .ltm-btn { justify-content: center; gap: 6px; padding: 11px 8px; font-size: 14px; white-space: nowrap; }
	.ltm-card-actions > .ltm-btn:first-child,
	.ltm-card-actions > .ltm-btn:nth-child(2):last-child { grid-column: 1 / -1; }

	/* Dialogs: full screen (dvh = the visible area on phones), smaller header and 360 view so there's room to read. */
	.ltm-dialog { height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; }
	.ltm-dlg-inner { height: 100%; max-height: none; }
	.ltm-dlg-inner > * { flex-shrink: 0; }
	.ltm-dlg-head { padding: 14px 16px 10px; }
	.ltm-tour .ltm-dlg-head h2 { font-size: 1.4em; }
	.ltm-num { width: 30px; height: 30px; }
	.ltm-360 { height: 34vh; height: 34svh; min-height: 190px; }
	.ltm-photo { max-height: 34vh; max-height: 34svh; }
	.ltm-hint { margin: 6px 16px 0; font-size: 13px; }
	.ltm-dlg-inner > .ltm-dlg-body { flex: 1 1 auto; min-height: 0; padding: 4px 16px 16px; }
	.ltm-dlg-foot { flex-wrap: nowrap; gap: 8px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
	.ltm-tour .ltm-dlg-foot .ltm-btn { flex: 1 1 0; min-width: 0; justify-content: center; gap: 8px; padding: 13px 8px; font-size: 15px; white-space: nowrap; }
	.ltm-plan .ltm-dlg-foot { flex-wrap: wrap; }
	.ltm-tour .ltm-dlg-foot .ltm-linkbtn { flex: 1 0 100%; min-height: 40px; text-align: center; }

	/* My Visit Plan: number lines up with the stop name; buttons get their own row. */
	.ltm-planitem { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 12px; }
	.ltm-planbtns { grid-column: 1 / -1; }
	.ltm-planitem .ltm-badges { margin-top: 6px; }
}

/* ---- Sponsor / partner credit (0.2.3) ---- */
.ltm-sponsor { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; line-height: 1.2; }
.ltm-tour .ltm-sponsor-label { font-size: 14px; font-weight: 600; color: var(--ltm-muted); }
.ltm-tour .ltm-sponsor-logo { display: block; width: auto; height: 34px; max-width: 170px; object-fit: contain; border-radius: 0; }
.ltm-tour .ltm-sponsor-dlg .ltm-sponsor-logo { height: 40px; max-width: 200px; }
.ltm-sponsor-plan { margin: 4px 0 2px; }
.ltm-tour .ltm-sponsor-plan .ltm-sponsor-logo { height: 26px; max-width: 130px; }
.ltm-sharedlist .ltm-sponsor { font-weight: 400; }
/* On the map: a small credit and logo under the exhibit's name, scaling with the map like the name does. */
.ltm-label-zone.has-sponsor { transform: translate(-50%, -0.62em); }
.ltm-zone-title { display: block; }
.ltm-tour .ltm-sponsor-map { justify-content: center; gap: 0.2em 0.35em; margin: 0.25em 0 0; font-size: 0.5em; }
.ltm-tour .ltm-sponsor-map .ltm-sponsor-label { font-size: 1em; color: inherit; }
.ltm-tour .ltm-sponsor-map .ltm-sponsor-logo { height: 2.6em; max-width: 11em; padding: 0.2em 0.35em; border-radius: 0.3em; background: rgba(255, 255, 255, 0.92); }
@media (max-width: 600px) {
	.ltm-tour .ltm-sponsor-label { font-size: 13px; }
	.ltm-tour .ltm-sponsor-dlg { margin-top: 4px; }
	.ltm-tour .ltm-sponsor-dlg .ltm-sponsor-logo { height: 30px; max-width: 150px; }
}
@media print {
	.ltm-print .ltm-sponsor { margin: 0 0 6pt; gap: 4pt 8pt; font-size: 11pt; font-weight: 600; color: #444a5c; }
	.ltm-print-list .ltm-sponsor-logo { width: auto; height: 26pt; max-width: 130pt; object-fit: contain; border-radius: 0; flex: none; }
}

/* ---- Phones (0.2.4): category dropdown, with the zoom buttons beside it above the map ---- */
.ltm-select { display: none; }
@media (max-width: 600px) {
	.ltm-filters { align-items: center; gap: 8px; margin: 0 0 10px; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
	.ltm-tour .ltm-filters .ltm-chip { display: none; }
	.ltm-select { display: block; position: relative; flex: 1 1 auto; min-width: 0; }
	.ltm-tour .ltm-cat-select { display: block; width: 100%; height: 44px; margin: 0; padding: 0 40px 0 14px; border: 0; border-radius: var(--ltm-radius); background: var(--ltm-white); color: var(--ltm-ink); font-family: inherit; font-size: 15px; font-weight: 700; line-height: normal; -webkit-appearance: none; appearance: none; box-shadow: none; cursor: pointer; text-overflow: ellipsis; }
	.ltm-select::after { content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; border-right: 2.5px solid var(--ltm-blue); border-bottom: 2.5px solid var(--ltm-blue); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
	.ltm-tour .ltm-select.is-on .ltm-cat-select { background: var(--ltm-blue); color: #fff; }
	.ltm-select.is-on::after { border-color: #fff; }
	.ltm-tour .ltm-filters .ltm-zoom { position: static; flex: none; flex-direction: row; gap: 8px; margin: 0; }
	.ltm-shell.is-list .ltm-filters .ltm-zoom { display: none; }
	.ltm-tour .ltm-mapview > .ltm-tip { grid-column: 1 / -1; }
}

/* ---- Map labels (0.2.5): zone name near the top of its zone; larger sponsor logo, no backing box ---- */
.ltm-label-zone, .ltm-label-zone.has-sponsor { transform: translate(-50%, 0); }
.ltm-tour .ltm-sponsor-map { flex-direction: column; gap: 0.3em; margin: 0.4em 0 0; }
.ltm-tour .ltm-sponsor-map .ltm-sponsor-logo { height: 5em; max-width: 14em; padding: 0; background: none; border-radius: 0; }

/* ---- Text size floor (0.2.6): all tour text at least 14px. Map labels still scale with the map and its zoom. ---- */
.ltm-tour .ltm-count, .ltm-tour .ltm-tab-count { min-width: 24px; height: 24px; border-radius: 12px; font-size: 14px; }
.ltm-tour .ltm-chip { font-size: clamp(14px, 1.8cqi, 15px); }
.ltm-tour .ltm-bar .ltm-seg button { font-size: clamp(14px, 1.9cqi, 15px); }
/* The 360 tag sits on the pin's top-right corner so it no longer covers the room name below. */
.ltm-tour .ltm-pin-360 { top: -12px; right: -18px; bottom: auto; left: auto; transform: none; padding: 2px 5px; border-radius: 4px; font-size: 14px; line-height: 1.1; }
/* Larger text needs room: filter buttons and the top bar wrap onto a second line instead of running off the side. */
@media (min-width: 601px) {
	.ltm-bar { flex-wrap: wrap; row-gap: 10px; }
	.ltm-filters { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 600px) {
	.ltm-tour .ltm-pin { font-size: 14px; }
	.ltm-card .ltm-badge { font-size: 14px; }
	.ltm-hint { font-size: 14px; }
	.ltm-tour .ltm-sponsor-label { font-size: 14px; }
}

/* ---- 0.2.9: one corner badge per pin. A planned stop that has a 360 photo shows the check inside the
   360 tag instead of a second badge on top of it; a planned stop without a 360 photo keeps the round check. ---- */
.ltm-tour .ltm-pin-360 { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ltm-tour .ltm-pin-360.is-planned { padding-left: 4px; }
.ltm-tour .ltm-pin .ltm-pin-360 .ltm-ic { width: 12px; height: 12px; stroke-width: 3; }

/* ---- 0.3.3: "Nearby" pins (outside the museum building) ---- */
.ltm-tour .ltm-pin.is-nearby, .ltm-tour .ltm-pin.is-nearby:hover, .ltm-tour .ltm-pin.is-nearby:focus { background: #fff; color: var(--ltm-blue, #425CC7); border: 3px dashed var(--ltm-blue, #425CC7); }
.ltm-tour .ltm-pin.is-nearby > span:first-child { color: var(--ltm-blue, #425CC7); }
.ltm-tour .ltm-pin-away { position: absolute; top: 50%; left: calc(100% + 6px); transform: translateY(-50%); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; background: var(--ltm-blue, #425CC7); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; padding: 4px 9px 4px 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(30, 36, 61, .3); pointer-events: none; }
.ltm-tour .ltm-pin-away.is-left { left: auto; right: calc(100% + 6px); }
.ltm-tour .ltm-pin-away .ltm-ic { width: 14px; height: 14px; }
.ltm-tour .ltm-walkpath { stroke: var(--ltm-blue, #425CC7); stroke-width: 3px; stroke-dasharray: 1 7; stroke-linecap: round; fill: none; vector-effect: non-scaling-stroke; }