.TrailOverview-wrapper {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.TrailOverview-wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: var(--bg-color);
  filter: var(--user-content-filter);
  z-index: -1;
  pointer-events: none;
}

.TrailOverview {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: flex;
  flex-direction: column;
}

.TrailOverview-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.TrailOverview-title {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--accent-color);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-transform: lowercase;
  filter: var(--user-content-filter);
}

.TrailOverview-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  line-height: 1.6;
  text-transform: lowercase;
}

.TrailOverview-metaWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.TrailOverview-creator {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0;
}

.TrailOverview-creator .user-badge-handle {
  color: inherit;
  font-weight: 400;
}

.TrailOverview-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: "SF Mono", "Monaco", monospace;
  margin: 0;
  padding: 0;
}

.TrailOverview-stops {
  margin-bottom: 3rem;
  width: 100%;
}

.TrailOverview-stopsTitle {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  text-transform: lowercase;
}

.TrailOverview-stopsList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.TrailOverview-actions {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.TrailOverview-abandonButton {
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: lowercase;
}

@media (hover: hover) {
  .TrailOverview-abandonButton:hover {
    color: var(--text-secondary);
  }
}

.TrailOverview-abandonButton:active {
  color: var(--text-secondary);
  transition-duration: 0.05s;
}

/* Edit mode styles */
.TrailOverview-titleEdit {
  width: 100%;
  border: none;
  background: transparent;
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace;
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--accent-color);
  text-align: center;
  outline: none;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition:
    background 0.2s,
    outline 0.2s;
  text-transform: lowercase;
  padding: 0.5rem;
  box-sizing: border-box;
  border-radius: 6px;
  filter: var(--user-content-filter);
}

.TrailOverview-titleEdit::placeholder {
  color: var(--accent-color);
  opacity: 0.5;
  filter: var(--user-content-filter);
}

.TrailOverview-titleEdit:focus {
  background: rgba(255, 255, 255, 0.5);
  outline: 3px solid var(--accent-color);
}

.TrailOverview-descriptionEdit {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.125rem;
  color: var(--accent-color);
  text-align: center;
  outline: none;
  resize: none;
  overflow: hidden;
  transition:
    background 0.2s,
    outline 0.2s;
  font-family: inherit;
  line-height: 1.6;
  margin: 0 0 1rem;
  text-transform: lowercase;
  padding: 0.5rem;
  box-sizing: border-box;
  border-radius: 6px;
  filter: var(--user-content-filter);
}

.TrailOverview-descriptionEdit::placeholder {
  color: var(--accent-color);
  opacity: 0.5;
}

.TrailOverview-descriptionEdit:focus {
  background: rgba(255, 255, 255, 0.5);
  outline: 3px solid var(--accent-color);
}

.TrailOverview-addStopContainer {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.TrailOverview-addStopContainer--visible {
  opacity: 1;
  pointer-events: auto;
}

.TrailOverview-publishError {
  font-size: 0.9375rem;
  color: #d9534f;
  text-align: left;
  padding: 1rem;
  background: rgba(217, 83, 79, 0.1);
  border-radius: 6px;
  margin-top: -2rem;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.TrailOverview-publishError ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.TrailOverview-publishError li {
  margin: 0.25rem 0;
}

.TrailOverview-publishError li::before {
  content: "• ";
  color: #d9534f;
}
