/* ============================================================================
   photo-pos-modal.css — v313.154.64
   ----------------------------------------------------------------------------
   Modal mini-mappa per posizionamento foto (pre-upload da utente o admin).
   ============================================================================ */

.amp-pos-overlay {
  position: fixed;
  inset: 0;
  z-index: 100100;
  background: rgba(0, 0, 0, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transition: opacity .2s ease;
}
.amp-pos-overlay.is-open { opacity: 1; }

.amp-pos-sheet {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.amp-pos-head {
  padding: 18px 22px 8px;
  border-bottom: 1px solid #f0eee9;
}
.amp-pos-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #2a2a36;
}
.amp-pos-sub {
  font-size: 13px;
  color: #6a6a78;
  margin-top: 4px;
  line-height: 1.4;
}
.amp-pos-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid #e5e2dc;
}

.amp-pos-map {
  flex: 1;
  min-height: 320px;
  background: #f3ede6;
}

.amp-pos-coords {
  padding: 8px 22px;
  background: #fafafa;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #555;
  border-top: 1px solid #f0eee9;
}

.amp-pos-actions {
  display: flex;
  gap: 10px;
  padding: 14px 22px 18px;
  background: #fff;
  border-top: 1px solid #f0eee9;
}
.amp-pos-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter .12s ease;
}
.amp-pos-btn:hover { filter: brightness(1.05); }
.amp-pos-btn--primary {
  background: linear-gradient(135deg, #e8734a, #d4622e);
  color: #fff;
}
.amp-pos-btn--ghost {
  background: #f3ede6;
  color: #5a4636;
}
.amp-pos-btn--reset {
  flex: 0 0 auto;
  padding: 12px 14px;
  background: transparent;
  border: 1.5px solid #d8d2c5;
  color: #5a4636;
}

@media (max-width: 480px) {
  .amp-pos-sheet { max-height: 96vh; border-radius: 12px; }
  .amp-pos-head { padding: 14px 16px 6px; }
  .amp-pos-title { font-size: 16px; }
  .amp-pos-actions { padding: 12px 16px 14px; }
  .amp-pos-map { min-height: 260px; }
}
