:root {
  color-scheme: light;
  --ink: #172b24;
  --muted: #4d6057;
  --pine: #174c3c;
  --pine-hover: #10392e;
  --lime: #dbecab;
  --canvas: #f5f7f2;
  --surface: #fff;
  --soft: #eef3e9;
  --line: #d9e3da;
  --focus: #256c58;
  --radius: 12px;
  --radius-lg: 22px;
  --space: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --shell: 1440px;
  --shadow: 0 10px 30px #172b240a;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  accent-color: var(--pine);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.8rem); font-weight: 750; letter-spacing: -.06em; line-height: 1.05; }
h2 { font-size: 1.26rem; letter-spacing: -.025em; }
h3 { font-size: 1.14rem; line-height: 1.25; }
p, small { color: var(--muted); }
.icon-library, .sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; padding: 12px; background: var(--surface); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

.header { grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: -.06em; font-size: 1.65rem; white-space: nowrap; }
.header__region { display: inline-flex; align-items: center; gap: 6px; color: var(--pine); font-size: .875rem; font-weight: 700; border: 1px solid var(--line); padding: 7px 10px; border-radius: 30px; white-space: nowrap; }
.header__region .icon { width: 16px; height: 16px; }
.nav { position: fixed; inset: auto 0 0; z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; background: var(--surface); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.nav__link { min-height: 51px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 700; text-align: center; border-radius: var(--radius); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--pine); background: var(--soft); }
.nav__link--add { color: var(--pine); }
.nav__link--add .icon { background: var(--lime); border-radius: 8px; width: 26px; height: 26px; padding: 4px; }

.app { width: 100%; max-width: var(--shell); min-width: 0; margin-inline: auto; padding: 26px var(--gutter) calc(90px + env(safe-area-inset-bottom)); }
.screen__heading { margin-bottom: 24px; }
.screen__heading p { margin-top: 10px; font-size: 1rem; }
.screen--inner { max-width: 720px; }
.explore, .explore__reports { display: grid; gap: var(--space); min-width: 0; align-content: start; }
.explore__controls { display: grid; align-content: start; gap: 12px; min-width: 0; }
.explore__reports { grid-template-columns: minmax(0, 1fr); }
.explore__map { display: contents; }
.search, .filters, .section-heading, .report, .empty { min-width: 0; }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding-inline: 13px; color: var(--pine); background: var(--surface); }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search__input { min-width: 0; width: 100%; padding: 12px 0; background: transparent; border: 0; color: var(--ink); }
.search__input:focus-visible { outline: none; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filters__button { background: var(--surface); border: 1px solid var(--line); padding: 6px 11px; min-height: 38px; border-radius: 30px; font-size: .875rem; font-weight: 700; }
.filters__button[aria-pressed="true"] { color: var(--surface); background: var(--pine); border-color: var(--pine); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border-radius: 40px; padding: 4px 9px; background: var(--soft); color: var(--pine); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.tag--premium { background: var(--lime); }
.tag .icon { width: 14px; height: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--pine); font-weight: 750; text-align: center; }
.button:hover { background: var(--soft); }
.button--primary { color: var(--surface); background: var(--pine); border-color: var(--pine); }
.button--primary:hover { background: var(--pine-hover); }
.button--icon { width: 44px; padding: 0; }
.button--inline { min-height: 28px; padding: 0 5px; background: transparent; border: 0; text-decoration: underline; }
.map { position: relative; isolation: isolate; height: clamp(285px, 63vw, 400px); background: #e8eddd; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map__preview, .map__live { position: absolute; inset: 0; }
.map__preview { background: url("assets/map-preview.svg") center / cover no-repeat; }
.map__live--loading { visibility: hidden; }
.map__toolbar { position: absolute; z-index: 1; inset: 12px 12px auto; display: flex; justify-content: space-between; align-items: start; pointer-events: none; }
.map__toolbar > * { pointer-events: auto; }
.map__badge, .map__message { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 9px; background: var(--surface); color: var(--pine); font-size: .8125rem; font-weight: 750; box-shadow: var(--shadow); }
.map__badge .icon { width: 16px; height: 16px; }
.map__message { position: absolute; left: 10px; bottom: 10px; right: auto; max-width: calc(100% - 20px); }
.map[data-state="live"] .map__message { bottom: 34px; pointer-events: none; }
.map .maplibregl-ctrl-attrib { font-size: 11px; }
.pin { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 3px solid var(--surface); border-radius: 50%; color: var(--surface); background: var(--pine); box-shadow: 0 3px 10px #172b244d; }
.pin--paid { background: var(--lime); color: var(--pine); }
.map__pin { position: absolute; }
.map__pin--free { left: 39%; top: 21%; }
.map__pin--paid { left: 59%; top: 53%; }

.report { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.report__media { position: relative; height: 158px; background: var(--pine); }
.report__image, .detail__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.report__media .tag { position: absolute; inset: 12px auto auto 12px; }
.report__body { padding: var(--space); }
.report__meta { font-size: .8125rem; font-weight: 650; margin-bottom: 4px; }
.report__text { margin-top: 5px; font-size: .9375rem; }
.report__action { width: 100%; margin-top: 12px; }
.report--compact .report__action { width: auto; }
.report-list { display: grid; gap: 12px; }
.empty, .panel { padding: clamp(16px, 4vw, 28px); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.catch-form { display: grid; gap: 16px; }
.catch-form__grid { display: grid; gap: var(--space); }
.catch-form__preview { width: 100%; max-height: 250px; object-fit: contain; background: var(--soft); border-radius: var(--radius); }
.catch-form__status:empty, .profile p:empty, .detail p:empty { display: none; }
.field { min-width: 0; display: grid; gap: 5px; font-weight: 700; }
.field__control { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); font-weight: 400; }
.field__hint { font-size: .875rem; font-weight: 500; color: var(--muted); }
.visibility { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 6px 13px 10px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.visibility__legend { font-weight: 700; padding-inline: 5px; }
.visibility__choice { min-height: 40px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.profile { display: grid; justify-items: start; gap: 10px; }
.profile__avatar { display: grid; place-items: center; width: 64px; aspect-ratio: 1; border-radius: 22px; color: var(--pine); background: var(--lime); font-size: 1.25rem; font-weight: 800; }
.detail { width: min(calc(100% - 24px), 500px); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(14px, 4vw, 24px); color: var(--ink); background: var(--surface); }
.detail::backdrop { background: #0c2b22aa; }
.detail[open] { display: grid; gap: 10px; }
.detail__header { display: flex; align-items: center; justify-content: space-between; }
.detail__image { height: clamp(110px, 23vh, 195px); border-radius: var(--radius); }
.detail__premium { display: grid; gap: 8px; background: var(--soft); border-radius: var(--radius); padding: 12px; }
.detail small { font-size: .8125rem; }

@media (max-width: 879px) {
  .explore, .explore__reports { display: contents; }
  .screen--explore { display: grid; gap: 12px; }
  .screen--explore .screen__heading { margin-bottom: 5px; }
  .explore__controls { grid-row: 2; }
  .map { grid-row: 3; }
  .section-heading { margin-top: 6px; }
}

@media (min-width: 540px) {
  .catch-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 880px) {
  body { grid-template-columns: minmax(190px, 15vw) minmax(0, 1fr); }
  .header { grid-column: 1 / -1; padding-inline: 24px var(--gutter); }
  .nav { position: sticky; top: 0; align-self: start; align-content: start; grid-row: 2; grid-column: 1; display: grid; grid-template-columns: 1fr; gap: 6px; padding: 23px 13px; border: 0; border-right: 1px solid var(--line); background: var(--canvas); min-height: calc(100dvh - 71px); }
  .nav__link { flex-direction: row; justify-content: start; gap: 12px; padding: 9px 12px; font-size: .9375rem; }
  .nav__link--add { background: var(--lime); margin-block: 5px; }
  .app { grid-column: 2; grid-row: 2; padding-block: 34px 40px; }
  .explore { grid-template-columns: minmax(0, 1fr) minmax(270px, 34%); grid-template-rows: auto 1fr; gap: clamp(16px, 2vw, 30px); }
  .explore__controls { grid-area: 1 / 2; }
  .explore__map { display: block; grid-column: 1; grid-row: 1 / 3; }
  .explore__reports { grid-area: 2 / 2; }
  .map { height: clamp(520px, calc(100dvh - 265px), 750px); }
}

/* The Nuxt shell shares the same layout and component styles. */
#__nuxt { display: contents; }

.account-form {
  display: grid;
  width: min(100%, 440px);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.account-form__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button:disabled { opacity: .55; cursor: wait; }

.report__catch-photo {
  display: block;
  width: min(100%, 420px);
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-block: 12px;
}

.pin--community { background: #285271; }
.community-actions { flex-basis: 100%; margin-top: 8px; }
.community-actions > .button { margin-inline-end: 6px; }
#feed > h2 { margin-block: 22px 12px; }
