/* body {
    touch-action: pan-x pan-y;
} */

.building-container {
	position: relative;
	aspect-ratio: 10/16.88;
	/* overflow: hidden; */
	/* width: 585px;
	height: 600px; */
	/* min-width: 500px; */
	min-height: 600px;
	/* margin-top: -50px; */
    user-select: none; /* supported by Chrome and Opera */
   -webkit-user-select: none; /* Safari */
   -khtml-user-select: none; /* Konqueror HTML */
   -moz-user-select: none; /* Firefox */
   -ms-user-select: none; /* Internet Explorer/Edge */

}

/* @media (min-width: 992px) {
    .building-container { margin-left: calc(100vw - 90%) }
}

@media (min-width: 1400px) {
    .building-container { margin-left: calc(calc(100vw - 1320px) / 2) }
} */

.building-path {
	width: 100%;
	height: 100%;
	position: relative;
}

.floor-image {
	height: 100%;
	float: left;
}

.building-left, .building-right {
	position: absolute;
	height: 100%;
	background-size: contain;
	background-repeat: no-repeat;
}

.building-left {
	right: 100%;
	aspect-ratio: 4.7/16.88;
	background-image: url("/images/building-left.jpg");
}

.building-right {
	left: 100%;
	aspect-ratio: 8.5/16.88;
	background-image: url("/images/building-right.jpg");
}

.building-left::before, 
.building-right::after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
  	height: 100%;
  	width: 100%;
}

#floor {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#floor svg {
	width: 100%;
	height: 100%;
}

.building-container path {
	fill: #41C1C6;
}

.building-container path,
.rp-box path {
	opacity: 0;
}

.building-container path.active,
.rp-box path.active {
	fill-opacity: 0.6 !important;
}

.click-notification {
	font-size: 18px;
	max-width: 370px;
	position: fixed;
	display: table;
	z-index: 9;
	right: -20px;
	top: 50%;
	height: 100%;
	-webkit-transform: translate3d(0, -50%, 0);
	transform: translate3d(0, -50%, 0);
	opacity: 0;
}

.click-notification .click-text {
	display: table-cell;
	vertical-align: middle;
}

.click-notification .click-text p {
	margin: 0;
	color: #FFF;
	line-height: 1.4;
	font-weight: bold;
	text-transform: uppercase;
	font-family: "Varela Round", Arial, Helvetica, sans-serif;
}

.click-notification .click-text p:before, .click-notification .click-text p:after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate3d(-100%, -50%, 0) rotate(50deg) skew(10deg);
    display: inline-block;
    width: 40px;
    height: 40px;
    border-left: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
}

.click-notification .click-text p:before {
    left: -25px;
}


.rp-box {
	z-index: 100;
	background: #fff;
	position: fixed;
	top: 15px;
	right: -100%;
	width: 50%;
	bottom: 15px;
	border: 2px solid #484342;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	z-index: 999;
    user-select: none; /* supported by Chrome and Opera */
   -webkit-user-select: none; /* Safari */
   -khtml-user-select: none; /* Konqueror HTML */
   -moz-user-select: none; /* Firefox */
   -ms-user-select: none; /* Internet Explorer/Edge */
}

.rp-box-inner {
	width: 100%;
	height: 100%;
	position: relative;
}

#rp-box-content,
#rp-box-subcontent {
	width: 100%;
	text-align: center;
	cursor: grabbing !important;
	cursor: -webkit-grabbing !important;
	cursor: -moz-grabbing !important;
}

#rp-box-content {
	/* height: 100%; */
    align-items: center;
}

#rp-box-content .floor-content {
	overflow: hidden;
	position: relative;
	text-align: left;
    display: flex;
    justify-content: center;
    /* height: 100%; */
    max-height: 100%;
    max-width: 100%;
    overflow: visible;
}

#rp-box-content .floor-content > div {
    position: relative;
    align-self: flex-start;
}

#rp-box-content .floor-content img {
	-webkit-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

#rp-box-content img {
	max-width: 100%;
	max-height: 100%;
}

#rp-box-content svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.rp-box-content {
	padding: 20px 50px;
	width: 100%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.rp-box-content-wrapper {
	overflow: hidden;
	height: calc(100% - 50px);
}

.rp-box-content-wrapper svg text {
	//text-shadow: 0px 1px 1px black;
    fill: #5e4d1c;
}

#rp-box-subcontent {
	height: 100%;
}

#rp-box-subcontent img {
	max-width: 100%;
	max-height: 100%;
	display: inline-block;
}

#apartment-info {
	background: #fff;
	font-size: 18px;
	position: relative;
	z-index: 9;
	text-align: left;
	padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
}

#apartment-info span {
	display: inline-block;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#apartment-info .apartment-level {
	color: #888888;
}

#apartment-info .apartment-number {
	color: #359bc2;
}

#apartment-info .apartment-type {
	color: #998a5b;
}

