.spot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.spot-cover {
  height: 180px;
  display: block;
  position: relative;
  overflow: hidden;
  background: #dce8e7;
}
.spot-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.spot-cover:after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #0c33332c);
  pointer-events: none;
}
.cover-tag {
  position: absolute;
  left: 15px;
  bottom: 13px;
  border-radius: 4px;
  color: #254e4e;
  background: #fffef3e8;
  font-size: 0.67rem;
  font-weight: 650;
  padding: 5px 8px;
  z-index: 1;
}
.spot-coordinate {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #70938d;
  background: #e8efec;
}
.spot-coordinate span {
  font-size: 0.7rem;
  letter-spacing: 1px;
}
.spot-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 21px 21px 13px;
}
.spot-card .eyebrow {
  font-size: 0.6rem;
  letter-spacing: 1.3px;
  margin-bottom: 0;
}
.spot-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}
.spot-card-meta {
  display: flex;
  gap: 18px;
  font-size: 0.7rem;
  color: var(--muted);
}
.spot-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.spot-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eaf0ec;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 0.7rem;
  color: var(--muted);
}
.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.location-status {
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
}
.map-panel {
  position: relative;
  background: #e0e9e5;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 30px;
  isolation: isolate;
}
.map-canvas {
  height: 300px;
  width: 100%;
}
.map-status {
  position: absolute;
  bottom: 30px;
  left: 15px;
  right: 15px;
  background: #fffc;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  pointer-events: none;
}
.spot-hero .photo-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}
.spot-hero .photo-gallery figure {
  flex: 1 0 70%;
  margin: 0;
  min-width: 0;
}
.spot-hero .photo-gallery img {
  width: 100%;
  height: clamp(180px, 25vw, 320px);
  object-fit: cover;
}

.spot-detail-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.spot-detail-content > * {
  margin-block: 0;
}

.spot-amenities dd {
  margin: 0 0 1rem;
}

.guide-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface, #fff);
}
.guide-editor:focus-within {
  border-color: var(--muted);
}
.guide-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.guide-tools,
.guide-modes {
  display: flex;
  align-items: center;
  gap: 3px;
}
.guide-editor button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}
.guide-tools button {
  width: 32px;
  height: 32px;
  padding: 8px;
}
.guide-tools button svg {
  width: 16px;
  height: 16px;
}
.guide-tools button:hover,
.guide-tools button[aria-pressed="true"] {
  background: var(--pale);
  color: var(--ink);
}
.guide-modes {
  padding: 3px;
  background: var(--pale);
  border-radius: 7px;
  margin-left: auto;
}
.guide-modes button {
  padding: 8px 10px;
}
.guide-modes button[aria-pressed="true"] {
  background: var(--surface, #fff);
  color: var(--ink);
  box-shadow: 0 1px 3px #0000000d;
}
.guide-visual {
  min-height: 240px;
  padding: 22px;
  outline: none;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.guide-visual > :last-child {
  margin-bottom: 0;
}
.editor-form textarea.guide-source {
  border: 0;
  border-radius: 0;
  padding: 22px;
  min-height: 240px;
  outline: none;
  font:
    0.8125rem / 1.7 ui-monospace,
    monospace;
  background: transparent;
}
.guide-editor-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6875rem;
}
.guide-editor-footer > :last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.guide-link-panel {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.guide-link-panel label {
  font-size: 0.75rem;
}
.guide-link-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.guide-link-controls button {
  align-self: center !important;
  padding: 10px;
  background: var(--pale);
  color: var(--ink);
}
.guide-editor [hidden] {
  display: none !important;
}
.spot-guide {
  overflow-wrap: anywhere;
}
.spot-guide em {
  font-style: italic;
  font-synthesis: style;
}
.spot-guide ul,
.spot-guide ol {
  padding-left: 1.5rem;
}
.spot-guide a {
  text-decoration: underline;
}
.spot-guide h1,
.spot-guide h2,
.spot-guide h3 {
  font-size: 1.125rem;
}
.spot-tag-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.editor-form .spot-tag-group,
.spot-tag-group {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.spot-tag-group legend {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.spot-tag-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 2px;
}
.spot-tag-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  padding: 9px 10px;
  margin: 0;
  border-radius: 6px;
  cursor: pointer;
}
.spot-tag-option:hover,
.spot-tag-option:has(input:checked) {
  background: var(--pale);
}
.spot-tag-option input[type="checkbox"] {
  appearance: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: transparent;
  display: grid;
  place-content: center;
}
.spot-tag-option input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.spot-tag-option input[type="checkbox"]:checked::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--paper);
  border-bottom: 1.5px solid var(--paper);
  transform: translateY(-1px) rotate(-45deg);
}
.spot-tag-option input:focus-visible,
.guide-editor button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.spot-tag-filter {
  flex-basis: 100%;
}
.spot-tag-filter summary {
  cursor: pointer;
  padding: 8px 0;
}
@media (max-width: 540px) {
  .guide-editor-bar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
  }
  .guide-editor-footer {
    flex-wrap: wrap;
  }
  .spot-tag-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }
  .spot-tag-option {
    padding-inline: 4px;
    font-size: 0.8125rem;
  }
}

.guide-visual li p {
  margin: 0;
}
.guide-visual li {
  margin-block: 4px;
}

.spot-card-guide {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
