#jfm-lang-map, #jfm-lang-map *, #jfm-lang-map *:after, #jfm-lang-map *:before, #jfm_lang_controls, #jfm_lang_controls *, #jfm_lang_controls *:after, #jfm_lang_controls *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
#jfm-map-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
#jfm-map-canvas img {
  max-width: none;
}
#jfm-lang-map {
  width: 100%;
  /*Responsive height. Height is set to zero and padding creates height.*/
  
  height: 0;
  padding-bottom: 50%;
  margin-bottom: 22px;
  position: relative;
  font-size: 16px;
  border: 1px solid #000
}
/*popup styles for video pages*/

[id*="popup"] #jfm-lang-map {
  width: 400px;
  padding-bottom: 75%;
  margin-bottom: 0;
}
[id*="popup"] #jfm_lang_controls .ui-widget {
  width: 100%;
}
@media all and (max-width: 380px) {
  [id*="popup"] #jfm-lang-map {
    /*Responsive width for popup. Width = 0 and padding creates width*/
    
    width: 0;
    padding-left: 50%;
    padding-right: 50%;
    padding-bottom: 85%;
  }
}
#jfm_lang_controls {
  margin-bottom: 1em;
  width: 100%;
}
#jfm_lang_controls:after {
  clear: both;
  display: table;
  content: "";
}
#jfm_lang_controls input[type="text"] {
  background: none;
  border: 1px solid #555;
  padding: 0.375em;
  vertical-align: middle;
  width: 100%;
  font-size: 1.25em;
}
#jfm_lang_controls .ui-widget {
  width: 69%;
  float: left;
}
@media all and (min-width: 769px) and (max-width: 900px) {
  #jfm_lang_controls button:before {
    display: none;
  }
  #overlay .map-close a {
    display: none !important;
  }
  #overlay .map-close {
    border: none !important;
  }
  #overlay .map-close:hover {
    color: #262262 !important;
    background-color: #fff !important;
  }
}
@media all and (max-width: 768px) {
  #jfm_lang_controls .ui-widget {
    width: 100%;
  }
  #jfm_lang_controls .button_wrap {
    width: 100% !important;
  }
  #jfm_lang_controls button {
    margin-right: 0 !important;
    width: 50% !important;
  }
  #overlay .map-close {
    border: none !important;
  }
  #overlay .map-close:hover {
    color: #262262 !important;
    background-color: #fff !important;
  }
  #overlay .map-close a {
    display: none !important;
  }
}
@media all and (max-width: 380px) {
  #jfm-lang-map {
    /*Responsive height. Height is set to zero and padding creates height.*/
    
    padding-bottom: 100%;
  }
}
#jfm_lang_controls .button_wrap {
  float: left;
  width: 30%;
  text-align: right;
  display: none;
}
#jfm_lang_controls.full .button_wrap {
  display: inline;
}
#jfm_lang_controls button {
  background: none;
  border: 1px solid #262262;
  /*height: 2em;*/
  
  padding: 0.188em;
  vertical-align: middle;
  width: 45%;
  font-size: 1.25em;
  cursor: pointer;
  margin-right: 0.250em;
  color: #262262;
}
#jfm_lang_controls button:last-of-type {
  margin-right: 0;
}
#jfm_lang_controls button.active {
  background-color: #262262;
  color: #fff;
}
#jfm_lang_controls button span {
  position: relative;
}
#jfm_lang_controls.full button#jfm_btn_map:before {
  /*Button Icon: Map*/
  
  font-family: "FontAwesome";
  content: "\f0ac";
  padding-right: 0.5em;
  font-size: 1.25em;
}
#jfm_lang_controls.full button#jfm_btn_list:before {
  /*Button Icon: List*/
  
  font-family: "FontAwesome";
  content: "\f0c9";
  padding-right: 0.5em;
  font-size: 1.25em;
}
#jfm-map-canvas {
  width: 100%;
  height: 100%;
}
.filter_controls {
  margin-top: 0.5em;
}
.filter_controls button {
  background: none;
  border: 1px solid #262262;
  height: 2em;
  padding: 0.188em;
  vertical-align: middle;
  width: 8em;
  font-size: 0.75em;
  line-height: 0.75em;
  cursor: pointer;
  margin-right: 0.250em;
  color: #262262;
}
.filter_controls button:last-of-type {
  margin-right: 0;
}
.filter_controls button.active {
  background-color: #262262;
  color: #fff;
}
.filter_controls button#lang_filter_pop:before {
  font-family: "FontAwesome";
  padding-right: 0.5em;
  font-size: 1em;
}
.filter_controls button#lang_filter_alpha:before {
  font-family: "FontAwesome";
  padding-right: 0.5em;
  font-size: 1em;
}
#overlay {
  width: 100%;
  height: 100%;
  background-color: #dadada;
  position: absolute;
  top: 0;
  left: 0;
  font-family: sans-serif;
  display: none;
  overflow: hidden;
}
#overlay ul {
  margin: 0;
  padding: 0;
}
#overlay li {
  list-style: none;
  border-bottom: 1px solid #999;
  font-size: 1em;
  line-height: 1;
}
#overlay li a {
  color: #00aaff;
  text-decoration: none;
  display: block;
  padding: 1em 0.625em;
  background-color: #eee;
  -webkit-transition: background-color 0.35s ease;
  -moz-transition: background-color 0.35s ease;
  -o-transition: background-color 0.35s ease;
  transition: background-color 0.35s ease;
}
#overlay li a:hover {
  background-color: #dadada;
}
#overlay li .icon {
  float: right;
  color: #5C5C5C;
}
#overlay .heading {
  margin: 0;
  padding: 1em 0.625em;
  background-color: #fff;
  border-bottom: 1px solid #999;
  color: #262262;
}
#overlay .heading h3 {
  margin: 0;
  font-size: 1.250em;
  line-height: 1;
}
#overlay .heading a {
  color: inherit;
  padding: 0.375em 0 0.375em 0.5em;
  display: inline-block;
  vertical-align: middle;
}
#jfm-lang-map.vid_details #overlay .heading .map-close {
  display: none;
}
#overlay .heading .map-close {
  opacity: 1;
  position: absolute;
  right: 0.625em;
  top: 0.3125em;
  border: 1px solid #262262;
  color: #262262;
  background: #fff;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  text-decoration: none;
}
#overlay .heading .map-close a:hover {
  text-decoration: none !important;
}
#overlay .heading .map-close:hover {
  color: #fff;
  background: #262262;
}
#overlay .heading .map-close i {
  display: inline-block;
  padding: 0.375em 0.5em;
  font-size: 1.25em;
  cursor: pointer;
  vertical-align: middle;
}
.container {
  /*scrollable container for language list*/
  
  height: calc(100% - 5.313em);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  display: block;
}
.container.with_sort {
  height: calc(100% - 3.250em);
}
.loader {
  display: block;
  margin: -0.5em auto 0;
  position: relative;
  top: 50%;
  text-align: center;
  font-size: 1em;
}
/* ================= Styles for JFM Site ================= */

#jfm_lang_controls input[type="text"] {
  background: #eee;
  border-color: #aaa #ddd #ddd #aaa;
  border-width: 0.071em;
  text-transform: uppercase;
  margin-bottom: 0;
}
/* ================= jQuery UI Autocomplete style ================= */

ul.ui-autocomplete {
  overflow-x: hidden;
  overflow-y: auto;
}
body.custom #ui-id-2.ui-autocomplete {
  width: 458px !important;
}
body.home #ui-id-2.ui-autocomplete {
  width: 589px !important;
}
#ui-id-2.ui-autocomplete {
  z-index: 110001 !important;
  width: 460px !important;
}