#apartment-image {
	height: 90%;
	height: calc(100% - 60px);
	display: flex;
	/* align-items: center; */
	justify-content: center;
}

#apartment-image .apartment-image-wrapper {
	position: relative;
	display: inline;
	width: fit-content;
	height: fit-content;
}

#apartment-image .apartment-image-wrapper .view-vr {
	position: absolute;
	width: 8%;
	height: auto;
}

#apartment-image .apartment-image-wrapper .view-vr img {
	background-color:rgba(0,116,115,0.5);
	border-radius: 50%;
	padding: 6px;
}

#apartment-image .apartment-image-wrapper .change-floor-btn {
	position: absolute;
	height: 8%;
	aspect-ratio: 1;
	background-color:rgba(167, 167, 167, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: height 0.5s ease, background-color 0.8s ease;
}

#apartment-image .apartment-image-wrapper .change-floor-btn:hover {
	height: 9%;
	background-color: rgba(0,116,115,0.5);
}

#apartment-image .apartment-image-wrapper .change-floor-btn img {
	padding: 6px;
	max-width: 60%;
	max-height: 60%;
}
/* 
#apartment-image .apartment-image-wrapper .prev-floor-btn {
	position: absolute;
	height: 8%;
	aspect-ratio: 1;
	background-color:rgba(167, 167, 167, 0.5);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#apartment-image .apartment-image-wrapper .prev-floor-btn img {
	padding: 6px;
	max-width: 60%;
	max-height: 60%;
} */

@media(min-width: 640px){
	#apartment-image .apartment-image-wrapper .view-vr img {
		padding: 10px;
	}
}

@media(min-width: 768px){
	#apartment-image .apartment-image-wrapper .view-vr img {
		padding: 18px;
	}
}

#svg-content {
	display: inline-block;
	background-position: top left;
	background-repeat: no-repeat;
	background-size: 100% auto;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	-webkit-transition: opacity 0.3s ease;
	-o-transition: opacity 0.3s ease;
	transition: opacity 0.3s ease;
}

#svg-content svg {
	width: 100%;
	height: 100%;
}

#svg-content path {
	-webkit-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

#svg-content path:hover {
	fill-opacity: 0.5 !important;
}

.rp-box .tools {
	padding: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.rp-box .tools li {
	display: inline-block;
	list-style: none;
	text-transform: uppercase;
	font-weight: bold;
	margin-right: 25px;
	float: left;
}

.rp-box .tools li.li-vr a{
	display: flex;
	margin-block: auto;
}

.rp-box .tools li.li-vr a img{
	height: 30px;
}

@media(min-width: 768px) {
	.rp-box .tools li.li-vr a img{
		height: 32px;
	}
}

.rp-box .tools li.hidden {
    display: none;
}

.rp-box .tools a {
	color: #fff;
	text-decoration: none;
	outline: none;
}

.rp-box-content-top {
	height: 50px;
	margin: 0;
	line-height: 50px;
	font-size: 24px;
	background: #484342;
	overflow: hidden;
}

.rp-box-content-top h1 {
	float: left;
	margin: 0;
	font-size: 20px;
	font-weight: bold;
	text-transform: uppercase;
	color: #fff;
	line-height: 50px;
	padding-left: 15px;
	font-family: "Varela Round", Arial, Helvetica, sans-serif;
}

.rp-box-content-top ul {
	margin: 0;
	float: right;
}

.rp-box-content-top ul a {
	line-height: 50px;
}

.rp-box-footer {
	position: absolute;
	padding: 20px;
	background: #fff;
	bottom: 0;
	left: 0;
	width: 100%;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.rp-box-footer a {
	font-size: 16px;
	color: #fff;
	display: inline-block;
	background: #484342;
	padding: 8px;
	-webkit-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

.rp-box-footer a i {
	margin-right: 5px;
}

.rp-box-footer a:hover {
	background: #546174;
}

#vr-view {
	width: 100%;
	height: 100%;
	padding: 15px;
	z-index: 1000;
	position: fixed;
	top: 0;
	right: -110%;
	box-sizing: border-box;
	/* transform: translate3d(110%,0,0); */
	display: flex;
	flex-direction: column;
}

#vr-view iframe {
	width: 100%;
	height: 100%;
	border: 2px solid #484342;
	box-sizing: border-box;
	background: #141414;
}

#vr-view .tools {
	padding: 0;
	overflow: hidden;
}

#vr-view .tools li {
	display: inline-block;
	list-style: none;
	text-transform: uppercase;
	font-weight: bold;
	margin-right: 25px;
	float: left;
}

#vr-view .tools a {
	color: #fff;
	text-decoration: none;
	outline: none;
}

#vr-view .vr-header {
	height: 50px;
	margin: 0;
	line-height: 50px;
	font-size: 24px;
	background: #484342;
	overflow: hidden;
}

#vr-view .vr-header h1 {
	float: left;
	margin: 0;
	font-size: 20px;
	font-weight: bold;
	text-transform: uppercase;
	color: #fff;
	line-height: 50px;
	padding-left: 15px;
	font-family: "Varela Round", Arial, Helvetica, sans-serif;
}


