/*! jQuery UI - v1.10.4 - 2014-05-05
* http://jqueryui.com
* Includes: jquery.ui.core.css, jquery.ui.slider.css, jquery.ui.tabs.css
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
/* Layout helpers
----------------------------------*/
.ui-helper-hidden {
	display: none;
}
.ui-helper-hidden-accessible {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}
.ui-helper-reset {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	line-height: 1.3;
	text-decoration: none;
	font-size: 100%;
	list-style: none;
}
.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
	content: "";
	display: table;
	border-collapse: collapse;
}
.ui-helper-clearfix:after {
	clear: both;
}
.ui-helper-clearfix {
	min-height: 0; /* support: IE7 */
}
.ui-helper-zfix {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	opacity: 0;
	filter:Alpha(Opacity=0);
}

.ui-front {
	z-index: 100;
}


/* Interaction Cues
----------------------------------*/
.ui-state-disabled {
	cursor: default !important;
}


/* Icons
----------------------------------*/

/* states and images */
.ui-icon {
	display: block;
	text-indent: -99999px;
	overflow: hidden;
	background-repeat: no-repeat;
}


/* Misc visuals
----------------------------------*/

/* Overlays */
.ui-widget-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.ui-slider {
	position: relative;
	text-align: left;
}
.ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 1.2em;
	height: 1.2em;
	cursor: default;
}
.ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	font-size: .7em;
	display: block;
	border: 0;
	background-position: 0 0;
}

/* For IE8 - See #6727 */
.ui-slider.ui-state-disabled .ui-slider-handle,
.ui-slider.ui-state-disabled .ui-slider-range {
	filter: inherit;
}

.ui-slider-horizontal {
	height: .8em;
}
.ui-slider-horizontal .ui-slider-handle {
	top: -.3em;
	margin-left: -.6em;
}
.ui-slider-horizontal .ui-slider-range {
	top: 0;
	height: 100%;
}
.ui-slider-horizontal .ui-slider-range-min {
	left: 0;
}
.ui-slider-horizontal .ui-slider-range-max {
	right: 0;
}

.ui-slider-vertical {
	width: .8em;
	height: 100px;
}
.ui-slider-vertical .ui-slider-handle {
	left: -.3em;
	margin-left: 0;
	margin-bottom: -.6em;
}
.ui-slider-vertical .ui-slider-range {
	left: 0;
	width: 100%;
}
.ui-slider-vertical .ui-slider-range-min {
	bottom: 0;
}
.ui-slider-vertical .ui-slider-range-max {
	top: 0;
}

.ui-tabs {
	position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
	padding: .2em;
}
.ui-tabs .ui-tabs-nav {
	margin: 0;
	padding: .2em .2em 0;
}
.ui-tabs .ui-tabs-nav li {
	list-style: none;
	float: left;
	position: relative;
	top: 0;
	margin: 1px .2em 0 0;
	border-bottom-width: 0;
	padding: 0;
	white-space: nowrap;
}
.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
	float: left;
	padding: .5em 1em;
	text-decoration: none;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
	margin-bottom: -1px;
	padding-bottom: 1px;
}
.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,
.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
	cursor: text;
}
.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
	cursor: pointer;
}
.ui-tabs .ui-tabs-panel {
	display: block;
	border-width: 0;
	padding: 1em 1.4em;
	background: none;
}
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-map-pane svg,
.leaflet-map-pane canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	-ms-touch-action: none;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-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 */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container img {
	max-width: none !important;
	}
/* stupid Android 2 doesn't understand "max-width: none" properly */
.leaflet-container img.leaflet-image-layer {
	max-width: 15000px !important;
	}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 8;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 4; }

.leaflet-tile-pane    { z-index: 2; }
.leaflet-overlay-pane { z-index: 4; }
.leaflet-shadow-pane  { z-index: 5; }
.leaflet-marker-pane  { z-index: 6; }
.leaflet-popup-pane   { z-index: 7; }

.leaflet-map-pane canvas { z-index: 1; }
.leaflet-map-pane svg    { z-index: 2; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 7;
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-tile,
.leaflet-fade-anim .leaflet-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;
	}
.leaflet-fade-anim .leaflet-tile-loaded,
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}

