/* LopoRail Photo Map — map-first community gallery. */
.photo-map-canvas {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.photo-map-shell { position: relative; }
.photo-map-panel {
  position: absolute;
  right: 16px;
  top: 16px;
  width: min(340px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  display: none;
}
.photo-map-panel.is-open { display: block; }
.photo-map-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.photo-map-panel h3 { margin: 0 0 4px; font-size: 1.05rem; }
.photo-map-panel__close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 6px 10px;
}
.photo-map-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.photo-map-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-map-card__title { display: block; font-weight: 600; padding: 0 12px; }
.photo-map-card .meta { display: block; padding: 0 12px 12px; }
.photo-map-status { margin-top: 10px; }

@media (max-width: 760px) {
  .photo-map-canvas { height: 55vh; min-height: 360px; }
  .photo-map-panel {
    position: static;
    width: auto;
    max-height: none;
    margin-top: 12px;
  }
}