:root {
  color-scheme: light;
  --ink: #162b34;
  --muted: #53656c;
  --teal: #056967;
  --line: #d9e4e7;
  --paper: #f4f8fa;
  --orange: #b54c25;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font:
    16px/1.55 system-ui,
    sans-serif;
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--teal);
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  border: 1px solid var(--teal);
  border-radius: 7px;
  background: var(--teal);
  color: white;
  padding: 0.65rem 1rem;
  font-weight: 650;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.secondary {
  color: var(--teal);
  background: white;
}
button.quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
input,
select {
  min-width: 0;
  width: 100%;
  border: 1px solid #a7bbc2;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23162b34' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 10px center;
  padding-right: 2rem;
}
label {
  font-size: 0.9rem;
  font-weight: 650;
  display: block;
}
label input,
label select {
  margin-top: 0.35rem;
}
header,
footer {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem max(5vw, 1rem);
  border-bottom: 1px solid var(--line);
  background: white;
  font-weight: 650;
}
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
main {
  max-width: 1440px;
  padding: 0 4vw;
  margin: auto;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.8rem 0 2rem;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  font-weight: 750;
  color: var(--teal);
}
h1 {
  font:
    700 clamp(2.7rem, 6vw, 4.7rem) / 1.05 Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 0.5rem 0 1rem;
}
h2 {
  font-size: 1.35rem;
  margin: 0;
}
h3 {
  font-size: 1.2rem;
  margin: 0;
}
.intro {
  font-size: 1.16rem;
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}
.hero-note {
  border-left: 3px solid var(--orange);
  padding: 1rem 1.4rem;
  font:
    italic 1.5rem/1.5 Georgia,
    serif;
  color: var(--teal);
}
.controls,
.saved-panel,
.notes {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem;
}
.inline {
  display: flex;
  gap: 0.6rem;
  align-items: end;
  flex-wrap: wrap;
}
.inline > input {
  flex: 1;
  min-width: 160px;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}
.presets button {
  border-radius: 30px;
  background: #e7f3f1;
  color: var(--teal);
  border-color: transparent;
  font-size: 0.9rem;
}
.coordinate-inputs {
  margin: 1rem 0;
}
.coordinate-inputs label {
  max-width: 230px;
}
.toolbar {
  display: flex;
  gap: 1rem;
  align-items: end;
  margin-top: 1rem;
}
.toolbar .filter {
  flex: 1;
}
.toolbar select {
  min-width: 120px;
}
summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--teal);
}
#status {
  padding: 0.8rem 1rem;
  background: #e7f3f1;
  border-radius: 7px;
}
.error {
  color: #802b19 !important;
  background: #fff0e8 !important;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.section-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.muted {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}
.badge {
  background: #dfecee;
  border-radius: 99px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.cards {
  display: grid;
  gap: 1rem;
}
.card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
}
.card.selected {
  outline: 2px solid var(--teal);
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.card-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 7px;
  float: right;
  margin: 0 0 0.6rem 1rem;
}
.card p {
  font-size: 0.95rem;
}
.card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.card .actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}
.card .actions button {
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
}
.card .actions a {
  font-size: 0.9rem;
}
.map-column {
  min-width: 0;
}
#map {
  height: 490px;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 0;
  background: #dce7e9;
}
.saved-panel {
  margin-top: 1rem;
}
.saved-panel ol {
  padding-left: 1.4rem;
}
.saved-panel li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.saved-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.saved-actions button {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}
.notes {
  margin-top: 2rem;
  font-size: 0.92rem;
}
.notes h2 {
  margin-bottom: 0.75rem;
}
.place-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.place-options button {
  background: white;
  color: var(--teal);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 1rem;
  background: white;
  z-index: 2000;
}
:focus-visible {
  outline: 3px solid #d97045;
  outline-offset: 3px;
}
.leaflet-container {
  font-family: system-ui, sans-serif;
}
.empty {
  padding: 2rem;
  text-align: center;
  border: 1px dashed #a7bbc2;
  border-radius: 10px;
  color: var(--muted);
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .map-column {
    grid-row: 1;
  }
  #map {
    height: 330px;
  }
  .hero-note {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .filter {
    flex-basis: 55%;
  }
  .controls {
    padding: 1rem;
  }
  .hero {
    padding: 2rem 0 1.5rem;
  }
  .card-image {
    width: 80px;
    height: 80px;
  }
  .toolbar button {
    width: 100%;
  }
  .inline > button {
    flex-grow: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
:root {
  --teal: #7351a1;
  --orange: #ba6741;
  --ink: #242438;
  --paper: #f6f7fb;
  --line: #dedfe9;
  --muted: #606176;
}
.hero-note {
  color: #7351a1;
}
.eyebrow {
  color: #7351a1;
}
.metrics {
  display: flex;
  gap: 3rem;
  margin: 1.3rem 0 1.6rem;
}
.metrics div {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
.metrics strong {
  font:
    700 2rem Georgia,
    serif;
}
.metrics span {
  font-size: 0.9rem;
  color: var(--muted);
}
#status {
  background: #eeebf5;
}
.badge {
  background: #eae6f1;
}
.card {
  border-left: 4px solid #c2bdd0;
}
.card.venue {
  border-left-color: var(--teal);
}
.card-top {
  align-items: flex-start;
}
.precision {
  display: inline-block;
  border-radius: 30px;
  font-size: 0.8rem;
  background: #f2edf8;
  padding: 0.2rem 0.6rem;
  margin: 0.35rem 0;
  color: #594275;
}
.card .meta {
  margin: 0.3rem 0;
}
.place-link {
  font-weight: 650;
}
.legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  font-size: 0.8rem;
}
.key {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 100%;
  margin-left: 0.3rem;
}
.key.venue {
  background: #7351a1;
}
.key.broad {
  background: #cc9868;
}
.more {
  width: 100%;
  margin-top: 1rem;
}
.tmdb-credit {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.tmdb-credit p {
  font-size: 0.85rem;
  max-width: 450px;
}
.tmdb-credit img {
  object-fit: contain;
  max-width: 100px;
}
.notes details {
  margin-top: 1rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  width: min(700px, 94vw);
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #151522a6;
}
#close-details {
  float: right;
}
#details-content {
  padding-top: 2rem;
}
.poster {
  width: 170px;
  max-height: 255px;
  object-fit: contain;
  float: left;
  margin: 0 1.4rem 1rem 0;
}
#details-content p {
  font-size: 1rem;
}
#details-content:after {
  content: "";
  display: block;
  clear: both;
}
.rating {
  font-size: 1.2rem;
  font-weight: 700;
}
.toolbar label {
  flex: 1;
}
details {
  margin-top: 1rem;
}
#place-options button {
  font-size: 0.9rem;
  text-align: left;
}
.saved-panel li {
  font-size: 0.9rem;
}
.source-date {
  font-size: 0.85rem;
}
@media (max-width: 850px) {
  .metrics {
    gap: 1rem;
    justify-content: space-between;
  }
  .metrics div {
    display: block;
  }
  .metrics strong,
  .metrics span {
    display: block;
  }
  .metrics span {
    font-size: 0.8rem;
  }
  .toolbar label {
    flex-basis: 40%;
  }
  .toolbar .filter {
    flex-basis: 100%;
  }
  .poster {
    width: 100px;
  }
  .hero-note {
    display: none;
  }
}
