/**
 * ------------------------------------------------------------------------
 * JA Image Hotspot Module for Joomla 2.5 & 3.2
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * ------------------------------------------------------------------------
 */

.jai-map-container {
  display: inline-block;
  max-width: 100%;
  position: relative;
}

.jai-map-container img {
  max-width: 100%;
}

/* ++ MARKER ++ */
.jai-map-container .point {
  background: url(../images/icon-marker-default.png) no-repeat left top;
  height: 24px;
  width: 24px;
  position: absolute;
  z-index: 999;
}
.always-popup .point {
    z-index: 1009;
}
.hover-popup .point {
    z-index: 999;
}

.jai-map-container .ja-marker-default {
  background: url("../images/icon-marker-default.png");
}

.jai-map-container .ja-marker-cloud {
  background: url("../images/icon-marker-cloud.png");
}

.jai-map-container .ja-marker-study {
  background: url("../images/icon-marker-study.png");
}

.jai-map-container .ja-marker-star {
  background: url("../images/icon-marker-star.png");
}

.jai-map-container .ja-marker-truck {
  background: url("../images/icon-marker-truck.png");
}


.jai-map-container .ja-marker-default_orange {
  background: url("../images/colors/orange/icon-marker-default.png");
}

.jai-map-container .ja-marker-cloud_orange {
  background: url("../images/colors/orange/icon-marker-cloud.png");
}

.jai-map-container .ja-marker-study_orange {
  background: url("../images/colors/orange/icon-marker-study.png");
}

.jai-map-container .ja-marker-star_orange {
  background: url("../images/colors/orange/icon-marker-star.png");
}

.jai-map-container .ja-marker-truck_orange {
  background: url("../images/colors/orange/icon-marker-truck.png");
}


.jai-map-container .ja-marker-default_red {
  background: url("../images/colors/red/icon-marker-default.png");
}

.jai-map-container .ja-marker-cloud_red {
  background: url("../images/colors/red/icon-marker-cloud.png");
}

.jai-map-container .ja-marker-study_red {
  background: url("../images/colors/red/icon-marker-study.png");
}

.jai-map-container .ja-marker-star_red {
  background: url("../images/colors/red/icon-marker-star.png");
}

.jai-map-container .ja-marker-truck_red {
  background: url("../images/colors/red/icon-marker-truck.png");
}

/* -- MARKER -- */

.jai-map-container .point  span.hide {
  display: none;
}

.jai-map-container .point:hover,
.jai-map-container .point:focus,
.jai-map-container .point:active {
  text-decoration: none;
}

.hidden {
  display: none;
}

.cd-dropdown,
.cd-select {
  display: block;
  min-width: 180px;
  position: relative;
  font-size:13px;
}

.cd-dropdown > span {
  background: #fff;
  color: #01a3d4;
  cursor: pointer;
  display: inline-block;
  min-width: 180px;
  padding: 5px 0 5px 0;
  position: relative;
  text-indent: 10px;
}

.cd-dropdown > span:after {
  background: #06b8ed;
  color: #fff;
  content: '\25BC';
  font-size: 12px;
  margin-left: 10px;
  padding: 5px 8px 5px 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
}

.cd-dropdown.cd-active > span:after {
  content: '\25B2';
}

.cd-dropdown ul {
  background: #222;
  display: block;
  list-style-type: none;
  margin: 0;
  min-width: 180px;
  padding: 0;
  z-index:1000;
  overflow: hidden;
}

.cd-dropdown ul li {
  display: block;
}

.cd-dropdown ul li span {
  color: #666;
  cursor: pointer;
  display: inline-block;
  font-weight: normal;
  padding: 4px 14px;
  white-space: nowrap;
}

.cd-dropdown > span,
.cd-dropdown ul li span {
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-backface-visibility: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.cd-dropdown > span span[class^="icon-"],
.cd-dropdown > span span[class*=" icon-"]{
  padding: 0 30px 0 45px;
}

.cd-dropdown ul {
  position: absolute;
  top: 2px;
}

.cd-dropdown ul li {
  position: absolute;
  width: 100%;
}

.cd-active.cd-dropdown > span {
  color: #01a3d4;
}

.cd-active.cd-dropdown ul li span {
  -moz-transition: all 0.2s linear 0s;
  -ms-transition: all 0.2s linear 0s;
  -o-transition: all 0.2s linear 0s;
  transition: all 0.2s linear 0s;
  -webkit-transition: all 0.2s linear 0s;
}

.cd-active.cd-dropdown ul li:hover span,
.cd-active.cd-dropdown ul li span:hover {
  color: #fff;
}

/* POSITION OF DROPDOWN
--------------------------------------- */
.jai-map-wrap {
  position: relative;
}

.jai-map-wrap .top-left,
.jai-map-wrap .top-right,
.jai-map-wrap .bottom-left,
.jai-map-wrap .bottom-right {
   float: left;
   width: 100%;
}

/* Top right */
.jai-map-wrap .top-right .cd-dropdown {
  float: right;
}

/* Bottom right */
.jai-map-wrap .bottom-right .cd-dropdown {
  float: right;
}

/* Middle left */
.jai-map-wrap .middle-left {
  left: 0;
  margin-top: -15px;
  position: absolute;
  top: 50%;
}

/* Middle right */
.jai-map-wrap .middle-right {
  margin-top: -15px;
  position: absolute;
  right: 0;
  top: 50%;
}

/*Popup*/
.jai-map-container .popover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1010;
    display: none;
    max-width: 276px;
    padding: 1px;
    text-align: left;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    white-space: normal;
}
.jai-map-container .popover.top {
    margin-top: -10px;
}
.jai-map-container .popover.right {
    margin-left: 5px;
}
.jai-map-container .popover.bottom {
    margin-top: 5px;
}
.jai-map-container .popover.left {
    margin-left: -5px;
}
.jai-map-container .popover.top .arrow {
    left: 50%;
    margin-left: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    bottom: -10px;
}
.jai-map-container .popover.right .arrow {
    top: 50%;
    left: 0;
    margin-top: -5px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #fff;
}
.jai-map-container .popover.bottom .arrow {
    top: 0;
    left: 50%;
    margin-left: -5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}
.jai-map-container .popover.left .arrow {
    top: 50%;
    right: 0;
    margin-top: -5px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #fff;
}
.jai-map-container .popover .arrow {
    position: absolute;
    width: 0;
    height: 0;
}
.jai-map-container .popover-inner {
    padding: 3px;
    width: 280px;
    overflow: hidden;
    background: #000000;
    background: rgba(0, 0, 0, 0.8);
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}
.jai-map-container .popover-title {
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #ebebeb;
    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
    -moz-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
}
.jai-map-container .popover-content {
    padding: 14px;
    background-color: #ffffff;
    -webkit-border-radius: 0 0 3px 3px;
    -moz-border-radius: 0 0 3px 3px;
    border-radius: 0 0 3px 3px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
}
.jai-map-container .popover-content p, .jai-map-container .popover-content ul, .jai-map-container .popover-content ol {
    margin-bottom: 0;
}

.jai-map-container.hover-popup .popover .x-close {
    display: none;
}
.jai-map-container .popover .x-close {
    background: url("../images/close.png") center center no-repeat;
    display: block;
    width: 16px;
    height: 16px;
    border: none;
    position: absolute;
    top: -8px;
    right: -8px;
    cursor: pointer;
}
.jai-map-container .popover .x-close span {
    display: block;
    text-indent: -999px;
}
