.image-hotspot{
  position:relative;
  display:flex;
  flex-direction:row;
  justify-content: space-between;
  /*overflow:hidden;*/
}

.image-hotspot .content-section, .image-hotspot .map-index, .image-hotspot .map-container, {
  	flex: 1 1 auto;
  	transform:none;
	opacity: 1;
}

.image-hotspot .content-section{
 	display: flex;
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
  	border: 0 solid transparent;
}
.image-hotspot.index-abs-position .content-section{
 	display:block;
  	position:absolute;
  	z-index:1;
}

.image-hotspot.index-right{
	flex-direction:row-reverse; 
}
.image-hotspot.index-right .content-section{
	border-right-width:1px;
}
.image-hotspot.index-left .content-section{
	border-left-width:1px;
}
.image-hotspot.index-hide .content-section{
	display:none;
}

.image-hotspot .map-container{
  	position:relative;
  	flex: 2 1 auto;
  	height:100%;
  	background-size: cover;
  	background-repeat:no-repeat;
  	background-position: center center;
}


.image-hotspot .map-index ul, .image-hotspot .map-index ul > li {
    list-style: none;
  	margin:0;
	padding: 0;
}
.image-hotspot .map-index.show-circles .map-index-number {}
.image-hotspot .map-index ul li.map-index-item {
    background:transparent;
}
.image-hotspot .map-index.show-divider .map-index-item {
    border-bottom:1px solid transparent;
}
.image-hotspot .map-index.show-divider .map-index-item:last-child {
    border-bottom:none;
}
.image-hotspot .map-index .map-index-number{
 	display:inline-block; 
}
.image-hotspot .map-index:not(.show-circles) .map-index-number:after{
 	content:'.';
}

/* Add arrow after index item
.image-hotspot .map-index-item.hover .map-index-title:after {
    display: inline;
    content: ' \2192';
}
*/
.image-hotspot .map-container .map-popup{
  	position:absolute;
   	display:block;
	box-sizing: border-box;
  	width: auto;
  	background: #ffffff;
  	padding:0;
  	opacity:0;
  	border: 0px solid transparent;
	box-shadow: 2px 4px 6px rgba(0,0,0,0.25);
  	margin-top:6px;
  	z-index:99;
}

.image-hotspot.popup-hover .map-container .map-popup {
    pointer-events: none;
}
.image-hotspot .map-container .map-popup .popup-content{
	overflow:hidden;
}
.image-hotspot .map-container .map-popup:focus,
.image-hotspot .map-container .map-popup:hover{
  outline:none;
}
.image-hotspot .map-container .map-popup:not(.visible){
	left: -100vw;
  	top: -100vh;
  	visibility:hidden;
}
.image-hotspot .map-container .map-popup.visible{
 	visibility:visible;
	top: 50%;
  	left:50%;
}

.image-hotspot .map-container .map-popup.visible.fromRight{
 	-webkit-animation: fadeInRight 600ms forwards;
    animation: fadeInRight 600ms forwards;	
}
.image-hotspot .map-container .map-popup.visible.fromLeft{
 	-webkit-animation: fadeInLeft 600ms forwards;
    animation: fadeInLeft 600ms forwards;	
}

/* Marker */
.image-hotspot.marker-visible .map-popup:before {
    position: absolute;
    background-color: inherit;
    top: calc(50% - 0.5em);
    content: '';
    display: block;
  	font-size:20px;
    width: 1em;
    height: 1em;
    transform: rotate(45deg);
}
.image-hotspot.marker-visible .map-popup.fromRight:before{
  	right: -0.25em;
}
.image-hotspot.marker-visible .map-popup.fromLeft:before {
    left: -0.25em;
}

.image-hotspot .map-container .map-popup .info-title{
 	margin:0;
  	padding:0;
  	color: inherit;
}

.image-hotspot .map-background{
  display:block;
  width:100%;
  height:auto;
  background-repeat:no-repeat;
  background-position: top left;
  background-size: cover;
}
.image-hotspot .map-container .map-points{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
}
.image-hotspot .map-container .map-point {
  position:absolute;
  display:block;
  transform-origin:center;
  transform:translate(-50%, -50%);
  cursor:pointer;
}
.image-hotspot:not(.map-icons) .map-container .map-point .map-point-icon{
	display:none;
}
.image-hotspot.map-icons .map-container .map-point .map-point-icon {
    display: inline-block;
    font-size: inherit;
  	line-height:inherit;
    width: 1em;
    height: 1em;
    position: relative;
}
.image-hotspot.map-icons .map-container .map-point .map-point-icon svg {
    fill: #fff;
    width: 1em;
    height: 1em;
}

.image-hotspot .map-container .map-point, 
.image-hotspot .map-index.show-circles .map-index-number{
    width: 2em;
    height: 2em;
    line-height: 2.1;
    font-size: 0.75em;
  	white-space: nowrap;
    text-align: center;
	border-radius: 50%;
}
.image-hotspot .map-container .map-points .map-point .ripple {
  	display:block;
  	content:' ';
  	top:0px;
  	left:0px;
 	width: 100%;
  	height: 100%;
  	opacity: 0;
  	border-radius: 50%;
  	position:absolute;
	background: transparent!important;
  	border-width: 1px;
    border-style: solid;
    border-color: inherit;
  	border-width: 1px;
  	animation-name: rippleEffect;
  	animation-iteration-count: infinite;
  	animation-duration: 7s;
}

