//--------------------------------------------------------------
// Copyright (C) joomla-monster.com
// License: http://www.joomla-monster.com/license.html Joomla-Monster Proprietary Use License
// Website: http://www.joomla-monster.com
// Support: info@joomla-monster.com
//---------------------------------------------------------------

// MODULES
//---------------------------------------------------------------

.span0 {
  float: none !important;
} 

.span50 {
  float: left !important;
  width: 50% !important;
}

// default modules
// --------------------------

.jm-module {
  margin-bottom: @JMbaseSpace;
  .jm-title {
    font-weight: @JMmoduleTitleFontWeight;
    font-family: @JMmoduleTitleFontFamily;
    font-size: @JMmoduleTitleFontSize;
    line-height: 1.1;
    color: @JMmoduleTitleFontColor;
		text-transform: uppercase;
		padding: 0 0 20px;
		margin: 0 0 40px;
		position: relative;
		&:after {
	    width: 28px;
	    max-width: 100%;
	    height: 2px;
	    left: 0;
	    right: auto;
	    bottom: 0;
		  content: '';
	    position: absolute;
	    background: @JMcenterLineColor;
		}
  }
}

//moduletable
.moduletable {
  margin: 0 0 20px;
  > h3 {
  	font-weight: @JMmoduleTitleFontWeight;
    font-family: @JMmoduleTitleFontFamily;
    font-size: @JMmoduleTitleFontSize;
    margin: 0 0 20px;
    color: @JMmoduleTitleFontColor;
  }
}

//module with color-ms suffix
.jm-module.color-ms {
	padding: 30px;
	background: @JMcolormsModuleBackground;
	color: @JMcolormsModuleFontColor;
}

//color-ms suffix in mostread
.color-ms .mostread {
	li a {
    color: @JMcolormsModuleFontColor;
    &:hover {
			color: @JMcolorVersion;
			text-decoration: none;
		}
	}	
}

//list style for color blocks
#jm-header,
#jm-bottom1,
#jm-footer,
.color-ms {
	.nav.menu  {
		li a,
		li span.separator {
			background-image: url('../images/li_arrow_white_ltr.png');
			background-repeat: no-repeat;
		}
		> li > a,
		> li > span.separator {
			background: none;
		}
	}
}

//header block colors of title and readmore
#jm-header {
	.jm-title,
	.moduletable > h3	{
  	color: @JMheaderTitleColor;
  	&:after {
			background: @JMheaderTitleColor;
		}
  }
	.readmore {
		border-color: @JMheaderFontColor;
		color: @JMheaderFontColor;
		&:hover {
			border-color: @JMcolorVersion;
			color: @JMcolorVersion;
		}
	}
}

//bottom1 block colors of title, readmore etc.
#jm-bottom1 {
	.jm-title,
	.moduletable > h3	{
		color: @JMbottom1TitleColor;
		&:after {
			background: @JMbottom1TitleColor;
		}
	}
	.readmore {
		border-color: @JMbottom1FontColor;
		color: @JMbottom1FontColor;
		&:hover {
			border-color: @JMcolorVersion;
			color: @JMcolorVersion;
		}
	}
	.mod-articles-category-readmore a {
		color: @JMbottom1FontColor;
		border-color: @JMbottom1FontColor;
		&:hover {
			border-color: @JMcolorVersion;
			color: @JMcolorVersion;
		}
	}
	.tagssimilar ul li a {
		color: @JMbottom1FontColor !important;
		&:hover {
			color: @JMcolorVersion !important;
		}
	}
}

//top1 and footer-mod block colors of title and readmore etc.
#jm-top1,
#jm-footer-mod {
	.jm-title,
	.moduletable > h3	{
		color: @JMtop1TitleColor;
		&:after {
			background: @JMtop1TitleColor;
		}
	}
	.readmore {
		border-color: @JMtop1FontColor;
		color: @JMtop1FontColor;
		&:hover {
			border-color: @JMcolorVersion;
			color: @JMcolorVersion;
		}
	}
	.mod-articles-category-readmore a {
		color: @JMtop1FontColor;
		border-color: @JMtop1FontColor;
		&:hover {
			border-color: @JMcolorVersion;
			color: @JMcolorVersion;
		}
	}
	.tagssimilar ul li a {
		color: @JMtop1FontColor !important;
		&:hover {
			color: @JMtop1FontColor !important;
		}
	}
}

