:root
{
  --home-min-height: 635px;
  --home-max-height: 800px;
}

#map-homepage
{
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}
@media (min-width: 782px)
{
	#map-homepage
	{
		min-height: var(--home-min-height);
		/*max-height: var(--home-max-height);*/
    margin-bottom: 30px;
	}

	.map-ui > .slide
	{
	  min-height: var(--home-min-height);
	/*
	  max-height: var(--home-max-height);
	*/
	}
}

.slide
{
	height: auto;
	width: 100%;
	position: absolute;
	overflow: visible;
	z-index: 300;
	left: 0;
	top: 0;
	box-sizing: border-box;
	display: none;
}

.map-ui
{
	z-index: 5;
}

#home_slide.slide
{
  display: block;
}

.slide .map
{
  height: var(--home-min-height);
/*
  min-height: var(--home-min-height);
  max-height: var(--home-max-height);
*/
   padding: 0;
   background: white;
   text-align: center;
}

.slide .map div
{
  min-height: var(--home-min-height);
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media screen and (min-width: 1376px) {
  .slide .map div
  {
    /*background-size: 1376px;*/
  }
}

/** Slider (jQuery cycle) **/
.map-ui .slide.sliderContainer
{
	min-height: auto;
	max-height: auto;
}
.map-ui .cycleContainer
{
	height: 0;
}
.map-ui .grid.slider-img-container
{
	width: 60%;
}

/** Buttons **/
.map-ui .squared
{
  border-radius: 0px;
}

.slide-block
{
  position: absolute;
}

.all-maps-buttons
{
    z-index: 500;
}

.all-maps-buttons .text-button.list-style {
    box-shadow: 2px 2px 7px 1px rgba(50, 50, 50, 0.5);
}

.controls
{
	z-index: 500;
}

.overlay .relative, .overlay .button.relative, .overlay .text-button.relative, #map-controls .relative
{
  position: relative;
}

.overlay .button
{
  position: absolute;
  text-align: center;
  vertical-align: middle;
  font-family: Verdana, sans-serif;
  font-size: 9.5pt;
  font-weight: bold;
  padding: 3px 7px;
  color: var(--dark-elem-text-color);
  background: var(--dark-elem-bg);
  border: 2px solid var(--dark-elem-border-color);
  cursor: pointer;
}

.overlay .button.invisible
{
  visibility: visible;
  border: none;
  background: none;
  padding: 0;
  color: transparent;
}

.overlay .button.image
{
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  border: 3px solid rgb(10,104,140);
  border: 3px solid var(--dark-border);
  border-radius: 5px;
}

.map-ui .text-button
{
  position: absolute;
  text-align: center;
  vertical-align: middle;
  font-family: Verdana, sans-serif;
  font-size: 9.5pt;
  font-weight: bold;
  padding: 3px 10px;
  color: var(--dark-elem-text-color);
  background: var(--dark-elem-bg);
  border: 2px solid var(--dark-elem-border-color);
  border-radius: 5px;
  cursor: pointer;
}

.map-ui .text-button.style2 {
    border: 1px solid grey;
    border-radius: 18px;
    padding: 5px 13px;
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.35);
}
.map-ui .text-button.style2:hover, .map-ui .text-button.style2.selected {
    border: 0;
    padding: 6px 14px;
    cursor: pointer;
}

.map-ui .text-button.rounded
{
  border-radius: 12px;
}

.map-ui .text-button.list-style
{
  border: 1px solid var(--dark-elem-border-color);
  border-radius: 0px;
}

.map-ui .text-button.selected
{
  color: var(--dark-elem-selected-color);
  background: var(--dark-elem-selected-bg);
}

.map-ui .text-button.disabled
{
  background: var(--dark-elem-disabled-bg);
  cursor: default;
}

.map-ui .text-label
{
  text-align: center;
  vertical-align: middle;
  font-family: Verdana, sans-serif;
  font-size: 9.5pt;
  font-weight: bold;
  padding: 3px 10px;
  color: var(--dark-elem-text-color);
  background: var(--dark-elem-bg);
  border: 1px solid black;
  border-radius: 0px;
}

.map-ui .text-button.heading, .map-ui .text-button.heading:hover
{
  border-color: black;
  color: black;
  background-color: #aaa;
  font-size: 11pt;
  cursor: default;
}

