:root {
  --gold: #fece2a;
  --navy: #2f4d5d;
  --teal: #59b68c;
  --light-blue: #e2e8f0;
  --light-gold: #fffbec;
}

#tncms-region-global-container-top-fullscreen,
#tncms-region-index-fullscreen-main {
  margin: 0;
  padding: 0;
  font-family: "Lora", serif;
  text-transform: uppercase;
  color: var(--navy);
}

body > * {
  z-index: 2;
}

body a {
  color: var(--navy);
}

section {
  max-width: 1140px;
  margin: auto;
}

section#eat-drink-play {
  position: relative;
  z-index: 400;
}

/* MAP */

.large-banner {
  text-align: center;
  padding: 16px 0;
}

.large-banner h1 {
  margin: 0;
  font-weight: bold;
  font-size: 30px;
  color: #333;
}

#map {
  width: 100%;
  height: 500px;
  z-index: 3;
}

.mapboxgl-ctrl-attrib a:nth-child(3),
.mapboxgl-ctrl-attrib a:nth-child(4) {
  display: none;
}

.marker {
  background-image: url("jantastic_car.png");
  width: 62px;
  height: 62px;
  background-size: cover;
  top: -12px;
  position: relative;
}

.mapboxgl-ctrl-top-right {
  right: unset;
  left: 10px;
}

.mapboxgl-ctrl-top-right .mapboxgl-ctrl.mapboxgl-ctrl-geocoder {
  float: none;
}
/* END MAP */

/* MAPBOX POPUP */
.mapboxgl-popup-content {
  font-family: var(--sans-serif);
}

.mapboxgl-popup-content h1 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 8px;
  text-transform: none;
}

.mapboxgl-popup-content p {
  font-size: 16px;
  margin: 0;
  color:#666;
  text-transform: none;
}

/* END MAPBOX POPUP */

/* DIRECTORY */
.rounded-rect {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 50px -25px black;
}

.flex-center {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-center.right {
  right: 0px;
}

.sidebar-content,
#directory {
  position: absolute;
  width: 95%;
  height: 95%;
}

.sidebar-toggle {
  position: absolute;
  width: 20px;
  height: 90px;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px 0 0 6px;
}

.sidebar-toggle.right {
  left: -20px;
}

.sidebar-toggle:hover {
  color: var(--light-blue);
  cursor: pointer;
}

.sidebar {
  transition: transform 1s;
  z-index: 3;
  width: 300px;
  height: 100%;
}

.right.collapsed {
  transform: translateX(295px);
}

#directory {
  font-family: var(--sans-serif), "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

#directory ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  scroll-behavior: smooth;
}

#directory li {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

#directory li.selected {
  background: var(--light-blue);
  border-radius: 6px;
}

#directory li h1 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: bold;
  color: var(--navy);
}

#directory li h2 {
  font-weight: normal;
  text-transform: none;
  margin: 0;
  font-size: 14px;
}
/* END OF DIRECTORY */

/* DIRECTORY SEARCH */
.sidebar-content {
  flex-direction: column;
}

#directory {
  position: relative;
}

.search-form-container {
  width: 100%;
}

.search-form-container > form {
  padding: 10px;
  display: flex;
}

.search-form-container input,
.search-form-container button {
  padding: 8px;
}

.search-form-container input {
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  width: 100%;
  color: #555;
}

.search-form-container button {
  color: var(--navy);
  background: var(--gold);
  border: none;
  border-radius: 0 4px 4px 0;
  transition: all 250ms ease-out;
}

.search-form-container button:hover {
  cursor: pointer;
  filter: brightness(0.9);
}

.search-form-container button:active,
.search-form-container button:active:hover {
  filter: brightness(0.8);
}

#directory li#no-results {
  color: #bbb;
  text-align: center;
  font-size: 14px;
  border-bottom: none;
}

button#clearDirSearch {
    background: none;
    position: absolute;
    right: 48px;
    font-size: 16px;
    color: #000;
    opacity: 0.5;
}

button#clearDirSearch:hover {
    opacity: 0.8;
}

/* END OF DIRECTORY SEARCH */

/* EAT DRINK PLAY */

#selected-establishment-details {
  position: relative;
  display: flex;
  opacity: 0;
  justify-content: center;
  top: -400px;
  transition:
    top 1s ease-in-out,
    opacity 500ms ease-in-out;
  z-index: 1;
  margin-bottom: 2em;
  margin-top: 16px;
  height: 0;
}
/* EAT DRINK PLAY */

