#map_area {
    margin-top: 50px;    
}

body.width_980 #map_container {
    width: 940px;
}

#map_container {
    position: relative;
    display: block;
    width: 1015px;
    height: 600px;
    overflow: hidden;    
    white-space: nowrap;
    cursor: move;
    border: 3px solid #dadada;
    background-image: url('/mapdata/img/loading.gif');
    background-repeat: repeat;
}

#map_container.mode_place {
    cursor: none;
}

#map_container.mode_loc_select .map_location {
    cursor: pointer;
}

#map_container.mode_loc_select .map_location:hover {
    color: #B52600;
}

.terrain_wrapper {
    line-height: 0px;
}

.map_tile {
    position: relative;
    display: inline-block;
}

#map_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#map_container img {
    margin: 0;
    padding: 0;
}

#marker {
    position: absolute;
    top: -1000px;
    left: -1000px;
    z-index: 100000;
    background-image: url('/mapdata/img/marker_bg.gif');
    background-position: 0% 100%;
    font-size: 12px;
    line-height: 12px;
    padding: 10px 10px 20px 10px;
    font-family: Karla, Arial, Helvetica, sans-serif;
}

#marker .sr_date {
    color: #999;
}

#map_zoom_10800 {
    display: none;
}

#map_zoom_21600 {
    display: none;
}

#map_zoom_2400 {
    display: none;
}

#map_zoom_1200 {
    display: none;
}


#controls {
    display: block;
    position: absolute;
    top: -1000px;
    left: -1000px;
    z-index: 200000;
}

#controls div {
    margin: 5px;
}

#controls .content_button_tiny {
    display: inline-block;
    line-height: 17px;
    padding: 8px 12px;
}

#map_output {
    position: relative;
    top: 50px;    
}

#editing_tools td {
    padding: 0px 3px;
}

#coords {
    position: absolute;
    z-index: 200000;
    top: -1000px;
    left: -1000px;
    color: #FFF;
    text-shadow: 0px 0px 4px #000;
    display: block;
    width: 130px;
    font-family: Karla, Arial, Helvetica, sans-serif;
    font-size: 14px;
}

#loc_new {
    display: none;
    position: absolute;
    top: -1000px;
    left: -1000px;
}

.add_location #loc_new {
    display: block;
}

.map_location {
    position: absolute;
    padding-left: 10px;
    background-image: url("/mapdata/img/location_markers.png");
    background-repeat: no-repeat;
    margin-top: -10px;
    margin-left: -6px;
    font-size: 13px;
    line-height: 14px;
    text-shadow: 0px 0px 4px #FFF;
    z-index: 75000;
    cursor: default;
    font-family: Karla, Arial, Helvetica, sans-serif;
}

.map_location.invisible {
    color: blue;
    opacity: 0.5;
}

.map_location.tag_link {
    cursor: pointer;
    text-decoration: underline;
}

.map_location.tag_link:hover {
    color: #B52600;
}

.map_location.label_left {
    padding-right: 10px;
    padding-left: 0px;
    margin-left: -7px;
}

.map_location.loc_type__1 {
    /* City */    
    background-position: 0 4px;
}

.map_location.loc_type__1.label_left {
    /* City */    
    background-position: 100% 4px;
}

.map_location.loc_type__2 {
    /* Monument */
    background-position: 0 -44px;
}

.map_location.loc_type__2.label_left {
    /* Monument */
    background-position: 100% -44px;
}

.map_location.loc_type__3 {
    /* Landmark */
    background-position: 0 -11px;
}

.map_location.loc_type__3.label_left {
    /* Landmark */
    background-position: 100% -11px;
}

.map_location.loc_type__4 {
    /* Battle */
    background-position: 0 -27px;
}

.map_location.loc_type__4.label_left {
    /* Battle */
    background-position: 100% -27px;
}

#editing_tools {
    display: none;
}

#editor_toolbar .content_button {
    display: inline-block;
}

#loc_edit_prompt {
    display: none;
}

input.required {
    border: 2px solid #B52600;
    margin: -1px;
}

input.required.fulfilled {
    border: 1px solid #dadada;
    margin: 0;
}

#info_layer_editor {
    display: none;
}

#il_edit_prompt {
    display: none;
}

.il_next_section {
    display: none;
}

.il_placing_section {
    display: none;
}

.info_layer {
    position: absolute;
    top: -10000px;
    left: -10000px;    
    z-index: 1000;
}

.info_layer.tag_link {
    cursor: pointer;
}

#map_container.mode_il_select .info_layer {
    cursor: pointer;
}

#map_container.mode_il_select .info_layer:hover {
    background-color: rgba(255,255,255,0.5);    
}

