/* map.css - Styles for the photo map section */
#photo-map {
  width: 100%;
  height: 400px;
  margin: 2em 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* 2-column layout for map and preview */
.map-preview-grid {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: 100%;
  min-height: 520px;
  height: 520px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  overflow: hidden;
}
#photo-map {
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  border-radius: 22px 0 0 22px;
  margin: 0;
}
.photo-preview-panel {
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.photo-preview-label {
  font-size: 1rem;
  color: #888;
  text-align: center;
  padding: 0.7em 0 0.5em 0;
  font-style: italic;
  letter-spacing: 0.01em;
  user-select: none;
  margin-top: 0.5em;
  border-top: 1px solid #eee;
  width: 100%;
}
#photo-preview {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
}
.photo-preview-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.photo-preview-content img,
.photo-preview-content video {
  position: static;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: #eee;
  display: block;
}
.photo-preview-content img.portrait,
.photo-preview-content video.portrait,
.photo-preview-content img.landscape,
.photo-preview-content video.landscape {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
@media (max-width: 900px) {
  .map-preview-grid {
    flex-direction: column;
    border-radius: 18px;
    height: 320px;
    min-height: 220px;
  }
  #photo-map, .photo-preview-panel {
    border-radius: 18px;
    height: 100%;
    min-height: 0;
  }
}
