/* -------------------------------------------------------
   GLOBAL
------------------------------------------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  text-align: center;
  background: #f4f6f8;
  color: #222;
}

h1 {
  margin-bottom: 16px;
}

/* -------------------------------------------------------
   MAP CONTAINER (scrollable on mobile)
------------------------------------------------------- */
#mapContainer {
  position: relative;
  width: 100vw;
  max-width: 1400px;
  margin: 0 auto;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100vh;
  -webkit-overflow-scrolling: touch;
}

/* -------------------------------------------------------
   MARINA MAP IMAGE
------------------------------------------------------- */
.marina-map {
  width: 100vw;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  transform-origin: top left;
}

/* -------------------------------------------------------
   SLIP ICON LAYER
------------------------------------------------------- */
#slipIconLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

/* -------------------------------------------------------
   ICONS
------------------------------------------------------- */
.slip-icon {
  position: absolute;
  width: auto;
  height: auto;
  max-height: 60px;
  pointer-events: none;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

/* -------------------------------------------------------
   HIT AREA
------------------------------------------------------- */
.slip-hit-area {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 40;
}

/* -------------------------------------------------------
   POPUP
------------------------------------------------------- */
.slip-popup {
  position: absolute;
  background: #ffffff;
  border: 2px solid #003366;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  max-width: 260px;
  min-width: 200px;
  line-height: 1.35;
  display: none;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transform-origin: center bottom;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Arrow down */
.slip-popup::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: var(--arrow-position, 50%);
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #ffffff;
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.15));
}

.slip-popup::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: var(--arrow-position, 50%);
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid #003366;
  z-index: -1;
}

/* Popup below slip */
.slip-popup.below {
  transform-origin: center top;
}

.slip-popup.below::after {
  bottom: auto;
  top: -12px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #ffffff;
  border-top: none;
}

.slip-popup.below::before {
  bottom: auto;
  top: -14px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid #003366;
  border-top: none;
}

/* Popup title */
.slip-popup strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #003366;
  font-weight: 700;
}