.date_navigation {
    text-align: center;
    margin: 5px;
}

.date_navigation_table td {
    text-align: center;
    vertical-align: middle;
}

.prev_next_date_display {
    width: 260px;
    overflow: hidden;
    display: block;
    font-size: 9px;
    line-height: 10px;
    padding: 0;
    white-space: nowrap;
}

#prev_info_layer_display {
    left: 0px;
}

#next_info_layer_display {
    left: 674px;
}

.prev_next_date_display .next_il_date {
    color: #999;
}

#tooltip_layer {
    display: none;
    width: 450px;
    position: absolute;
    top: -1000px;
    overflow: hidden;
    background-image: url("/mapdata/img/tooltip_layer.png");
    opacity: 0.85;
    filter:alpha(opacity=85);
    filter:"alpha(opacity=85)";    
    z-index: 100000;
    padding: 0;
    margin: 0;
}

#tooltip_layer.small {
    height: 42px;    
}

#tooltip_layer.large {
    height: 110px;
}

#tooltip_layer .ttl_header {
    font-family: Karla, Arial, Helvetica, sans-serif;
}

#tooltip_layer .ttl_description {
    display: block;
    position: relative;
    left: 65px;
    top: 6px;
    overflow: hidden;
    width: 315px;
    height: 54px;
    font-size: 11px;
    line-height: 13px;
    color: #4C4C4C;
    text-align: center;
    white-space: normal;
    padding: 0;
}

#tooltip_layer .ttl_headline {
    font-size: 10pt;
    font-weight: bold;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 0px;
    text-transform: uppercase;
}

#tooltip_layer.headline_only .ttl_headline {
    font-size: 18px;
    margin-top: 8px;
}

#tooltip_layer .ttl_date {
    font-size: 8pt;
    color: #999;
    text-align: center;
    margin-top: -13px;
    margin-bottom: 0px;
}

#il_canvas {
    position: absolute;
    top: 0;
    left: 0;
}

#map_search_input {
    position: absolute;
    top: 6px;
    left: 100px;
    padding: 5px;
    width: 150px;
    color: #999;
    border-radius: 3px;
}

#search_results_container {
    display: none;
    position: absolute;
    top: 35px;
    left: 35px;
    background-color: white;    
    border-radius: 3px;
    padding: 20px;
    opacity: 0.9;
    box-shadow: 2px 2px 3px #999;
}

#search_results_wrapper {
    max-height: 500px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 20px;
}

#search_results_close {
    text-align: right;
    margin-top: -10px !important;
    margin-right: -9px !important;    
}

#search_input_clear {
    display: none;
    position: absolute;
    top: 4px;
    left: 243px;
    font-size: 14px;
    font-family: Karla, Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.search_results_clear {
    color: #999;
    font-weight: bold;
}

.search_results_clear:hover {
    color: #B52600;
    cursor: pointer;
}

#search_results_container ul, #search_results_container li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#search_results_container b {
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #999;
}

#search_results_container table.wrap{
    border-collapse: collapse;
    border-spacing: 15px;
}

#search_results_container table.res {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 2em;
}

#search_results_container .res td {
    border-bottom: 1px solid #e3e3e3;
    white-space: nowrap;
    border-left: 3px solid #FFF;
    padding: 10px;
}

#search_results_container .res td:hover {
    cursor: pointer;
    color: #B52600;
    border-left: 3px solid #B52600;
}

#search_results_container .res td.last {
    border-bottom: none;
}

#search_results_container .res td div {
    margin: 0;
    padding: 0;
}

#search_results_container .res .result_date {
    font-size: 11px;
    color: #999;
    line-height: 12px;
}

#search_results_container .res td:hover .result_date {
    color: #6C6356;
}

#search_results_container .res .result_name {
    font-weight: bold;
    font-size: 12px;
    line-height: 130%;
}

#search_results_container table td {
    vertical-align: top;
}

#map_share {
    text-align: right;
}

input#map_link, input#map_embed_html {
    display: none;
}

.date_form {
    position: relative;
    top: 2px;
}

#set_date, #set_date_bc_ad {
    font-weight: bold;
    color: #222;
}

#set_date {
    padding: 4px;
}

#set_date_bc_ad {
    padding: 3px;
}

.mapselect_page .interactive_maps a:hover img {
    opacity: 1;
}

.mapselect_page .interactive_maps a img {
    opacity: 0.8;
}

.mapselect_page .interactive_maps a:hover {
    text-decoration: none;
    opacity: 1;
}

.mapselect_page .interactive_maps a {
    font-weight: normal;
    color: #222;
    opacity: 0.6;
}