/****************************************
* Missionary
****************************************/

.missionaries.grid {
  display: grid;
  gap: 1rem;
  flex-grow: 1;
}

.missionaries .side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: .5rem;
  max-height: 500px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.searchWrapper {
  position: sticky;
  top: 0;
  z-index: 1;
  grid-column: span 2;
}

.searchWrapper svg {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 20px;
  height: 20px;
  fill: #aeaeae;
  pointer-events: none;
}

.searchWrapper input {
  margin-bottom: .25rem;
  border: 1px solid #efefef;
  box-shadow: 0 0 5px rgba(219, 219, 219, 0.5);
  width: 100%;
  height: 42px;
  padding: 5px 5px 5px 35px;
  border-radius: 5px;
  outline: none !important;
}

.missionary {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, .5);
  border: 1px solid #efefef;
  border-radius: 10px;
  padding: 7px;
  text-align: left;
  transition: all .4s ease;
}

.missionary.d-none {
  display: none;
}

/* .missionary + .missionary {
  margin-top: .5rem;
} */

.missionary .imageWrapper {
  aspect-ratio: 1.5;
  border-radius: 5px;
  overflow: hidden;
}

.missionary img {
  background-color: transparent;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.missionary .details {
  padding: 4px 6px;
}

.missionary p,
.missionary p:hover {
  font-size: 13px;
  color: #000000;
}

.missionary p > strong {
  font-size: 15px;
}

@media(min-width: 768px) {
  .missionaries.grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .missionaries .tt_map {
    grid-column: 2;
    grid-row: 1;
  }

  .missionaries .side {
    grid-column: 1;
    grid-row: 1;
    padding: 0 1rem;
  }

  .missionary:hover {
    transform: scale(1.03);
    background-color: #ffffff;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, .1);
  }
}

@media(min-width: 1140px) {
  .missionaries.grid {
    grid-template-columns: 400px 1fr;
  }
    
  .missionary + .missionary {
    margin-top: 0;
  }
}

@media(min-width: 1800px) {
  .missionaries.grid {
    grid-template-columns: 500px 1fr;
  }
}

/****************************************
* Map
****************************************/

#tt_map {
  min-height: 300px;
  height: 100%;
}

@media(min-width: 768px) {
  #tt_map {
    min-height: 500px;
  }
}

#tt_map .marker {
  background-color: var(--tt-theme-color, #3E567E);
  box-shadow: 3px 4px 10px rgba(0, 0, 0, .2);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  transition: .4s all ease-in;
}

#tt_map .marker.on {
  background-size: 160%;
  background-position: center;
  width: 40px;
  height: 40px;
  z-index: 100;
}

#tt_map .location {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: .75rem;
  align-items: center;
  background-color: rgba(255, 255, 255, .9);
  border-radius: 10px;
  width: 100%;
  padding: 1rem 1.5rem 1rem 1rem;
}

#tt_map .location img,
#tt_map .location .imageWrapper {
  width: 50px;
  height: 50px;
}

#tt_map .location img {
  border: 2px solid var(--tt-theme-color, #3E567E);
  border-radius: 50%;
  object-fit: cover;
}

#tt_map .location .details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 100%;
}

#tt_map .location h2,
#tt_map .location p {
  margin: 0;
  color: #000000;
}

#tt_map .location h2 {
  font-size: 14px;
  white-space: nowrap;
}

#tt_map .location p {
  font-size: 13px;
  line-height: 1.2em;
}

#tt_map .mapboxgl-ctrl-attrib-inner a {
  font-size: 12px;
}

#tt_map .mapboxgl-popup {
  max-width: 100% !important;
}

#tt_map .mapboxgl-popup-close-button {
  right: 5px;
  outline: none !important;
}

#tt_map .mapboxgl-popup-content {
  border-radius: 10px;
  width: auto;
  padding: 0;
}

#tt_map .mapboxgl-ctrl-logo {
  display: none !important;
}
