/* Minimal, quiet typography */
:root{
  --ink: rgba(15, 15, 15, 0.70);
  --inkSoft: rgba(15, 15, 15, 0.45);
  --inkFaint: rgba(15, 15, 15, 0.18);
  --paper: #fbfbfa;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(15, 15, 15, 0.10);
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
}

#map {
  height: 100%;
  width: 100%;
}

/* Top title bar: barely there */
.topbar{
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none; /* allow map interactions through */
}

.title{
  pointer-events: auto;
  background: transparent;
  padding: 6px 8px;
  border-radius: 10px;
  line-height: 1.05;
}

.title__main{
  display: block;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.title__sub{
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--inkSoft);
}

/* Ultra-subtle button */
.ghostBtn{
  pointer-events: auto;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--inkSoft);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.ghostBtn:hover{
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255,255,255,0.35);
}

/* Hide default MapLibre controls (you asked for no visible zoom tools) */
.maplibregl-ctrl,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right{
  display: none !important;
}

/* Minimal popup: NO background, NO border, NO tip */
.maplibregl-popup-content{
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  color: rgba(15, 15, 15, 0.38);
  text-align: center;
}

.maplibregl-popup-tip{
  display: none !important;
}

.popupTitle{
  font-size: 13px;
  margin: 0 0 6px 0;
  letter-spacing: 0.01em;
  font-weight: 600; /* bold-ish, still subtle */
  color: rgba(15, 15, 15, 0.42);
}

.popupMeta{
  font-size: 12px;
  margin: 0;
  color: rgba(15, 15, 15, 0.34);
}

.popupLink{
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15, 15, 15, 0.34);
  text-decoration: none;
  border: none; /* no underline hint */
}

.popupLink:hover{
  color: rgba(15, 15, 15, 0.46);
}


/* Hover hint: tiny, quiet */
.hoverHint{
  position: fixed;
  z-index: 9;
  transform: translate(10px, 10px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 80ms ease;
  background: transparent;
  color: var(--inkSoft);
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.hoverHint{
  color: rgba(15, 15, 15, 0.28);
  font-size: 12px;
}

/* Modal */
.modalBackdrop{
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.00);
}
.modalBackdrop[aria-hidden="false"]{
  display: flex;
}
.modal{
  width: min(520px, calc(100vw - 28px));
  background: var(--paper);
  border: 0px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  padding: 14px 14px 12px;
}
.modal__head h2{
  margin: 0 0 8px 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.modal__body p{
  margin: 8px 0;
  font-size: 13px;
  color: var(--ink);
}
.muted{
  color: var(--inkSoft);
}
.modal a{
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.modal a:hover{
  border-bottom-color: var(--inkSoft);
}