.map-ui .map-choices
{
   display: none;
   position: absolute;
   top: 67px;
   z-index: 401;

   max-height: 500px;

   padding-left: 0;
   margin: 0;
   min-width: 150px;
   list-style-type: none;
   border-radius: 7px 7px 0 0;
   border-bottom: 2px solid var(--box-border);
   box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.35);

   width: 290px;
   left: calc(50% - 145px);
}

.map-ui .map-choices li:not(.hide)
{
  display: list-item;
  list-style: none;
  float: none;
  padding: 6px 8px;
  font-size: 12pt;
  text-align: left;
  font-family: sans-serif;
  background-color: white;
  font-weight: 600;
  margin: 0;
  border-radius: 0;
  color: var(--link-color);
  background-color: var(--list-bg-color);
  cursor: pointer;
}

.map-ui .map-choices li[list]
{
	padding-right: 11px;
}	
.map-ui .map-choices li[list]:after
{
	content: '';
	position: absolute;
	right: 5px;
	margin-top: 2px;
	height: 0;
	width: 0;
	border-left: 5px solid rgb(0,96,96);
	border-top: 5px solid rgba(0,0,0,0);
	border-bottom: 5px solid rgba(0,0,0,0);
}

.map-ui .map-choices li.heading, .map-ui .map-choices li.heading:hover, .map-ui #search .map-choices .heading 
{
   background: var(--list-heading-bg-color);
   color: #fff;
   cursor: pointer;
/*   border-bottom: 2px solid #666666;  */
   text-align: center;
  font-weight: 600;
  font-size: 11pt;
}

.map-ui .map-choices .heading.no-click, #search .map-choices .heading.no-click
{
  cursor: default;
}

.map-ui #map-types_list > li.heading.perspective{
  margin-bottom: 0; 
/*  border-radius: 7px 7px 0 0;*/
  border-radius: 0;
}

.map-ui .map-choices li:hover
{
  color: var(--list-hover-color);
   background-color: var(--list-hover-bg-color);
}

.map-ui .map-choices li.selected
{
  color: var(--list-selected-color);
  background: var(--list-selected-bg-color);
}

.map-ui .map-choices li.disabled, .map-ui .map-choices li.disabled:hover
{
  color: var(--dark-elem-disabled-color);
  background-color: var(--list-disabled-bg-color);
  font-weight: normal;
  cursor: default;
}

.map-ui:not(.elections) .map-choices .elections, .map-ui:not(.representatives) .map-choices .representatives
{
  display: none;
}

.map-ui .map-choices li.heading.perspective, .map-ui .map-choices li.heading.perspective:hover {
    cursor: default !important;
    margin-bottom: 7px;
/*    color: var(--list-color);
    background: #d0e0e0; */
    border: 2px solid var(--box-border);
    border-radius: 7px;
}

/* Pseudo-button for going back/up a level */
li.heading > span 
{
  position: relative;
}
li.heading:not(.top) > span:not(.perspective):before 
{
    content: '';
    position: relative;
    top: -1px;
    left: -6px;
    display: inline-block;
    width: 0px;
    height: 0px;
    border-bottom: 8px solid rgb(230,230,230);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}
li.heading:not(.top):hover > span:not(.perspective):before 
{
  border-bottom: 8px solid rgb(0,190,140);
}

/*
li.heading:not(.top, .perspective):after {
    content: '';
    position: absolute;
    top: 7px;
    left: 3px;
    display: block;
    width: 0px;
    height: 0px;
    border-right: 8px solid rgb(0,160,130);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    padding-top: 1px;
    padding-right: 1px;
}
li.heading:not(.top, .perspective):after {
    content: '<';
    top: 1px;
    font-size: 12pt;
    font-family: serif;
    left: 5px;
    display: block;
    background: rgb(0,120,120);
    color: white;
    width: 19px;
    height: 19px;
    vertical-align: middle;
    border-radius: 11px;
    padding-top: 1px;
    padding-right: 1px;
    */
.map-ui .text-note
{
  font-weight: 600;
  color: white;
  padding: 8px 10px;
  text-align: left;
  background: linear-gradient(to bottom, rgb(130,130,130) 0%, rgb(70,70,70) 100%);
  border: 0px;
  border-radius: 9px;
}

