/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
.ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #adb5bd;
  pointer-events: none;
  height: 0;
}

/* Para que la zona de escritura ocupe todo el espacio disponible */
.ProseMirror {
  outline: none !important;
  min-height: 400px; /* Ajusta según tu diseño de historia */
}

/* Estilizar el popup de Leaflet para que parezca una card moderna */
.treisit-popup .leaflet-popup-content-wrapper {
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
}
.treisit-popup .leaflet-popup-content {
  margin: 0;
  width: auto !important;
}
.treisit-popup .leaflet-popup-tip {
  background: white;
}

/* app/assets/stylesheets/application.tailwind.css */
.custom-photo-marker {
  display: block !important; /* Vital para evitar el error offsetWidth */
  background: transparent;
  border: none;
}