.destination-map-wrapper {
  width: 100%;
}

.destination-map {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  overflow: visible;
}

/* Responsive map picture */
.destination-map__picture {
  display: block;
  width: 100%;
}

.destination-map__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Desktop / tablet map elements are visible by default */
.destination-map__desktop-only {
  display: block;
}

/* Mobile map elements are hidden by default */
.destination-map__mobile-only {
  display: none;
}

/* Each beach item */
.destination-map__item {
  position: static;
}

/* Dashed connection line */
.destination-map__pin-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.destination-map__pin-line line {
  stroke: #011425;
  stroke-width: 0.8;
  stroke-dasharray: 1.4 1.1;
  vector-effect: non-scaling-stroke;
  opacity: 0.75;
}

/* Active dashed connection line */
.destination-map__item.is-active .destination-map__pin-line line {
  stroke: #066fce;
  opacity: 1;
}

/* Real beach point */
.destination-map__actual-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #011425;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

/* Active real beach point */
.destination-map__item.is-active .destination-map__actual-dot {
  background: #066fce;
}

/* Marker position */
.destination-map__pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 3;
}

/* Marker button */
.destination-map__pin-button {
  display: block;
  width: 30px;
  height: 45px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

/* Marker image */
.destination-map__pin-marker {
  position: relative;
  display: block;
  width: 30px;
  height: 45px;
  background-image: url("../images/map-point.png");
  background-repeat: no-repeat;
  background-size: 30px 45px;
  background-position: center;
  transition: transform 0.2s ease;
}

/* Active marker image */
.destination-map__pin.is-active .destination-map__pin-marker {
  background-image: url("../images/map-point-active.png");
}

/* Beach image inside marker */
.destination-map__pin-photo {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
}

.destination-map__pin-photo img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 50%;
}

/* Hover / active marker scale */
.destination-map__pin.is-active {
  z-index: 5;
}

.destination-map__pin.is-active .destination-map__pin-marker,
.destination-map__pin-button:hover .destination-map__pin-marker,
.destination-map__pin-button:focus .destination-map__pin-marker {
  transform: scale(1.08);
  transform-origin: bottom center;
}

.destination-map__pin-button:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.destination-map__pin-button:focus-visible .destination-map__pin-marker {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Hidden source content */
.destination-map__details-source {
  display: none;
}

/* Details below the map */
.destination-map__details-panel {
  max-width: 800px;
  margin: 35px auto 0;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 0 49px rgba(0, 0, 0, 0.12);
}

.destination-map__details-panel:empty {
  display: none;
}

.destination-map__details-inner {
  width: 100%;
}

.destination-map__details-title {
  margin-top: 0;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 30px;
}

.destination-map__details-body {
  margin-bottom: 20px;
}

.destination-map__details-body p:last-child {
  margin-bottom: 0;
}

.destination-map__details-travel-time {
  margin-bottom: 16px;
  padding: 10px 0;
  color: #7a7a7a;
  border-top: 1px solid #d7d7d7;
  border-bottom: 1px solid #d7d7d7;
  font-size: 15px;
  font-weight: 600;
}

.destination-map__details-travel-time .fa-solid {
  margin: 0 5px 0 0;
  color: #bfa888;
  transform: scaleX(-1);
}

/* Gallery */
.destination-map__details-gallery .field__label {
  display: none;
}

.destination-map__details-gallery .field--name-field-imgsgalpage {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border-top: none !important;
}

.destination-map__details-gallery
  .field--name-field-imgsgalpage
  .field__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 0 0;
}

.destination-map__details-gallery .field--item {
  display: block;
}

.destination-map__details-gallery .field--item img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Tablet: 740px to 980px */
@media (min-width: 740px) and (max-width: 980px) {
  .destination-map__details-panel {
    margin-top: 24px;
    padding: 20px;
  }
}

/* Mobile: up to 739px */
@media (max-width: 739px) {
  .destination-map-wrapper {
    overflow-x: hidden;
  }

  /* Hide desktop coordinates, lines, dots and pins */
  .destination-map__desktop-only {
    display: none;
  }

  /* Show mobile coordinates, lines, dots and pins */
  .destination-map__mobile-only {
    display: block;
  }

  .destination-map__pin-button,
  .destination-map__pin-marker {
    width: 30px;
    height: 45px;
  }

  .destination-map__pin-marker {
    background-size: 30px 45px;
  }

  .destination-map__pin-photo {
    left: 2px;
    top: 2px;
    width: 26px;
    height: 26px;
  }

  .destination-map__pin-photo img {
    width: 26px;
    height: 26px;
  }

  .destination-map__actual-dot {
    width: 7px;
    height: 7px;
  }

  .destination-map__details-panel {
    margin: 35px 15px;
    padding: 18px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.12);
  }

  .destination-map__details-title {
    font-size: 25px;
  }
}