.map-ui .text-button.heading, .map-ui .text-button.heading:hover
{
  border-color: black;
  color: black;
  background-color: #aaa;
  font-size: 11pt;
  cursor: default;
  border-radius: 2px;
}

.map-ui .text-button.disabled, .map-ui .text-button.disabled:hover
{
  background-color: #999;
  color: white;
  cursor: default;
}

.map-ui .post-widget .text-button
{
  border-radius: 0;
}

.map-ui .text-button.highlight, .map-ui .map-choices li.highlight
{
  background-color: var(--map-highlight-color);
}

.map-ui .text-button:hover
{
  /*background-color: #ffe49f;*/
  background: var(--dark-elem-hover-bg);
}

.map-ui .text-button.selected, .map-ui .text-button.permaselected
{
/*  background-color: #B06BDF; */
  background: var(--dark-elem-selected-bg);
}

.map-ui .text-button.circle
{
  border-radius: 18px;
  padding: 6px 0px;
  font-size: 11pt;
  width: 2.2em;
}

.map-ui .text-button.large
{
  font-size: 11pt;
}

.map-ui #map-controls 
{
  position: relative;
}

.map-ui ul#map-icons
{
  top: 7px;
  width: 268px;
  left: calc(50% - 150px);
  width: 176px;
  left: calc(50% - 104px);
  width: 222px;
  left: calc(50% - 127px);
  /* 4 icons */
  width: 174px;
  left: calc(50% - 103px);
  /* 5 icons */
  width: 208px;
  left: calc(50% - 126px);
}

.map-ui ul.map-icons
{
  position: absolute;
  z-index: 1000;
  margin-left: 0;
/*  right: 15px;
  margin-left: 10px; */

  display: inline-block;
  list-style-type: none;

  background: white;
  padding: 5px 20px;
  border: 2px solid var(--box-border);
  border-radius: 7px;
}
.map-ui ul#secondary-icons
{
  left: auto;
  top: 7px;
  right: 7px;
}

.map-ui ul.map-icons li
{
   float: left;
   margin-left: 16px;
   margin-bottom: 0;
   width: 36px;
   height: 36px;
   cursor: pointer;
   text-align: center;
   /*
   border: 1px solid #111;
   */
   border-radius: 21px;
   padding: 2px;
   vertical-align: middle;
   font-size: 21pt;
   line-height: 24pt;
   font-family: Helvetica, sans-serif;
   font-weight: 600;
   color: var(--dark-elem-text-color);
   background: var(--dark-elem-bg);
   background-position: center;
   background-size: 32px;
   background-repeat: no-repeat;
}

.map-ui ul.map-icons li:first-child
{
  margin-left: 0;
}

.map-ui ul.map-icons li:hover
{
  background: var(--dark-elem-hover-bg);
}

.map-ui ul.map-icons .highlight:after
{
  display: block;
  content: ' ';
  position: relative;
  width: 22px;
  height: 22px;
  left: -2px;
  top: -2px;
  border: 5px solid var(--map-highlight-color);
}

.map-ui ul.map-icons li.blinking:after
{
  display: block;
  content: ' ';
  position: relative;
  width: 26px;
  height: 26px;
  left: -2px;
  top: -2px;
  border: 5px solid #ffe49f;
  border-radius: 5px;
}

.map-ui ul.map-icons li.selected
{
    width: 32px;
    height: 32px;
    border: 2px solid;
    background: var(--dark-elem-selected-bg);
    background-color: transparent;
    border-color: rgb(220,220,220);
    -webkit-filter: grayscale(100%) brightness(30%) sepia(100%) hue-rotate(123deg) saturate(500%) contrast(0.7);
    filter: grayscale(100%) brightness(30%) sepia(100%) hue-rotate(123deg) saturate(500%) contrast(0.7);
}

.map-ui ul.map-icons li#map-search
{
  background-image: url(../images/map-search.png);
  background-size: 36px;
  background-image: url(../images/pinOnMap-white-toreplace.png);
  background-image: url(../images/people-60_50.png);
  background-size: 24px;
}

.map-ui ul.map-icons li#map-hubsearch
{
  background-image: url(../images/map-search.png);
  background-image: url(../images/MagnifyingGlass_white_50.png);
  background-size: 22px;
}

.map-ui ul.map-icons li#map-va
{

}

