/* required styles */

.tsmap-pane,
.tsmap-tile,
.tsmap-marker-icon,
.tsmap-marker-shadow,
.tsmap-tile-container,
.tsmap-pane > svg,
.tsmap-pane > canvas,
.tsmap-zoom-box,
.tsmap-image-layer,
.tsmap-layer {
    position: absolute;
    left: 0;
    top: 0;
}

.tsmap-container {
    overflow: hidden;
}

.tsmap-tile,
.tsmap-marker-icon,
.tsmap-marker-shadow {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.tsmap-safari .tsmap-tile {
    image-rendering: -webkit-optimize-contrast;
}

/* hack that prevents hw layers "stretching" when loading new tiles */
.tsmap-safari .tsmap-tile-container {
    width: 1600px;
    height: 1600px;
    -webkit-transform-origin: 0 0;
}

.tsmap-marker-icon,
.tsmap-marker-shadow {
    display: block;
}

/* .tsmap-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .tsmap-container img: map is broken in FF if you have max-width: 100% on tiles */
.tsmap-container .tsmap-overlay-pane svg,
.tsmap-container .tsmap-marker-pane img,
.tsmap-container .tsmap-shadow-pane img,
.tsmap-container .tsmap-tile-pane img,
.tsmap-container img.tsmap-image-layer {
    max-width: none !important;
}

.tsmap-container.tsmap-touch-zoom {
    -ms-touch-action: pan-x pan-y;
    touch-action: pan-x pan-y;
}

.tsmap-container.tsmap-touch-drag {
    -ms-touch-action: pinch-zoom;
}

.tsmap-container.tsmap-touch-drag.tsmap-touch-zoom {
    -ms-touch-action: none;
    touch-action: none;
}

.tsmap-container {
    -webkit-tap-highlight-color: transparent;
}

.tsmap-container a {
    -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}

.tsmap-tile {
    filter: inherit;
    visibility: hidden;
}

.tsmap-tile-loaded {
    visibility: inherit;
}

.tsmap-zoom-box {
    width: 0;
    height: 0;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 800;
}

/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.tsmap-overlay-pane svg {
    -moz-user-select: none;
}

.tsmap-pane {
    z-index: 400;
}

.tsmap-tile-pane {
    z-index: 200;
}

.tsmap-overlay-pane {
    z-index: 400;
}

.tsmap-shadow-pane {
    z-index: 500;
}

.tsmap-marker-pane {
    z-index: 600;
}

.tsmap-tooltip-pane {
    z-index: 650;
}

.tsmap-popup-pane {
    z-index: 700;
}

.tsmap-map-pane canvas {
    z-index: 200;
}

.tsmap-map-pane svg {
    z-index: 200;
}

.tsmap-vml-shape {
    width: 1px;
    height: 1px;
}

.lvml {
    behavior: url(#default#VML);
    display: inline-block;
    position: absolute;
}

/* control positioning */

.tsmap-control {
    position: relative;
    z-index: 800;
    pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
    pointer-events: auto;
}

.tsmap-top,
.tsmap-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.tsmap-top {
    top: 0;
}

.tsmap-right {
    right: 0;
}

.tsmap-bottom {
    bottom: 0;
}

.tsmap-left {
    left: 0;
}

.tsmap-control {
    float: left;
    clear: both;
}

.tsmap-right .tsmap-control {
    float: right;
}

.tsmap-top .tsmap-control {
    margin-top: 10px;
}

.tsmap-bottom .tsmap-control {
    margin-bottom: 10px;
}

.tsmap-left .tsmap-control {
    margin-left: 10px;
}

.tsmap-right .tsmap-control {
    margin-right: 10px;
}

/* zoom and fade animations */

.tsmap-fade-anim .tsmap-tile {
    will-change: opacity;
}

.tsmap-fade-anim .tsmap-popup {
    opacity: 0;
    -webkit-transition: opacity 0.2s linear;
    -moz-transition: opacity 0.2s linear;
    -o-transition: opacity 0.2s linear;
    transition: opacity 0.2s linear;
}

.tsmap-fade-anim .tsmap-map-pane .tsmap-popup {
    opacity: 1;
}

.tsmap-zoom-animated {
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
}

.tsmap-zoom-anim .tsmap-zoom-animated {
    will-change: transform;
}

.tsmap-zoom-anim .tsmap-zoom-animated {
    -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
    -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
    -o-transition: -o-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
    transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
}

.tsmap-zoom-anim .tsmap-tile,
.tsmap-pan-anim .tsmap-tile {
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
}

.tsmap-zoom-anim .tsmap-zoom-hide {
    visibility: hidden;
}

/* cursors */

.tsmap-interactive {
    cursor: pointer;
}

.tsmap-grab {
    cursor: -webkit-grab;
    cursor: -moz-grab;
}

.tsmap-crosshair,
.tsmap-crosshair .tsmap-interactive {
    cursor: crosshair;
}

.tsmap-popup-pane,
.tsmap-control {
    cursor: auto;
}

.tsmap-dragging .tsmap-grab,
.tsmap-dragging .tsmap-grab .tsmap-interactive,
.tsmap-dragging .tsmap-marker-draggable {
    cursor: move;
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
}

/* marker & overlays interactivity */
.tsmap-marker-icon,
.tsmap-marker-shadow,
.tsmap-image-layer,
.tsmap-pane > svg path,
.tsmap-tile-container {
    pointer-events: none;
}

.tsmap-marker-icon.tsmap-interactive,
.tsmap-image-layer.tsmap-interactive,
.tsmap-pane > svg path.tsmap-interactive {
    pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
    pointer-events: auto;
}

/* visual tweaks */

.tsmap-container {
    background: #ddd;
    outline: 0;
}

.tsmap-container a {
    color: #0078A8;
}

.tsmap-container a.tsmap-active {
    outline: 2px solid orange;
}

.tsmap-zoom-box {
    border: 2px dotted #38f;
    background: rgba(255, 255, 255, 0.5);
}

/* general typography */
.tsmap-container {
    font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}

/* general toolbar styles */

.tsmap-bar {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    border-radius: 0px;
}

.tsmap-bar a,
.tsmap-bar a:hover {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    width: 26px;
    height: 26px;
    line-height: 26px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: black;
}

.tsmap-bar a,
.tsmap-control-layers-toggle {
    background-position: 50% 50%;
    background-repeat: no-repeat;
    display: block;
}

.tsmap-bar a:hover {
    background-color: #f4f4f4;
}

.tsmap-bar a:first-child {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.tsmap-bar a:last-child {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom: none;
}

.tsmap-bar a.tsmap-disabled {
    cursor: default;
    background-color: #f4f4f4;
    color: #bbb;
}

.tsmap-touch .tsmap-bar a {
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.tsmap-touch .tsmap-bar a:first-child {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.tsmap-touch .tsmap-bar a:last-child {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

/* zoom control */

.tsmap-control-zoom-in,
.tsmap-control-zoom-out {
    font: bold 18px 'Lucida Console', Monaco, monospace;
    text-indent: 1px;
}

.tsmap-control-zoom-out {
    font-size: 20px;
}

.tsmap-touch .tsmap-control-zoom-in {
    font-size: 22px;
}

.tsmap-touch .tsmap-control-zoom-out {
    font-size: 24px;
}

/* layers control */

.tsmap-control-layers {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    background: #fff;
    border-radius: 0px;
}

.tsmap-control-layers-toggle {
    background-image: url(../../img/gis/layers.png);
    /*width: 36px;
    height: 36px;*/
    width: 30px;
    height: 44px;
}

.tsmap-retina .tsmap-control-layers-toggle {
    background-image: url(../../img/gis/layers-2x.png);
    background-size: 26px 26px;
}



.tsmap-control-layers .tsmap-control-layers-list,
.tsmap-control-layers-expanded .tsmap-control-layers-toggle {
    display: none;
}

.tsmap-control-layers-expanded .tsmap-control-layers-list {
    display: block;
    position: relative;
}

.tsmap-control-layers-scrollbar {
    overflow-y: scroll;
    padding-right: 5px;
}

.tsmap-control-layers-selector {
    margin-top: 2px;
    position: relative;
    top: 1px;
}

.tsmap-control-layers label {
    display: block;
    float: left;
}

/*지도 추가 레이어 확장*/
.tsmap-control-layers-expanded {
    padding: 0px 0px 0px 6px;
    color: #333;
    background: #fff;
    width: 160px;
    height: 44px;
}

/*지도 레이어 (기본지도, 위성지도)*/
.tsmap-control-layers-base {
    width: 80px;
    float:left;
}

/*지도 추가 레이어 (노드링크, 용도구역)*/
.tsmap-control-layers-overlays {
    width: 80px;
    float:left;
}

.tsmap-control-layers-separator {
    height: 0;
    margin: 5px -10px 5px -6px;
}

/* Default icon URLs */
.tsmap-default-icon-path {
    background-image: url(../../images/gis/marker-icon.png);
}

/* attribution and scale controls */

.tsmap-container .tsmap-control-attribution {
    background: #fff;
    background: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.tsmap-control-attribution,
.tsmap-control-scale-line {
    padding: 0 5px;
    color: #333;
}

.tsmap-control-attribution a {
    text-decoration: none;
}

.tsmap-control-attribution a:hover {
    text-decoration: underline;
}

.tsmap-container .tsmap-control-attribution,
.tsmap-container .tsmap-control-scale {
    font-size: 11px;
}

.tsmap-left .tsmap-control-scale {
    margin-left: 5px;
}

.tsmap-bottom .tsmap-control-scale {
    margin-bottom: 5px;
}

.tsmap-control-scale-line {
    border: 2px solid #777;
    border-top: none;
    line-height: 1.1;
    padding: 2px 5px 1px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    background: #fff;
    background: rgba(255, 255, 255, 0.5);
}

.tsmap-control-scale-line:not(:first-child) {
    border-top: 2px solid #777;
    border-bottom: none;
    margin-top: -2px;
}

.tsmap-control-scale-line:not(:first-child):not(:last-child) {
    border-bottom: 2px solid #777;
}

.tsmap-touch .tsmap-control-attribution,
.tsmap-touch .tsmap-control-layers,
.tsmap-touch .tsmap-bar {
    box-shadow: none;
}

.tsmap-touch .tsmap-control-layers,
.tsmap-touch .tsmap-bar {
    border: 1px solid rgba(0, 0, 0, 0.3);
    background-clip: padding-box;
}

/* popup */

.tsmap-popup {
    position: absolute;
    text-align: center;
    margin-bottom: 20px;
}

.tsmap-popup-content-wrapper {
    padding: 1px;
    text-align: left;
    /*border-radius: 12px;*/
}

.tsmap-popup-content {
    /*margin: 13px 19px;*/
    line-height: 1.3;
}

.tsmap-popup-content p {
    /*margin: 18px 0;*/
}

.tsmap-popup-tip-container {
    width: 40px;
    height: 20px;
    position: absolute;
    left: 50%;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
}

.tsmap-popup-tip {
    width: 17px;
    height: 17px;
    padding: 1px;

    margin: -10px auto 0;

    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.tsmap-popup-content-wrapper,
.tsmap-popup-tip {
    background: white;
    color: #333;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.tsmap-container a.tsmap-popup-close-button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 4px 0 0;
    border: none;
    text-align: center;
    width: 18px;
    height: 14px;
    font: 20px/14px Tahoma, Verdana, sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    background: transparent;
}

.tsmap-container a.tsmap-popup-close-button:hover {
    color: #014682;
}

.tsmap-popup-scrolled {
    overflow: auto;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

.tsmap-oldie .tsmap-popup-content-wrapper {
    zoom: 1;
}

.tsmap-oldie .tsmap-popup-tip {
    width: 24px;
    margin: 0 auto;

    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
    filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}

.tsmap-oldie .tsmap-popup-tip-container {
    margin-top: -1px;
}

.tsmap-oldie .tsmap-control-zoom,
.tsmap-oldie .tsmap-control-layers,
.tsmap-oldie .tsmap-popup-content-wrapper,
.tsmap-oldie .tsmap-popup-tip {
    border: 1px solid #999;
}

/* div icon */

.tsmap-div-icon {
    background: #fff;
    border: 1px solid #666;
}

/* Tooltip */
/* Base styles for the element that has a tooltip */
.tsmap-tooltip {
    position: absolute;
    padding: 6px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 0px;
    color: #222;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.tsmap-tooltip.tsmap-clickable {
    cursor: pointer;
    pointer-events: auto;
}

.tsmap-tooltip-top:before,
.tsmap-tooltip-bottom:before,
.tsmap-tooltip-left:before,
.tsmap-tooltip-right:before {
    position: absolute;
    pointer-events: none;
    border: 6px solid transparent;
    background: transparent;
    content: "";
}

/* Directions */

.tsmap-tooltip-bottom {
    margin-top: 6px;
}

.tsmap-tooltip-top {
    margin-top: -6px;
}

.tsmap-tooltip-bottom:before,
.tsmap-tooltip-top:before {
    left: 50%;
    margin-left: -6px;
}

.tsmap-tooltip-top:before {
    bottom: 0;
    margin-bottom: -12px;
    border-top-color: #fff;
}

.tsmap-tooltip-bottom:before {
    top: 0;
    margin-top: -12px;
    margin-left: -6px;
    border-bottom-color: #fff;
}

.tsmap-tooltip-left {
    margin-left: -6px;
}

.tsmap-tooltip-right {
    margin-left: 6px;
}

.tsmap-tooltip-left:before,
.tsmap-tooltip-right:before {
    top: 50%;
    margin-top: -6px;
}

.tsmap-tooltip-left:before {
    right: 0;
    margin-right: -12px;
    border-left-color: #fff;
}

.tsmap-tooltip-right:before {
    left: 0;
    margin-left: -12px;
    border-right-color: #fff;
}


.tsmap-control-layers.tsmap-control {height:85px;}
.tsmap-control-layers-toggle {height:85px;}
.tsmap-control-layers-base {margin-top:-2px;}
.tsmap-control-layers-base input{vertical-align: initial !important;}
.tsmap-control-layers-overlays input{vertical-align: initial !important;}