/*
 * The Panotour viewer (site/viewer.blade.php). Written for the redesign,
 * apart from the old panolib.css: the room fills the screen, and everything
 * else floats over it in frosted glass. Phone first; 600 and 900 widen it.
 *
 * The engine makes a few elements of its own (the canvas, short text
 * labels and copies of the hotspot windows); those are styled at the end.
 */

:root {
	--navy: #0E1A2B;
	--ink: #2E3B4E;
	--muted: #5B6B80;
	--teal: #3DC1CE;
	--blue: #3D58CE;
	--link: #2A47B8;
	--grad: linear-gradient(110deg, #3D58CE 0%, #3DC1CE 100%);
	--grad-words: linear-gradient(110deg, #3D58CE 0%, #0E7C86 100%); /* under white words, as site.css */
	--glass: rgba(12, 22, 42, .55);
	--glass-line: rgba(255, 255, 255, .14);
	--f-head: Montserrat, system-ui, sans-serif;
	--f-body: Lato, system-ui, sans-serif;
	--f-num: Nunito, system-ui, sans-serif;
	--edge: 12px;
	--ad: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
	overflow: hidden;
	background: var(--navy);
	color: #FFFFFF;
	font-family: var(--f-body);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p { margin: 0; }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.panolib-container { position: fixed !important; inset: 0; z-index: 0; }

/* -------------------------------------------------------------- the frame */

.v-shade {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 14, 28, .55) 0%, rgba(8, 14, 28, 0) 22%, rgba(8, 14, 28, 0) 66%, rgba(8, 14, 28, .6) 100%);
}

.v-glass {
	background: var(--glass);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
	border: 1px solid var(--glass-line);
}

.v-loading {
	position: fixed;
	inset: 0;
	z-index: 30;
	display: grid;
	place-items: center;
	background: var(--navy);
	transition: opacity .5s ease, visibility 0s linear .5s;
}

.v-loading span {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .15);
	border-top-color: var(--teal);
	animation: v-spin .9s linear infinite;
}

.is-ready .v-loading { opacity: 0; visibility: hidden; }

@keyframes v-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- the top */

.v-top {
	position: fixed;
	z-index: 10;
	left: var(--edge);
	right: var(--edge);
	top: calc(var(--edge) + env(safe-area-inset-top, 0px));
	display: flex;
	align-items: flex-start;
	gap: 10px;
	pointer-events: none;
}

.v-top > * { pointer-events: auto; }

.v-owner {
	flex: none;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px;
	border-radius: 999px;
}

.v-owner__mark { height: 34px; max-width: 110px; object-fit: contain; border-radius: 999px; }
.v-owner__mark.is-panopedia { height: 18px; margin: 0 6px; border-radius: 0; }

.v-owner__who { display: none; flex-direction: column; min-width: 0; line-height: 1.25; }
.v-owner__who strong { font-family: var(--f-head); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-owner__who span { font-size: 12px; color: #D6E2F5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.v-owner__call {
	flex: none;
	padding: 8px 14px;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--navy);
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	transition: background-color .2s ease;
}