.map-ui ul.map-icons li#map-home
{
  background-image: url(../images/Home-icon_white.png);
  background-size: 18px;
}
.map-ui ul.map-icons li#map-home.unavailable
{
  background-color: #999;
  cursor: default;
}

.map-ui ul.map-icons li#map-layers
{
  background-image: url(../images/layers-icon.png);
  background-size: 28px;
}

.map-ui ul.map-icons li#map-map
{
  background-image: url(../images/map-map.png);
}

.map-ui ul.map-icons li#map-sat
{
  background-image: url(../images/map-sat.png);
}

.map-ui ul.map-icons li#map-supporters
{
/*  background-image: url(../images/people-60_50.png);
  background-size: 18px;*/
  background-image: url(../images/Handshake_white_inner_icon2.png);
  background-size: 30px;
}

.map-ui ul.map-icons li#map-aircasts
{
  background-image: url(../images/onair_logo_large2.png);
/*
  background-size: 40px;
  width: 34px;
  height: 34px;
*/
  background-size: 42px;
  width: 36px;
  height: 36px;
  border: 0;
}
/*
.map-ui ul.map-icons li#map-aircasts:hover
{
  background: var(--dark-elem-hover-bg);
}
*/
.map-ui ul.map-icons li#map-aircasts.selected
{
  background-image: url(../images/onair_logo_large2.png);
  background-image: url(../images/onair_logo_whiteInner-aa-150x150.png);
  background-size: 42px;
  -webkit-filter: none;
  filter: none;
}

.map-ui ul.map-icons li#map-share
{
  background-image: url(../images/share-white.png);
  background-size: 22px;
}
.map-ui #share-note
{
  position: absolute;
  top: 64px;
  right: 7px;
  z-index: 400;
}

.map-ui .upcoming-note
{
  padding: 6px 8px;
  background: white;
  list-style: none;
  float: none;
  font-size: 12pt;
  text-align: left;
  font-family: sans-serif;
  font-weight: 600;
  margin: 0;
  border-radius: 0;
  color: var(--link-color);
  background-color: var(--list-bg-color);
}

.map-ui .upcoming-note.for-all
{
  display: none;
  position: absolute;
  top: 200px;
  width: 252px;
  border: 2px solid var(--box-border);
}

.map-ui ul.map-icons li#zoom-in
{
  line-height: 23pt;
  font-size: 15pt;
}
li#zoom-in, li#zoom-out
{
  display: none;
}

.map-ui ul.map-icons li.disabled
{
  background-color: rgb(140, 160, 160);
  color: #ddd;
  cursor: default;
}

.map-ui .map-choices.visible
{
  display: inline-block;
}

.map-ui .heading select.perspective
{
  height: 24px;
  width: 78%;
  padding: 1px 2px;
  font-weight: bold;
}

.search-wrap
{
  position: relative;
}

.search-wrap > input[type="text"]
{
  padding-left: 8px;
  width: calc(100% - 8px);
  color: rgb(44,44,44);
  background-color: rgb(215,240,240);
}

.search-wrap > input[type="text"]::placeholder
{
    color: rgb(95,95,95);
    opacity: 1;
}

.search-wrap > input.button
{
  position: absolute;
  top: 6px;
  right: 3px;
  background-image: attr(icon);
  background-size: 20px;
  width: 18px;
  height: 18px;
  z-index: 5;
}

.map-ui #search .map-choices
{
	width: 100%;
	position: initial;
	float: none;
	border: 0;
	box-shadow: none;
/*  border-top: 1px solid #666; */
}

.map-ui #search .map-choices li.search-field {
	border: 2px solid var(--box-border);
	border-radius: 10px;
	margin-bottom: 15px;
    color: black;
    font-size: 9pt;
    font-weight: normal;
	box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.35);
}
.map-ui #search .map-choices li.search-field:hover {
    cursor: default;
    background: white;
}

#search-field
{
  width: calc(100% - 4px);
  border-radius: 0;
/*
  border: 2px inset;
  border-right-color: #ddd;
  border-bottom-color: #ddd;
*/
}


#search-field > input.search, #hubsearchform .search
{
  background-image: url(../images/MagnifyingGlass_50.png);
  background-color: transparent;
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: 6px 0px;
  box-shadow: none;
  border: 0;
  filter: invert(50%);
}

#search-field > input.search:hover
{
  filter: invert(0);
}

