.sights-board-header {
  padding: 1.25rem 1.5rem 0.75rem;
}

.back-link {
  font-size: 0.9rem;
  color: rgb(5, 39, 103);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.trip-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 auto 0.5rem;
  padding: 1.25rem;
  max-width: 60rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trip-detail-image {
  width: 14rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.trip-detail-info {
  flex: 1;
  min-width: 12rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trip-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.trip-detail-titlerow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.trip-detail-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.trip-detail-text {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  white-space: pre-wrap;
}

.btn-edit {
  width: 5rem;
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-edit:hover {
  border-color: rgb(5, 39, 103);
  color: rgb(5, 39, 103);
}

.trip-detail-actions .btn-edit {
  width: auto;
  flex: 1 1 auto;
  text-align: center;
}

@media (max-width: 640.98px) {
  .trip-detail {
    flex-direction: column;
    padding: 1rem;
  }

  .trip-detail-image {
    width: 100%;
    height: 10rem;
  }
}

.share-link-row {
  display: flex;
  gap: 0.5rem;
}

.share-link-row input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #555;
}

.share-muted {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
}

.share-collaborator-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.share-collaborator-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.share-remove-btn {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.btn-edit-danger {
  color: #c0392b;
  border-color: #c0392b;
}

.btn-edit-danger:hover {
  background: #c0392b;
  color: white;
}

.btn-confirm-danger {
  background-image: none;
  background-color: #c0392b;
}

.kebab-menu-wrapper {
  position: relative;
  flex: 0 0 auto !important;
}

.trip-detail-actions .kebab-menu-trigger {
  width: 2.5rem;
  flex: 0 0 auto;
}

.kebab-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
}

.kebab-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 6;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  min-width: 9rem;
  overflow: hidden;
}

.kebab-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
}

.kebab-menu-item:hover {
  background: #f2f2f2;
}

.kebab-menu-item-danger {
  color: #c0392b;
}
