/* used in map view - custom controls overlaying google maps, detail - controls below map image */

#mapcontrols {
	z-index: 1000000000;	/* Obnoxiously high to make sure the map controls float above pins, callouts, overlays, etc. */
	opacity: 1.0;
}

#mapcontrols a {
    width: 40px;
    height: 36px;
    display: block;
    margin-bottom: 2px;
    margin-right: 3px;
    background-image: url(/modules/map/images/buttons.png);
}
@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {
  /* Pixel-doubled versions to take advantage of Retina Displays and XHDPI displays */
  #mapcontrols a {
    background-image: url(/modules/map/images/buttons@2x.png);
    background-size: 240px 36px;
  }
  
}

#mapcontrols a img {
    width: 40px;
    height: 36px;
}

#zoomin {
    background-position: 0 0;
}

#zoomout {
    background-position: -40px 0;
}

#recenter {
    background-position: -120px 0;
}

#locateMe {
    background-position: -160px 0;
}

/*** expanding search bar ***/

#toolbar {
  height: 48px;
  margin: 0;
  padding: 0;
  -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  box-shadow: 0 1px 4px rgba(0,0,0,0.6);
	background-color: @@@body_background_color@@@;
}

/* empty div behind the #toolbar to align the top of the .mapimage */
#spacer {
    height: 48px;
}

#searchbar {
    margin: 0;
    padding: 6px 0 0 0;
    width: 100%;
    float: left;
}

#searchbar form {
	padding-top: 2px;
}

#searchbar fieldset {
    margin: 0;
}

#toolbar.single-campus {
    height: 86px;
}

#toolbar.multi-campus {
    height: 132px;
}

#toolbar .searchwrapper {
    left: 6px;
    right: 88px;
    position: absolute;
}

#toolbar.expanded .searchwrapper {
    left: 6px;
    right: 6px;
}

#search-form {
    margin: 0;
    width: 100%;
}

#search-form input[type="text"] {
	font-size: 88.3%;
	font-family: sans-serif;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
    border: 1px solid #888;
    width: 96%;
    line-height: 1.3em;
    height: 18px;
    padding: 4px 2% 6px 2%;
    border-color: @@@search_border_color@@@;
}

/* toolbar: browse/bookmark buttons to the right of the search field */
#toolbar.expanded #toolbar-buttons {
    display: none;
}

.toolbar {
	color: @@@nonfocal_text_color@@@;
}

.toolbar a, .toolbar a:visited, .toolbar input[type="button"] {
	color: @@@nonfocal_text_color@@@;
}

.toolbar-button {
    float: right;
    margin: 0 4px 0 0;
	text-align: center;
}

.toolbar-button a {
	display: block;
    width: 35px;
    height: 28px;
	border: 1px solid rgba(0,0,0,0.15);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.toolbar-button a img {
	padding: 2px 5px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

/* campus-select: the drop-down menu in multi-campus case */
#campus-select td {
    padding: 0;
}

#campus-select .formlabel {
    width: 82px;
    vertical-align: middle;
}

#campus-select select {
  max-height: 2em;
  overflow: hidden;
}


/* search-options: search/clear/cancel buttons below the search bar */
#search-options {
    display: none;
    left: 0;
    padding: 6px;
    position: absolute;
    right: 0;
    top: 32px;
}

#toolbar.expanded #search-options {
    display: block;
}

/*
#search-options input[type="button"] {
   -webkit-appearance: none;
   padding: 0;
   height: 30px;
   border: 1px solid #666;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
   width: 90%;
   font: 16px/1em sans-serif;
   background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255,255,255,0.2)), to(rgba(0,0,0,0.1)));
   -webkit-box-shadow: 0px 0.5px 1px #000;
   box-shadow: 0px 0px 1px #000;
}
*/
#search-options input[type="button"] {
   -webkit-appearance: none;
   padding: 0;
   height: 30px;
   width: 90%;
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,.25)), to(rgba(128,128,128,0.2)));
	border: 1px solid #eee;
	border: 1px solid rgba(0,0,0,0.25);
	border-bottom-color: rgba(0,0,0,0.4);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #444;
	font-size: 75%;
	line-height: 20px;
	text-transform: uppercase;
	text-decoration: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	color: @@@nonfocal_text_color@@@;
}

#search-options input[type="button"].pressedaction {
	background: rgba(0,0,0,0.33);
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.18)), to(rgba(0,0,0,0.12)));
	border-color: rgba(0,0,0,0.65);
	border-top-color: rgba(0,0,0,0.75);
	border-bottom-color: rgba(0,0,0,0.5);
	color: #000;
	-webkit-box-shadow: inset 0 1px 3px #000;
	box-shadow: inset 0 1px 3px #000;
}

