/* Full-window canvas and basic popup styling */
html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(180deg,#070812 0%, #0b1020 100%);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

canvas { display: block; width:100%; height:100%; }

/* Minimalist popup that can be positioned next to markers */
.info-popup {
  position: fixed;
  transform: translate(-50%, -110%);
  min-width: 220px;
  max-width: 360px;
  background: rgba(12,16,22,0.85);
  border: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  padding: 12px 14px;
  border-radius: 10px;
  color: #dbe9ff;
  z-index: 60;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  font-size: 13px;
}

.info-popup h3 { margin: 0 0 6px 0; font-size: 15px; font-weight:600; color:#fff; }
.info-popup p { margin: 6px 0; font-size: 13px; line-height: 1.35; color:#d3def0 }
.info-popup .pais { opacity: 0.85; font-size:12px; color:#9fb3d6 }
.info-popup button#closePopup {
  position: absolute;
  right: 8px;
  top: 6px;
  background: transparent;
  color: #9fb3d6;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.visually-hidden { position:absolute; left:-9999px; }

/* Marker halo (CSS fallback for small screens) */
.marker-hint {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,110,110,0.95) 0%, rgba(255,110,110,0.6) 30%, rgba(255,110,110,0.25) 70%, rgba(255,110,110,0.0) 100%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 55;
}

/* Small hint text overlay - optional */
#help { display:none }

/* Sidebar / quick access */
/* Sidebar (quick access) styles */
.sidebar {
  position: fixed;
  left: 18px;
  top: 18px;
  width: 300px;
  max-width: calc(100% - 36px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(2,6,23,0.6);
  z-index: 70;
}
.sidebar-header { padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.03); margin-bottom: 8px }
.project-title { font-size: 12px; color:#9fb3d6; font-weight:700 }
.author-name { margin-top:6px; font-size:14px; font-weight:700; color:#fff; font-family: 'Brush Script MT', 'Segoe Script', cursive }
.student-id { font-weight:600; font-family: system-ui, Arial; font-size:12px; color:#cfe6ff }
.tabs { display:flex; gap:8px; margin:10px 0 }
.tab-btn { background:transparent; border:1px solid rgba(255,255,255,0.04); color:#cfe6ff; padding:6px 8px; border-radius:8px; font-size:12px; cursor:pointer }
.tab-btn.active { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06) }
.tab-panels { margin-top:6px }
.tab-panel { font-size:13px; color:#d3def0 }
.tab-panel h4 { margin:0 0 6px 0; color:#fff }
.refs { padding-left: 18px; margin: 6px 0 }

/* Minimal link styling for references: subtle, readable and compact */
.refs a { color: #cfe6ff; text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size:13px }
.refs a:hover, .refs a:focus { color: #ffffff; border-bottom-style: solid; text-decoration: none }
.refs li { margin-bottom: 8px }

@media (max-width:900px) {
  .sidebar { left:50%; transform: translateX(-50%); bottom:18px; top:auto; width:92%; max-width:640px; }
}
