:root {
  --green: #0A8008;
}
.map-wrp{
	width:100%;
	position:relative;
	height:100vh;
  /* max-width: 1200px; */
  margin: 0 auto;
}
@media (min-width: 992px){
  .map-wrp{
    min-height: 870px;
  }
}
#map {
  z-index:1;
  position: absolute; top: 0; bottom: 0; width: 100%;
}
h1 {
  font-size:22px;
  margin:0;
  font-weight:400;
}
a {
  color:#404040;
  text-decoration:none;
}
a:hover { color:#101010; }


.quiet {
  color:#888;
}

.sidepanel {
  position:absolute;
  width:100%;
  inset: 0;
  z-index: 2;
  background-color: transparent;
  backdrop-filter: none;
  pointer-events: none;
  transition: .15s ease;
}
@media (min-width:768px){
  .sidepanel {
    pointer-events: all;
    width: 240px;
  }
}
.sidepanel.openListing {
  background-color: hsla(120, 20%, 20%, .6);
  backdrop-filter: sepia(.3) blur(10px);
  z-index: 100;
  pointer-events: all;
}
@media (min-width: 768px){
  .sidepanel.openListing {
    background-color: transparent;
    backdrop-filter: none;
    pointer-events: all;
  }
  .sidepanel.openListing #mobile-listing-toggle {
    display: none;
  }
}

.farms-listing {
  width: 80%;
  margin: 20px auto;
  display: none;
}
@media (min-width: 385px){
  .farms-listing {
    width: 50vw;
    margin-left: auto;
    margin-right: 20px;
  }
}
@media (min-width: 520px){
  .farms-listing {
    margin-left: auto;
    margin-top: 30px;
    margin-right: 30px;
  }
}
@media (min-width: 644px){
  .farms-listing {
    margin-left: auto;
    margin-top: 40px;
    margin-right: 40px;
  }
}
.openListing .farms-listing {
  display: block;
}
@media (min-width: 768px){
  .farms-listing {
    width: 200px;
    margin: 20px;
    display: block;
  }
}
.farms-listing-item {
  display:block;
  padding: 5px 10px;
  background: hsl(0, 0%, 100%, .65);
  text-decoration:none;
  width: 100%;
  margin-bottom: 7px;
  cursor: pointer;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  transition: .25s ease;
  box-shadow: 0px 4px 15px 0px #00000033;
  animation-timing-function: ease;
  animation-delay: var(--animate-delay);
  animation-fill-mode: both;
}
.openListing .farms-listing-item {
  background: #fff;
}
@media (max-width: 768px) {
  .farms-listing-item {
    font-size: 17px;
  }
}
@media (max-width: 644px) {
  .farms-listing-item {
    font-size: 16px;
  }
}
.animate-listing-item {
  animation-name:fadeInListingItem;
  animation-duration: 1s;
}
@keyframes fadeInListingItem {
  0%{
    opacity: 0;
    transform:  translateY(20%);
  }
  100%{
    opacity: 1;
    transform: none;

  }
}
.farms-listing-item:last-child { border-bottom:none; }

.farms-listing-item:hover { box-shadow:none;}
.farms-listing-item:active,
.farms-listing-item.active {
  color:#fff;
  background-color:var(--green);
}

::-webkit-scrollbar {
  width:3px;
  height:3px;
  border-left:0;
  background:rgba(0,0,0,0.1);
}
::-webkit-scrollbar-track {
  background:none;
}
::-webkit-scrollbar-thumb {
  background:#696969;
  border-radius:0;
}



/* Marker tweaks */
.mapboxgl-popup {
  max-width: 500px !important;
  min-width: 200px;
  border-radius: 5px;
}



.mapboxgl-popup-close-button {
  position: absolute;
  right: 7px;
  top: 7px;
  border: 1px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  line-height: 23px;
  padding: 0;
  background-color: transparent;
  font-size: 20px;
  font-weight: 600;
  color:#fff;
}
.mapboxgl-popup-content {
  font: 300 14px 'Montserrat', 'Helvetica Neue', Sans-serif;
  padding: 0;
  box-shadow: 0px 4px 16px 0px #00000040;

}
.mapboxgl-popup-content-wrapper {
  display:block;
  padding:0;
  background: #f8f8f8;
  width: 300px;
}




.mapboxgl-popup-content{
	padding:0px !important;
  border-radius: 5px;

}
.mapboxgl-popup-content h3 {
  background:var(--green);
  border-radius:5px 5px 0 0;
  color:#fff;
  margin:0;
  display:block;
  font-size: 19px;
  font-weight: 600;
  padding:8px 0 8px 15px;
}
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content h3 {
  border-top-left-radius: 0;
}
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content h3 {
  border-top-right-radius: 0;
}
.mapboxgl-popup-content .description {
  min-width: 120px;
}
.mapboxgl-popup-content .description div:not(:first-child) {
  margin-top: 10px;
}
.mapboxgl-popup-content .description div b {
  font-weight: 600;
}
.mapboxgl-popup-content .description .location  {
  animation-fill-mode: both;
  animation-name: fadeInText;
  animation-duration: .7s;
}
.mapboxgl-popup-content .description .crop {
  animation-fill-mode: both;
  animation-name: fadeInText;
  animation-duration: .7s;
  animation-delay: .3s;
}
.mapboxgl-popup-content .description .acres {
  animation-fill-mode: both;
  animation-name: fadeInText;
  animation-duration: .7s;
  animation-delay: .6s;

}
@keyframes fadeInText {
  0%{
    opacity: 0;
    transform: translateX(15%);
  }
  100%{
    opacity: 1;
    transform: none;

  }
}