#vr-view .vr-header h1 .apartment-number{
	padding-right: 0.75rem;
}

#vr-view .vr-header h1 .apartment-type::before{
	content: "-";
	padding-right: 0.75rem;
}

#vr-view .vr-header ul {
	margin: 0;
	float: right;
}

#vr-view .vr-header ul a {
	line-height: 50px;
}

.text-image{
	display: inline-block;
	height: 36px;
	vertical-align: middle;
}

@media screen and (max-width: 1199px) {
	.click-notification {
		width: 180px;
		font-size: 18px;
	}

	.text-image{
		display: inline-block;
		height: 32px;
		vertical-align: middle;
	}
}

@media(min-width: 768px) {
	.click-notification .click-text {
		filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
	}
	
	.click-notification .click-text p {
		color: white;
	}
}

@media screen and (max-width: 991px) and (min-width: 768px) {
	.building-container {
		max-width: 100%;
		height: auto !important;
	}
	.floor-image {
		width: 100%;
		height: auto;
	}
	.rp-box {
		width: 90%;
	}
}

@media screen and (max-width: 767px) {
	.sqs-mobile-info-bar-dark {
		display: none !important;
	}
	.click-notification {
		/* display: none; */
        position: sticky;
		width: 100%;
		padding: 5vw;
		font-size: 14px;
		text-align: center;
		-webkit-transform: none;
		-ms-transform: none;
		transform: none;
		height: auto;
		top: auto;
		bottom: 0;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		background: #243E77;
		-webkit-transition: all 0.15s cubic-bezier(0.23, 0.47, 0.32, 1);
		-o-transition: all 0.15s cubic-bezier(0.23, 0.47, 0.32, 1);
		transition: all 0.15s cubic-bezier(0.23, 0.47, 0.32, 1);
	}
    .click-notification .click-text p:before, .click-notification .click-text p:after {
        display: none;
    }
	.touch .click-notification {
		bottom: 62px;
	}
	.sqs-mobile-info-bar-hide+#canvasWrapper .click-notification {
		bottom: -100%;
	}
	.rp-box {
		width: calc(100% - 30px);
		display: none;
		right: -100% !important;
	}
	.disable-mobile-scroll .rp-box {
		display: block;
		right: 15px !important;
	}
	.rp-box-content-top {
		font-size: 18px;
	}
	.rp-box-content-top h1 {
		font-size: 16px;
	}
	.rp-box .tools li {
		margin-right: 15px;
	}
	#apartment-image,
	#rp-box-content {
		padding: 20px;
	}
	body.disable-mobile-scroll {
		overflow: hidden !important;
	}
	.building-container {
		position: absolute;
		bottom: 0px;
		margin-top: 0;
        min-width: 0;
        min-height: 0;
		width: 100% !important;
		height: 90vh !important;
		overflow-x: auto;
		overflow-y: auto;
		direction: rtl;

	}
	.building-path {
		/* -webkit-transform: scale(1.05) translate3d(0, 20px, 0);
      transform: scale(1.05) translate3d(0, 20px, 0); */
		display: flex;
		width: 100%;
		height: 100%;
	}
	.floor-image {
		height: 100vh;
		float: none;
	}
	/* .building-right{
		display: none;
	} */
	/* .li-print {
		display: none !important;
	} */
	#svg-content {
		height: 100%;
		width: 100%;
	}
	#svg-content svg {
		height: 100%;
	}

	#vr-view .vr-header {
		height: unset;
		display: flex;
  		align-items: center;
		justify-content: space-between;
	}

	#vr-view .vr-header h1 .apartment-type::before{
		content: unset;
		padding-right: unset;
	}

	#vr-view .vr-header h1{
		display: flex;
		flex-direction: column;
		line-height: normal;
		gap: 0.5rem;
		padding: 1.5rem;
	}

	#vr-view .vr-header h1 .apartment-number{
		padding-right: unset;
	}

	#vr-view .vr-header h1 .apartment-type{
		font-size: 15px;
	}
}

@media screen and (max-width: 380px){
	.rp-box .tools li {
		margin-right: 10px;
	  }

	.rp-box-content-top h1{
		font-size: 14px;
	}

	.rp-box-content-top {
		font-size: 14px;
	}

	.rp-box .tools li.li-vr a img{
		height: 24px;
	}
}

@media print {
	#headerWrapper,
	.click-notification,
	.rp-box-content-top ul,
	.rp-box-footer {
		display: none;
	}
	body.sidebar-position-left #footerWrapper,
	body.sidebar-position-left #pageWrapper {
		margin-left: 0;
	}
	.rp-box {
		position: static;
		width: 100%;
		height: 100%;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		page-break-before: always;
	}
	#rp-box-subcontent img {
		max-height: 700px;
	}
	#canvas {
		min-width: 0;
	}
}