@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── View pin panel ───────────────────────────────────────────────────────── */

#view-pin-panel {
  position: fixed;
  left: calc(25% - 240px);
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.10),
    0 1px 4px  rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
  z-index: 10;
}

#view-pin-panel.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Header — coloured by pin's textColor via JS ─────────────────────────── */

.view-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 20px;
  border-radius: 16px 16px 0 0;
  /* background-color set via JS from pin.textColor */
}

.view-panel-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #ffffff;
  margin: 0;
  font-weight: normal;
  line-height: 1.25;
  flex: 1;
}

.view-panel-header-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.view-panel-edit,
.view-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  transition: background 150ms ease;
}

.view-panel-edit:hover,
.view-panel-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.view-panel-edit img {
  display: block;
  filter: brightness(0) invert(1);
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.view-panel-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.view-panel-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: #444;
  margin: 0;
}

