/* ========================================
   RESET & GLOBAL
======================================== */

:root {
  --ocean-dark: #1a3a4a;
  --ocean-mid: #234b5d;

  --sand: #fafaf7;
  --sand-soft: #f0e8dc;

  --accent: #c8712a;

  --forest: #2e5c3a;

  --text-dark: #1a3a4a;
  --text-light: #888;

  --shadow-heavy: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-soft: 0 8px 28px rgba(0,0,0,0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background:
    radial-gradient(circle at top, var(--ocean-mid) 0%, var(--ocean-dark) 65%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: var(--sand);
}

/* ========================================
   HEADER
======================================== */

header {
  width: 100%;
  max-width: 1100px;
  background: rgba(250,250,247,0.95);
  backdrop-filter: blur(6px);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--accent);
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--forest);
  border: 1.5px solid var(--forest);
  padding: 5px 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
}

/* ========================================
   MAP LAYOUT
======================================== */

.map-outer {
  width: 100%;
  max-width: 1100px;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-heavy);
  background: #10232d;
}

.map-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0 0 10px 10px;

  filter:
    sepia(0.32)
    hue-rotate(3deg)
    brightness(1.03)
    contrast(0.97)
    saturate(1.05);

  transition:
    transform 0.8s ease,
    filter 0.5s ease;
}

.map-container:hover img {
  transform: scale(1.015);
}

/* ========================================
   HOTSPOTS
======================================== */

.hotspot {
  position: absolute;
  width: 4%;
  height: 6%;
  transform: translate(-50%, -85%);
  cursor: pointer;
  z-index: 10;
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(200,113,42,0.22);
  animation: pulse 2.6s infinite;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 14px rgba(200,113,42,0.8);
}

.hotspot:hover::after {
  transform: translate(-50%, -50%) scale(1.2);
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }

  70% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* ========================================
   TOOLTIP
======================================== */

.tooltip {
  position: fixed;
  background: rgba(250,250,247,0.97);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(26,58,74,0.15);
  border-radius: 14px;
  padding: 18px 20px;
  min-width: 240px;
  max-width: 320px;
  pointer-events: none;

  opacity: 0;
  transform: translateY(8px);

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;

  z-index: 1000;

  box-shadow: var(--shadow-soft);
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.tooltip-desc {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(200,113,42,0.25);
  font-style: italic;
}

.tooltip-desc:empty {
  display: none;
}

.tooltip-activity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.tooltip-activity:last-child {
  margin-bottom: 0;
}

.act-icon {
  width: 34px;
  height: 34px;
  background: var(--sand-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.05);
}

.act-text strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.act-text small {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ========================================
   MAP HINT
======================================== */

.hint {
  color: rgba(255,255,255,0.7);
  font-size: 0.74rem;
  font-style: italic;
  text-align: right;
  margin-top: 10px;
  letter-spacing: 0.02em;
}
/* ========================================
   DETAIL PANEL
======================================== */

.detail-panel {
  position: fixed;
  top: 110px;
  right: 28px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: rgba(250,250,247,0.97);
  color: var(--text-dark);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-heavy);
  z-index: 900;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.detail-panel.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.detail-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
}

.detail-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.detail-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  margin-bottom: 8px;
}

.detail-panel p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
  margin-bottom: 16px;
}

.detail-panel .tooltip-activity {
  background: rgba(240,232,220,0.65);
  border-radius: 12px;
  padding: 10px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {

  body {
    padding: 12px;
  }

  header {
    padding: 12px 14px;
    border-radius: 10px 10px 0 0;
  }

  .logo {
    font-size: 1.1rem;
  }

  .tag {
    display: none;
  }

  .tooltip {
    min-width: 210px;
    max-width: 240px;
    padding: 14px;
  }

  .tooltip-name {
    font-size: 1.1rem;
  }

}