/* Define transitions when overlayed */
.image-hotspot .content-section,
.image-hotspot .map-index, 
.image-hotspot.overlayed .map-container{ 
	transition: all 500ms ease;
}

.image-hotspot.overlayed .content-section{ opacity: 0;}

.image-hotspot.overlayed .map-index {
 	opacity: 0;
  	transform: translateX(100%);
}

.image-hotspot.overlayed .map-container {
  opacity: 0;
  width: 0;
}


/* OVERLAY STYLES */

.map-popup .popup-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
	text-align: center;
}

.map-popup .tns-outer{
 	width: 100%;
	background: #545454;
 	overflow:hidden;
  	position:relative;
    opacity: 0;
    animation: fadeIn .3s ease .6s forwards;
}

.map-popup .map-item-images .slider-img {
 	background-repeat:no-repeat;
  	background-size: cover;
  	background-position: center;
  	height:100%;
  	width:100%;
}

.map-popup .map-item-images .slider-img {
   	padding-bottom: 200px;
}
  

.map-popup .tns-outer, .map-popup .tns-ovh, .map-popup .tns-inner, .map-popup .tns-slider, .map-popup .tns-item {
    height: 100%;
}

.image-hotspot:not(.show-nav) .map-popup .tns-controls{
  display:none;  
}
.map-popup .tns-controls button {
    position: absolute;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);  
    font-size: 1.2em;
    padding: 1.25em 0.5em;
    border: none;
	background: transparent;
	color: #fff;
    transition: all ease 200ms;
}
.map-popup .tns-outer:hover .tns-controls button {
    background: rgba(255,255,255, 0.4);
    margin: 0 0.5em;
}
.map-popup .tns-controls button:hover{
    color: #222;
    background: rgba(255,255,255,0.9);
}
.map-popup .tns-controls button:hover, .map-popup .tns-controls button:active {
 	outline:none; 
}
.map-popup .tns-controls button[data-controls="next"] { left: auto; right: 0;}
.map-popup .tns-controls button[data-controls="prev"] { left: 0; }


.map-popup .map-item-content {
  	background-size:cover;
  	background-repeat: no-repeat;
  	background-position: center;
    flex: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  	padding: 3em;
}
.map-popup .info-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
}

.map-popup .info-buttons a.map-item-button {
    flex: auto;
    padding: 0.5em 1em;
    font-size: 0.8em;
    text-align: center;
  	background:#fff;
}

.map-popup .info-buttons a.map-item-button:first-child {
 	background: #ccc; 
}
.image-hotspot .map-popup .map-item-closebtn {
	position: absolute;
    right: 0px;
    top: 0px;
    padding: 1em;
    font-size: 15px;
    border: 0.05em solid #999;
    border-radius: 50%;
  	background: #fff;
    transform: translate(50%, -50%);
  	cursor:pointer;
  	transition:all 200ms ease;
  	opacity: 0;
}
.map-popup:hover .map-item-closebtn {
    opacity: 1;
}    

.map-popup .map-item-closebtn:hover{
  font-size: 20px;
  border-color: #222;
}

.map-popup .map-item-closebtn:before, 
.map-popup .map-item-closebtn:after {
	display: block;
    position: absolute;
    content: ' ';
    height: 1em;
    width: 0;
    border-left: 0.1em solid #999;
  	border-color: inherit;
    margin-left: -0.05em;
    margin-top: -0.5em;
}

.map-popup .map-item-closebtn:before { transform: rotate(-45deg);}
.map-popup .map-item-closebtn:after { transform: rotate(45deg);}

.image-hotspot.show-close-btn .map-popup .map-item-closebtn {display:block;}
.image-hotspot.hide-close-btn .map-popup .map-item-closebtn,
.image-hotspot.popup-hover .map-popup .map-item-closebtn {
 	display:none;
  	transition:none;
  	transform:none;
}

/* Intro Animations */
@-webkit-keyframes rippleEffect{
  0% { -webkit-transform: scale(1); opacity:1;}
  20% { -webkit-transform: scale(2); opacity:0;}
  100% { }
}
@keyframes rippleEffect{
  0% { transform: scale(1); opacity:1;}
  20% { transform: scale(2); opacity:0;}
  100% { }
}

@-webkit-keyframes fadeInRight {
  from	{ opacity: 0; -webkit-transform:translateX(60%); } 
  to 	{ opacity: 1; -webkit-transform:translateX(0%); } 
}

@keyframes fadeInRight {
  from	{ opacity: 0; transform:translateX(60%); } 
  to 	{ opacity: 1; transform:translateX(0%);  } 
}

@-webkit-keyframes fadeInLeft {
  from	{ opacity: 0; -webkit-transform:translateX(-40%); } 
  to 	{ opacity: 1; -webkit-transform:translateX(0%); } 
}

@keyframes fadeInLeft {
  from	{ opacity: 0; transform:translateX(-40%); } 
  to 	{ opacity: 1; transform:translateX(0%);  } 
}

@keyframes animateWidth {
  from {width:0%;}
  to {width:100%;}
}


@media only screen and (max-width:1024px){
 .image-hotspot .map-container .map-popup{
   	max-width: 100%;
 } 
 .image-hotspot.marker-visible .map-popup:before{
  	display: none!important;
 }
 .image-hotspot .map-popup .map-item-closebtn{
  	opacity:1; 
 }
}
@media only screen and (max-width:768px){
  .image-hotspot {
    flex-direction:column;
    justify-content: flex-start;
  }
 .image-hotspot.index-hide-on-mobile .content-section{
   	display:none;
 }
}