//color-ms suffix colors
.color-ms {
	.jm-title,
	.moduletable > h3	{
		color: @JMcolormsTitleFontColor !important;
		&:after {
			background: @JMcolormsTitleFontColor !important;
		}
	}
	.readmore {
		border-color: @JMcolormsModuleFontColor !important; 
		color: @JMcolormsModuleFontColor !important;
		&:hover {
			border-color: @JMcolorVersion !important;
			color: @JMcolorVersion !important;
		}
	}
	.mod-articles-category-readmore a {
		color: @JMcolormsModuleFontColor !important;
		border-color: @JMcolormsModuleFontColor !important;
		&:hover {
			border-color: @JMcolorVersion !important;
			color: @JMcolorVersion !important;
		}
	}
	.tagssimilar ul li a {
		color: @JMcolormsModuleFontColor !important;
		&:hover {
			color: @JMcolorVersion !important;
		}
	}
}

// jmmoduleraw
.jm-module-raw {
  float: left;
  margin-right: 20px;
}

//right
#jm-top-menu-nav {
	.jm-module-raw {
		float: right;
		margin-left: 20px;
		margin-right: 0;
	}
}

#jm-top-bar1 {
	.jm-module {
		float: left;
		margin: 0 20px 0 0;
		display: table;
	}
	.jm-title {
		padding: 0 5px 0 0;
	}
}

#jm-top-bar2 {
	.jm-module {
		float: right;
		margin: 0 0 0 20px;
		display: table;
	}
	.jm-title {
		padding: 0 0 0 5px;
	}
}

#jm-top-bar1,
#jm-top-bar2 {
	.jm-title {
		display: table-cell;
		vertical-align: middle;
		font-size: @JMbaseFontSize;
		margin: 0;
		&:after {
			display: none;
		}
	}
	.jm-module-content {
		display: table-cell;
		vertical-align: middle;
	}
}

//header
#jm-header-bg {
	.jm-module-raw {
		float: none;
		margin: 0;
	}
}

#jm-header-content {
	.jm-module {
		margin: @JMbaseSpace 0 0;
		&:first-child {
			margin: 0;
		}
	}
}

// margin
.jm-module.margin-ms {
	margin: 0 !important;
}

// module with class menu
.jm-module.nav.menu {
	margin-bottom: @JMbaseSpace;
}

// hide offcanvasbutton
.toggle-nav.menu {
	display: none;
}

// logout topbar
#jm-top-bar {
	form {
		margin: 0;
	}
  div.login-greeting,
  .logout-button {
    display: inline-block;
  }
  .logout-button .btn {
    font-size: 10px;
    height: 25px;
    line-height: 1;
    padding: 0 5px;
    margin-left: 10px !important;
  }
}

// custom html
// ----------------------------------

// Colorful line
// --------------------------

#jm-colorful-line,
#jm-colorful-line2,
#jm-colorful-line3,
#jm-colorful-line4 {
	.jm-module {
		margin-bottom: 0;
	}
}

.jm-colorful {
	width: 100%;
	.jm-line1 {
		height: @JMcolorfulLineHeight;
		background: @JMline1Color;
	}
	.jm-line2 {
		height: @JMcolorfulLineHeight;
		background: @JMline2Color;
		margin-left: ~"@{JMline1Width}%";
	}
	.jm-line3 {
		height: @JMcolorfulLineHeight;
		background: @JMline3Color;
		margin-left: ~"@{JMline2Width}%";
	}
	.jm-line4 {
		height: @JMcolorfulLineHeight;
		background: @JMline4Color;
		margin-left: ~"@{JMline3Width}%";
	}
	.jm-line5 {
		height: @JMcolorfulLineHeight;
		background: @JMline5Color;
		margin-left: ~"@{JMline4Width}%";
	}
}

// Social icons
// --------------------------