.leaflet-zoom-anim .leaflet-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);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	     -o-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-clickable {
	cursor: pointer;
	}
.leaflet-container {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-clickable {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-container,
.leaflet-dragging .leaflet-clickable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	}


/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline: 0;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-container a.leaflet-active {
	outline: 2px solid orange;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a,
.leaflet-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;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}


/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}
.leaflet-control-zoom-out {
	font-size: 20px;
	}

.leaflet-touch .leaflet-control-zoom-in {
	font-size: 22px;
	}
.leaflet-touch .leaflet-control-zoom-out {
	font-size: 24px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.7);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover {
	text-decoration: underline;
	}
.leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale {
	font-size: 11px;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-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: content-box;
	     box-sizing: content-box;

	background: #fff;
	background: rgba(255, 255, 255, 0.5);
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 19px;
	line-height: 1.4;
	}
.leaflet-popup-content p {
	margin: 18px 0;
	}
.leaflet-popup-tip-container {
	margin: 0 auto;
	width: 40px;
	height: 20px;
	position: relative;
	overflow: hidden;
	}
.leaflet-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);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;

	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	padding: 4px 4px 0 0;
	text-align: center;
	width: 18px;
	height: 14px;
	font: 16px/14px Tahoma, Verdana, sans-serif;
	color: #c3c3c3;
	text-decoration: none;
	font-weight: bold;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover {
	color: #999;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	border-bottom: 1px solid #ddd;
	border-top: 1px solid #ddd;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	zoom: 1;
	}
.leaflet-oldie .leaflet-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);
	}
.leaflet-oldie .leaflet-popup-tip-container {
	margin-top: -1px;
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}
.leaflet-control-fullscreen a {
    background:#fff url(fullscreen.png?v=2) no-repeat 0 0;
    background-size:26px 52px;
    background-position: 0 0 !important;
}
.leaflet-fullscreen-on .leaflet-control-fullscreen a {
    background-position:0 -26px !important;
}

.leaflet-container:-webkit-full-screen {
  width:100%!important;
  height:100%!important;
  }
.leaflet-pseudo-fullscreen {
  position:fixed!important;
  width:100%!important;
  height:100%!important;
  top:0!important;
  left:0!important;
  z-index:99999;
  }

.leaflet-touch .leaflet-control-fullscreen a {
    background:#fff url(fullscreen_30.png?v=2) no-repeat 0 0;
    background-size:30px 60px;
    background-position: 0 0 !important;
}

.leaflet-fullscreen-on.leaflet-touch .leaflet-control-fullscreen a {
    background-position:0 -30px !important;
}


@media
  (-webkit-min-device-pixel-ratio:2),
  (min-resolution:192dpi) {
    .leaflet-control-fullscreen a {
      background-image:url(fullscreen@2x.png?v=2);
    }
    .leaflet-touch .leaflet-control-fullscreen a {
        background-image: url(fullscreen_30@2x.png?v=2);
    }
  }
body {
    margin: 0;
    padding: 0;
    background: #e2e5e8;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
a:focus, a:active {
    outline: none !important;
}
#tabs {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}
#tabs ul li {
    background: #f2f2f2;
    border: 2px solid #222;
    border-left: 0;
    margin: 0;
}
#tabs ul li:first-child {
    border-left: 2px solid #222;
}
#tabs ul li:hover {
    background: #e3e3e3;
}
#tabs ul li a,
#tabs ul li a:hover,
#tabs ul li a:active,
#tabs ul li a:focus,
#tabs ul li a:visited {
    color: #222;
}

#tabs ul li.ui-state-active {
    background: #222;
    color: #fff;
}
#tabs ul li.ui-state-active a,
#tabs ul li.ui-state-active a:hover,
#tabs ul li.ui-state-active a:active,
#tabs ul li.ui-state-active a:focus,
#tabs ul li.ui-state-active a:visited {
    color: #fff;
}

#tabs.ui-tabs .ui-tabs-nav li.ui-tabs-active {
    padding: 0;
    margin: 0;
}
#tabs.ui-tabs .ui-tabs-nav {
    padding: 0;
    line-height: 1;
}
#map { 
    position: absolute;
    bottom: 0;
    top: 100px;
    width: 100%;
}
#timeline-container {
    position: absolute;
    top: 32px;
    left: 0;
    height: 96px;
    cursor: pointer;
    z-index: 200;
    background: #fff;
}
#timeline-container ul {
    position: absolute;
    height: 20px;
    top: 14%;
}
#legend {
    width: 300px;
    position: absolute;
    top: 32px;
    right: 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
    color:#000;
    background: #fff;
    font-size:1.2em;
}

