.marine-explorer {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30vh;
  padding-bottom: 5vh;
  padding-left: 20px;
  padding-right: 20px;
  gap: 5vh;
  box-sizing: border-box;
  transition: padding-top 420ms ease;
}

.marine-explorer-typeahead-panel,
.marine-explorer-detail-panel {
  width: 100%;
  max-width: min(80vw, 900px);
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.marine-explorer-detail-panel {
  display: none;
  position: relative;
  overflow: visible;
}

.marine-explorer.is-detail-visible .marine-explorer-detail-panel {
  display: block;
  height: 25vh;
  min-height: 25vh;
  max-height: 25vh;
}

.marine-explorer.is-detail-visible.is-detail-expanded .marine-explorer-detail-panel {
  min-height: 0;
  max-height: none;
  height: auto;
}

.marine-explorer.is-detail-visible.is-detail-expanded {
  padding-top: 5vh;
}

.marine-explorer.is-detail-visible:not(.is-detail-expanded) .marine-typeahead-frame {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 3vh), rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 3vh), rgba(0, 0, 0, 0) 100%);
}

.marine-explorer .marine-enquiry-wrap {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.marine-explorer .marine-typeahead-frame {
  height: 100%;
  min-height: 0;
  
}

.marine-explorer .marine-enquiry-button {
  opacity: 1;
  transition: opacity 320ms ease;
}

.marine-explorer.is-detail-visible .marine-enquiry-button {
  opacity: 0;
  pointer-events: none;
}

.marine-explorer-detail-actions {
  display: none;
  width: 100%;
  max-width: min(80vw, 900px);
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.marine-explorer.is-detail-visible .marine-explorer-detail-actions {
  display: flex;
}

.marine-explorer-contact-cta {
  white-space: nowrap;
  font-style: italic;
}

.marine-explorer .marine-explorer-learn-more {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  transform: none;
  height: calc(3vh + 55px);
  min-height: 92px;
  border-width: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  z-index: 20;
  cursor: pointer;
}

.marine-explorer.is-detail-visible.is-compact-clipped .marine-explorer-learn-more {
  display: flex;
}

.marine-explorer.is-default-expanded .marine-explorer-learn-more {
  display: none !important;
}

.marine-explorer-learn-more-label {
  position: absolute;
  left: 50%;
  bottom: -1.35rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  pointer-events: auto;
}

.marine-explorer-learn-more-label i {
  font-size: 0.95em;
}

@media (max-width: 980px) {
  .marine-explorer {
    padding-top: 22vh;
    padding-bottom: 5vh;
    padding-left: 14px;
    padding-right: 14px;
    gap: 4vh;
  }

  .marine-explorer.is-detail-visible.is-detail-expanded {
    padding-top: 4vh;
  }

  .marine-explorer-typeahead-panel,
  .marine-explorer-detail-panel,
  .marine-explorer-detail-actions {
    width: 100%;
    max-width: 100%;
  }

  .marine-explorer .marine-enquiry-wrap {
    justify-content: flex-start;
  }
}
