/* editor-panel.css — styles for point_editor.js (Edit/Insert slideout) */

#editor-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 340px;
  background: #1e1e1e;
  color: #ccc;
  flex-direction: column;
  z-index: 1000;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 16px rgba(0,0,0,0.5);
  overflow-y: auto;
}

#editor-panel.visible {
  transform: translateX(0);
}

#panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #333;
  border-bottom: 1px solid #555;
  flex-shrink: 0;
}

#panel-title { font-weight: bold; font-size: 13px; }

#panel-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
#panel-close:hover { color: #fff; }

#panel-body {
  overflow-y: auto;
  flex: 1;
  padding: 10px 12px;
}

.meta-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.meta-row label {
  font-size: 11px;
  color: #999;
  margin-bottom: 2px;
}

.meta-row input[type="text"],
.meta-row input[type="number"],
.meta-row textarea,
.meta-row select {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 12px;
  width: 100%;
}

.meta-row textarea {
  resize: vertical;
  min-height: 60px;
}

.meta-row-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.meta-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.meta-row-inline .meta-col label {
  font-size: 11px;
  color: #999;
  margin-bottom: 2px;
}

.meta-row-inline .meta-col input,
.meta-row-inline .meta-col select {
  background: #333;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 12px;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-bottom: 8px;
}

.services-grid label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
}

.section-label {
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0 5px 0;
  border-bottom: 1px solid #444;
  padding-bottom: 3px;
}

#insert-fields { display: none; }

#panel-actions {
  padding: 8px 12px;
  background: #2a2a2a;
  border-top: 1px solid #444;
  flex-shrink: 0;
}

#edit-actions {
  display: flex;
  gap: 6px;
}

#insert-actions {
  display: none;
  gap: 6px;
}

#panel-actions button {
  flex: 1;
  padding: 6px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

#btn-save-meta    { background: #3a6ea8; color: #fff; }
#btn-save-meta:hover { background: #4a7ec0; }

#btn-delete-point { background: #7a2020; color: #fff; }
#btn-delete-point:hover { background: #a03030; }

#btn-insert-point { background: #2a7a3a; color: #fff; }
#btn-insert-point:hover { background: #3a9a4a; }

#btn-insert-cancel { background: #555; color: #ccc; }
#btn-insert-cancel:hover { background: #666; }

#meta-comments {
  font-family: sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

/* Two-column layout for special marker radio buttons */
#meta-marker-type-options {
  display: grid !important;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 3px; /* Space between items */
}

/* Optional: Make sure labels wrap nicely */
#meta-marker-type-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  white-space: normal; /* Allow text to wrap if needed */
}

#meta-marker-type-options label:hover {
  background-color: #f0f0f0;
}
