/**
 * Extension detail – PX Hotspot animated hero (html/com_content/article/ext-hero/px-hotspot.php, js/px-ext-hotspot.js).
 * Same frame as the PX Image Optimizer hero: an editor window with the floor plan, rooms drawn as areas, a tooltip, and
 * two cards (the hotspot list, how content opens) overlapping its lower edge. Scoped under .pxhs.
 */
.tp-ext-detail .txd-hero .visual.pxt { background: none; padding: 0; border-radius: 0; display: block; overflow: visible; }

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

/* window */
.pxhs-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); }
.pxhs-bar { display: flex; align-items: stretch; background: #f7f9fb; border-bottom: 1px solid #e3e7ee; white-space: nowrap; overflow: hidden; }
.pxhs-app { display: flex; align-items: center; gap: 6px; padding: 9px 13px; font-weight: 700; border-right: 1px solid #e3e7ee; }
.pxhs-app i { color: var(--pxhs-or); }
.pxhs-crumb { display: flex; align-items: center; padding: 9px 12px; color: var(--pxhs-text); overflow: hidden; text-overflow: ellipsis; }
.pxhs-tools { margin: 5px 8px 5px auto; display: flex; gap: 4px; }
.pxhs-tool { display: flex; align-items: center; justify-content: center; width: 26px; border-radius: 6px; border: 1px solid #e3e7ee; background: #fff; color: var(--pxhs-text); font-size: 11px; transition: background .2s, color .2s, border-color .2s; }
.pxhs-tool.is-on { background: var(--pxhs-navy); border-color: var(--pxhs-navy); color: #fff; }

/* stage: the floor plan with its hotspots */
.pxhs-stage { position: relative; margin: 12px 12px 76px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #fbfaf7; box-shadow: inset 0 0 0 1px #eef1f5; }
.pxhs-plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pxhs-area { position: absolute; border: 2px solid var(--pxhs-or); background: rgba(255,106,0,.12); border-radius: 2px; transform-origin: 0 0; transition: transform .45s ease-out, opacity .2s, background .25s; }
.pxhs-area.is-on { background: rgba(255,106,0,.32); }
.pxhs-area.is-off { transform: scale(0); opacity: 0; }
.pxhs-poly { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .35s; }
.pxhs-poly polygon { fill: rgba(28,126,214,.14); stroke: #1c7ed6; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.pxhs-lbl { position: absolute; transform: translate(-50%, -50%); padding: 2px 6px; border-radius: 4px; background: #1f2328; color: #fff; font-size: 9.5px; font-weight: 600; white-space: nowrap; transition: opacity .25s; }
.pxhs-pin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--pxhs-or); 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; }
.pxhs-pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.pxhs-pin::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,106,0,.55); animation: pxhs-pulse 2s infinite; }
.pxhs-pin.is-off { transform: scale(0); opacity: 0; }
@keyframes pxhs-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,106,0,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,106,0,0); } }

.pxhs-cur { position: absolute; left: 82%; top: 30%; z-index: 3; font-size: 15px; color: var(--pxhs-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; }
.pxhs-cur.is-press { transform: scale(.82); }

.pxhs-tip { position: absolute; left: 57%; top: 47%; z-index: 2; width: 46%; max-width: 230px; padding: 9px 11px 10px; border-radius: 10px; background: #fff; 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; transition: opacity .25s, transform .25s; }
.pxhs-tip::before { content: ""; position: absolute; left: 44%; top: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: #fff; }
.pxhs-tip b { font-size: 12.5px; }
.pxhs-tip span { color: var(--pxhs-text); font-size: 10.5px; }
.pxhs-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(--pxhs-navy); color: #fff; }
.pxhs-tip.is-hidden { opacity: 0; transform: translateY(6px); }

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

.pxhs-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pxhs-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; border: 1px solid #e3e7ee; color: var(--pxhs-text); font-weight: 600; font-size: 10.5px; transition: background .25s, color .25s, border-color .25s; }
.pxhs-chip i { font-size: 9.5px; }
.pxhs-chip.is-on { background: var(--pxhs-navy); border-color: var(--pxhs-navy); color: #fff; }
.pxhs-chips.is-small .pxhs-chip { padding: 2px 8px; font-size: 10px; background: #f7f9fb; }
.pxhs-phone { margin-top: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 9px; width: max-content; max-width: 100%; border-radius: 99px; background: var(--pxhs-or-soft); color: #b34a00; font-weight: 600; font-size: 10.5px; white-space: nowrap; }

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

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

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