/* SPEECH BOX */
.speechbox {
  position: relative;
  width: 336px;
  padding: 3px;
  color: var(--navy);
  background: var(--navy);
  margin-right: 10px;
}
.speechbox-inner {
  background: var(--light-blue);
  padding: 20px 10px;
}

.speechbox:after {
  content: "";
  position: absolute;
  top: 100%;
  right: 25px;
  border-width: 30px 0 0 30px;
  border-style: solid;
  border-color: var(--navy) transparent;
}

.speechbox-inner:after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: 31px;
  border-width: 30px 0 0 30px;
  border-style: solid;
  border-color: var(--light-blue) transparent;
  z-index: 22;
}

.establishment-info {
  text-align: right;
}

.establishment-info h2 {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 20px;
  font-family: var(--serif);
  text-transform: uppercase;
  font-weight: bold;
}

.establishment-info p {
  margin: 0;
  margin-bottom: 0.1rem;
}

.establishment-links {
  display: flex;
  font-family: var(--sans-serif), sans-serif;
  text-transform: none;
  font-weight: 300;
  justify-content: flex-end;
}

.no-video .establishment-links {
  justify-content: flex-start;
}

.establishment-info p a {
  text-decoration: none;
}

#establishment-address,
#establishment-address2 {
  font-family: var(--sans-serif), sans-serif;
  text-transform: none;
  font-size: 18px;
}

#establishment-desc {
  margin: 10px 0 14px;
  font-family: var(--sans-serif), sans-serif;
  font-weight: 300;
  text-transform: none;
}

#speechbox-container {
  width: 475px;
  max-width: 100%;
}

.speechbox.no-video {
  width: 100%;
  margin-right: 0;
  margin-top: 16px;
}

.speechbox.no-video:after {
  top: unset;
  bottom: 99%;
  border-width: 0 18px 18px 18px;
  right: 45%;
}

.speechbox-inner.no-video:after {
  bottom: unset;
  top: -12px;
  right: 45%;
  border-width: 0 18px 18px 18px;
}

.no-video .establishment-info {
  text-align: center;
}

.speechbox-inner.no-video {
  padding: 20px;
}

/* END of SPEECHBOX */

@media screen and (max-width: 768px) {
  /* MAP & SPONSOR DETAILS TABLET & MOBILE */
  .large-banner {
    padding: 14px;
  }

  .large-banner h1 {
    font-size: 24px;
  }

  #map {
    height: 450px;
  }

  .sidebar {
    width: 235px;
  }

  .right.collapsed {
    transform: translateX(230px); /* width of .sidebar - 5px */
  }

  #directory li {
    padding: 6px 4px;
  }

  #directory li > h1 {
    font-size: 15px;
  }

  #directory li > h2 {
    font-size: 14px;
  }

  #selected-establishment-details {
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 0;
  }

  .establishment-links {
    justify-content: flex-start;
  }

  #player {
    width: calc(100% - 0px);
    height: 250px !important;
    margin-top: 4px;
  }

  #speechbox-container {
    width: 100%;
    margin-top: 4px;
  }

  .speechbox,
  .speechbox.no-video {
    margin: 16px auto 0;
    width: calc(100% - 20px);
  }

  .speechbox-inner {
    padding: 14px;
  }

  .speechbox:after {
    top: unset;
    bottom: 99%;
    border-width: 0 18px 18px 18px;
    right: 80%;
  }

  .speechbox-inner:after {
    bottom: unset;
    top: -8px;
    right: 80%;
    border-width: 0 18px 18px 18px;
  }

  .establishment-info {
    text-align: left;
  }

  .establishment-info h2 {
    margin: 2px 0 12px;
    font-size: 24px;
  }

  .establishment-info p {
    font-size: 14px;
  }

  /* END of SPONSOR DETAILS BELOW MAP TABLET & MOBILE */

  /* ESSENTIAL NOLA MAGAZINE */

  #essential-nola-magazine {
    flex-direction: column;
    align-items: center;
  }

  #essential-nola-magazine > div {
    margin: 8px 0;
  }

  #essential-nola-magazine .thumbnail-container {
    width: 185px;
  }

  #essential-nola-magazine .thumbnail-container img {
    position: relative;
    left: -14%;
  }

  #essential-nola-magazine ul {
    padding: 1em;
    margin-bottom: 0;
    font-size: 16px;
  }

  #essential-nola-magazine a.read-more-btn {
    margin: auto;
  }

  /* END of ESSENTIAL NOLA MAGAZINE */
}
