/* Papatto 360 Tour Pro public viewer additions. */

.papatto360-floor-tabs {
	display: flex;
	gap: 5px;
	min-width: 0;
	overflow-x: auto;
}

.papatto360-public-side-panel .papatto360-floor-tabs {
	flex: 0 0 auto;
}

.papatto360-floor-tab {
	flex: 1 1 100px;
	min-width: 80px;
	border: 1px solid #c3c4c7;
	border-radius: 5px 5px 0 0;
	background: #f0f0f1;
	padding: 7px 10px;
	color: #50575e;
	text-align: center;
	cursor: pointer;
}

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

.papatto360-floor-tab.is-selected,
.papatto360-floor-tab.is-active,
.papatto360-floor-tab[aria-pressed="true"],
.papatto360-floor-tab[aria-selected="true"] {
	border-color: #2271b1;
	background: #2271b1;
	color: #fff;
	font-weight: 600;
}

.papatto360-google-map {
	width: 100%;
	min-height: 380px;
	border-radius: 6px;
	background: #eef0f2;
}

.papatto360-direction-cone {
	position: absolute;
	z-index: 1;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: conic-gradient(
		from -30deg,
		rgba(214, 54, 56, 0.4) 0deg 60deg,
		transparent 60deg 360deg
	);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.papatto360-public-marker {
	z-index: 2;
}

.papatto360-hotspot-path,
.papatto360-hotspot-info,
.papatto360-hotspot-video {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.48);
	color: #fff;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.papatto360-hotspot-path {
	background: rgba(0, 90, 35, 0.86);
}

.papatto360-hotspot-path::before {
	content: "\2191";
	display: block;
	font-size: 24px;
}

.papatto360-hotspot-path-right::before {
	transform: rotate(90deg);
}

.papatto360-hotspot-path-left::before {
	transform: rotate(-90deg);
}

.papatto360-hotspot-path-up::before {
	content: "\21E7";
}

.papatto360-hotspot-path-down::before {
	transform: rotate(180deg);
}

.papatto360-hotspot-info {
	background: rgba(34, 113, 177, 0.92);
}

.papatto360-hotspot-info::before {
	content: "i";
	font-family: Georgia, serif;
	font-size: 25px;
	font-style: italic;
}

.papatto360-hotspot-video {
	background: rgba(214, 54, 56, 0.94);
}

.papatto360-hotspot-video::before {
	content: "\25b6";
	margin-left: 2px;
	font-size: 19px;
}

.papatto360-info-popup,
.papatto360-video-overlay {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.72);
	padding: 20px;
}

.papatto360-info-popup-panel {
	position: relative;
	width: min(560px, 100%);
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 38px rgba(0, 0, 0, 0.45);
	padding: 22px 26px;
	color: #1d2327;
}

.papatto360-info-popup-panel h3 {
	margin: 0 34px 12px 0;
}

.papatto360-info-popup-panel img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 0 12px;
	border-radius: 6px;
}

.papatto360-info-popup-panel p {
	margin: 0;
	white-space: pre-line;
}

.papatto360-info-popup-close,
.papatto360-video-overlay-close {
	position: absolute;
	z-index: 2;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.08);
	padding: 0;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.papatto360-video-overlay-box {
	position: relative;
	width: min(960px, 100%);
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	background: #000;
	box-shadow: 0 12px 38px rgba(0, 0, 0, 0.55);
}

.papatto360-video-overlay-box iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 8px;
}

.papatto360-video-overlay-close {
	top: -42px;
	right: 0;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.papatto360-license-notice {
	border-left-color: #dba617;
}

@media (max-width: 782px) {
	.papatto360-google-map {
		min-height: 300px;
	}
}
.papatto360-empty-floor {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 60vh;
	min-height: 360px;
	max-height: 640px;
	padding: 24px;
	border-radius: 6px;
	background: #f0f0f1;
	color: #50575e;
	text-align: center;
}

.papatto360-empty-floor[hidden] {
	display: none;
}

@media (max-width: 782px) {
	.pt-tour .papatto360-viewer,
	.papatto360-empty-floor {
		grid-row: 1;
		height: 48vh;
		min-height: 280px;
	}
}
