html { overflow: hidden; }

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	margin: 0px 8px 0px 8px;
	font-family: Arial, sans-serif;
	color: #333;
}

a:link, a:visited, a:active {
	color: #113397;
	text-decoration: none;
}

a:hover { color: #CC3333; text-decoration: none; }

#content {
	margin-top: 5px;
	position: relative;
}

.noShow {
	visibility: hidden;
	display: none;
}

/* @group header */

#header { height: 90px; }

#header .logo {
	position: absolute;
	width: 300px;
	height: 58px;
	top: 25px;
	left: 8px;
}

#header .search {
	position: absolute;
	top: 47px;
	left: 355px;
}

#header .search span {
	color: gray;
	font-size: small;
}

#header .affiliates {
	position: absolute;
	top: 3px;
	right: 8px;
	font-size: small;
}

#header .links {
	position: absolute;
	top: 3px;
	left: 8px;
	font-size: small;
}

#header div#promotion {
	position: absolute;
	width: 234px;
	height: 60px;
	top: 25px;
	right: 8px;
}

#search-box {
	position: absolute;
	top: 35px;
	left: 40%;
}

#sponsor {
	font-size: small;
	margin: 1px;
	padding: 3px 3px 3px 5px;
	background-color: #9ccbfd;
}

/* @end */

/* @group alert and message */

#alert {
	position: absolute;
	top: 40%;
	left: 0;
	width: 100%;
	text-align: center;
	display: none;
}

#alert p {
	width: 250px;
	margin: 0 auto 0 auto;
	padding: 10px;
	background: white;
	border: 1px solid #aaa;
}

#message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	display: block;
	visibility: hidden;
	background: url("/treasures/images/background-trans.png");
}

#message p {
	width: 450px;
	margin: 0 auto 0 auto;
	padding: 10px;
	background: white;
	border: 1px solid blue;
}

#message table {
	position: relative;
	top: 40%;
	width: 480px;
	margin: 0 auto 0 auto;
	padding: 10px;
	background: #FFFFFF;
	border: 1px solid #3366CC;
}

/* @end */

/* @group map */

#map {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	border: 1px solid #CCC;
	overflow: hidden;
}

#map-wrapper {
	position: relative;
	height: 100%;
}

/* @end */

/* @group info windows */

#infoWindow {
	font-size: small;
	margin-right: 5px;
	padding: 0px;
}

#infoWindow .title {
	font-size: medium;
	font-weight: bold;
}

.infoDetail {
	width: 250px;
	border-bottom: 1px solid #333;
	padding: 5px 0px 5px 0px;
}

/* @end */

/* @group sidebar */
#sidebar {
	position: absolute;
	border: 1px solid #CCC;
	top: 185px;
	width: 330px;
	height: 100%;
	overflow: auto;
	right: 0px;
}

#sidebar div#results {
	font-size: small;
	margin: 2px;
	padding: 4px;
	background-color: #EEE;
}

#sidebar div#listsponsor {
	font-size: small;
	margin: 2px;
	padding: 4px;
	background-color: #6699CC;
	text-align: center;
}

ul#sidebar-list {
	list-style: none;
	font-size: small;
	margin: 0;
	padding: 0;
}

ul#sidebar-list li {
	display: block;
	margin: 0;
	padding: 4px;
	line-height: 15px;
	font-size: .9em;
	text-decoration: none;
	border-bottom: 1px solid #CCC;
	background-color: #FFF;
}

ul#sidebar-list li a {
	display: block;
}

ul#sidebar-list li.current { background-color: #EEE; }
ul#sidebar-list li span { color: #333; }

/* @end */
/* @group sidebar-route */
#sidebar-route {
	position: absolute;
	top: 110px;
	width: 330px;
	height: 200px;
	right: 0px;
	overflow: auto;
	border: 1px solid #CCC;
}

#route-nav {
	position: absolute;
	top: 0px;
	width: 330px;
	height: 25px;
	right: 0px;
	margin: 0;
	padding: 0;
	line-height: 25px;
	background-color: #6699CC;
	border: 1px solid #CCC;
}

#route-nav .inner {
	color: #FFF;
	font-size: 0.9em;
	text-align: right;
	padding: 0 4px 0 0;
	font-weight: bold;
}

