/**
 * Extension detail – PX Atlas animated hero (html/com_content/article/ext-hero/px-atlas.php, js/px-ext-atlas.js).
 * Same frame as the PX Hotspot hero: an editor window with a town map, points, a route, a circle and a rectangle, a
 * popup, and two cards (the object list, the layers) overlapping its lower edge. Scoped under .pxat.
 */
.tp-ext-detail .txd-hero .visual.pxt { background: none; padding: 0; border-radius: 0; display: block; overflow: visible; }

.pxat {
	--pxat-navy: var(--tp-navy, #050038);
	--pxat-or: #ff6a00;
	--pxat-or-soft: #fff1e6;
	--pxat-mute: #8a93a6;
	--pxat-text: #3b4256;
	position: relative; padding: 8px 0 30px; font-size: 12px; line-height: 1.35; color: var(--pxat-navy);
	font-family: Inter, "SF Pro Text", system-ui, -apple-system, sans-serif; text-align: left;
}
.pxat *, .pxat *::before, .pxat *::after { box-sizing: border-box; }

/* window */
.pxat-win { position: relative; width: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(5,0,56,.07), 0 10px 26px rgba(5,0,56,.10); }
.pxat-bar { display: flex; align-items: stretch; background: #f7f9fb; border-bottom: 1px solid #e3e7ee; white-space: nowrap; overflow: hidden; }
.pxat-app { display: flex; align-items: center; gap: 6px; padding: 9px 13px; font-weight: 700; border-right: 1px solid #e3e7ee; }
.pxat-app i { color: var(--pxat-or); }
.pxat-crumb { display: flex; align-items: center; padding: 9px 12px; color: var(--pxat-text); overflow: hidden; text-overflow: ellipsis; }
.pxat-tools { margin: 5px 8px 5px auto; display: flex; gap: 4px; }
.pxat-tool { display: flex; align-items: center; justify-content: center; width: 26px; border-radius: 6px; border: 1px solid #e3e7ee; background: #fff; color: var(--pxat-text); font-size: 11px; transition: background .2s, color .2s, border-color .2s; }
.pxat-tool.is-on { background: var(--pxat-navy); border-color: var(--pxat-navy); color: #fff; }

/* stage: the town map with its objects */
.pxat-stage { position: relative; margin: 12px 12px 76px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #eee8dc; box-shadow: inset 0 0 0 1px #eef1f5; }
.pxat-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pxat-zoom { position: absolute; left: 8px; top: 8px; z-index: 2; width: 22px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.pxat-zoom b { display: flex; height: 22px; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #333; }
.pxat-zoom b + b { border-top: 1px solid #e3e7ee; }

.pxat-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .3s; }
.pxat-route polyline { fill: none; stroke: #e03131; stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease-in-out; }
.pxat-route.is-off polyline { stroke-dashoffset: 100; }
.pxat-circle { position: absolute; width: 13.75%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #7048e8; background: rgba(112,72,232,.2); transition: transform .45s ease-out, opacity .25s, background .25s; }
.pxat-circle.is-on { background: rgba(112,72,232,.38); }
.pxat-circle.is-off { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.pxat-rect { position: absolute; border: 2px solid #e8590c; background: rgba(232,89,12,.16); border-radius: 2px; transform-origin: 0 0; transition: transform .45s ease-out, opacity .25s; }
.pxat-rect.is-off { transform: scale(0); opacity: 0; }

.pxat-pin { position: absolute; width: 20px; height: 20px; margin: -20px 0 0 -10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 7px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.3,1.6,.6,1), opacity .2s; }
.pxat-pin::after { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pxat-pin.is-off { transform: rotate(-45deg) scale(0); opacity: 0; }
.pxat-ico { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.3,1.6,.6,1), opacity .2s; }
.pxat-ico.is-off { transform: scale(0); opacity: 0; }
.pxat .is-green { background: #2f9e44; }
.pxat .is-violet { background: #7048e8; }
.pxat .is-red { background: #e03131; }
.pxat .is-gone { opacity: 0 !important; }

.pxat-cur { position: absolute; left: 90%; top: 40%; z-index: 3; font-size: 15px; color: var(--pxat-navy); filter: drop-shadow(0 1px 1px #fff) drop-shadow(0 2px 3px rgba(0,0,0,.25)); transition: left .6s ease-in-out, top .6s ease-in-out, opacity .25s, transform .12s; }
.pxat-cur.is-press { transform: scale(.82); }

.pxat-tip { position: absolute; left: 52%; top: 9%; z-index: 2; width: 40%; max-width: 200px; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(5,0,56,.06), 0 10px 24px rgba(5,0,56,.22); display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; transition: opacity .25s, transform .25s; }
.pxat-tip-img { display: block; height: 54px; margin-bottom: 5px; background: linear-gradient(160deg, #1b2a4a 0%, #3b2d6b 55%, #e8590c 130%); }
.pxat-tip b, .pxat-tip > span:not(.pxat-tip-img), .pxat-tip em { margin-left: 11px; margin-right: 11px; }
.pxat-tip b { font-size: 12.5px; }
.pxat-tip > span:not(.pxat-tip-img) { color: var(--pxat-text); font-size: 10.5px; }
.pxat-tip em { margin-top: 3px; align-self: flex-start; font-style: normal; font-weight: 700; font-size: 10px; padding: 3px 9px; border-radius: 6px; background: var(--pxat-navy); color: #fff; }
.pxat-tip.is-hidden { opacity: 0; transform: translateY(6px); }

/* cards */
.pxat-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin: -64px 18px 0 18px; }
.pxat-card { background: #fff; border-radius: 14px; padding: 13px 14px 14px; box-shadow: 0 0 0 1px rgba(5,0,56,.06), 0 10px 24px rgba(5,0,56,.13); min-width: 0; }
.pxat-h { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pxat-mute); margin: 0 0 6px 2px; }
.pxat-h b { width: 7px; height: 7px; border-radius: 2px; background: var(--pxat-or); }
.pxat-h u { text-decoration: none; margin-left: auto; padding: 1px 7px; border-radius: 99px; background: #f1f3f7; color: var(--pxat-text); letter-spacing: 0; }
.pxat-h2 { margin-top: 10px; }
.pxat-row { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 6px; border-radius: 6px; color: var(--pxat-text); font-weight: 600; white-space: nowrap; overflow: hidden; transition: opacity .25s, max-height .3s, background .25s; max-height: 22px; }
.pxat-row i { width: 13px; text-align: center; color: var(--pxat-mute); font-size: 10px; }
.pxat-row em { margin-left: auto; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #a0a8b8; }
.pxat-row.is-on { background: var(--pxat-or-soft); color: #b34a00; }
.pxat-row.is-on i { color: var(--pxat-or); }
.pxat-row.is-off { opacity: 0; max-height: 0; }

.pxat-lay { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 6px; color: var(--pxat-text); font-weight: 600; white-space: nowrap; transition: color .25s; }
.pxat-lay s { position: relative; width: 13px; height: 13px; border-radius: 3px; background: var(--pxat-navy); flex: none; transition: background .2s, box-shadow .2s; }
.pxat-lay s::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pxat-lay i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pxat-lay.is-off { color: #a0a8b8; }
.pxat-lay.is-off s { background: #fff; box-shadow: inset 0 0 0 1.5px #b9c1cf; }
.pxat-lay.is-off s::after { display: none; }

.pxat-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pxat-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; border: 1px solid #e3e7ee; color: var(--pxat-text); font-weight: 600; font-size: 10.5px; transition: background .25s, color .25s, border-color .25s; }
.pxat-chip.is-on { background: var(--pxat-navy); border-color: var(--pxat-navy); color: #fff; }

.pxat .is-hidden { opacity: 0; }

.pxat-rp { all: unset; position: absolute; right: 2px; bottom: 6px; cursor: pointer; color: var(--pxat-mute); font-size: 12px; padding: 4px; }
.pxat-rp:hover, .pxat-rp:focus-visible { color: var(--pxat-or); }

@media (max-width: 640px) {
	.pxat { font-size: 11px; }
	.pxat-stage { margin-bottom: 14px; }
	.pxat-tip { max-width: 160px; }
	.pxat-cards { grid-template-columns: 1fr; margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.pxat *, .pxat *::before, .pxat *::after { animation: none !important; transition: none !important; }
}