.mapboxgl-popup-content .image {
  flex: none;
  object-fit: cover;
  max-width: 100%;
  border-radius: 5px;
  border: 3px solid #00000026;
  margin-left: 12px;
  animation-name:animatePopupImage;
  animation-duration: .8s;
  /* animation-delay: .5s; */
  animation-fill-mode: both;
}
@keyframes animatePopupImage {
  0%{
    opacity: 0;
    transform: scale(.8);
    filter: saturate(0);
  }
  100%{
    filter: saturate(1.2) brightness(1.3);
  }
}


.left {
  float: left;
  width: 50%;
}

.left img {
  height: 100px;
  width: 100%;
  overflow: hidden;
}

.sections {
  width: 100%;
  height: 100%;
  position: relative;
}

.sidebar {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow-x: clip;
}
@media (max-width: 992px){
  .sidebar {
    height: 96%;
    overflow-y: auto;
  }
}


.clearfix { display:block; }
.clearfix:after {
  content:'.';
  display:block;
  height:0;
  clear:both;
  visibility:hidden;
}


/* new map style */
.marker {
  z-index: 0;
}
.marker:hover {
  cursor: pointer;
  z-index: 10;
}
.marker-icon {
  background-image: url(../images/marker-tree.svg);
  background-position: bottom;
  background-repeat: no-repeat;
  width: 34px;
  height: 45px;
  animation-timing-function: ease-in-out;
  animation-delay: var(--animate-delay);
  animation-fill-mode: both;

  transition: .15s ease-out;
}
.markerEntrance {
  animation-name: markerEntrance;
  animation-duration: .3s;
}
.marker.active {
  z-index: 10;
}
.marker:active .marker-icon,
.marker:hover .marker-icon,
.marker.active .marker-icon {
  z-index: 5;
  transform: scale(1.4);
  filter: brightness(1.2) saturate(1.3) drop-shadow(0 4px 4px hsl(0, 0%, 0%, .15)) !important;
}

@keyframes markerEntrance {
  0%{
    opacity: 0;
    filter: blur(5px) sepia(1) brightness(2);
  }
  100%{
    opacity: 1;
    filter: none;
  }
}

/* map controls */
.map-control, .mapboxgl-ctrl {
  --control-size: 60px;
  --control-offset: 40px;
}
@media (max-width:644px) {
  .map-control, .mapboxgl-ctrl {
    --control-size: 50px;
  --control-offset: 30px;
  }
}
@media (max-width:520px) {
  .map-control, .mapboxgl-ctrl {
  --control-offset: 20px;
  }
}
#reset_map {
  display: grid;
  place-items: center;
  width: var(--control-size);
  height: var(--control-size);
  border-radius: 15px;
  background-color: hsl(0, 0%, 100%, .5);
  position: absolute;
  right: var(--control-offset);
  top: var(--control-offset);
  z-index: 8;
}
.control-appear {
  /* display: none; */
  animation-name: controlAppear;
  animation-duration: 2s;
  animation-delay: 2s;
  animation-fill-mode: both;
  opacity: 0;
}
@keyframes controlAppear {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
#reset_map svg{
  width: 65%;
  color: #000;
}

#reset_map:hover {
  background-color: hsl(0, 0%, 100%, .8);
}
#reset_map:active {
  background-color: var(--green);
  color: #fff;
}

#mobile-listing-toggle {
  cursor: pointer;
  pointer-events: all;
  display: grid;
  place-items: center;
  width: var(--control-size);
  height: var(--control-size);
  border-radius: 15px;
  background-color: hsl(0, 100%, 100%, .5);
  position: absolute;
  left: var(--control-offset);
  top: var(--control-offset);
  z-index: 8;
  color: var(--green);
  transition: .2s ease;
}
.openListing #mobile-listing-toggle {
  display: none;
}
@media (min-width: 385px) {
  .openListing #mobile-listing-toggle {
    display: grid;
    background-color: hsl(0, 100%, 100%, 1);
  }
}

@media (min-width: 768px){
  #mobile-listing-toggle {
    display: none;
  }
}
#mobile-listing-toggle svg{
  width: 26px;
}

#mobile-listing-toggle:hover {
  background-color: hsl(0, 0%, 100%, .8);
}
#mobile-listing-toggle:active {
  background-color: var(--green);
  color: #fff;
}

/* zoom in/out */
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
  border-bottom-color: var(--green);
}
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip {
  border-bottom-color: var(--green);
}
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
  border-bottom-color: var(--green);
}

.mapboxgl-ctrl-group:not(:empty) {
  box-shadow: none;
}
.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl {
  margin: 0 var(--control-offset) var(--control-offset) 0;
  background: transparent;
}

.mapboxgl-ctrl-group button {
  width: var(--control-size);
  height: var(--control-size);
  border-radius: 10px !important;
  background-color: hsl(0, 0%, 100%, .5);
  transition: .3s ease;
}
.mapboxgl-ctrl button:not(:disabled):hover {
  background-color: hsl(0, 0%, 100%, .8);
}
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out {
  margin-top: 20px;
}
@media (max-width: 643px){
  .mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out {
    margin-top: 10px;
  }
}
@media (max-width: 520px){
  .mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out {
    margin-top: 7px;
  }
}
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {
  background-image: url(../images/zoom-in.svg);
  background-size: 40%;

}
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {
  background-image: url(../images/zoom-out.svg);
  background-size: 40%;

}
.mapboxgl-ctrl :is(.mapboxgl-ctrl-zoom-in, .mapboxgl-ctrl-zoom-out):active {
  background-color: var(--green);
  color: #fff;
}

