.map-section {
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #033f35;
}

.map-section > .map-section__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1050px;
  width: 80%;
  padding: 2rem 0;
  margin: 0 auto;
}

.map-section > .map-section__container > .map-data {
  text-align: left;
  width: 100%;
  max-width: 400px;
}

.map-section > .map-section__container > .map-data > span {
  margin-bottom: 1.5rem;
  font-size: 12px;
  display: block;
  color: #fff;
  text-align: left;
}

.map-section > .map-section__container > .map-data > h2 {
  margin: 4rem 0;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 600;
  text-align: left;
  color: #fff;
  display: flex;
  flex-direction: column;
  text-wrap-style: pretty;
}

.map-section > .map-section__container > .map-data > h2 > span {
  color: #97e15b;
}

.map-section > .map-section__container > .map-data > a {
  background-color: #97e15b;
  color: #033f35;
  font-weight: 600;
  padding: 0.5rem 2rem;
  border-radius: 35px;
  max-width: 350px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s ease;
  font-size: 1rem;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  border: 1px solid #97e15b;
  -webkit-box-shadow: 0 10px 27px -15px rgb(0 0 0 / 1.75);
  -moz-box-shadow: 0 10px 27px -15px rgb(0 0 0 / 1.75);
  box-shadow: 0 10px 27px -15px rgb(0 0 0 / 1.75);
  position: relative;
  z-index: 10;
}

.map-section > .map-section__container > .map-data > a:active {
  transform: scale(0.95);
}

.map-section > .map-section__container > .map-data > a:hover {
  color: #99e775;
  background-color: #033f35;
}

/* Map container */
.map-section > .map-section__container > .map-container {
  width: 100%;
  max-width: 550px;
  position: relative;
  gap: 2rem;
  border-radius: 2.5rem;
}

/* ID Map */
.map-section > .map-section__container > .map-container > #map {
  width: 100%;
  height: 400px;
  position: unset;
  overflow: hidden;
}

.map-section > .map-section__container > .map-container > #map > .mapboxgl-canvas-container {
  position: relative;
}

.map-section > .map-section__container > .map-container > #map > .mapboxgl-canvas-container > .mapboxgl-canvas {
  border-radius: 19px;
  z-index: 10;
}

.map-section > .map-section__container > .map-container > #map > .mapboxgl-canvas-container > .mapboxgl-marker {
  z-index: 20;
}

.map-section > .map-section__container > .map-container > #map .mapboxgl-ctrl.mapboxgl-ctrl-attrib {
  display: none !important;
}

/* Map style */
.map-section > .map-section__container > .map-container > .map_style {
  width: 100%;
  height: 400px;
  position: unset;
  overflow: hidden;
  border-radius: 19px;
}

.map-section > .map-section__container > .map-container > .map_style > .mapboxgl-canvas-container {
  position: relative;
}

.map-section > .map-section__container > .map-container > .map_style > .mapboxgl-canvas-container > .mapboxgl-canvas {
  border-radius: 19px;
  z-index: 10;
}

.map-section > .map-section__container > .map-container > .map_style > .mapboxgl-canvas-container > .mapboxgl-marker {
  z-index: 20;
}

.map-section > .map-section__container > .map-container > .map_style .mapboxgl-ctrl.mapboxgl-ctrl-attrib {
  display: none !important;
}

.map-section > .map-section__container > .map-container > .map_style > a {
  overflow: hidden;
}

.map-section > .map-section__container > .map-container > .map_style > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.map-section > .map-section__container > .map-container > .map_style > a:hover img {
  transform: scale(1.05);
}

/* Layer back */
.map-section > .map-section__container > .map-container > .layer_back:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 50;
  border-radius: 19px;
}

.map-section > .map-section__container > .map-container > .layer_back > .layer_back_p {
  margin: 0;
  position: absolute;
  font-size: 1.5rem;
  z-index: 90;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.map-section > .map-section__container > .map-container > .layer_back > .mapboxgl-control-container {
  display: none;
}

/* Picture */
.map-section > picture {
  width: 100%;
  height: 100px;
  position: relative;
  margin-top: -6rem;
}

.map-section > picture > img {
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  bottom: 0;
}

/* Popup */
.map-section .popup-content {
  text-decoration: none;
  text-align: center;
  font-family: 'Poppins';
  position: relative;
  height: 100%;
  display: block;
}

.map-section .popup-content:focus {
  outline: none;
  box-shadow: none;
}

.map-section .popup-content > img {
  width: auto;
  height: 290px;
  border-radius: 19px;
}

.map-section .popup-content > div {
  border-radius: 19px;
  background-color: #e8e8e8;
  position: absolute;
  bottom: -8px;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  color: #033f35;
}

.map-section .popup-content > div > .name {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  width: 50%;
}

.map-section .popup-content > div > .address {
  font-size: clamp(0.45rem, 0.65rem, 0.7rem);
  text-wrap-style: balance;
  line-height: 1.1;
  text-align: left;
  font-weight: 700;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.map-section .popup-content > div > .address > img {
  height: 1rem;
  display: block;
}

.map-section .popup-content > span {
  display: block;
  font-size: 8px;
  color: #033f35;
  border-radius: 35px;
  padding: 0.1rem;
  font-weight: 700;
}

.map-section .popup-content > strong {
  font-size: 18px;
  color: #033f35;
  display: block;
  margin-bottom: 5px;
}

.map-section .popup-content > .location {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: #fff;
  font-weight: 700;
  font-size: clamp(0.4rem, 0.7vw, 0.65rem);
  padding: 0 0.3rem;
}

.map-section .popup-content > .status {
  background-color: #97e15b;
  position: absolute;
  top: 5px;
  right: 5px;
  font-weight: 700;
  font-size: clamp(0.4rem, 0.7vw, 0.65rem);
  padding: 0 0.3rem;
}

.map-section .custom-popup {
  border-radius: 2rem;
  z-index: 30;
  top: 44px !important;
  left: -19px !important;
}

.map-section .mapboxgl-popup-content {
  border-radius: 16px !important;
  text-align: center;
  padding: 0;
  background: none;
}

/* Responsive */
@media (min-width: 1000px) {
  .map-section {
    padding: 2rem 0rem 0rem;
  }
  .map-section > .map-section__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .map-section > .map-section__container > .map-data {
    max-width: 300px;
    text-align: left;
  }
  .map-section > .map-section__container > .map-data > a {
    margin: 0 0 -2.3rem 0;
  }
  .map-section > .map-section__container > .map-container {
    max-width: initial;
  }
  .map-section > img {
    z-index: 0;
    width: 100%;
    height: auto;
    bottom: -2rem;
    position: absolute;
  }
}