@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&display=swap");

:root {
  --color-highlight: #650b0b; /*Original: #00853e*/
  --color-highlight-hover: #650b0b9d; /*Original: #00853e*/
  --color-dark: #1f1f1f /*Original: #404040*/;
  --color-alert-border: #650b0b; /*Original: #91c949*/
  --color-alert-bck: #650b0b33; /*Original: #91c9498a*/
}

body {
  color: var(--color-dark);
  font: 400 18px/26px "EB Garamond", "Helvetica Neue", serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.text--bold {
  font-weight: bold;
}

.text--center {
  text-align: center;
}

/*  */

.wrap {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
  width: 100%;
}

.sidebar {
  flex: 1 1 100px;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.25);
}
.pad2 {
  padding: 20px;
}

.map {
  flex: 1 1 800px;
  height: 100vh;
}

h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 400;
  line-height: 20px;
  padding: 20px 2px;
}

a {
  color: var(--color-dark);
  text-decoration: none;
}

a:hover {
  color: #101010;
}

.heading {
  background: #fff;
  border-bottom: 1px solid #eee;
  min-height: 60px;
  line-height: 60px;
  padding: 0 10px;
  background-color: var(--color-highlight);
  color: #fff;
}

.listings {
  height: 100%;
  overflow: auto;
  padding-bottom: 60px;
}

.listings .item {
  display: block;
  border-bottom: 1px solid #eee;
  padding: 10px;
  text-decoration: none;
}

.listings .item:last-child {
  border-bottom: none;
}

.listings .item .title {
  display: block;
  color: var(--color-highlight);
  font-size: 18px;
  font-weight: 700;
}
.listings .item .title small {
  font-weight: 400;
}
.listings .item.active .title,
.listings .item .title:hover {
  color: var(--color-highlight-hover);
}

.listings .item.active {
  background-color: #f8f8f8;
}
::-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: var(--color-highlight);
  border-radius: 0;
}

/* office hours table */
.office-hours {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
}

.office-hours table {
  flex-grow: 1;
  /* flex-basis: 300px; */
  border-collapse: collapse;
  border-left: 4px solid var(--color-highlight);
}

.office-hours table caption {
  border-left: 4px solid var(--color-highlight);
  font-weight: 700;
  text-align: left;
  padding: 10px;
}

.office-hours table tr.today {
  font-weight: bold;
}

.office-hours table td {
  padding: 3px 10px;
}

.office-hours .details {
  width: 100%;
}

.office-hours .details p:first-child {
  border-collapse: collapse;
  /* border-left: 3px solid var(--color-highlight); */
  padding: 5px;
  border-bottom: solid 3px var(--color-alert-border);
  background-color: var(--color-alert-bck);
}

.office-hours .details p {
  /* box-shadow: 3px 5px 5px var(--color-alert-bck); */
}

.office-hours .details p:last-child {
  border-bottom: solid 3px var(--color-alert-border);
  background-color: var(--color-alert-bck);
  padding: 5px;
}

/* map */
.marker {
  border: none;
  cursor: pointer;
  height: 36px;
  width: 36px;
  background: url(./../assets/pin.svg) no-repeat;
  background-color: rgba(0, 0, 0, 0);
}

.clearfix {
  display: block;
}
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/* Marker tweaks */
.mapboxgl-popup {
  padding-bottom: 60px;
}

.mapboxgl-popup-close-button {
  display: none;
}
.mapboxgl-popup-content {
  font: 400 15px/22px "Source Sans Pro", "Helvetica Neue", Sans-serif;
  padding: 0;
  width: 180px;
}
.mapboxgl-popup-content-wrapper {
  padding: 1%;
}
.mapboxgl-popup-content h3 {
  background: var(--color-highlight);
  color: #fff;
  margin: 0;
  display: block;
  padding: 10px;
  border-radius: 3px 3px 0 0;
  font-weight: 700;
  margin-top: -15px;
}

.mapboxgl-popup-content h4 {
  margin: 0;
  display: block;
  padding: 10px 10px 10px 10px;
  font-weight: 400;
}

.mapboxgl-popup-content div {
  padding: 10px;
}

.mapboxgl-container .leaflet-marker-icon {
  cursor: pointer;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-content {
  margin-top: 15px;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
  border-bottom-color: #91c949;
}