.v-owner__call:hover { background: #E3F7F9; }

.v-title { flex: 1 1 auto; min-width: 0; padding-top: 4px; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.v-title h1 { font-family: var(--f-head); font-weight: 900; font-size: 16px; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-title p { margin-top: 2px; font-size: 13px; color: #E4ECF8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-scene__count { color: #B9C7DC; }
.v-title .v-facts { margin-top: 0; font-size: 12px; color: #B9C7DC; }
/* On a phone the title is too narrow for them, so the facts sit in their
   own small pill under the top, where the photo is otherwise clear */
@media (max-width: 599px) {
	body:not(.is-embedded) .v-title .v-facts { position: fixed; left: var(--edge); top: calc(var(--edge) + env(safe-area-inset-top, 0px) + 58px); max-width: calc(100vw - var(--edge) * 2); margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(14, 26, 43, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #E4ECF8; white-space: normal; text-shadow: none; }
}

.v-tools { position: relative; flex: none; }
.v-right { flex: none; display: flex; align-items: flex-start; gap: 10px; margin-left: auto; }

.v-tools__set {
	position: absolute;
	right: 0;
	top: 52px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.v-tools__set.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }

.v-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.v-icon:hover { background: rgba(12, 22, 42, .75); }
.v-icon:active { transform: scale(.94); }
.v-icon[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--navy); }

.v-icon .v-off { display: none; }
.v-icon[aria-pressed="false"] .v-on { display: none; }
.v-icon[aria-pressed="false"] .v-off { display: inline; }

/* ------------------------------------------------------------- the bottom */

.v-bottom {
	position: fixed;
	z-index: 10;
	left: var(--edge);
	right: var(--edge);
	bottom: calc(var(--edge) + var(--ad) + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: flex-end;
	gap: 10px;
	pointer-events: none;
}

.v-bottom > * { pointer-events: auto; }

.v-plan-button {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 64px;
	height: 64px;
	padding: 0;
	border-radius: 16px;
	cursor: pointer;
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 10px;
	transition: background-color .2s ease;
}

.v-plan-button svg { width: 24px; height: 24px; }
.v-plan-button:hover, .v-plan-button[aria-expanded="true"] { background: rgba(12, 22, 42, .8); }

.v-rooms {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	gap: 8px;
	padding: 8px;
	border-radius: 18px;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	/* Snapping lines a room up inside the padding, so the strip starts at 0 */
	scroll-padding-inline: 8px;
}

.v-rooms::-webkit-scrollbar { display: none; }

/* The strip and its arrows: one for each way there is more to see. As wide
   as its rooms, up to all the room there is, and centred: a three-room
   Panotour no longer has a long empty bar. */
.v-rooms-wrap { flex: 0 1 auto; min-width: 0; margin-inline: auto; position: relative; display: flex; }
.v-rooms-wrap .v-rooms { flex: 1 1 auto; }
.v-rooms__go {
	position: absolute;
	top: 30px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(12, 22, 42, .82);
	color: #FFFFFF;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	cursor: pointer;
	transition: background-color .2s ease, opacity .2s ease;
}
.v-rooms__go:hover { background: rgba(12, 22, 42, .96); }
.v-rooms__go:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.v-rooms__go--back { left: 2px; }
.v-rooms__go--on { right: 2px; }
.v-rooms__go[hidden] { display: none; }
/* Fingers swipe; the arrows are for a mouse */
@media (hover: none) { .v-rooms__go { display: none; } }

.v-room {
	flex: 0 0 96px;
	/* Never wider than its basis: a flex item is at least as wide as its
	   content, so a long name on one line (nowrap) widened its card and
	   made its picture taller than the rest (6.69.1) */
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	scroll-snap-align: start;
}

.v-room img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
	background: rgba(255, 255, 255, .08);
	box-shadow: 0 0 0 0 var(--teal);
	transition: box-shadow .2s ease, transform .2s ease;
}

.v-room span { font-family: var(--f-head); font-weight: 600; font-size: 11px; line-height: 1.25; padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #D6E2F5; }
.v-room:hover img { transform: translateY(-2px); }
.v-room[aria-current="true"] img { box-shadow: 0 0 0 3px var(--teal); }
.v-room[aria-current="true"] span { color: #FFFFFF; font-weight: 800; }

.v-made {
	display: none;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 16px;
	color: #D6E2F5;
	font-size: 11px;
	text-decoration: none;
	transition: background-color .2s ease;
}

.v-made img { height: 15px; width: auto; }
.v-made:hover { background: rgba(12, 22, 42, .8); color: #FFFFFF; }

.v-hint {
	position: fixed;
	z-index: 5;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 10px 18px;
	border-radius: 999px;
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 14px;
	pointer-events: none;
	opacity: 0;
	transition: opacity .4s ease;
}

.is-ready .v-hint { opacity: 1; }
.is-ready .v-hint.is-gone, .is-listing .v-hint { opacity: 0; }

/* ----------------------------------------------- the call to action */

.v-cta { display: none; }

.v-cta-mini {
	position: fixed;
	z-index: 10;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(var(--edge) + var(--ad) + 106px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

body:not(.has-rooms) .v-cta-mini { bottom: calc(var(--edge) + var(--ad) + 24px + env(safe-area-inset-bottom, 0px)); }

.v-cta-reopen { display: none; }

.v-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--grad-words) border-box;
	color: #FFFFFF;
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter .2s ease, transform .2s ease;
}

.v-btn:hover { filter: brightness(1.08); }
.v-btn:active { transform: scale(.98); }
.v-cta-mini:active { transform: translateX(-50%) scale(.98); }

.v-x {
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #EEF2F7;
	color: var(--navy);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease;
}

.v-x:hover { background: #DCE3EE; }

/* ---------------------------------------------- the floor plan and share */

.v-sheet, .v-dialog__box, .v-spotbox__in {
	color: var(--ink);
	background: #FFFFFF;
	border-radius: 22px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.v-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.v-sheet__head strong, .v-sheet__head h2 { font-family: var(--f-head); font-weight: 800; color: var(--navy); }
.v-sheet__head h2 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }

.v-sheet--plan {
	position: fixed;
	z-index: 20;
	left: var(--edge);
	right: var(--edge);
	bottom: calc(var(--edge) + var(--ad) + 84px + env(safe-area-inset-bottom, 0px));
	padding: 14px;
	animation: v-in .22s ease-out;
}

/* Floors: tabs over the plan when a home has more than one */
.v-floors { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; }
.v-floors button { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid #DCE3EE; border-radius: 999px; background: #FFFFFF; color: var(--navy); font: 700 14px/1 var(--f-head); cursor: pointer; }
.v-floors button[aria-selected="true"] { border-color: var(--teal); background: #E3F7F9; }

.v-plan { position: relative; }
.v-plan[hidden] { display: none; }
.v-plan img { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 10px; }

.v-pin {
	position: absolute;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: -11px 0 0 -11px;
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	background: var(--blue);
	box-shadow: 0 4px 12px rgba(14, 26, 43, .35);
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}

.v-pin:hover { transform: scale(1.15); }
.v-pin[aria-current="true"] { background: var(--teal); animation: v-ring 2.2s ease-out infinite; }

.v-pin span {
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translate(-50%, -6px);
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--navy);
	color: #FFFFFF;
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

.v-plan.has-titles .v-pin span, .v-pin:hover span, .v-pin:focus-visible span, .v-pin[aria-current="true"] span { opacity: 1; }

/* The visitor on the plan (6.39.0): a dot on their room and a cone for
   where they look, turned by viewer.js through --v-face (clockwise from
   pointing right, as the plan's own angles). On the big plan the room's pin
   is the dot already, so only the cone shows, under the pins. */
.v-here { position: absolute; width: 0; height: 0; pointer-events: none; }
.v-here[hidden] { display: none; }
.v-here::after {
	content: "";
	position: absolute;
	left: -6px;
	top: -6px;
	width: 12px;
	height: 12px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	background: var(--teal);
	box-shadow: 0 2px 6px rgba(14, 26, 43, .4);
	box-sizing: border-box;
}
.v-plan .v-here::after { display: none; }
.v-face {
	display: none;
	position: absolute;
	left: -46px;
	top: -46px;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: conic-gradient(from 45deg, rgba(61, 193, 206, .75) 0 90deg, transparent 90deg);
	-webkit-mask: radial-gradient(closest-side, #000 20%, transparent);
	mask: radial-gradient(closest-side, #000 20%, transparent);
	transform: rotate(var(--v-face, 0deg));
}
.v-here.has-face .v-face { display: block; }
.v-plan .v-face { left: -60px; top: -60px; width: 120px; height: 120px; }

/* The small plan, on wide screens only (900 and up, below) */
.v-mini { display: none; }

@keyframes v-ring { 0% { box-shadow: 0 0 0 0 rgba(61, 193, 206, .6); } 100% { box-shadow: 0 0 0 14px rgba(61, 193, 206, 0); } }
@keyframes v-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.v-backdrop { position: fixed; inset: 0; z-index: 15; background: rgba(8, 14, 28, .55); animation: v-fade .2s ease-out; }
@keyframes v-fade { from { opacity: 0; } to { opacity: 1; } }

.v-dialog { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; }
.v-dialog__box { width: 100%; max-width: 440px; padding: 22px; display: flex; flex-direction: column; gap: 14px; animation: v-in .22s ease-out; }

.v-link { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 999px; background: #F1F4F9; }
.v-link span { flex: 1; min-width: 0; font-family: var(--f-num); font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-link .v-btn { min-height: 38px; padding: 8px 16px; font-size: 14px; }

/* Contact (6.45.0) */
.v-contact { display: grid; gap: 10px; }
.v-contact label { display: grid; gap: 4px; font-family: var(--f-head); font-weight: 700; font-size: 13px; color: var(--navy); }
.v-contact input, .v-contact textarea { width: 100%; box-sizing: border-box; min-height: 42px; padding: 9px 12px; border: 1px solid #D6DEEA; border-radius: 10px; background: #FFFFFF; color: var(--ink); font: 400 16px/1.4 Lato, system-ui, sans-serif; }
.v-contact textarea { resize: vertical; }
.v-contact input:focus, .v-contact textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(61, 193, 206, .25); }
.v-contact__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v-contact__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v-contact .v-btn, .v-contact__direct { justify-content: center; }
.v-contact__or { margin: 0; text-align: center; }
.v-contact__done { margin: 0; font-weight: 700; color: var(--navy); }
.v-dialog__box:has(.v-contact) { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (max-width: 420px) { .v-contact__two { grid-template-columns: minmax(0, 1fr); } }

.v-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.v-channels a, .v-channels button {
	padding: 12px 6px;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	background: #FFFFFF;
	color: var(--navy);
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

.v-channels a:hover, .v-channels button:hover { border-color: var(--navy); background: #F6F8FB; }

/* Each service's own mark beside its name (assets/site/img/brands, the same
   marks as Clometrix's), a plain line icon for Email and More. */
.v-channels a, .v-channels button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.v-channels a[hidden], .v-channels button[hidden] { display: none; }
.v-mark { width: 18px; height: 18px; flex: none; }

/* Two to a row on a phone: three left "WhatsApp" touching its edges. */
@media (max-width: 479px) { .v-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.v-note { font-size: 14px; color: var(--muted); }

.v-toast {
	position: fixed;
	z-index: 40;
	left: 50%;
	top: 76px;
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	border-radius: 14px;
	background: var(--navy);
	color: #FFFFFF;
	font-size: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
	animation: v-in .2s ease-out;
}

/* ------------------------------------------------------------------- ads */

.v-ad { display: none; }

/* Not "has-ad": EasyList and AdGuard hide anything with that class, and
   on <body> that hid the whole Panotour, a blank white page (6.91.14). */
.has-slot { --ad: 50px; }

.has-slot .v-ad {
	position: fixed;
	z-index: 12;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	height: var(--ad);
	background: var(--navy);
	overflow: hidden;
}

.v-ad ins { display: block !important; width: 320px; height: 50px; }

/* ------------------------------------------------------- a listing frame */

.is-listing .v-made, .is-listing .v-cta, .is-listing .v-cta-mini { display: none; }
.is-embedded [data-v-open="share"] { display: none; }

/* ------------------------------------------- one room, two photos (6.60.0) */

.v-second { position: fixed; z-index: 9; right: var(--edge); top: calc(var(--edge) + env(safe-area-inset-top, 0px) + 58px); display: flex; padding: 4px; border-radius: 999px; color: #FFFFFF; }
.v-second__seg { display: flex; gap: 2px; }
.v-second button { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: #E4ECF8; font-family: var(--f-head); font-weight: 700; font-size: 13px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.v-second button[aria-pressed="true"] { background: #FFFFFF; color: var(--navy); }
.v-second.is-loading button[aria-pressed="true"] { opacity: .7; }
/* Beside the scene facts on a phone: the facts make space */
.has-second .v-title .v-facts { max-width: calc(100vw - var(--edge) * 2 - 150px) !important; }

.v-wipe { position: fixed; z-index: 6; top: 0; bottom: 0; width: 0; border-left: 2px solid #FFFFFF; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.v-wipe__label { position: absolute; top: 38%; padding: 4px 10px; border-radius: 999px; background: rgba(14, 26, 43, .6); color: #FFFFFF; font-family: var(--f-head); font-weight: 700; font-size: 13px; white-space: nowrap; }
.v-wipe__label--before { right: 12px; }
.v-wipe__label--after { left: 12px; }
.v-wipe__handle { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -25px; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--navy); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); cursor: ew-resize; pointer-events: auto; touch-action: none; }

@media (min-width: 600px) {
	.v-second { right: auto; left: 50%; transform: translateX(-50%); top: calc(var(--edge) + env(safe-area-inset-top, 0px) + 104px); }
	.has-second .v-title .v-facts { max-width: none !important; }
}

/* ------------------------------------------------------- hotspot windows */

.hotspotBox.v-spotbox { width: 320px; max-width: calc(100vw - 32px); z-index: 8; }

.v-spotbox__in { position: relative; overflow: hidden; animation: v-in .2s ease-out; }
.v-spotbox h3 { padding-right: 40px; margin-bottom: 6px; font-family: var(--f-head); font-weight: 800; font-size: 17px; color: var(--navy); }
.v-spotbox__text { font-size: 15px; line-height: 1.55; max-height: 40vh; overflow-y: auto; }
.v-spotbox .v-x { position: absolute; right: 12px; top: 12px; }

.v-spotbox:not(.v-spotbox--image):not(.v-spotbox--image-text) .v-spotbox__in { padding: 18px 20px 20px; }

.v-spotbox--image .v-spotbox__in img { display: block; width: 100%; max-height: 60vh; object-fit: contain; background: var(--navy); }
.v-spotbox--image .v-x { background: rgba(255, 255, 255, .9); }

.v-spotbox--image-text .v-spotbox__in > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.v-spotbox--image-text .v-spotbox__body { position: static; padding: 16px 20px 20px; }

/* A video, a sound or a PDF (6.59.0) */
.hotspotBox.v-spotbox--video { width: 480px; }
.v-spotbox__video { position: relative; margin-top: 4px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--navy); }
.v-spotbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-spotbox--video h3 + .v-spotbox__video { margin-top: 10px; }
.v-spotbox--video:not(:has(h3)) .v-spotbox__in { padding-top: 52px; }
.v-spotbox--sound audio { display: block; width: 100%; margin-top: 8px; }
.v-spotbox--sound:not(:has(h3)) .v-spotbox__in { padding-top: 52px; }
.v-spotbox__doc { display: inline-flex; align-items: center; margin-top: 10px; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-family: var(--f-head); font-weight: 700; font-size: 14px; text-decoration: none; }
.v-spotbox__doc:hover { background: #22324A; }

/* On a phone the window is a sheet from the bottom. The engine shows its
   copy beside the hotspot too, after the sheet opens, so the copy is kept
   hidden while a sheet is open (6.59.0). */
body.has-sheet .panolib-container .hotspotBox { display: none !important; }

.hotspotBox.is-sheet {
	position: fixed !important;
	z-index: 20;
	left: 0 !important;
	right: 0;
	top: auto !important;
	bottom: 0;
	width: 100%;
	max-width: none;
	transform: none !important;
}

.hotspotBox.is-sheet .v-spotbox__in {
	border-radius: 22px 22px 0 0;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	animation: v-up .25s ease-out;
	max-height: 82vh;
	overflow-y: auto;
}

.hotspotBox.is-sheet .v-spotbox__text { max-height: none; }
.hotspotBox.is-sheet.v-spotbox--image .v-spotbox__in img { max-height: 70vh; }

@keyframes v-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* The engine's own labels: a short text hotspot, and an arrow's room name. */
.shortTextHotspot {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border: 1px solid var(--glass-line);
	color: #FFFFFF;
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 13px;
	white-space: nowrap;
	pointer-events: auto;
}

.shortTextHotspot .shortTextLink { color: #FFFFFF; text-decoration: underline; text-underline-offset: .2em; }
.shortTextHotspot .shortTextLink::after { content: " \2197"; }

/* ------------------------------------------------------------- 600 and up */

@media (min-width: 600px) {
	:root { --edge: 20px; --v-foot: 104px; }

	/* The title in the middle of the window, not of the space the owner and
	   the buttons leave: three columns, the outer two always equal. Inside
	   another site's page the top keeps its own order, below. */
	/* --v-side is the wider of the owner and the buttons, set by viewer.js,
	   so the middle never runs under either; equal thirds without it. Where
	   that leaves the title too little room (is-tight), it fills the space
	   between them as on a phone. */
	body:not(.is-embedded) .v-top:not(.is-tight) { display: grid; grid-template-columns: var(--v-side, minmax(0, 1fr)) minmax(0, 1fr) var(--v-side, minmax(0, 1fr)); align-items: start; }
	body:not(.is-embedded) .v-top:not(.is-tight) .v-owner { grid-column: 1; justify-self: start; }
	body:not(.is-embedded) .v-top:not(.is-tight) .v-title { grid-column: 2; grid-row: 1; justify-self: center; max-width: 100%; }
	body:not(.is-embedded) .v-top:not(.is-tight) .v-right { grid-column: 3; grid-row: 1; justify-self: end; }

	/* The rooms strip centred on the window too, between equal columns wide
	   enough for the floor plan button on the left and the Panopedia badge
	   on the right, whichever of them a Panotour has. */
	body:not(.is-embedded) .v-bottom { display: grid; grid-template-columns: minmax(var(--v-foot), 1fr) minmax(0, max-content) minmax(var(--v-foot), 1fr); align-items: end; }
	body:not(.is-embedded) .v-bottom > .v-plan-button { grid-column: 1; justify-self: start; }
	body:not(.is-embedded) .v-bottom > .v-rooms-wrap { grid-column: 2; grid-row: 1; margin: 0; max-width: 100%; }
	body:not(.is-embedded) .v-bottom > .v-made { grid-column: 3; grid-row: 1; justify-self: end; }
	.v-owner__who { display: flex; max-width: 220px; }
	.v-owner { padding-right: 6px; }
	.v-title { text-align: center; }
	.v-title h1 { font-size: 20px; }
	.v-title p { font-size: 14px; }
	.v-title .v-facts { font-size: 13px; }
	.v-room { flex-basis: 128px; }
	.v-room span { font-size: 12px; }
	.v-made { display: flex; }
	.v-sheet--plan { right: auto; width: 420px; }
	.has-slot { --ad: 90px; }
	.has-slot .v-ad ins { width: 728px; height: 90px; }
}

/* ------------------------------------------------------------- 900 and up */

@media (min-width: 900px) {
	:root { --edge: 24px; }

	.v-more { display: none; }
	.v-tools__set { position: static; flex-direction: row; opacity: 1; visibility: visible; transform: none; }

	.v-owner__who { max-width: 280px; }
	.v-title h1 { font-size: 22px; }

	.v-plan-button { width: 104px; height: 112px; border-radius: 18px; font-size: 13px; gap: 8px; }
	.v-plan-button svg { width: 32px; height: 32px; }
	.v-rooms { padding: 10px; border-radius: 20px; gap: 10px; }
	.v-room { flex-basis: 152px; }
	.v-room span { font-size: 13px; }

	.v-sheet--plan { bottom: calc(var(--edge) + var(--ad) + 136px); width: 440px; }

	/* The small plan in place of the button, the outer columns wide enough
	   for it so the rooms stay centred. */
	body:not(.is-embedded) .v-bottom:has(.v-mini) { --v-foot: 176px; }
	body:not(.is-embedded) .v-bottom > .v-plan-button { display: none; }
	body:not(.is-embedded) .v-mini {
		display: grid;
		place-items: center;
		grid-column: 1;
		justify-self: start;
		min-width: 104px;
		min-height: 112px;
		padding: 8px;
		border-radius: 18px;
		cursor: pointer;
		transition: background-color .2s ease;
	}
	.v-mini:hover, .v-mini[aria-expanded="true"] { background: rgba(12, 22, 42, .8); }
	.v-mini__map { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #FFFFFF; }
	.v-mini__map[hidden] { display: none; }
	.v-mini__map img { display: block; width: 100%; height: 100%; object-fit: fill; }
	.v-mini .v-face { left: -30px; top: -30px; width: 60px; height: 60px; }

	/* The call to action is a card at the side, and a pill once hidden. */
	.v-cta-mini { display: none; }

	.v-cta {
		position: fixed;
		z-index: 10;
		top: 96px;
		width: 300px;
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 20px;
		border-radius: 22px;
		background: #FFFFFF;
		color: var(--ink);
		box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
		transition: opacity .25s ease, transform .25s ease, visibility 0s;
		animation: v-in .3s ease-out;
	}

	.v-cta.is-hidden { opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
	.v-cta--right { right: var(--edge); }
	.v-cta--left { left: var(--edge); top: 112px; }
	.v-cta__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
	.v-cta h2 { font-family: var(--f-head); font-weight: 800; font-size: 18px; line-height: 1.25; color: var(--navy); }
	.v-cta p { font-size: 15px; }

	.v-cta-reopen {
		display: block;
		position: fixed;
		z-index: 10;
		top: 96px;
		padding: 11px 18px;
		border-radius: 999px;
		font-family: var(--f-head);
		font-weight: 700;
		font-size: 14px;
		cursor: pointer;
		animation: v-in .25s ease-out;
	}

	.v-cta-reopen--right { right: var(--edge); }
	.v-cta-reopen--left { left: var(--edge); top: 112px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* -------------------------------------------- inside another site's page */

.v-open-site { display: none; }

.v-poster {
	position: fixed;
	inset: 0;
	z-index: 25;
	background: var(--navy);
	transition: opacity .4s ease;
}

.v-poster.is-gone { opacity: 0; pointer-events: none; }
.v-poster > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); }

.v-poster__in {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	text-align: center;
	background: radial-gradient(circle at 50% 50%, rgba(8, 14, 28, .1), rgba(8, 14, 28, .55));
}

.v-poster__in p { max-width: 90%; font-size: 13px; color: #E4ECF8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

/* The photo count on the poster: the pictures icon and a number, never
   "rooms" (6.69.1, site/partials/photo-count.blade.php) */
.v-poster__in .count { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; vertical-align: middle; }
.v-poster__in .ico { display: inline-block; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 22H4a2 2 0 0 1-2-2V6'/%3E%3Cpath d='m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18'/%3E%3Ccircle cx='12' cy='8' r='2'/%3E%3Crect width='16' height='16' x='6' y='2' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 22H4a2 2 0 0 1-2-2V6'/%3E%3Cpath d='m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18'/%3E%3Ccircle cx='12' cy='8' r='2'/%3E%3Crect width='16' height='16' x='6' y='2' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.v-poster__in .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.v-play {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 20px 8px 8px;
	border: 1px solid var(--glass-line);
	border-radius: 999px;
	background: var(--glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	font-family: var(--f-head);
	font-weight: 800;
	font-size: 15px;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}

.v-play:hover { transform: scale(1.03); background: rgba(12, 22, 42, .75); }
.v-play__ring { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-words); animation: v-ring 2.2s ease-out infinite; }
.v-play__ring svg { margin-left: 3px; }

/* Less around the room inside someone else's page: the page has its own
   title and owner, so the room keeps only what moves around it. */
.is-embedded .v-owner,
.is-embedded .v-title h1,
.is-embedded .v-made,
.is-embedded .v-cta,
.is-embedded .v-cta-reopen { display: none !important; }

.is-embedded .v-open-site {
	display: inline-flex;
	align-items: center;
	align-self: center;
	order: 2;
	flex: none;
	padding: 8px 14px;
	border-radius: 999px;
	color: #FFFFFF;
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 12px;
	text-decoration: none;
	transition: background-color .2s ease;
}

.is-embedded .v-open-site:hover { background: rgba(12, 22, 42, .8); }
.is-embedded .v-title { order: 1; text-align: left; }
.is-embedded .v-tools,
.is-embedded .v-right { order: 3; }
.is-embedded .v-cta-mini { display: inline-flex; }

@media (max-width: 420px) {
	.is-embedded .v-open-site { display: none; }
	.is-embedded .v-room { flex-basis: 76px; }
	.is-embedded .v-plan-button { width: 52px; height: 52px; }
	.is-embedded .v-plan-button span { display: none; }
}

/* The owner's button sits above the rooms strip, which grows with the width. */
@media (min-width: 600px) { .is-embedded.has-rooms .v-cta-mini { bottom: calc(var(--edge) + var(--ad) + 116px); } }
@media (min-width: 900px) { .is-embedded.has-rooms .v-cta-mini { bottom: calc(var(--edge) + var(--ad) + 148px); } }

/* The public demo's own call to action. */
.v-demo { align-self: center; flex: none; order: 2; padding: 10px 18px; border-radius: 999px; background: linear-gradient(110deg, #3D58CE 0%, #3DC1CE 100%); color: #FFFFFF; font-family: var(--f-head); font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 8px 24px rgba(8, 14, 28, .3); }
.v-demo:hover { filter: brightness(1.08); color: #FFFFFF; }
/* Below 1280 pixels the top has no room for it beside the owner, the title
   and the buttons, so it sits at the bottom in the middle, above the rooms,
   and above the owner's own call to action where there is one (12 November
   2026: it ran off the side at 600 and 1024, and hid behind the call to
   action on a phone). */
@media (max-width: 1279px) {
	.v-demo { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(var(--edge) + var(--ad) + 106px + env(safe-area-inset-bottom, 0px)); white-space: nowrap; }
	body:has(.v-cta-mini) .v-demo { bottom: calc(var(--edge) + var(--ad) + 164px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 900px) and (max-width: 1279px) {
	.v-demo, body:has(.v-cta-mini) .v-demo { bottom: calc(var(--edge) + var(--ad) + 164px + env(safe-area-inset-bottom, 0px)); }
}

/* The cookie choice, outside Europe and not in an embed (docs/COOKIES.md). */
.v-cookies { position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 560px; margin: 0 auto; padding: 12px 14px; border-radius: 16px; font-size: 13px; line-height: 1.45; color: #FFFFFF; }
.v-cookies[hidden] { display: none; }
.v-cookies p { flex: 1 1 260px; margin: 0; }
.v-cookies a { color: #FFFFFF; font-weight: 700; }
.v-cookies div { display: flex; gap: 6px; }
.v-cookies button { height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; background: transparent; color: #FFFFFF; font: 700 13px/1 var(--f-body, sans-serif); cursor: pointer; }
.v-cookies button[data-consent="all"] { border-color: #FFFFFF; background: #FFFFFF; color: #0E1A2B; }

/* Kiosk mode (6.48.0): nothing that leads off the Panotour, and no pointer
   when the mouse is still */
.is-kiosk [data-v-open="share"], .is-kiosk .v-open-site, .is-kiosk .v-made, .is-kiosk .v-cta, .is-kiosk .v-cta-mini, .is-kiosk .v-cta-reopen { display: none !important; }
.is-kiosk.is-still, .is-kiosk.is-still * { cursor: none !important; }

/* A link to this room and view (6.49.0) */
.v-here-link { align-self: center; padding: 6px 4px; border: 0; background: none; color: var(--blue); font: 700 14px/1.3 var(--f-head); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* A listing's label over the title (6.50.0) */
.v-status { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: #F37043; color: #FFFFFF; font: 800 12px/1.3 var(--f-head); letter-spacing: .02em; text-shadow: none; }
.v-status--under-offer { background: var(--blue); }
