/*---------------------------------------------------
    Maps 2017
  ---------------------------------------------------*/
/*---------------------------------------------------
Set of colors 
---------------------------------------------------*/
/*2018 bis */
/*Equiterre colors */
a {
  cursor: pointer;
  color: #1f5177;
  outline: none!important;
}
a:hover,
a:active,
a.active,
a:focus,
a.focus {
  color: #231f20;
  text-decoration: none;
}
p,
h1,
h2,
h3,
h4 {
  font-family: 'Roboto', sans-serif;
}
/*---------------------------------------------------
Set of mixins 
---------------------------------------------------*/
.noshadow {
  -webkit-box-shadow: none;
  box-shadow: none;
}
.no-radius {
  -webkit-border-top-right-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  -webkit-border-bottom-left-radius: 0;
  -webkit-border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.btn {
  font-weight: 700;
  font-size: 14px;
  -webkit-border-top-right-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  -webkit-border-bottom-left-radius: 0;
  -webkit-border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}
.round {
  -webkit-border-top-right-radius: 50%;
  -webkit-border-bottom-right-radius: 50%;
  -webkit-border-bottom-left-radius: 50%;
  -webkit-border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
  border-top-left-radius: 50%;
}
body {
  padding-top: 50px;
  overflow: hidden;
}
@media only screen and (max-width:768px) {
  body {
    overflow: auto;
  }
}
@media only screen and (max-width:768px) {
  .hide-on-xs {
    display: none;
  }
}
#the_search {
  width: 100%;
  position: relative;
}
@media only screen and (min-width:768px) {
  #the_search {
    position: absolute;
    top: 10px;
    right: 0px;
    z-index: 1000;
    max-width: 310px;
    /* half of 768px screen minus scaler */
  }
}
@media only screen and (min-width:992px) {
  #the_search {
    max-width: 450px;
    /* Two third of 768px screen minus scaler */
  }
}
#the_search #search_box {
  font-size: 14px;
  border: 1px solid #d2cbc5;
  border-top: 2px solid #d2cbc5;
  padding: 8px 15px;
  width: 100%;
}
@media only screen and (min-width:768px) {
  #the_search #search_box {
    background: #FFFFFF;
    border-top: 1px solid #d2cbc5;
    color: #080808;
    padding: 5px;
  }
}
#the_search span.glyphicon {
  font-size: 16px;
  color: #1f5177;
  cursor: pointer;
  pointer-events: initial;
}
#the_search span.glyphicon:active {
  color: #5ba951;
}
#the_search label {
  padding: 5px 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: normal;
  background: #f6f5f3;
  width: 100%;
  margin-bottom: 0;
}
#the_search label input {
  margin-right: 8px;
}
@media only screen and (min-width:768px) {
  #the_search label {
    font-size: 12px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.8);
    margin-left: 1px;
  }
}
#the_banner {
  padding: 15px 15px 5px 15px;
  background: url("/static/maps/images/background_the_banner.png") -70px -60px no-repeat;
}
@media only screen and (min-width:992px) {
  #the_banner {
    padding: 25px 35px 15px 35px;
  }
}
#the_banner > * {
  font-family: 'Roboto Condensed', sans-serif;
  color: #3c3c3b;
  line-height: 110%;
}
#the_banner p {
  font-size: 18px;
}
#the_banner a {
  color: #3c3c3b;
  text-decoration: underline;
}
#the_banner a:hover,
#the_banner a:active,
#the_banner a.active,
#the_banner a:focus,
#the_banner a.focus {
  color: #1f5177;
}
/* Aude, we got two odd/even logics because
   of the toggle on precertified
   locations, making nth-child() selection impractical.
   */
