/* Larger, clearer equipment imagery across desktop and touch screens. */
body > header.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 5px 18px rgba(4, 38, 61, .14);
}

main section[id],
footer[id] {
  scroll-margin-top: 180px;
}

.equipment-grid .equipment-card {
  min-height: 235px;
  scroll-margin: 20px;
}

.equipment-card .equipment-photo {
  height: 155px;
  width: 100%;
  background-size: contain;
}

/* Make the close control an easy, dependable touch target. */
.dialog-close {
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  touch-action: manipulation;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: #edf6fb;
  outline: 3px solid #9dd8ff;
  outline-offset: 2px;
}

.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#booking-form .btn[disabled] {
  cursor: wait;
  opacity: .65;
}

.about-section {
  background: #fff;
}

.about-panel {
  padding: clamp(26px, 5vw, 48px);
  border-radius: 10px;
  background: linear-gradient(135deg, #072e49, #0b4669);
  color: #fff;
  box-shadow: var(--shadow);
}

.about-panel h2 {
  margin: 4px 0 14px;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.about-panel > p:not(.eyebrow) {
  max-width: 960px;
  font-size: 1rem;
  line-height: 1.7;
}

.about-panel .btn {
  margin-top: 6px;
}

.dialog-card .field-full {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  main section[id],
  footer[id] {
    scroll-margin-top: 96px;
  }

  .equipment-grid {
    display: flex !important;
    flex-wrap: nowrap;
    width: 100%;
    gap: 14px;
    padding: 4px 2px 14px;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: auto;
    scrollbar-color: #43aaf5 #dbe6ee;
  }

  .equipment-grid::-webkit-scrollbar {
    height: 9px;
  }

  .equipment-grid::-webkit-scrollbar-track {
    background: #dbe6ee;
    border-radius: 999px;
  }

  .equipment-grid::-webkit-scrollbar-thumb {
    background: #43aaf5;
    border-radius: 999px;
  }

  .equipment-grid .equipment-card {
    flex: 0 0 205px;
    min-height: 275px;
    padding: 10px 12px 14px;
    scroll-snap-align: start;
  }

  .equipment-grid .equipment-card:last-child {
    margin-right: 18px;
  }

  .equipment-card .equipment-photo {
    height: 185px;
  }

  .equipment-card b {
    font-size: .95rem;
    min-height: 42px;
  }

  .equipment-card i {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  dialog {
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }

  .dialog-close {
    position: sticky;
    top: 6px;
    margin-left: auto;
    margin-bottom: -48px;
    background: #fff;
  }
}

.equipment-scroll-hint {
  display: none;
}

@media (max-width: 900px) {
  .equipment-scroll-hint {
    display: block;
    margin: -6px 0 10px !important;
    color: #147ebc;
    font-size: .88rem;
    font-weight: 800;
  }
}