.jm-social {
	clear: both;
  a {
    display: inline-block;
    vertical-align: top;
    text-decoration: none!important;
    width: @JMsocialIconWidth;
    height: @JMsocialIconHeight;
    margin: 0 1px 0;
    .border-radius(2px);
    .transition(all 0.3s ease-in-out);
		background-position: center center;
		background-repeat: no-repeat;
  }
  a:hover {
    background-color: @JMstyle;
  }
  a.jm-facebook {
    background-color: @JMsocialFacebokBackground;    
    background-image: url('../images/social/facebook-white.png');
		&:hover {			
			background-color: jmlighten(@JMsocialFacebokBackground, 30%);
		}
  }
  a.jm-pinterest {
    background-color: @JMsocialPinterestBackground;    
    background-image: url('../images/social/pinterest-white.png');
		&:hover {			
			background-color: jmlighten(@JMsocialPinterestBackground, 30%);
		}
  }
  a.jm-twitter {
    background-color: @JMsocialTwitterBackground;    
    background-image: url('../images/social/twitter-white.png');
		&:hover {			
			background-color: jmlighten(@JMsocialTwitterBackground, 30%);
		}
  }
  a.jm-googleplus {
    background-color: @JMsocialSkypeBackground;    
    background-image: url('../images/social/skype-white.png');
		&:hover {			
			background-color: jmlighten(@JMsocialSkypeBackground, 30%);
		}
  }
}

// location
// --------------------------

.jm-location {
	.jm-label {
		font-weight: bold;
	}
}

* + .jm-location {
	padding: (@JMbaseSpace /2) 0 0;
}

// boxes
// --------------------------

.jm-boxes {
	margin-top: -(@JMbaseSpace);
	[class*='span'] {
		margin: @JMbaseSpace 0 0;
	}
	.jm-image {
		position: relative;
		overflow: hidden;
		margin: 0;
		text-align: center;
		background: @JMboxBackground;
		&:after {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: rgba(red(@JMimgEffectBackground),green(@JMimgEffectBackground),blue(@JMimgEffectBackground),@JMimgEffectOpacity);
			content: '';
			-webkit-transition: -webkit-transform 0.6s;
			transition: transform 0.6s;
			-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-130%,0);
			transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-130%,0);
			pointer-events: none;
		}
		&:hover {
			&:after {
				-webkit-transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,130%,0);
				transform: scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,130%,0);
			}
		}
	}
	.jm-description {
		padding: @JMbaseSpace 40px;
		background: @JMboxBackground;
	}
	h3 {
		margin: 0;	
		font-family: @JMmoduleTitleFontFamily;
		font-size: @JMmoduleTitleFontSize;
	}
	.jm-center-border-line {
    margin: 0 0 @JMbaseSpace;
  }
  .jm-front-modules p {
    font-size: inherit;
    font-style: inherit;
    width: 100%;
  }
}

// module with center bottom border
.jm-center-border-line {
	text-align: center;
	padding: 0 0 20px;
	margin: 0 0 @JMbaseSpace;
	position: relative;
	&:after {
    width: 28px;
    max-width: 100%;
    height: 2px;
    margin-left: -14px;
    left: 50%;
    right: auto;
    bottom: 0;
	  content: '';
    position: absolute;
    background: @JMcenterLineColor;
	}
}

#jm-top1,
#jm-footer-mod {
	.jm-center-border-line {
		&:after {
			background: @JMtop1TitleColor;
		}
	}
}

#jm-bottom1 {
	.jm-center-border-line {
		&:after {
			background: @JMbottom1TitleColor;
		}
	}
}

#jm-allpage .color-ms {
	.jm-center-border-line {
		&:after {
			background: @JMcolormsTitleFontColor;
		}
	}
}

// front modules
.jm-front-modules {
	color: @JMmoduleTitleFontColor;
	text-align: center;
	h2, h5 {
		text-transform: uppercase;
		text-rendering: auto;
	}
	h2 {
		font-family: @JMmoduleTitleFontFamily;
		font-size: @JMfrontModulesh2FontSize;
		display: inline-block;
		margin-bottom: (@JMbaseSpace/2);
		color: @JMmoduleTitleFontColor;
	}
	h5 {
		font-weight: 400;
		font-size: @JMfrontModulesh5FontSize;
		margin-bottom: 5px;
	}
	p {
		font-size: @JMfrontModulesFontSize;
		font-style: @JMfrontModulesFontStyle;
		width: 65%;
    margin-left: auto;
    margin-right: auto;
	}
	.btn {
		margin: @JMbaseSpace 0 0;
	}
	#jm-allpage & .jm-picture {
		display: block;
		text-align: center;
		margin: 5px auto (@JMbaseSpace - 7);
		img {
			.box-shadow(0px 0px 0px 3px @JMmoduleTitleFontColor);
			border: 3px solid @white !important;
			.border-radius(100%);
			.box-sizing(border-box);
		}
	}
}

