#map-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  user-select: none;
  background: #fff;
}

/* FIX: Make external SVG scale */
#map-object {
  width: 100%;
  height: auto;
  display: block;
}

#map-object:hover {
  cursor: none;
}

/* Floating watch face */
#watch-face {
  position: absolute;
  width: 180px;
  height: 180px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#watch-face canvas {
  width: 100%;
  height: 100%;
}

#shadow-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* important */
  mix-blend-mode: multiply;
}

.at-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.5em 1em;
  background: #eee;
}

.slider-row {
  display: flex;
  gap: 1em;
}

#seasonSlider {
  flex: 1 1 auto;
}

#resetDate {
  flex: 0 0 auto;
}

#selectedDate {
  text-align: center;
}

#layerToggleButton {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 1000;
}

#layerMenu {
  position: absolute;
  top: 48px;
  right: 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  user-select: none;
}

#layerMenu .layers-title {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
}

#layerMenu label {
  font-size: 14px;
  cursor: pointer;
}

#tipsPanel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none; /* allow clicks to pass through */
}

#tipText {
  position: relative;
  animation: tipFloat 5s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  flex-grow: 1;
  min-height: 4rem;
}

.tip {
  position: absolute;
  inset: 0; /* position relative to parent */
  opacity: 0;
  transition: opacity 0.8s ease;
}

.tip.active {
  opacity: 1; /* make active tip visible */
}

.tip-focus {
  opacity: 0;
  transition: opacity 0.8s ease;
  font-weight: bold;
  font-size: 1.2rem;
  color: black;
}

.tip-focus.tip-visible {
  opacity: 1;
}

.tip-explanation {
  opacity: 0;
  transition: opacity 0.8s ease;
  font-size: 1rem;
  color: #111;
}

.tip-explanation.tip-visible {
  opacity: 1;
}

@keyframes tipFloat {
  0% {
    transform: translateY(3px);
  }
  50% {
    transform: translateY(-3px); /* Smooth peak */
  }
  100% {
    transform: translateY(3px);  /* Smooth trough/return */
  }
}

@media (max-width: 480px) {
  .tip-focus {
    font-size: 1rem;
  }

  .tip-explanation {
    font-size: 0.8rem;
  }
}
