// Mixins
@mixin box-sizing($value) {
     -moz-box-sizing: $value;
  -webkit-box-sizing: $value;
          box-sizing: $value;
}

@mixin box-shadow($value) {
     -moz-box-shadow: $value;
  -webkit-box-shadow: $value;
          box-shadow: $value;
}

@mixin border-radius ($values) {
     -moz-border-radius: $values;
  -webkit-border-radius: $values;
          border-radius: $values;             
}

@mixin opacity($opacity: 0.5) {
    filter:         alpha(opacity=($opacity * 100));
    -ms-filter:     "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + ($opacity * 100) + ")";
    -moz-opacity:   $opacity;
    -khtml-opacity: $opacity;
    opacity:        $opacity;
}

// Clearfix
@mixin clearfix {
  *zoom: 1;
  &:before,
  &:after {
    display: table;
    content: "";
    line-height: 0;
  }
  &:after {
    clear: both;
  }
}

#icon-map {
	background: url(../img/icons/title_icon.png) no-repeat top left;
	padding: 0 0 0 44px;
	float: left;
	height: 38px;
	width: 145px;

		h2 {
			margin: 0;
			padding: 0;
			font-size: 23px;
			line-height: 38px;
			color: #000;
			text-shadow: #fff 0 1px 0;
		}
	}

/*==========  Map General  ==========*/
#map-editor { 
	padding: 10px 0 0;

	* { 
		@include box-sizing(border-box); 
		font-family: 'Open Sans', sans-serif; }
	
	input, .color {
		border: 1px solid #dbdbdb;
		height: 28px;
		line-height: 1.5;
		padding: 4px 10px;
		margin: 0;
		font-size: 14px;
		color: #464646;
		@include border-radius(3px);
		@include box-shadow(inset 0 1px 1px rgba(0,0,0,.1));

		&.block {
			width: 100%;
		}
	}

    .invalid { border: 1px solid rgb(255, 0, 0) !important; }
    
    .overlay {
		background-color: #000;
		opacity: .7;
		filter: alpha(opacity=70);
		position: absolute; top: 0; left: 0;
		width: 100%; height: 100%;
		z-index: 10;
    }

    #notification {
    	background: #00aacc;
    	border: 1px solid #0095b3;
    	padding: 5px 10px;
    	color: #fff;
    	text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    	margin: 15px 0 -5px;
    	@include border-radius(3px);
    }
    
/*==========  Map Layout  ==========*/
	.map, .map-name {
		width:60%;	    
		float:left;
		overflow: hidden;
	}

	.map-search, .controll {
		float:right;
		width:38%;
	}
