/* Miller 360 viewer 1.0.11. Brand: #0C457B blue, #E8731C orange with #111 text, square corners (tabs are pills), Poppins. */
.m360{--m360-blue:#0C457B;--m360-orange:#E8731C;--m360-ink:#111111;position:relative;font-family:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--m360-ink)}
.m360 *,.m360 *::before,.m360 *::after{box-sizing:border-box}
.m360 .m360-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}

/* Tabs */
.m360-tablist{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 8px;border-bottom:2px solid var(--m360-blue)}
.m360 .m360-tab{appearance:none;border:2px solid var(--m360-blue);border-bottom:0;border-radius:0;background:#fff;color:var(--m360-blue);font:600 15px/1.2 inherit;font-family:inherit;padding:10px 16px;min-height:44px;cursor:pointer;margin:0}
.m360 .m360-tab[aria-selected="true"]{background:var(--m360-blue);color:#fff}
.m360 .m360-tab:hover{text-decoration:underline}
.m360 .m360-panel[hidden]{display:none}

/* Stage: box at the frames' own shape (from the server, so nothing shifts while frames load), no taller than
   the screen allows (then narrower and centred). The blurred placeholder shows until the first view is in. */
.m360{--m360-maxh:max(240px,calc(100vh - 150px))}
@supports (height:100svh){.m360{--m360-maxh:max(240px,calc(100svh - 150px))}}
.m360-stage{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#e9edf2 center/cover no-repeat;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;outline:none}
.m360 .m360-spin .m360-stage{aspect-ratio:var(--m360-ar,4/3);width:min(100%,calc(var(--m360-maxh) * var(--m360-arw,1.3333)));margin-inline:auto}
.m360 .m360-poster{display:block;width:100%;height:100%}
.m360.m360-js .m360-poster:not(.m360-in) .m360-frame{opacity:0}
.m360 .m360-spin .m360-frame{color:transparent}
.m360 .m360-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.m360 .m360-canvas[hidden]{display:none}
.m360 .m360-spin .m360-spots{position:absolute;inset:0}
/* Loading progress: small, out of the way of the car, never covers the controls. */
.m360 .m360-progress{position:absolute;left:50%;top:10px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:5px;min-width:150px;padding:6px 12px 8px;background:rgba(17,17,17,.78);color:#fff;font-size:13px;font-weight:600;line-height:1.2;pointer-events:none;z-index:3}
.m360 .m360-progress[hidden]{display:none}
.m360 .m360-progress-track{display:block;width:100%;height:4px;background:rgba(255,255,255,.35);overflow:hidden}
.m360 .m360-progress-bar{display:block;width:100%;height:100%;background:var(--m360-orange);transform:scaleX(0);transform-origin:0 50%;transition:transform .25s linear}
.m360 .m360-spin .m360-stage.m360-dragging{cursor:grabbing}
.m360 .m360-stage.m360-zoomed{touch-action:none;cursor:move}
.m360 .m360-zoom{position:absolute;inset:0;transform-origin:50% 50%;will-change:transform}
.m360 .m360-frame{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;-webkit-user-drag:none;pointer-events:none}
.m360 .m360-pano .m360-stage{cursor:default}
.m360 .m360-pnlm,.m360 .m360-pnlm .pnlm-container{width:100%;height:100%;position:absolute;inset:0}

/* Visible focus everywhere */
.m360 .m360-stage:focus-visible,.m360 .pnlm-container:focus-visible{outline:3px solid var(--m360-orange);outline-offset:-3px;box-shadow:inset 0 0 0 6px #fff}
.m360 button:focus-visible{outline:3px solid var(--m360-ink);outline-offset:2px;box-shadow:0 0 0 5px #fff}

.m360 .m360-hint{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;background:rgba(17,17,17,.78);color:#fff;font-size:14px;font-weight:600;padding:6px 12px;pointer-events:none;transition:opacity .3s}
.m360 .m360-used .m360-hint{opacity:0}

/* Controls: 44px targets */
.m360-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}
.m360 .m360-controls[hidden]{display:none}
.m360 .m360-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;margin:0;border:2px solid var(--m360-blue);border-radius:0;background:#fff;color:var(--m360-blue);cursor:pointer}
.m360 .m360-btn:hover{background:var(--m360-blue);color:#fff}
.m360 .m360-btn[aria-pressed="true"]{background:var(--m360-blue);color:#fff}
.m360 .m360-start{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:12px 22px;border:0;border-radius:0;background:var(--m360-orange);color:var(--m360-ink);font:600 16px/1.2 inherit;font-family:inherit;cursor:pointer;box-shadow:0 4px 18px rgba(0,0,0,.25)}
.m360 .m360-start:hover{background:#f08a3a}
.m360 .m360-chip{appearance:none;min-height:44px;padding:8px 14px;margin:0;border:2px solid var(--m360-blue);border-radius:0;background:#fff;color:var(--m360-blue);font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
.m360 .m360-chip[aria-pressed="true"]{background:var(--m360-blue);color:#fff}
.m360 .m360-pano-pick{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:8px}

/* Hotspots (1.0.6): small Miller blue dot with a white plus and a white ring (3:1+ against the light gray
   studio, white paint, dark paint and tyres), 24px on phones and 28px from 768px, inside an invisible 44x44
   tap target. Selectors are .m360 .m360-spots/.m360-pnlm scoped and reset every button property, so theme
   button styles (the Elementor kit's orange, 14px 26px padding, pill radius) can no longer blow them up. */
.m360 .m360-spots .m360-spot,.m360 .m360-pspot .m360-spot{position:absolute;display:block;width:44px;height:44px;min-width:44px;min-height:44px;max-width:none;margin:0;padding:0;border:0;border-radius:50%;background:transparent;background-image:none;box-shadow:none;color:#fff;font:700 13px/1 Poppins,system-ui,sans-serif;letter-spacing:0;text-transform:none;text-decoration:none;text-shadow:none;line-height:1;white-space:nowrap;cursor:pointer;z-index:2;transition:none;-webkit-tap-highlight-color:transparent;appearance:none;-webkit-appearance:none}
.m360 .m360-spots .m360-spot:hover,.m360 .m360-spots .m360-spot:focus,.m360 .m360-spots .m360-spot:active,.m360 .m360-pspot .m360-spot:hover,.m360 .m360-pspot .m360-spot:focus,.m360 .m360-pspot .m360-spot:active{background:transparent;background-image:none;color:#fff;border:0;box-shadow:none}
.m360 .m360-spots .m360-spot[hidden],.m360 .m360-pspot .m360-spot[hidden]{display:none}
.m360 .m360-spot>span{position:absolute;left:50%;top:50%;width:var(--m360-dot,24px);height:var(--m360-dot,24px);margin:calc(var(--m360-dot,24px) / -2) 0 0 calc(var(--m360-dot,24px) / -2);border-radius:50%;background:var(--m360-blue);border:2px solid #fff;box-shadow:0 0 0 1px rgba(17,17,17,.55),0 1px 4px rgba(0,0,0,.35);pointer-events:none;display:flex;align-items:center;justify-content:center;transition:transform .15s ease}
.m360 .m360-spot>span::before,.m360 .m360-spot>span::after{content:"";position:absolute;left:50%;top:50%;background:#fff;border-radius:1px}
.m360 .m360-spot>span::before{width:2px;height:10px;margin:-5px 0 0 -1px}
.m360 .m360-spot>span::after{width:10px;height:2px;margin:-1px 0 0 -5px}
/* Group: several close-ups in one place; the number replaces the plus. */
.m360 .m360-spot.m360-spot-group>span::before,.m360 .m360-spot.m360-spot-group>span::after{display:none}
.m360 .m360-spot.m360-spot-group>span{font:700 12px/1 Poppins,system-ui,sans-serif;color:#fff}
@media (min-width:768px){.m360{--m360-dot:28px}.m360 .m360-spot>span::before{height:12px;margin-top:-6px}.m360 .m360-spot>span::after{width:12px;margin-left:-6px}.m360 .m360-spot.m360-spot-group>span{font-size:13px}}
.m360 .m360-spot:hover>span{transform:scale(1.12)}
.m360 .m360-spots .m360-spot:focus-visible,.m360 .m360-pspot .m360-spot:focus-visible{outline:3px solid var(--m360-ink)!important;outline-offset:-3px!important;box-shadow:0 0 0 3px #fff!important;border-radius:50%!important}
.m360 .m360-pspot{width:0!important;height:0!important;background:none!important}
.m360 .m360-pspot .m360-spot{left:-22px;top:-22px}
@media (prefers-reduced-motion:no-preference){.m360 .m360-spot>span{animation:m360-pulse 2.4s ease-in-out 2}}
@keyframes m360-pulse{50%{box-shadow:0 0 0 1px rgba(17,17,17,.55),0 0 0 7px rgba(12,69,123,.3)}}

/* Stills grid (shortcode without the inventory gallery) */
.m360-stills{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.m360 .m360-still{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.m360 .m360-still img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:0}

/* Lightbox */
.m360-lightbox{width:min(96vw,1200px);max-height:96vh;padding:0;border:0;border-radius:0;background:#fff;color:var(--m360-ink)}
.m360 .m360-lightbox::backdrop{background:rgba(0,0,0,.8)}
.m360 .m360-lb-inner{position:relative;padding:12px 12px 16px}
.m360 .m360-lb-title{margin:0 56px 10px 4px;font:600 18px/1.3 inherit;font-family:inherit;color:var(--m360-blue)}
.m360 .m360-lb-img{display:block;width:100%;height:auto;max-height:78vh;object-fit:contain;border-radius:0;background:#f3f4f6}
.m360 .m360-lb-img[hidden],.m360 .m360-lb-text[hidden],.m360 .m360-lb-back[hidden]{display:none}
.m360 .m360-lb-text{margin:10px 4px 0;font-size:15px;line-height:1.5}
.m360 .m360-lb-close{position:absolute;top:8px;right:8px}
.m360 .m360-lb-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.m360 .m360-lb-list[hidden]{display:none}
.m360 .m360-lb-list button{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;min-height:44px;margin:0;padding:6px;border:2px solid var(--m360-blue);border-radius:0;background:#fff;color:var(--m360-blue);font:600 15px/1.3 inherit;font-family:inherit;text-align:left;text-transform:none;letter-spacing:0;white-space:normal;box-shadow:none;cursor:pointer}
.m360 .m360-lb-list button:hover,.m360 .m360-lb-list button:focus{background:#fff;color:var(--m360-blue);text-decoration:underline}
.m360 .m360-lb-list img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;background:#f3f4f6}
.m360 .m360-lb-inner .m360-lb-back{display:inline-flex;align-items:center;min-height:44px;margin:0 0 10px 4px;padding:8px 14px;border:2px solid var(--m360-blue);border-radius:0;background:#fff;color:var(--m360-blue);font:600 15px/1.2 inherit;font-family:inherit;text-transform:none;box-shadow:none;cursor:pointer}
.m360 .m360-lb-inner .m360-lb-back:hover,.m360 .m360-lb-inner .m360-lb-back:focus{background:#fff;color:var(--m360-blue);text-decoration:underline}
.m360 .m360-lb-inner .m360-lb-back[hidden]{display:none}

/* Full screen: the box fills the screen; the canvas stretches the picture's edges into any spare space. */
.m360:fullscreen{background:#000;display:flex;flex-direction:column;justify-content:center;padding:8px}
.m360.m360-is-full{position:fixed;inset:0;z-index:99999;background:#000;display:flex;flex-direction:column;justify-content:center;padding:8px}
.m360:fullscreen .m360-stage,.m360.m360-is-full .m360-stage,.m360:fullscreen .m360-spin .m360-stage,.m360.m360-is-full .m360-spin .m360-stage{aspect-ratio:auto;width:100%;height:calc(100vh - 130px);max-height:none;flex:none}
@supports (height:100dvh){.m360.m360-is-full .m360-stage,.m360.m360-is-full .m360-spin .m360-stage{height:calc(100dvh - 130px)}}
.m360:fullscreen .m360-panel,.m360.m360-is-full .m360-panel{min-height:0!important}
.m360:fullscreen .m360-tablist,.m360.m360-is-full .m360-tablist{border-color:#fff}
.m360:fullscreen .m360-tab:not([aria-selected="true"]),.m360.m360-is-full .m360-tab:not([aria-selected="true"]){background:#fff}
.m360:fullscreen .m360-btn,.m360.m360-is-full .m360-btn{border-color:#fff}
.m360:fullscreen button:focus-visible,.m360.m360-is-full button:focus-visible{outline-color:#fff;box-shadow:0 0 0 5px var(--m360-ink)}

/* Pannellum: hide its own UI (ours replaces it) */
.m360 .pnlm-controls-container,.m360 .pnlm-compass,.m360 .pnlm-panorama-info{display:none!important}
.m360 .pnlm-load-box{border-radius:0;background:rgba(17,17,17,.85)}
@media (prefers-reduced-motion:reduce){.m360 *{transition:none!important;animation:none!important}}
.m360 .m360-nowebgl{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:90%;margin:0;padding:12px 18px;background:#fff;color:var(--m360-ink);font:500 15px/1.4 Poppins,system-ui,sans-serif;text-align:center;box-shadow:0 4px 18px rgba(0,0,0,.25)}

/* 1.0.7: rounded pill tabs to match site buttons (999px) */
.m360 .m360-tablist{gap:8px;border-bottom:0!important;margin:0 0 12px}
.m360 .m360-tab{border:2px solid var(--m360-blue)!important;border-radius:999px!important;padding:10px 20px!important;min-height:44px;line-height:1.2!important;display:inline-flex;align-items:center;justify-content:center}
.m360 .m360-tab:hover{text-decoration:none;background:#E8EFF6}
.m360 .m360-tab[aria-selected="true"]:hover{background:var(--m360-blue)}
.m360 .m360-tab:focus-visible{outline:3px solid var(--m360-blue)!important;outline-offset:3px!important}

/* 1.0.8: explicit tab hover/focus colors. The kit's ".elementor-kit-N button:hover{color:#fff}" outranked the 1.0.7 tab hover (which only set the fill), so the inactive label went white on white. */
.m360 .m360-tablist .m360-tab{transition:background-color .15s,color .15s,border-color .15s!important}
.m360 .m360-tablist .m360-tab[aria-selected="false"],.m360 .m360-tablist .m360-tab:not([aria-selected="true"]){background:#fff!important;color:#0C457B!important;border-color:#0C457B!important}
.m360 .m360-tablist .m360-tab:not([aria-selected="true"]):is(:hover,:focus-visible){background:#0C457B!important;color:#fff!important;border-color:#0C457B!important;text-decoration:none!important}
.m360 .m360-tablist .m360-tab:not([aria-selected="true"]):focus:not(:focus-visible){background:#fff!important;color:#0C457B!important}
.m360 .m360-tablist .m360-tab[aria-selected="true"],.m360 .m360-tablist .m360-tab[aria-selected="true"]:is(:hover,:focus){background:#0C457B!important;color:#fff!important;border-color:#0C457B!important;text-decoration:none!important}
.m360 .m360-tablist .m360-tab[aria-selected="true"]:hover{background:#08345E!important;border-color:#08345E!important}
.m360 .m360-tablist .m360-tab:focus-visible{outline:3px solid #0C457B!important;outline-offset:3px!important}
.m360:fullscreen .m360-tablist .m360-tab:focus-visible,.m360.m360-is-full .m360-tablist .m360-tab:focus-visible{outline-color:#fff!important}

/* 1.0.9: loading / error box shown in place of the photo until the new one loads (never the previous photo). */
.m360 .m360-lb-load{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;aspect-ratio:4/3;max-height:78vh;background:#f3f4f6;color:#1f2937;font:500 15px/1.4 Poppins,system-ui,sans-serif;text-align:center;padding:16px;box-sizing:border-box}
.m360 .m360-lb-load[hidden]{display:none}
.m360 .m360-lb-spin{width:40px;height:40px;border-radius:50%;border:4px solid #c9d4e0;border-top-color:#0C457B;animation:m360-spin 0.9s linear infinite}
.m360 .m360-lb-load.is-error .m360-lb-spin{display:none}
.m360 .m360-lb-load.is-error{color:#7f1d1d}
@keyframes m360-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.m360 .m360-lb-spin{animation:none;border-top-color:#0C457B;opacity:.8}}


/* 1.0.10: keep Photos / 360° Exterior / 360° Interior on one row on phones.
   Desktop (601px and up) is unchanged. Tabs stay 44px tall for touch, with the same focus ring. */
@media (max-width: 600px) {
	.m360 .m360-tablist {
		flex-wrap: nowrap;
		gap: 4px;
		width: 100%;
		margin: 0 0 10px;
	}
	.m360 .m360-tablist .m360-tab {
		flex: 0 1 auto;
		min-width: 0;
		padding: 8px 8px !important;
		font-size: 13px !important;
		font-weight: 600 !important;
		line-height: 1.2 !important;
		min-height: 44px;
		white-space: nowrap;
	}
}
@media (max-width: 340px) {
	.m360 .m360-tablist .m360-tab {
		padding: 8px 6px !important;
		font-size: 12px !important;
	}
}