#search-field > input.search.loading
{
  filter: invert(0);
  background-image: url(../images/Loading_icon.gif); /* Licensed as CC-BY-SA-4.0 from Wikipedia authors Skorp24 and Ahm masum */
}

.map-ui #search .search-results li.heading
{
  cursor: default;
}

.map-ui #search .search-results li.loading
{
  text-align: center;
}

#hub-search
{
  display: none;
  position: absolute;
  width: 294px;
/*  top: 67px; */
  right: calc(50% - 150px);
  z-index: 401;

/*  background: white;
  background: var(--list-heading-bg-color); */
  border-radius: 4px;
  padding: 3px;
  margin: 0;
}

#hub-search form
{
  margin: 0;
}

#hub-search form input[type="text"]
{
  width: 225px;
  width: 256px;
  width: calc(100% - 8px);
}

#hub-search form input[type="submit"]
{
  vertical-align: middle;
  margin: 0;
}

.map-ui #search
{
  display: none;
  position: absolute;
  z-index: 401;
  top: 67px;
  width: 290px;
  right: calc(50% - 145px);

  padding-left: 0;
  margin: 0;
  list-style-type: none;
  float: left;
  /*
    border: 2px solid var(--box-border);
    */
}

.map-ui #search > .map-choices > li.heading:first-child {
    padding: 6px 9px 7px 9px !important;
    width: calc(100% - 18px);
	display: none;
}


.map-ui #search .search-results
{
	border: 2px solid var(--box-border);
	box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.35);
/* Rolling back hiding of search results (always shows after search submitted)
	display: none; */
}

.map-ui #search .results-section:empty
{
  display: none;
}
.map-ui #search .results-section
{
/*
  border-top: 1px solid black;
*/
}

.map-ui #search .results-section:first-child
{
  border-top: none;
}

.map-ui #search .map-choices
{
  width: 100%;
  position: initial;
  float: none;
  border: 0;
/*  border-top: 1px solid #666; */
}

.map-ui #search .top
{
  text-align: center;
}

/*
.map-ui #search ul :nth-child(3)
{
  padding-top: 5px;
}
*/
.map-ui #search .map-choices li
{
   font-size: 10pt;
   padding: 5px 6px;
}

.map-ui #search .map-choices li.elections.office, .map-ui #search .map-choices li.elections.office:hover
{
  color: black;
}
.map-ui #search .map-choices li.elections.office:before
{
  content: '–';
  display: inline-block;
  width: 13px;
  text-align: center;
  margin-left: -4px;
}
.map-ui #search .map-choices li.elections.office.closed:before
{
  content: '+ ';
}
.map-ui #search .map-choices li.elections
{
  
}
.map-ui #search .map-choices li.elections.candidate
{
 width: calc(100% - 32px);
 padding-left: 22px;
}

.map-ui .map-post-item, .map-ui .post-widget
{
    display: none;
    position: absolute;
    right: calc(50% + 182px);
    top: 15px;
    width: 350px;
    background-color: rgba(250,250,250,1);
    box-shadow: 2px 2px 11px 3px rgba(0,0,0,.45);
    border-radius: 8px;
    z-index: 600;
}

.map-ui:not(.home) .map-post-item.under_headshots, .map-ui:not(.home) .post-widget.under_headshots
{
  top: 170px;
}

.map-ui .sched-time
{
  font-size: 8.5pt;
  font-family: arial;
}

.map-ui .widgetWrapper
{
}

.map-ui .post-widget .totop
{
  display: none;
}

.map-ui .post-widget
{
  display: none;
}

.map-ui .overlay .candidate_select
{
  position: absolute;
  top: 8px;
  left: calc(348px - (1914px - 100%) / 2);
}

.map-ui .overlay .candidate_select > div
{
  width: 113px;
  height: 146px;
}

.map-ui .overlay .candidate_select > .selected
{
  /*border: 3px solid #FC4;*/
  background: rgba(250,230,30,0.25);
}

.map-ui .overlay .candidate_select > div:first-child
{
  left: 0;
}

.map-ui .overlay .candidate_select > div:nth-child(2)
{
  left: calc(1 * 117px);
}

.map-ui .overlay .candidate_select > div:nth-child(3)
{
  left: calc(2 * 117px);
}