#route-nav a:link, #route-nav a:visited, #route-nav a:active {
	color: #FFF;
	font-weight: bold;
}

#route-start {
	position: absolute;
	top: 30px;
	width: 330px;
	height: 75px;
	right: 0;
	font-size: 0.8em;
	border: 1px solid #CCC;
}

#sidebar-route ul#route-list {
	list-style: none;
	font-size: small;
	margin: 2px;
	padding: 0;
	background-color: #6699CC;
}

#sidebar-route ul#route-list li {
	display: block;
	margin: 0px;
	padding: 4px 4px 4px 20px;
	line-height: 25px;
	font-size: .9em;
	border-bottom: 1px solid #CCC;
	text-decoration: none;
	background: #EEE url(treasures/images/drag_handle_black.png) no-repeat 5px 5px;
}

#directions {
	position: absolute;
	top: 315px;
	width: 330px;
	height: 100%;
	right: 0;
	background-color: #FFF;
	border: 1px solid #CCC;
	overflow: auto;
}

#route-directions table { font-size: .8em; }
#route-start .inner { 
	margin: 2px;
	padding: 4px;
	background: #6699CC;
}
#route-start .inner span { line-height: 20px; }
.sortableitem { cursor: move; }
#route-list-start td { font-size: small; }

/* @end */

/* @group calendar */
#calendar {position: absolute;top: 0;right: 0;width: 330px;margin-bottom: 8px;}
table.cal_month_calendar {width: 330px;height: 180px;padding: 0;border-left: 1px solid #75808A;}
table.cal_month_calendar td {font-size: 0.8em;text-align: center;width: 14.29%;border-bottom: 1px solid #75808A;border-right: 1px solid #75808A;}
table.cal_month_calendar td:hover { background-color: #ddd; }
.cal_not_in_month {background-color:#fff;color: #ddd;}
.cal_active_event { background-color: #F1F2F3; }
.cal_active_event a {display: block;}
.cal_current_date { font-weight:bold;font-size:1.2em;background:#D4E6F7;}
.cal_current_date a { color:#369; }
.cal_selected_date { font-weight:bold;font-size:1.2em;background:#6699CC;}
.cal_selected_date a { color: #CC3333; }
th.cal_head_month {text-align: right;padding: 2px 5px 2px 0;background-color:#6699CC;font-size: 0.8em;}
th.cal_head_nav {background-color:#6699CC;text-align: left;padding: 2px 0 2px 5px;font-size: 0.8em;color: #000;}
th.cal_head_nav a a:link {color:#000;}
tr.cal_head {background-color:#6699CC;color: #fff;}
tr.cal_head a {color: #fff;}
tr.cal_day_head th {border-bottom: 1px solid #75808A;border-top: 1px solid #75808A;border-right: 1px solid #75808A;font-size: x-small;text-align: center;line-height: 10px;background-color:#C8CCD0;}
/* @end */

/* @group body */

body.sidebar-right { background-color: #FFF; }
body.sidebar-right #map-wrapper { margin-right: 335px; }
body.sidebar-right #sidebar, body.sidebar-right #sidebar-route, body.sidebar-right #route-start, body.sidebar-right #directions, body.sidebar-right #route-nav { right: 0; }
body.sidebar-right #sidebar-route, body.sidebar-right #route-start, body.sidebar-right #directions, body.sidebar-right #route-nav { display: none; }
body.nosidebar #map-wrapper { margin-right: 335px; }
body.nosidebar #sidebar, body.nosidebar #calendar { display: none; }
body.sidebar-right a#button-sidebar-calendar, body.nosidebar a#button-sidebar-route { display: none; }

body.loading #alert { display: block; }

/* @end */

/* @group toolbar */
#toolbar {padding: 2px;height: 20px;position: relative;border-top: 1px solid #999;background: #6699CC;font-family: Arial, sans serif;}
#toolbar ul {list-style: none;padding: 0;margin: 0;}
#toolbar ul#sidebar-controls {position: absolute;bottom: 4px;right: 0px;}
#toolbar ul#filters {position: absolute;bottom: 4px;left: 0px;text-transform: lowercase;}
#toolbar ul li {display: inline;font-size: small;}
#toolbar ul li a {padding: 3px 6px;font-size: small;}

/* @end */