#jm-top1,
#jm-footer-mod {
	.jm-front-modules {
		color: @JMtop1TitleColor;
		h2 {
			color: @JMtop1TitleColor;
		}
		#jm-allpage & .jm-picture {
			img {
				.box-shadow(0px 0px 0px 3px @JMtop1TitleColor);
			}
		}
	}
}

#jm-bottom1 {
	.jm-front-modules {
		color: @JMbottom1TitleColor;
		h2 {
			color: @JMbottom1TitleColor;
		}
		#jm-allpage & .jm-picture {
			img {
				.box-shadow(0px 0px 0px 3px @JMstyle);
			}
		}
	}
}

#jm-allpage .color-ms {
	.jm-front-modules {
		color: @JMcolormsTitleFontColor;
		h2 {
			color: @JMcolormsTitleFontColor;
		}
		#jm-allpage & .jm-picture {
			img {
				.box-shadow(0px 0px 0px 3px @JMstyle);
			}
		}
	}
}
	
// welcome to our hotel
.jm-welcome {
	text-align: center;
	font-size: @JMwelcomeSubtitleFontSize;
	color: @JMheaderFontColor;
	text-shadow: 1px 1px 1px fade(@black, 50%);
	h3 {
		text-transform: uppercase;
		font-size: @JMwelcomeTitleFontSize;
		font-family: @JMmoduleTitleFontFamily;
	}
	h1, h2, h3, h4, h5, h6 {
		color: @JMheaderFontColor;
	}
	.jm-center-border-line {
    padding: 0 0 @JMbaseSpace;
    margin: 0 0 @JMbaseSpace;
    position: relative;
    &:after {
			background: @JMheaderFontColor;
			width: 60px;
			height: 4px;
			margin-left: -30px;
    }
	}
	img {
		display: inline-block;
		vertical-align: baseline;
		margin-right: 10px;
	}
}

// contact team
// --------------------------

.jm-team {
	margin: -(@JMbaseSpace) 0 0;
	span {
		display: block;
		text-align: center;
	}
	[class*='span'] {
		margin: @JMbaseSpace 0 0;
	}
	.jm-icon {
		margin: 0 0 10px;
		img {
			.box-shadow(0px 0px 0px 3px @JMmoduleTitleFontColor);
			border: 3px solid @white !important;
			.border-radius(100%);
			.box-sizing(border-box);
		}
	}
	.jm-name {
		font-family: @JMmoduleTitleFontFamily;
		font-weight: bold;
		text-transform: uppercase;
		color: @JMmoduleTitleFontColor;
		margin: 0 0 10px;
	}
}

// promo
// --------------------------

// slide in
// --------------------------