.map-ui .overlay .candidate_select > div:nth-child(4)
{
  left: calc(3 * 117px);
}

.map-ui .overlay .candidate_select > div:nth-child(5)
{
  left: calc(4 * 117px);
}

/*
.map-ui .arrow.down {
    border-bottom: 0;
    border-top: 10px solid var(--link-color);
}
.map-ui .arrow {
    width: 0;
    height: 0;
    padding: 0;
    margin: 3px auto;
    cursor: pointer;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--link-color);
}
*/
.map-ui .arrow{
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 3px auto;
  cursor: pointer;
  background: var(--dark-elem-bg);
  border-radius: 12px;
}
.map-ui .arrow:after{
  content: '';
  width: 0;
  height: 0;
  padding: 0;
  position: relative;
  top: -12px;
  left: 4px;
  cursor: pointer;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid white;
}
.map-ui .arrow.down:after{
  border-top: 6px solid white;
  border-bottom: 0;
  top: 15px;
}

.map-ui .post-widget .extended_summary{
  display: none;
}

#main_supporters
{
  /* width: 210px; */
  position: absolute;
  z-index: 600;
}

.supporters-options
{
  display: none;
  position: absolute;
  right: 59px;
  top: 115px;
  width: 210px;
}

.text-label.grey, .text-label.gray
{
  background: rgb(100,100,100);
  color: white;
}

.overlay .supporter
{
  position: absolute;
  display: block;
}

.overlay .supporter.mini
{
  box-shadow: 0 0 16px 1px rgba(0,0,0,.3);
}

.overlay .supporter.mini img
{
  width: 170px;
}

.sponsors ul {
    list-style-type: none;
}

.sponsors ul li.text-button {
    position: relative;
}

.map-ui .supporter.mini > a.post-title {
    display: block;
    text-align: center;
    padding: 6px;
    padding-top: 7px;
    clear: both;
    background: rgb(230,230,230);
    border: 1px solid rgb(210,210,210);
    border-right: 0;
    border-left: 0;
    font-size: 9pt;
    font-weight: bold;
    color: rgb(40,40,40);
    cursor: pointer;
}

.more_sponsors
{
  color: black;
  font-size: 12pt;
  border-radius: 6px;
  margin-top: 8px;
}

.site-intros
{
  position: absolute;
  top: 80px;
  right: calc(50% + 150px);
  width: 375px;
  z-index: 400;
}

.site-intros > div:first-child
{
  margin-top: 0;
}
.site-intros > div
{
  margin-top: 9px;
  color: white;
  background: rgb(0, 80, 80);
  padding: 6px;
  border: 2px solid white;
  border-radius: 3px;
  cursor: pointer;
}
.site-intro.centered
{
  text-align: center;
}
.site-intro h4
{
  font-size: 12pt;
}
.site-intro ul
{
  margin-left: 19px;
  margin-bottom: 0;
}
.site-intro strong
{
  font-family: 'Days One';
}

/*
#search-instructions
{
  position: absolute;
  z-index: 500;
  right: 305px;
  top: 14px;
  font-weight: 600;
  color: white;
  width: auto;
  padding: 8px 10px;
  text-align: left;
  background: linear-gradient(to bottom, rgb(130,130,130) 0%, rgb(70,70,70) 100%);
  border: 0px;
  border-radius: 9px;
}*/

#search-instructions 
{
    position: absolute;
    z-index: 500;
    left: calc(50% - 127px);
    padding: 8px 8px;
    top: 136px;
    width: 238px;
}

.map-ui .show, .map-ui .map-post-item.show, .map-ui .post-widget.show, .map-ui .supporters-options.show
{
  display: block;
}

.map-ui .hide
{
  display: none !important;
}