#legend-left-label {
    position: absolute;
    top: 0;
    left: 0;
}

#legend-right-label {
    position: absolute;
    top: 0;
    right: 0;
}

#legend-toggle {
    display: none;
}

#legend .legend-title {
    text-align: left;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 90%;
    display: none;
}
#legend .legend-scale ul {
    margin: 0;
    padding: 0;
    float: left;
    list-style: none;
    position: relative;
}
#legend .legend-scale ul li {
    display: block;
    float: left;
    width: 30px;
    margin-bottom: 6px;
    text-align: center;
    list-style: none;
    height: 20px;
    z-index: 3;
    top: 0;
}

#legend .legend-scale label.disabled {
    color: #888;
}

#legend .legend-scale {
    position: relative;
    font-size: 12px;
}
#legend ul.legend-labels {
    height: 40px;
}
#legend ul.legend-labels li span.bg {
    display: block;
    float: left;
    height: 15px;
    width: 30px;
    margin-top: 20px;
}

#legend ul.legend-labels li span.bg-0  { }
#legend ul.legend-labels li span.bg-10 { }
#legend ul.legend-labels li span.bg-10 { }
#legend .legend-source {
    font-size: 70%;
    color: #fff;
    clear: both;
}
#legend a {
    color: #777;
}


#timeline-container ul {
    width: 576px;
    overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
}

#timeline-container ul, #timeline-container ul li {
    display: block;
    list-style-type: none;
    padding: 0;
    margin: 0;
    z-index: -1;
}

#timeline-container {
    width: 576px;
    background: transparent url('../images/timeline.svg') repeat-x 0 48px;
    background-size: 96px auto;
}

#timeline-container ul li {
    position: relative;
    display: block;
    float: left;
    width: 96px;
    height: 18px;
    cursor: pointer;
}

.ui-slider {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
    height: 48px;
    bottom: 48px;
    right: 48px;
    left: 48px;
    overflow: visible;
}

#timeline {
    width: 480px;
}

.ui-slider-horizontal .ui-slider-handle {
    top: 0;
    margin: 0;
}


#timeline .ui-slider-handle {
    height: 38px;
    width: 96px;
    background: transparent url('../images/circle.svg') no-repeat 0 0;
    background-size: cover;
    margin-left: -48px;
    cursor: pointer;  
}

#timeline {
    position: relative;
}
#timeline-container ul li span {
    display: block;
    position: absolute;
    left: 28px;
    color: #999;
}
#timeline-container ul li.active span {
    color: #111;
}

.legend-scale.nonwhite #scale0 .bg { background-color: #08519c; }
.legend-scale.nonwhite #scale1 .bg { background-color: #3182bd; }
.legend-scale.nonwhite #scale2 .bg { background-color: #6baed6; }
.legend-scale.nonwhite #scale3 .bg { background-color: #bdd7e7; }
.legend-scale.nonwhite #scale4 .bg { background-color: #eff3ff; }
.legend-scale.nonwhite #scale5 .bg { background-color: #fee5d9; }
.legend-scale.nonwhite #scale6 .bg { background-color: #fcae91; }
.legend-scale.nonwhite #scale7 .bg { background-color: #fb6a4a; }
.legend-scale.nonwhite #scale8 .bg { background-color: #de2d26; }
.legend-scale.nonwhite #scale9 .bg { background-color: #a50f15; }
.legend-scale.vacancy #scale0 .bg { background: #fff5f0; }
.legend-scale.vacancy #scale1 .bg { background: #fee0d2; }
.legend-scale.vacancy #scale2 .bg { background: #fcbba1; }
.legend-scale.vacancy #scale3 .bg { background: #fc9272; }
.legend-scale.vacancy #scale4 .bg { background: #fb6a4a; }
.legend-scale.vacancy #scale5 .bg { background: #ef3b2c; }
.legend-scale.vacancy #scale6 .bg { background: #cb181d; }
.legend-scale.vacancy #scale7 .bg { background: #a50f15; }
.legend-scale.vacancy #scale8 .bg { background: #80060b; }
.legend-scale.vacancy #scale9 .bg { background: #590003; }
.legend-scale.unemployed #scale0 .bg { background: #fff5f0; }
.legend-scale.unemployed #scale1 .bg { background: #fee0d2; }
.legend-scale.unemployed #scale2 .bg { background: #fcbba1; }
.legend-scale.unemployed #scale3 .bg { background: #fc9272; }
.legend-scale.unemployed #scale4 .bg { background: #fb6a4a; }
.legend-scale.unemployed #scale5 .bg { background: #ef3b2c; }
.legend-scale.unemployed #scale6 .bg { background: #cb181d; }
.legend-scale.unemployed #scale7 .bg { background: #a50f15; }
.legend-scale.unemployed #scale8 .bg { background: #80060b; }
.legend-scale.unemployed #scale9 .bg { background: #590003; }


