﻿:root {
  --page: #f3f1ec;
  --surface: #fbfaf7;
  --surface-2: #f4f1eb;
  --text: #303437;
  --muted: #6f767a;
  --accent: #7f978d;
  --accent-2: #93a99f;
  --ring: rgba(127, 151, 141, 0.22);
  --border: #d8d4cd;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: var(--page);
  overflow-x: hidden;
}

.hero {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 56px 0 28px;
}

.kicker {
  margin: 0 0 12px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6c8278;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
}

.lead {
  max-width: 64ch;
  color: var(--muted);
  margin: 14px 0 0;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
}

.map-shell {
  width: min(1240px, 92vw);
  margin: 8px auto 54px;
  display: grid;
  grid-template-columns: minmax(300px, 390px) 1fr;
  gap: 16px;
}

.panel,
.map-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.panel {
  padding: 18px;
}

.panel h2 {
  margin: 2px 0 14px;
}

.panel h3 {
  margin: 0 0 8px;
}

.search-form {
  margin-bottom: 10px;
}

.label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select,
button {
  font-family: inherit;
}

input,
select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input[type="number"] {
  width: 100%;
}

input[type="range"] {
  width: 100%;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.92rem;
}

.checkbox-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.status {
  min-height: 1.2rem;
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
}

.result-item {
  margin-bottom: 10px;
}

.result-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.result-btn:hover,
.result-btn.active {
  border-color: var(--accent-2);
}

.result-title {
  margin: 0 0 4px;
  font-weight: 600;
}

.result-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.action-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.print-preview-wrap {
  margin-top: 14px;
}

#print-preview {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: block;
  object-fit: contain;
}

input:disabled {
  opacity: 0.55;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.95;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-ghost {
  background: #f7f4ef;
  border-color: var(--border);
}

.map-stage {
  padding: 12px;
  position: relative;
}

.map-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 8px 10px;
}

.map-label {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.map-place {
  margin: 0;
  font-weight: 500;
}

#map {
  height: min(75vh, 760px);
  min-height: 480px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ece7df;
}

.art-footer {
  position: absolute;
  right: 22px;
  bottom: 18px;
  text-align: right;
  pointer-events: none;
}

.art-place {
  margin: 0 0 4px;
  font-size: clamp(1.25rem, 2vw, 2.25rem);
  line-height: 1.05;
}

body[data-map-mode="art"] #map {
  border-color: rgba(0, 0, 0, 0.16);
}

body[data-art="ink"][data-map-mode="art"] #map {
  background: #e8e4dc;
}

body[data-art="ink"][data-map-mode="art"] .art-place {
  color: #2d2b2a;
}

body[data-art="night"][data-map-mode="art"] #map {
  background: #0f1419;
}

body[data-art="night"][data-map-mode="art"] .art-place {
  color: #d7e3ea;
}

body[data-art="paper"][data-map-mode="art"] #map {
  background: #f4f0e6;
}

body[data-art="paper"][data-map-mode="art"] .art-place {
  color: #1f1e1c;
}

@media (max-width: 980px) {
  .map-shell {
    grid-template-columns: 1fr;
  }

  #map {
    height: 56vh;
  }

  .art-footer {
    right: 16px;
    bottom: 14px;
  }
}
