.resort-map-section {
  padding: 0 !important;
  padding-block: 0 !important;
  margin: 0;
  background-image: var(--theme-img-shadow-fx);
  background-size: cover;
  background-position: center;
  /* No `background-attachment: fixed` here: it pinned this texture to the
     window while the second texture layer (.resort-map-content::before)
     scrolled with the page, so the background seemed to slide while scrolling. */
  position: relative;
}

.resort-map-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.resort-map-content {
  padding:5% 10%;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 36px;
  position: relative;
  overflow: hidden;
}

.resort-map-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--theme-img-shadow-fx);
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  transform: rotate(180deg);
  pointer-events: none;
  z-index: 0;
}

.resort-map-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.resort-map-content > * {
  position: relative;
  z-index: 1;
}

.content-header {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 580px;
}

.eyebrow-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-family: 'Cronos Pro', serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 21px;
  letter-spacing: 2.8px;
  color: var(--Color-Marine-Dark, #002542);
  word-wrap: break-word;
}

.eyebrow-divider {
  width: 80px;
  height: 1px;
  background: var(--Color-Marine-Dark, #002542);
}

.main-heading {
  margin: 0;
  font-size: 56px;
  font-family: 'Rufina', serif;
  font-weight: 400;
  line-height: 56px;
  color: var(--Color-Marine-Dark, #002542);
  word-wrap: break-word;
}

.content-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 60px;
  max-width: 580px;
}

.description-text {
  margin: 0;
  font-size: 20px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  line-height: 30px;
  color: var(--Color-Marine-Dark, #002542);
  word-wrap: break-word;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--Color-Marine-Dark, #002542);
  color: var(--Color-Marine-Dark, #002542);
  text-decoration: none;
  font-size: 14px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  line-height: 14px;
  transition: opacity 0.2s ease;
  width: fit-content;
}

.explore-link:hover {
  opacity: 0.7;
}

.explore-link svg {
  width: 20px;
  height: 20px;
  color: inherit;
  stroke: currentColor;
}

.resort-map-container {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* Sand, not black: if the map image is missing, the box stays calm. */
  background: var(--color-sand, #f2f0e7);
}

.resort-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.locations-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.location-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: all;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.location-pin:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.location-pin.active .pin-icon {
  background: var(--Color-Primary-Accent, #014899);
}

.pin-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF9F2;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.pin-plus {
  font-size: 18px;
  font-weight: 600;
  color: var(--Color-Primary-Accent, #014899);
  line-height: 1;
}

.location-pin.active .pin-plus {
  color: #FAF9F2;
}

.map-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 72px;
  z-index: 10;
}

.control-btn {
  height: 44px;
  padding: 12px 16px;
  border: none;
  border-radius: 32px;
  background: transparent;
  font-size: 14px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 500;
  line-height: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  word-wrap: break-word;
}

.control-btn.active {
  background: #FAF9F2;
  color: var(--Color-Marine-Dark, #002542);
}

.control-btn:not(.active) {
  color: #FAF9F2;
}

.control-btn:hover:not(.active) {
  opacity: 0.8;
}

/* Dropdown Card Styles */
.location-dropdown {
  position: absolute;
  transform: translate(-50%, 20px);
  background: #FAF9F2;
  border-radius: 8px;
  padding: 20px;
  max-width: 280px;
  width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 20;
  pointer-events: all;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 20px);
  }
}

.dropdown-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--Color-Marine-Dark, #002542);
  font-family: 'Instrument Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.dropdown-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 37, 66, 0.7);
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  /* Phones: heading block above the text, not side by side. */
  .resort-map-content {
    flex-direction: column;
    padding: 64px 16px 40px;
    gap: 24px;
  }

  .content-header {
    gap: 24px;
  }

  .main-heading {
    font-size: 32px;
    line-height: 40px;
  }

  .description-text {
    font-size: 16px;
    line-height: 24px;
  }

  .eyebrow-label {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 2.4px;
  }

  .content-details {
    gap: 24px;
    padding-top: 0; /* the column gap already spaces it from the heading */
  }

  .resort-map-container {
    aspect-ratio: 4 / 5;
  }

  .map-controls {
    bottom: 16px;
  }

  .control-btn {
    padding: 10px 14px;
    font-size: 12px;
    line-height: 12px;
  }

  .location-dropdown {
    max-width: 240px;
    width: 240px;
    padding: 16px;
  }

  .dropdown-title {
    font-size: 16px;
  }

  .dropdown-description {
    font-size: 12px;
  }
}

/* Short laptop screens (<=820px tall): at full width the 16:9 map was taller
   than the screen, so its bottom pins were never visible together with the
   top ones. Cap the width so the whole map fits under the header; pins are
   positioned in % so they stay on their spots. */
@media (min-width: 769px) and (max-height: 820px) {
  .resort-map-container {
    max-width: calc((100svh - 130px) * 16 / 9);
    margin-inline: auto;
  }
}