/*body.iphone-app #label-toggle_density {
    display: none;
}
*/
@media only screen and (max-width: 640px) {
    #map {
        top: 90px;
    }
    #legend-toggle {
        display: block;
        position: absolute;
        top: 6px;
        right: 0;
        width: 25px;
        height: 72px;
        background: #efefef;
        color: #222;
        text-align: center;
        text-decoration: none;
        font-size: 25px;
        line-height: 71px;
        -webkit-box-shadow: 1px 0px 3px 0px rgba(0, 0, 0, 0.5);
        -moz-box-shadow: 1px 0px 3px 0px rgba(0, 0, 0, 0.5);
        box-shadow: 1px 0px 3px 0px rgba(0, 0, 0, 0.5);
        text-shadow: 0 -1px 1px rgba(255, 255, 255, 0.9);
        z-index: 11;
        padding-left: 1px;
        font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
        border-left: 1px solid #aaa;
    }

    #legend-toggle:after {
        content: '\00BB';
    }
    #legend-container.hidden #legend-toggle:after {
        content: '\00AB';
    }
    #legend-container {
        display:block;
        position: absolute;
        top: 90px;
        right: 0;
        width: 270px;
        height: 82px;
        z-index: 10;
        overflow: hidden;
    }
    #legend {
        top: 6px;
        right: 25px;
        padding: 5px 20px 5px 20px;
        z-index: 10;
        -webkit-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
        -moz-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
        box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.5);
        transition-duration: 1s;
        transition-property: right;
        width: 210px;
        height: 62px;
    }
    #legend .legend-scale ul li,
    #legend ul.legend-labels li span.bg {
        width: 21px;
    }
    #legend-container.hidden #legend {
        right: -340px;
    }
    #legend-left-label {
        top: 0;
        left: 0;
    }
    #legend-right-label {
        top: 0;
        right: 0;
    }
    #timeline-container {
        top: 38px;
        left: 50% !important;
        margin-left: -157px;
    }
}



/* iPhone <= 4S in portrait */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : landscape) {
    #legend {
        width: 200px;
        padding: 5px 15px 5px 15px;
    }
    #legend ul.legend-labels li,
    #legend ul.legend-labels li span.bg  {
        width: 20px;
    }
    #tabs {
        width: 275px;
        margin: 0 auto;
    }
    .leaflet-popup-content {
        margin: 0 5px;
        line-height: 1.3;
    }
}

.leaflet-popup table tr, .leaflet-popup table tr td {
    padding: 0;
    margin: 0;
    
}

.leaflet-popup table tr td:first-child {
    padding-right: 5px;
}

.leaflet-popup-content {
    margin: 5px 7px 5px 7px;
    line-height: 1.3;
}

.leaflet-popup-content p {
    margin: 1.2em 0 0.8em 0;
}

/* iPhone 5 in portrait */
@media only screen and (max-width: 320px) {
    #legend {
        width: 200px;
        padding: 5px 15px 5px 15px;
    }
    #legend ul.legend-labels li,
    #legend ul.legend-labels li span.bg  {
        width: 20px;
    }
    #tabs {
        width: 275px;
        margin: 0 auto;
    }
    .leaflet-popup-content {
        margin: 0 5px;
        line-height: 1.3;
    }
}