/*==========  Map Header  ==========*/
	.header {
		@include clearfix;
	}

	.map-save, .map-edit {
		float: right;
		overflow: hidden;

		strong { color: #808080; font-size: 14px; font-weight: normal; line-height: 38px; display: inline-block; margin: 0 18px 0 0; }
		button, strong { float: left; }
	}

	.top { 
		margin: 0 0 10px; 
		overflow: hidden; 
		
		input[type=text] {			
			padding-right: 75px;
			@include box-sizing(border-box);
		}
	}

	.map-search { position: relative; }

	.map-name input { font-size: 16px; }

/*==========  Map Content  ==========*/
    
    .content {
    	background: #f5f5f5;
		width:100%;
		min-height:500px;
		margin: 20px 0 0;
		position:relative;
	
		.inside { padding: 10px; @include clearfix; }
		
		.map, .controll { border: 1px solid #dbdbdb; }
		
		.controll { background: #fff; }

		#map-canvas { height: 600px; border: 1px solid #fff; }
		
		.remove-place { float:right; }	    
		
		.place-icon-selector {
		    .icon { float:left; }
		    
		    .description { text-size:10px;}
		}
    }

    .control-group {
    	@include clearfix;
    	margin: 0 0 14px;

    	&.last { margin: 0; }
		
		h3 {
			margin: 0 0 6px;
			color: #666666;
			font-weight: 700;
			font-size: 14px;
		}

		label { display: block; color: #666666; font-size: 14px; line-height: 28px; margin: 0 10px 0 0; }	
				
    	fieldset {    		
    		&.col { width: 48%; float: left; }
    		&.col2 { float: right; }    		

    		input { width: 100%; } 
    	}

    	.media-button {
    		margin: 0 0 10px;
    	}

    	.details {
    		background: #fff;
    		max-height: 100px;
    		min-height: 100px;
    	}
    }

	#center-details {
		input {
			width: 100%;			
			@include box-shadow(none);
		}

		.ui-spinner { display: block }
	}

	.ui-slider {
		&.ui-widget-content {
			background: #00aacc;
		}

		.ui-widget-header {
			background: #dfdfdf;
		}

		.ui-slider-handle {
			background: #008099;
			border: 1px solid #006a80;
			outline: none;
		}
	}

.map-details-textarea {
	.mceIframeContainer  {
		background: #fff;
	}

	.mceToolbar {
		@include border-radius( 3px 3px 0 0);
	}

	table.mceLayout {
		@include box-shadow(0 0 1px rgba(0,0,0,.2));
	}
}

/*==========  Map Accordion  ==========*/

	.ui-tabs {
		padding: 0;
		@include border-radius(0);

		.ui-tabs-nav {
			border-bottom: 1px solid #dbdbdb;
			@include border-radius(0); 
		}

		li {
			background: #f0f0f0;
			border: 0;
			border-right: 1px solid #dbdbdb;
			margin-right: 0;
			margin-top: 0;
			@include border-radius(0);

			&.ui-tabs-active {
				@include box-shadow(none);
				background: #fff;
				a { color: #4c4c4c; }

				&:hover { background: #fff; }
			}

			&:hover {
				background: #f0f0f0;
			}

			a { outline: none; color: #21759b; font-size: 13px; font-weight: 700;
				padding: 0 30px;
				line-height: 39px;
			}
		}

	}

 	.ui-widget-header {
 		background: #f0f0f0;
 		margin: 0;
 		padding: 0;
 		border: 0;

 		[class^="icon-"], [class*=" icon-"] {
			font-size: 20px;
			position: relative;
			margin: 0 10px 0 -10px;
			top: 3px;
		}
 	}

 	[class^="icon-"], [class*=" icon-"] {
 		font-family: FontAwesome;
 	}   
}
/*==========  Accordion  ==========*/
#map-editor .accordion {
	margin: 0 0 10px;

	.ui-accordion-header {
		border-color: #d6d6d6;
		background: #f5f5f5;
		margin-top: 10px;
		padding: 10px 13px 10px 35px;
		color: #808080;
		font-size: 14px;
		font-weight: 700;
		min-height: 40px;

		&.ui-accordion-header-active {
			background: #00aacc;
			border-color: #0095b3;
			color: #fff;

			.ui-accordion-header-icon  { background-position: -14px 0; }

			.remove { background-position: -11px 0; }
		}

		.ui-accordion-header-icon {
			width: 12px; height: 12px;
			background: url(../img/icons/state_icons.png) no-repeat 0 0;
			left: 13px;
			margin-top: -6px;
		}

		.remove {
			background: url(../img/icons/close_icons.png) no-repeat 0 0;
			width: 10px; height: 10px;
			position: absolute;
			top: 50%; right: 13px;
			margin-top: -5px;
			display: block;
			text-indent: -9999px;
		}
	}

	.ui-accordion-content {
		background: #fafafa;
		padding: 17px 10px 10px;
		border: solid #d6d6d6;
		border-width: 0 1px 1px;
	}
}

/*==========  Buttons  ==========*/

#map-editor .btn, .ui-dialog-buttonpane .ui-button {
	background: #00b1d0;
	color: #fff;
	display: inline-block;  
	padding: 6px 12px;
	margin-bottom: 0;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	border: 0;
	@include border-radius(3px);

	[class^="icon-"], [class*=" icon-"] {
		font-size: 12px;
		margin-right: 5px;
	}
  
  	// Hover/focus state
	  &:hover,
	  &:focus {
		background: #029cbb;
	  }

	  &:active {
	    outline: 0;    
	  }
	}

#map-editor {
	.btn.save, .btn.edit {
		background: #f25b52;
		background: -moz-linear-gradient(top,  #f25b52 0%, #ef4b43 100%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f25b52), color-stop(100%,#ef4b43));
		background: -webkit-linear-gradient(top,  #f25b52 0%,#ef4b43 100%);
		background: -o-linear-gradient(top,  #f25b52 0%,#ef4b43 100%);
		background: -ms-linear-gradient(top,  #f25b52 0%,#ef4b43 100%);
		background: linear-gradient(to bottom,  #f25b52 0%,#ef4b43 100%);
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f25b52', endColorstr='#ef4b43',GradientType=0 );
		padding: 8px 25px 7px 30px;
		font-size: 14px;
		font-weight: 700;

		.icon-save {
			margin: 0 5px 0 -5px;
			font-size: 14px;			
		}
	}

	button.btn,
	input[type="submit"].btn {

	  // Firefox 3.6 only I believe
	  &::-moz-focus-inner {
	    padding: 0;
	    border: 0;
	  }
	}

	/* search button */
	#btn-search {
		background: #00b1d0 url(../img/icons/search_icon.png) no-repeat center center;
		display: block;
		position: absolute;
		top: 0; right: 0;
		padding: 0; margin: 0;
		width: 68px; height: 28px;
		border: 1px solid #0095b3;
		text-indent: -9999px;
		@include border-radius(0 3px 3px 0);
	}

	.media-button {		
		line-height: 31px;
		padding: 0 12px;
		height: 31px;
		text-shadow: none;
	}

	.add {
		font-size: 14px;
		font-weight: 700;

		[class^="icon-"], [class*=" icon-"] {
			font-size: 14px;
		}
	}
}

// select 2

.select2-results {
	li:hover, li.select2-highlighted {
		background: #00aacc;
		color: #fff;

		.description { color: #fff; }
	}

	.place-icon-selector {
		overflow: hidden;

		img { float: left; margin: 0 5px 4px 0; }
	}
}


/*==========  Helper  ==========*/
.hide { display: none; }
.pull-left { float: left; }
.pull-right { float: right; }

/*==========  Dialogs  ==========*/
.ui-dialog.ui-widget {
	background: #fafafa;
	border-color: #dbdbdb;
	padding: 0;
	@include border-radius(3px);

	.ui-dialog-titlebar {
		background: #00aacc;
		border-color: #0095b3;
		color: #fff;
		@include border-radius(3px 3px 0 0);
	}

	.ui-dialog-titlebar-close {
		background: url(../img/icons/close_icons.png) no-repeat -11px 0;
		border: 0;
		margin: -5px 0 0;
		padding: 0;
		right: 10px;
		width: 10px; height: 10px;
		display: block;
		text-indent: -9999px;

		span { display: none; }
	}

	.ui-dialog-content {
		text-align: center;
		color: #666666;
	}

	.ui-dialog-buttonpane {
		background: #fafafa;
		@include border-radius(0 0 3px 3px);
		padding: 0 5px 5px;
		margin: 0;
		border: 0;

		.ui-button {
			font-size: 11px;
			line-height: 1.5;
			outline: 0;
			margin: 0 0 1px 5px;
			padding: 2px 10px;
		}
	}


}