/* Papatto 360 Tour Free public viewer */

.pnlm-grab {
	cursor: grab !important;
}

.pnlm-grabbing {
	cursor: grabbing !important;
}

.pt-tour {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
	gap: 12px;
	width: 100%;
	align-items: start;
}

.papatto360-viewer {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	width: 100%;
	height: 60vh;
	min-height: 360px;
	max-height: 640px;
	border-radius: 6px;
	overflow: hidden;
	will-change: transform;
}

.papatto360-public-side-panel {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	max-height: 640px;
	overflow-y: auto;
}

.papatto360-auto-rotate-controls {
	position: absolute;
	z-index: 3;
	top: 60px;
	left: 4px;
	display: flex;
	flex-direction: column;
	width: 26px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.4);
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.papatto360-auto-rotate-controls button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.92);
	color: #1d2327;
	cursor: pointer;
}

.papatto360-auto-rotate-controls button + button {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.papatto360-auto-rotate-play-icon {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid currentColor;
}

.papatto360-auto-rotate-stop-icon {
	width: 9px;
	height: 9px;
	background: currentColor;
}

.papatto360-auto-rotate-controls button[aria-pressed="true"],
.papatto360-auto-rotate-controls button:focus-visible {
	background: #2271b1;
	color: #fff;
}

.papatto360-auto-rotate-controls button:disabled {
	cursor: default;
}

.papatto360-public-scene-list {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 240px;
	overflow-y: auto;
}

.papatto360-public-scene-select {
	box-sizing: border-box;
	width: 100%;
	min-height: 36px;
	padding: 6px 30px 6px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
}

.papatto360-public-scene-button {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	text-align: left;
	cursor: pointer;
}

.papatto360-public-scene-button:hover,
.papatto360-public-scene-button:focus-visible {
	border-color: #2271b1;
	outline: 2px solid transparent;
}

.papatto360-public-scene-button[aria-current="true"] {
	border-color: #2271b1;
	background: #2271b1;
	color: #fff;
	font-weight: 600;
}

.papatto360-public-floorplan {
	grid-column: 2;
	position: relative;
	min-width: 0;
}

.papatto360-public-floorplan-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.papatto360-public-marker {
	position: absolute;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #2271b1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
	transform: translate(-50%, -50%);
	cursor: pointer;
	appearance: none;
}

.papatto360-public-marker:hover,
.papatto360-public-marker:focus-visible {
	background: #135e96;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.papatto360-public-marker.is-selected {
	background: #d63638;
	z-index: 2;
}

.papatto360-public-scene-description {
	grid-column: 1;
	white-space: pre-line;
	font-size: 14px;
	line-height: 1.7;
}

.papatto360-public-information {
	grid-column: 1 / -1;
	font-size: 14px;
	line-height: 1.8;
}

.papatto360-public-information > :first-child,
.papatto360-public-information .pt-tour-info > :first-child {
	margin-top: 0;
}

.papatto360-public-information img {
	max-width: 100%;
	height: auto;
}

.pt-tour.papatto360-no-floorplan .papatto360-viewer,
.pt-tour.papatto360-no-floorplan .papatto360-public-scene-list,
.pt-tour.papatto360-no-floorplan .papatto360-public-scene-description {
	grid-column: 1 / -1;
}

.pt-tour.papatto360-no-floorplan .papatto360-viewer {
	grid-row: auto;
}

@media (max-width: 782px) {
	.pt-tour {
		grid-template-columns: minmax(0, 1fr);
	}

	.papatto360-viewer,
	.papatto360-public-side-panel,
	.papatto360-public-scene-list,
	.papatto360-public-floorplan,
	.papatto360-public-scene-description,
	.papatto360-public-information {
		grid-column: 1;
		grid-row: auto;
	}

	.papatto360-viewer {
		height: 48vh;
		min-height: 280px;
	}
}