@-webkit-keyframes jm-slideIn {
  0% {
    -webkit-transform: translate3d(-2000px, 0, 0);
    transform: translate3d(-2000px, 0, 0);
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes jm-slideIn {
  0% {
    -webkit-transform: translate3d(-2000px, 0, 0);
    transform: translate3d(-2000px, 0, 0);
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}

.jm-module.promo1-ms,
.jm-module.promo2-ms,
.jm-module.promo3-ms	{
	position: relative;
	color: @JMbuttonBackground;
	font-family: @JMmoduleTitleFontFamily;
	font-size: @JMbuttonsFontSize;
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
	text-align: center;
	border: 2px solid @JMbuttonBackground;
	background: transparent;
	cursor: pointer;
	a {
		color: @JMbuttonBackground;
		text-decoration: none;
	}
	&:hover {
		background: @JMbuttonBackground;
		color: @JMbuttonFontColor;
		a {	
			color: @JMbuttonFontColor;
		}
	}
	.jm-module-in {
		margin: 43px 0;		
	}
	&.animate-ms {
		visibility: hidden;	
		&.jm-slideIn {
			visibility: visible;
		}
	}
}

#jm-bottom1 {
	.jm-module.promo1-ms,
	.jm-module.promo2-ms,
	.jm-module.promo3-ms	{
		color: @JMbottom1FontColor;
		border: 2px solid @JMbottom1FontColor;
		a {
			color: @JMbottom1FontColor;
		}
		&:hover {
			background: @JMbottom1FontColor;
			color: @JMbottom1Background;
			a {	
				color: @JMbottom1Background;
			}
		}
	}
}

.promo1-ms.animate-ms {
	z-index: 1;
	-webkit-animation-duration: 1.4s;
	animation-duration: 1.4s;
}
.promo2-ms.animate-ms {
	z-index: 2;
	-webkit-animation-duration: 1.1s;
	animation-duration: 1.1s;
}
.promo3-ms.animate-ms {
	z-index: 3;
	-webkit-animation-duration: 0.8s;
	animation-duration: 0.8s;
}

.jm-slideIn {
  -webkit-animation-name: jm-slideIn;
  animation-name: jm-slideIn;
}

// contact-ps
#jm-allpage .contact-ps {
  h3, 
  form#contact-form > fieldset > legend,
  > .contact-address.dl-horizontal {
    display: none;
  }
  > h3:first-child {
    display: block;
    font-size: @JMarticleTitleFontSize;
    line-height: 1.1;
    font-weight: @JMarticleTitleFontWeight;
    margin: 0;
  }
  .form-horizontal .control-label {
    float: none;
    width: auto;
    text-align: inherit;
    padding: 0;
    label {
      margin: 0 0 10px;
    }
  }
  .form-horizontal .controls {
    margin: 0;
  }
  .form-actions {
    background: none;
    border: none;
    padding: 0;
  }  
}

// Pricing
// --------------------------

.jm-pricing {
	margin: 0 -(@JMbaseSpace /2);
	.box {
		float: left;
		margin: ((@JMpricingPriceSize /2) + 10) 0 0;
		padding: 0 (@JMbaseSpace /2);
		.box-sizing(border-box);
		position: relative;
	}
	&.col1 .box {
		width: 100%;
	}
	&.col2 .box {
		width: 50%;
	}
	&.col3 .box {
		width: 33%;
	}
	&.col4 .box {
		width: 25%;
	}
	.price {
		position: absolute;
		top: -(@JMpricingPriceSize /2);
		left: 50%;
		right: auto;
		.translateX(-50%);
		background: @JMstyle;
		.border-radius(100%);
		width: @JMpricingPriceSize;
		height: @JMpricingPriceSize;
		padding-top: @JMpricingPriceTopSpace;
		.box-sizing(border-box);
		span {
			display: block;
			color: @JMpricingPriceFontColor;
			text-align: center;
		}
		.up,
		.down {
			font-size: @JMpricingPriceUpDownFontSize;
			line-height: 1.1;
		}
		.middle {
			font-size: @JMpricingPriceMiddleFontSize;
			font-weight: bold;
			line-height: 1.2;
		}
	}
	.title {
		background: @JMpricingTitleBackground;
		padding-top: ((@JMpricingPriceSize /2) + 15px);
		padding-left: 30px;
		padding-right: 30px;
		padding-bottom: 20px;
		color: @JMpricingTitleFontColor;
		text-transform: uppercase;
		text-align: center;
		font-size: 26px;
		font-weight: bold;
	}
	.content {
		background: @JMpricingContentBackground;
		padding: 20px;
		border-left: 1px solid @JMborder;
		border-right: 1px solid @JMborder;
		.box-sizing(border-box);
	}
	.subtitle {
		font-size: 20px;
		color: @JMmoduleTitleFontColor;
		text-transform: uppercase;
		font-weight: 400;
		margin: 0 0 15px;
	}
	.bottom {
		background: @JMpricingBottomBackground;
		padding: 20px;
		text-align: center;
	}
}

// Search
// --------------------------

#jm-allpage .search-ms {
	form {
		margin: 0;
		position: relative;
	}
	.inputbox {
		width: 100% !important;
		padding-right: @JMinputHeight + @JMinputPadding;
		background: jmdarken(@JMinputBackground, 3%);
		.border-radius(2px);
		color: jmdarken(@JMinputFontColor, 20%);
		border-color: jmdarken(@JMinputBorder, 10%);
		.placeholder(jmdarken(@JMinputFontColor, 20%));
	}
	.inputbox + .button {
		padding: 0;
		border: none;
		background: none;
		font-size: 0;
		position: absolute;
		top: 0;
		right: 0;
		left: auto;
		width: @JMinputHeight;
		height: @JMinputHeight;
		line-height: @JMinputHeight;
		&:after {
			content: "\e003";
			font-size: 20px;
			color: @JMinputFontColor;
			display: inline-block;
			vertical-align: top;
			font-family: 'Glyphicons Halflings';
			font-style: normal;
			font-weight: normal;
			-webkit-font-smoothing: antialiased;
			-moz-osx-font-smoothing: grayscale;
		}
	}
}