body.certified .entry.precertified {
  display: none;
}
body.precertified #the_listing .entry.odd,
body.certified #the_listing .entry.certified_odd {
  background: #f6f5f3;
}
#the_top_listing {
  padding: 0;
}
#the_listing {
  padding: 0;
  overflow: auto;
  position: relative;
  color: #1f5177;
}
#the_listing .entry {
  padding: 1em 0 .25em;
  clear: both;
  border-bottom: 1px solid #d2cbc5;
  /* &.active_from_map a.location::after {
        content: "==active from map==";
	display: block;
     }

     &.active_from_listing a.location::after {
        content: "==active from listing==";
	display: block;
     }

     &.active_from_search a.location::after {
        content: "==active from search==";
	display: block;	
     }
     
     &.active_from_geoloc a.location::after {
        content: "==active from geoloc==";
	 display: block;
     }

     &.active_from_default a.location::after {
        content: "==active from default (no geoloc)==";
	display: block;
     }
*/
}
@media only screen and (min-width:768px) {
  #the_listing .entry {
    padding: .25em;
  }
}
#the_listing .entry .farm-detail {
  display: none;
}
#the_listing a.location {
  display: block;
  padding: 1em 0 0.5em;
  color: #1f5177;
  overflow: hidden;
}
#the_listing a.location:hover,
#the_listing a.location:active,
#the_listing a.location.active,
#the_listing a.location:focus,
#the_listing a.location.focus {
  color: #505659;
}
#the_listing a.location:nth-child(even) {
  background: #eee;
}
@media only screen and (max-width:768px) {
  #the_listing a.location {
    padding: 0 .25em;
  }
}
#the_listing .delivery_icon {
  background: no-repeat;
  background-size: 75% auto;
  background-position: left top;
  min-height: 30px;
  width: 10%;
  max-width: 28px;
  float: left;
}
@media only screen and (max-width:768px) {
  #the_listing .delivery_icon {
    width: 28px;
    height: 28px;
  }
}
#the_listing .delivery_details {
  font-family: 'Roboto Condensed', sans-serif;
  float: left;
  width: 53%;
  margin-right: 2%;
  line-height: 120%;
  font-size: 14px;
}
#the_listing .delivery_details .location_point {
  font-size: 16px;
}
#the_listing .delivery_details .location_point span {
  vertical-align: bottom;
}
#the_listing .delivery_details .location_point span.location_name {
  font-weight: bold;
}
#the_listing .delivery_details .location_point span.distance {
  white-space: nowrap;
}
#the_listing .delivery_details .location_point span:after {
  content: " - ";
}
#the_listing .delivery_details .location_point span:last-child:after {
  content: "";
}
#the_listing .veggie .delivery_icon {
  background-image: url('/static/maps/leaflet/images/marker_veggie.png');
}
#the_listing .meat .delivery_icon {
  background-image: url('/static/maps/leaflet/images/marker_meat.png');
}
#the_listing .meat.veggie .delivery_icon {
  background-image: url('/static/maps/leaflet/images/marker_veggie_meat.png');
}
#the_listing .delivery_register {
  float: left;
  width: 35%;
}
#the_listing .delivery_register button.register {
  float: right;
  width: 100%;
  text-transform: uppercase;
  font-family: 'Roboto Condensed', sans-serif;
  background: #ed6923;
  color: #ffffff;
  border: 1px solid #ed6923;
  line-height: 1.4em;
}
#the_listing .delivery_register button.register:hover,
#the_listing .delivery_register button.register:active,
#the_listing .delivery_register button.register.active,
#the_listing .delivery_register button.register:focus,
#the_listing .delivery_register button.register.focus {
  background: #ffffff;
  color: #ed6923;
}
#the_listing .address {
  padding: 0 0 1em 0;
}
#the_listing .schedule .title,
#the_listing .farm_name .title {
  text-transform: uppercase;
  font-weight: bold;
}
#the_listing .schedule span:last-child {
  white-space: nowrap;
}
#the_listing .active .farm_name {
  visibility: hidden;
}
input.interest {
  text-transform: uppercase;
  font-family: 'Roboto Condensed', sans-serif;
  background: #ed6923;
  color: #ffffff;
  border: 1px solid #ed6923;
  line-height: 1.4em;
}
input.interest:hover,
input.interest:active,
input.interest.active,
input.interest:focus,
input.interest.focus {
  background: #ffffff;
  color: #ed6923;
}
#the_map {
  position: relative;
  padding: 0;
}
img#spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}
footer {
  position: fixed;
  bottom: 0;
}
@media only screen and (max-width:768px) {
  footer {
    position: relative;
  }
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(181, 226, 140, 0.6);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(110, 204, 57, 0.6);
}
.leaflet-oldie .marker-cluster-small,
.leaflet-oldie .marker-cluster-medium,
.leaflet-oldie .marker-cluster-large {
  background-color: #b5e28c;
}
.leaflet-oldie .marker-cluster-small div,
.leaflet-oldie .marker-cluster-medium div,
.leaflet-oldie .marker-cluster-large div {
  background-color: #6ecc39;
}
.marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
}
.marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.marker-cluster span {
  line-height: 30px;
}
.maps2018 {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  position: relative;
}
.leaflet-tile {
  -khtml-opacity: 0.7 !important;
  -webkit-opacity: 0.7 !important;
  opacity: 0.7 !important;
}
@media only screen and (min-width:768px) {
  .navbar-brand {
    max-width: 220px;
  }
}
@media only screen and (min-width:992px) {
  .navbar-brand {
    max-width: 318px;
  }
}
.nav-invert {
  background: #464646;
  color: white;
  border-color: #464646;
}
.nav-invert .btn-default {
  background: transparent;
  color: white;
  border: 0;
  box-shadow: unset;
}
.nav-invert .btn-default:hover {
  color: #ed6923;
}
.nav-invert .btn-default.active {
  color: #ed6923;
  cursor: default;
}
ul.header_menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
@media only screen and (min-width:768px) {
  ul.header_menu {
    float: left;
  }
}
@media only screen and (min-width:992px) {
  ul.header_menu {
    margin-left: 100px;
  }
}
ul.header_menu li {
  margin: 0;
  list-style: none;
  padding: 0;
}
@media only screen and (min-width:768px) {
  ul.header_menu li {
    display: inline;
  }
}
ul.header_menu a {
  font-size: 16px;
  font-weight: bold;
  display: block;
  color: #81735e;
  padding: 15px 0;
}
ul.header_menu a:hover,
ul.header_menu a:active,
ul.header_menu a.active,
ul.header_menu a:focus,
ul.header_menu a.focus {
  color: #ed6923;
}
.nav-invert ul.header_menu a {
  color: #ffffff;
}
.nav-invert ul.header_menu a:hover,
.nav-invert ul.header_menu a:active,
.nav-invert ul.header_menu a.active,
.nav-invert ul.header_menu a:focus,
.nav-invert ul.header_menu a.focus {
  color: #ed6923;
}
@media only screen and (min-width:768px) {
  ul.header_menu a {
    padding: 17px 10px 0 0;
    display: inline-block;
    font-size: 11px;
  }
}
@media only screen and (min-width:992px) {
  ul.header_menu a {
    font-size: 13px;
  }
}
/* Farm details */
.farm-detail {
  font-family: 'Roboto', sans-serif;
  padding: 0 5px;
}
@media only screen and (min-width:768px) {
  .farm-detail {
    padding-right: 15px;
  }
}
.farm-detail .farm_prename {
  margin: 0;
  text-transform: uppercase;
}
.farm-detail h3 {
  margin: 0;
  font-weight: bold;
  font-size: 18px;
}
.farm-detail h4 {
  background: #bad99d;
  padding: .6em 1em;
  color: #1f5177;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
}
.farm-detail .farm_info {
  margin-bottom: 1em;
  font-family: 'Roboto Condensed', sans-serif;
}
.farm-detail .farm_info .farm_support a:after {
  content: " - ";
}
.farm-detail .farm_info .farm_support a:last-child:after {
  content: "";
}
.farm-detail .farm_picture .farm_logo {
  max-width: 100%;
  margin-bottom: 1em;
  max-height: 100%;
  height: auto;
  width: auto;
  border: 1px solid #d2cbc5;
}
@media only screen and (min-width:992px) {
  .farm-detail .farm_picture .farm_logo {
    max-width: 500px;
  }
}
.farm-detail .farm_links {
  float: left;
  margin: 0 0 20px 0;
  width: 100%;
}
.farm-detail .farm_links a {
  float: left;
  text-indent: -1111px;
  background: url("/static/maps/images/farm_social.png") no-repeat center center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
}
.farm-detail .farm_links a:hover,
.farm-detail .farm_links a:active,
.farm-detail .farm_links a:focus {
  -khtml-opacity: 0.6;
  -webkit-opacity: 0.6;
  opacity: 0.6;
}
.farm-detail .farm_links a.farm_facebook {
  background-position: 0 0;
}
.farm-detail .farm_links a.farm_twitter {
  background-position: -48px 0;
}
.farm-detail .farm_links a.farm_website {
  background-position: -95px 0;
  width: 42px;
}
.farm-detail .farm_links a.farm_map {
  background-position: -153px 0;
}
.farm-detail .farm_links a.farm_instagram {
  background-position: -202px 0;
}
.farm-detail .farm_links .certification {
  float: right;
}
.farm-detail .farm_links .certification img {
  max-width: 50px;
}
.farm-detail .section .nav-tabs li {
  max-width: 25%;
}
.farm-detail .section .nav-tabs li a {
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px 10px 5px 30px;
  font-size: 11px;
  text-align: left;
  display: table-cell;
  vertical-align: middle;
  line-height: 90%;
  height: 45px;
  background-repeat: no-repeat;
  background-position: 5px center;
  background-size: auto 16px;
}
@media only screen and (min-width:768px) and max-width:992px {
  .farm-detail .section .nav-tabs li a {
    height: 40px;
    background-position: 3px center;
    background-size: auto 13px;
    padding: 5px 5px 5px 20px;
  }
}
.farm-detail .section .nav-tabs li a.veggie {
  color: #7bc142;
  background-image: url("/static/maps/images/farm_basket_green.png");
}
.farm-detail .section .nav-tabs li a.meat {
  color: #af3e4d;
  background-image: url("/static/maps/images/farm_basket_red.png");
}
.farm-detail .section .tab-content {
  background: #fff;
}
.farm-detail .section .tab-content .season_range {
  margin: 0;
  padding: 3px 0 0 5px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
}
.farm-detail table {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 13px;
  width: 100%;
  margin-top: 15px;
}
.farm-detail table tr:nth-child(odd) {
  background: #dcdcdc;
}
.farm-detail table tr:nth-child(even) {
  background: #e8e8e8;
}
.farm-detail table tr.season_header {
  background: transparent;
}
.farm-detail table td {
  text-align: center;
  padding: 5px;
}
.farm-detail table td.size {
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
}
.farm-detail ul.list_meat {
  margin: 0;
  padding: 10px;
  color: #af3e4d;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 14px;
}
.farm-detail ul.list_meat li {
  margin-left: 15px;
}
.farm-detail .footnote {
  font-size: smaller;
}
.legend-map {
  display: none;
}
@media only screen and (min-width:992px) {
  .legend-map {
    display: block;
    position: absolute;
    bottom: 5%;
    left: 32.999999%;
    z-index: 500;
    margin: 0;
    padding: 2px 0 0 0;
    background: #ffffff;
    overflow: hidden;
  }
}
.legend-map li {
  list-style: none;
  line-height: 12px;
  display: inline;
  padding: 7px 0 3px 30px;
  float: left;
  height: 34px;
}
.legend-map li.veggie {
  background: url("/static/maps/leaflet/images/marker_veggie.png") no-repeat 5px center / 18px auto;
  width: 150px;
}
.legend-map li.mixt {
  background: url("/static/maps/leaflet/images/marker_veggie_meat.png") no-repeat 5px center / 18px auto;
  width: 200px;
}
.legend-map li.meat {
  background: url("/static/maps/leaflet/images/marker_meat.png") no-repeat 5px center / 18px auto;
  width: 140px;
}
.legend-map li:last-child {
  padding: 0 10px 3px 0;
}
.legend-map li a {
  cursor: pointer;
  width: 40px;
}
.legend-map li a:hover {
  -khtml-opacity: 0.5;
  -webkit-opacity: 0.5;
  opacity: 0.5;
}
.legend-map li a span.glyphicon {
  font-size: 28px;
  vertical-align: middle;
  color: #ed6923;
  padding-top: 1px;
}
#registration_dialog iframe {
  width: 100%;
  border: none;
}
#registration_dialog .modal-backdrop {
  position: fixed;
  /* Rectify interaction with iFrameResizer */
}
#contest_equiterre {
  position: absolute;
  bottom: 20px;
  -webkit-border-radius: 0 / 50%;
  border-radius: 0 / 50%;
  right: 15px;
  z-index: 500;
  text-align: center;
  background-color: #ed6923;
  color: #ffffff;
  padding: 0 10px 10px 10px;
  width: 90%;
  box-shadow: 5px 5px 5px #888888;
  -webkit-animation: contest 1s 1;
  animation-fill-mode: forwards;
  animation-delay: 30s;
  -webkit-animation-delay: 30s;
  /* Safari and Chrome */
  -webkit-animation-fill-mode: forwards;
}
@media only screen and (min-width:768px) {
  #contest_equiterre {
    bottom: 135px;
  }
}
@media only screen and (min-width:768px) {
  #contest_equiterre {
    width: 30%;
  }
}
#contest_equiterre h1 {
  margin: 25px 0 10px 0;
  font-size: 26px;
}
#contest_equiterre .close {
  right: 0px;
  top: 10px;
  -khtml-opacity: 1;
  -webkit-opacity: 1;
  opacity: 1;
}
#promocode_equiterre {
  position: relative;
  background: #bad99d;
  padding: 15px;
  color: #1f5177;
}
#promocode_equiterre label {
  color: #1f5177;
}
@media only screen and (min-width:768px) {
  #promocode_equiterre {
    position: fixed;
    top: 130px;
    right: 30px;
    z-index: 1000;
    border: 2px solid #d2cbc5;
    max-width: 210px;
  }
}
#promocode_equiterre #promocode_message {
  color: red;
}
#promocode_equiterre #promocode_message.success {
  color: green;
}
@-webkit-keyframes contest {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  90% {
    opacity: 1;
    -webkit-transform: translateY(0px);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateY(-30px);
  }
}