#searchbar-buttons {
    clear: both;
    height: 32px;
    margin: 0 -4px 0 -4px;
}

#searchbar-buttons div {
	text-align: center;
    width: 33.3%;
    float: left;
}

/*** fullscreen map styles ***/

body.fullscreen .mapimage.image {
    min-height: none;
    width: 100%;
    border: none;
    display: block !important;
    overflow: hidden;
}

/* don't want map to resize when this shows */
body.fullscreen #toolbar {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
}

body.fullscreen #tabscontainer {
    padding: 6px 12px;
}

#bookmarkWrapper {
    margin: 6px 0;
}

.infoBox, .mapimage .simpleInfoWindow {
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding: 0;
	-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.7);
	box-shadow: 0 1px 5px rgba(0,0,0,0.7);
	height: auto!important;
}

.mapimage .simpleInfoWindow {
  width: 200px!important;
  margin-left: -110px; /* Not sure why, but ArcGIS map JS places the bubble 10px too far to the right, so we need to move it by (1/2 its width) + 10px to the left */
  background-color: #ffffff;
  background-color: rgba(255,255,255,0.93);
}

.infoBox img {
	display: none;
}

.calloutMain {
	display: table;
	height: 100%;
	width: 100%;
}

.calloutMain a {
	display: table-cell;
	vertical-align: middle;
	width: 100%;
	height: 100%;
	text-decoration: none;
	font-size: 15px;
	line-height: 18px;	
	text-align: left;
	padding: 8px 37px 8px 8px;
	background: url(/modules/map/images/map-callout.png) no-repeat right;
	background-size: 35px 31px;
	overflow: hidden;
}

.calloutMain a, .calloutMain a:visited {
	color: #111;
}

.calloutDisclosure {
    margin: 6px 0;
}

.calloutTail {
	position: absolute;
	bottom: -10px;
	width: 12px;
	height: 10px;
	left: 50%;
	margin-left: -6px;
	background: url(/modules/map/images/callout-tail.png) no-repeat center;
	background-size: 12px 10px;
}	

#mapimage_infowindow {
    height: auto !important;
    width: 180px !important;
	border: none;
	padding: 0;
	-webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.6);
	box-shadow: 0 1px 4px rgba(0,0,0,0.6);
	margin-left: -100px;
	line-height: 1.2em;
}

.mapimage .content {
    height: auto !important;
	overflow: hidden;
}

.mapimage .simpleInfoWindow .calloutMain a {
	font-size: 14px; 
	line-height: 16px;
	padding-top: 6px;
}

.mapimage .simpleInfoWindow .title {
    border: none;
    padding: 0;
}

.mapimage .simpleInfoWindow .close {
    display: none;
}


/* Action buttons */

.actionbuttons {
	margin: 10px -2px 10px -2px;
}	
.actionbutton {
	margin: 0 2px;
	float: left;
}
.actionbutton a {
	display: block;
	padding: 5px 6px 5px 6px;
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,.15)), to(rgba(128,128,128,0.15)));
	border: 1px solid #eee;
	border: 1px solid rgba(0,0,0,0.12);
	border-top-color: #f3f3f3;
	border-bottom-color: #e9e9e9;
	border-top-color: rgba(0,0,0,0.1);
	border-bottom-color: rgba(0,0,0,0.2);
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	color: #444;
	font-size: 70%;
	line-height: 20px;
	height: 20px;
	vertical-align: middle;
	text-transform: uppercase;
	text-decoration: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

.actionbutton a, .actionbutton a:visited {
	color: @@@nonfocal_text_color@@@;
}
.actionbutton a img {
	float: left;
	margin-left: -4px;
}
.actionbutton a:active, .actionbutton a.pressedaction {
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0.18)), to(rgba(0,0,0,0.12)));
	border-color: rgba(0,0,0,0.65);
	border-top-color: rgba(0,0,0,0.75);
	border-bottom-color: rgba(0,0,0,0.5);
	color: #000;
	-webkit-box-shadow: inset 0 1px 3px #000;
	box-shadow: inset 0 1px 3px #000;
}
.bookmarkbutton {
	background: url(/modules/map/images/map-button-favorites.png) 4px 3px no-repeat;
	background-size: 24px 24px;
}
.on {
	background-image: url(/modules/map/images/map-button-favorites-on.png);
}
.bookmarkbutton a {
	padding-left: 28px;
}
.viewall {
	float: right;
	margin: 0 0 0 15px;
}