/* Responsive: Pad; */
@media (max-width: 782px)
{
    html body #wpadminbar
    {
	height: 47px;
    }

  /* Main elements */
  #wrapper
  {
    border-radius: 0;
  }

  #map-homepage
  {
    position: static;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    margin-top: 0;
  }

  .all-maps-buttons
  {
      display: none;
  }

  body.home > .container
  {
    /*margin-top: -13px;*/
  }

  .map-ui #map-controls
  {
    position: static;
    margin-top: 5px;
  }
  .map-ui #map-controls > * 
  {
	display: none;
  }
  /** Icons and related **/
  #wpadminbar /* icon bar in CB */
  {
      z-index: 90000;
      box-shadow: none;
  }
  #wpadminbar #wp-admin-bar-faq_list /* icon bar in CB */
  {
      width: 33px;
      background-size: 31px;
  }
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-user_actions /* icon bar in CB */
  {
      width: 29px;
      background-size: 35px;
  }

  .map-ui ul.map-icons
  {
    position: absolute;
    padding: 2px 10px;

    border: 0;
    background: none;
    /*
    top: 15px;
    left: calc(100% - 150px);
    top: -36px;
    left: 70px;
    */
  }
  .map-ui ul#map-icons
  {
    position: fixed;
    top: 41px;
    z-index: 90100;
    left: 0;
    width: calc(100% - 24px);

    /* icon bar in CB */
    width: auto;
    top: 0;
    left: 63px;
    left: calc(50% - 107px);
    /*
    border-radius: 0 0 9px 9px;
    background: rgba(220,245,245,.85);
    padding-top: 4px;
    */
  }

  .map-ui ul#secondary-icons
  {
    border: 0;
    background: none;
    z-index: 1001;
    position: fixed;
    top: 48px;
    right: 0px;
  }

  .map-ui ul.map-icons > div
  {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
  }

  .map-ui ul.map-icons li
  {
    float: left;
    margin-top: 2px;
    margin-bottom: 1px;
    margin-left: 13px;
    margin-left: 14px; /* icon bar in CB */
    height: 34px;
    width: 34px;
    border-radius: 20px;
    font-size: 19pt;
    line-height: 22pt;
  }
  .map-ui ul.map-icons li.selected
  {
      height: 28px;
      width: 28px;
      height: 32px;
      width: 32px;
  }
  .map-ui ul.map-icons li:first-child
  {
    margin-left: 0px;
  }
  .map-ui ul.map-icons li#map-home
  {
    background-size: 19px;
  }
  .map-ui ul.map-icons li#map-search
  {
    background-size: 37px;
    background-size: 23px;
  }
  .map-ui ul.map-icons li#map-layers
  {
    background-size: 24px;
  }
  .map-ui ul.map-icons li#map-aircasts
  {
    width: 29px;
    height: 29px;
    background-size: 35px;
    width: 35px;
    height: 35px;
    background-size: 42px;
  }
  .map-ui ul.map-icons li#map-aircasts.selected
  {
    background-size: 33px;
    background-size: 41px;
  }
  /*
  .map-ui ul.map-icons li#map-supporters
  {
    display: none;
  }
  */
  .map-ui ul.map-icons li#map-share
  {
    background-size: 21px;
  }
  .map-ui .slide
  {
    position: relative;
    top: 0px;
    background: #ddd;
  }

  .map-ui #hub-search
  {
    top: 39px;
      width: 100%;
      left: 0;
      padding: 0;
  }

  .map-ui #search
  {
    position: relative;
	float: none;
    top: 5px; /* icon bar in CB */
    left: 0;
    width: 100%;
    border-bottom-width: 1px;
    /*
    width: calc(100% - 4px);
    border: 2px solid var(--box-border);
    */
    border-top: 0;
    margin-bottom: 12px;
  }

  .map-ui .heading select.perspective {
      padding: 2px 3px;
      height: 24px;
      width: -webkit-fit-content;
      width: -moz-fit-content;
      width: fit-content;
  }

  .map-ui #search .map-choices
  {
    margin-top: 32px;
    margin-top: 7px;  /* icon bar in CB */
  }

  .map-ui .map-choices
  {
    position: relative;
    top: 5px;
    left: 0;
    margin: 0;
    width: calc(100% - 0px);
    border-bottom: 1px solid;
    border-radius: 0;
/* Consider this to improve small-screen scroll - but will require adjustment to height and click/scroll-to functionality
	overflow-y: visible; */
  }

  .map-ui #map-types_list{
    top: 5px;
  }

  .map-ui .map-choices.hasPerspective
  {
    margin-top: 76px; /* close the gap */
  }

  .map-ui #map-types_list > li.heading.perspective{
    border-radius: 0;
  }

  .map-ui .map-choices > li.heading:first-child
  {
    position: fixed;
    top: 47px; /* icon bar in CB */
    left: 0;
    z-index: 405;
  }

  .map-ui .map-choices li.heading {
    left: 0;
    width: calc(100% - 20px);
    z-index: 401;
  }

  .map-ui .map-choices li.heading.perspective, .map-ui .map-choices li.heading.perspective:hover {
    border-width: 0;
    margin-bottom: 0;
    border-radius: 0;
    width: calc(100% - 16px);
/*    border-bottom: 1px solid white; */
  }
  .map-ui .map-choices li.heading.perspective + li.heading {
    position: fixed;
    top: 126px;
    top: 91px;  /* icon bar in CB */
    top: 83px;
    border-top: 1px solid white;
  }

  /* Visible list items based on perspectives */
  .map-ui .map-choices li:not(.heading)
  {
    width: calc(100% - 18px);
    float: none;
    padding: 6px 8px;
    font-size: 13pt;
    line-height: 14pt;
    height: auto;
    text-align: left;
    background-color: white;
    color: var(--list-color);
    border-left: 1px solid;
    border-right: 1px solid;
    margin: 0;
    border-radius: 0;
  }

  .map-ui #search .map-choices li.heading 
  {
    width: calc(100% - 12px);
  }
  .map-ui #search .map-choices li:not(.heading)
  {
    width: calc(100% - 18px);
    padding: 6px 8px;
    border-left-width: 1px;
    border-right-width: 1px;
  }

  .map-ui .map-choices > li.selected, .map-ui .map-choices > li:hover
  {
    color: var(--list-color);
    background-color: var(--list-bg-color);
  }

  /* Hide elements */
  .map-ui #home_slide, .map-ui .slide
  {
    display: none !important;
  }

  .map-ui .map
  {
    display: none;
  }

  .site-intros
  {
    position: relative;
    width: 100%;
    top: 8px;
    left: 0;
  }
  .site-intros > div
  {
    position: relative;
    width: calc(100% - 16px);
  }

  #search-instructions
  {
    display: none;
    width: calc(100% - 16px);
    border-radius: 0;
    top: 122px;
    left: 0;
    text-align: center;
  }

  .map-ui #share-note
  {
    width: calc(100% - 10px);
    top: -4px;
    left: 0;
    text-align: center;
    z-index: 500;
    border-radius: 0;
  }

  .slide.districts
  {
    z-index: 0;
  }

  /* Widgets */
  .map-ui .overlay
  {
    /* display: flex; 
    flex-flow: column;*/
    height: 100%;
  }

  .map-ui .widgetWrapper
  {
    /*margin-top: 30px;*/
	overflow-y: visible;
	background: rgb(200,220,220); /* TODO: Create css variable */
  }

  .map-ui .widgetWrapper .totop
  {
    display: none;
    position: absolute;
    bottom: -23px;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .map-ui .widgetWrapper .totop span
  {
    color: var(--link-color);
    font-size: 11pt;
	font-weight: 600;
	text-shadow: 0px 0px 3px white;
    cursor: pointer;
  }
  /*
  .map-ui .widgetWrapper .totop span:hover
  {
    text-decoration: underline;
  }
  */

  .map-ui .widgetWrapper .post-widget
  {
    display: none;
	max-width: 100%;
  }

  .map-ui .post-widget.solo
  {
      top: -30px;
      margin-bottom: 0px;
  }
/* Turning off visibility 5/10/2020
  .map-ui .widgetWrapper .post-widget .totop
  {
    display: block;
  }
*/
  .map-ui .widgetWrapper .post-widget.show
  {
    display: block;
  }

  .map-ui .map-post-item, 
  .map-ui .post-widget, 
  .map-ui:not(.home) .post-widget.under_headshots
  {
    width: 100%;
    position: relative;
    position: static;
    top: 0;
    left: 0;

    background-color: rgba(250,250,250,1);
    padding-bottom: 0px;
    margin-top: 10px;
    margin-bottom: 40px;
  }

  .map-ui .post-widget
  {
    margin-top: 10px;
  }

  .map-ui .post-widget:first-child
  {
    margin-top: 10px;
  }

  .map-ui .widgetWrapper.home .post-widget:first-child {
    margin-top: 5px;
  }

/*
#wp-admin-bar-search-user_actions
{
  margin-left: 20px;
}
*/
  #wpadminbar #wp-toolbar #wp-admin-bar-search-icon
  {
    display: none;
  }
}
