@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/vendor/inter/latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/vendor/inter/cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #172e2a;
  --muted: #586a63;
  --green: #146653;
  --line: #dce1d7;
  --paper: #f8f8f3;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.45 Inter,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  background: transparent;
  border: 0;
}
a {
  color: var(--green);
}
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d87e45;
  outline-offset: 3px;
}
.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.top-inner,
main {
  max-width: 1512px;
  margin: auto;
  padding: 0 clamp(16px, 3.8vw, 60px);
}
.top-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 46px;
}
.brand {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #173b33;
  font: 700 29px/1 var(--serif);
  text-decoration: none;
  letter-spacing: -1.6px;
  white-space: nowrap;
}
.brand img {
  margin-right: 4px;
}
.brand em {
  font-weight: 400;
}
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav button,
.account,
.sort,
.locate,
.primary,
.secondary,
.chip,
.map-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav button {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 12px;
  color: #51645b;
  font-size: 14px;
  font-weight: 600;
}
.nav .selected {
  background: #e8f1e8;
  color: #175e4e;
}
.account {
  margin-left: auto;
  border: 1px solid #d1dace;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 600;
  max-width: 200px;
}
.account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 24px;
  min-height: 210px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  background: #215b50 url("/static/photos/hero.webp") center 68% / cover;
  color: #fff;
}
.cover:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(8, 41, 34, 0.91),
      rgba(8, 42, 37, 0.62) 33%,
      rgba(0, 20, 20, 0.02) 76%
    ),
    linear-gradient(0deg, #092c292e, transparent 60%);
}
.cover-copy {
  padding: 27px clamp(23px, 3vw, 48px);
}
.country,
.cover-meta,
.photo-caption {
  display: flex;
  align-items: center;
  gap: 9px;
}
.country {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.045em;
  color: #e4ede3;
}
.country .icon,
.cover-meta .icon,
.photo-caption .icon {
  width: 16px;
  height: 16px;
}
.country i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c1d5bc;
}
.cover h1 {
  font: 500 clamp(43px, 4.7vw, 72px) / 1.12 var(--serif);
  letter-spacing: -0.055em;
  margin: 10px 0 14px;
}
.cover h1 em {
  font-weight: 400;
  color: #eff4df;
}
.cover-meta {
  font-size: 14px;
  font-weight: 500;
}
.sep {
  opacity: 0.55;
  margin: 0 2px;
}
.photo-caption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  background: #102e2a9e;
  border-radius: 100px;
  padding: 6px 11px;
  font-size: 12px;
  backdrop-filter: blur(4px);
}
.explore-title,
.section-bar,
footer {
  display: flex;
  align-items: center;
}
.explore-title {
  justify-content: space-between;
  margin: 26px 0 16px;
}
.explore-title h2 {
  margin: 0;
  font: 600 clamp(28px, 2.4vw, 36px) / 1.12 var(--serif);
  letter-spacing: -0.04em;
}
.primary,
.secondary {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #0d5242;
}
.secondary {
  border: 1px solid var(--line);
  background: #fff;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #d6ddd4;
  border-radius: 11px;
  background: white;
  height: 44px;
  min-width: 190px;
  width: 23%;
  color: #52685d;
  flex-shrink: 0;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}
.search:focus-within {
  box-shadow: 0 0 0 2px #64a38f;
}
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  white-space: nowrap;
  border: 1px solid #d5ddd1;
  border-radius: 22px;
  min-height: 42px;
  padding: 0 13px;
  font-size: 14px;
  background: #fff;
}
.chip .icon {
  width: 16px;
  height: 16px;
  color: var(--chip, var(--green));
}
.chip[aria-pressed="true"] {
  background: #214e40;
  color: #fff;
  border-color: #214e40;
}
.chip[aria-pressed="true"] .icon {
  color: white;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(285px, 0.92fr) minmax(0, 1.8fr);
  gap: 18px;
  align-items: stretch;
}
.catalog-panel,
.map-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  height: clamp(420px, 55vh, 660px);
}
.catalog-panel {
  display: flex;
  flex-direction: column;
}
.section-bar {
  gap: 8px;
  padding: 10px 17px;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
}
.section-bar h3 {
  margin: 0;
  font-size: 16px;
}
.count {
  background: #eef1e8;
  color: #415748;
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 650;
}
.sort {
  margin-left: auto;
  color: var(--green);
  font-size: 13px;
  min-height: 36px;
}
.sort[aria-pressed="true"] {
  font-weight: bold;
  text-decoration: underline;
}
.sort .icon {
  width: 16px;
}
.place-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccd6cc transparent;
  flex: 1;
  min-height: 0;
}
.place-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #e8ebe4;
  position: relative;
}
.row-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-align: left;
  padding: 0;
}
.place-row:hover {
  background: #f7faf4;
}
.place-img,
.placeholder-img {
  width: 69px;
  height: 67px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}
.placeholder-img {
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--chip);
}
.placeholder-img .icon {
  width: 28px;
  height: 28px;
}
.row-text {
  min-width: 0;
}
.cat-label {
  color: var(--chip);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-label:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--chip);
  border-radius: 50%;
}
.row-name {
  display: block;
  font: 600 19px/1.17 var(--serif);
  margin: 4px 0 3px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.row-area {
  color: var(--muted);
  font-size: 13px;
  display: block;
}
.row-bookmark,
.close,
.map-controls button {
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
}
.row-bookmark {
  width: 32px;
  color: #78887c;
}
.row-bookmark.on,
.favorite-active {
  color: var(--green);
}
.row-bookmark.on .icon,
.favorite-active .icon {
  fill: #c4dfcd;
}
.map-panel {
  position: relative;
  background: #b9dde1;
  isolation: isolate;
}
#map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #b9dde1;
}
.map-badge,
.map-controls,
.locate {
  position: absolute;
  z-index: 1;
}
.map-badge,
.map-controls button,
.locate {
  background: white;
  border: 1px solid #ccd7ca;
  box-shadow: 0 2px 8px #183e3721;
}
.map-badge {
  pointer-events: none;
  top: 15px;
  left: 15px;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 650;
}
.map-badge .icon {
  width: 16px;
}
.map-controls {
  top: 15px;
  right: 15px;
  display: grid;
  gap: 9px;
}
.map-controls > div {
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 8px #183e3721;
}
.map-controls > div button {
  border-radius: 0;
  box-shadow: none;
}
.locate {
  bottom: 24px;
  right: 14px;
  background: var(--green);
  color: #fff;
  border-color: #fff8;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}
.leaflet-tile-pane {
  filter: saturate(0.78);
}
.leaflet-container a {
  color: #175744;
}
.pin-wrap {
  background: transparent;
  border: 0;
}
.pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--chip);
  border: 2px solid white;
  color: white;
  border-radius: 50% 50% 50% 5px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 5px #254a4652;
}
.pin .icon {
  transform: rotate(45deg);
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}
.pin.approx {
  border-style: dashed;
}
.leaflet-container .leaflet-control-attribution {
  font-size: 10px;
}
.map-label {
  color: #456c63;
  font:
    italic 13px Georgia,
    serif;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-shadow: 0 1px 2px white;
}
#dates {
  margin: 0 0 15px;
  display: flex;
  overflow-x: auto;
  gap: 6px;
}
#dates button {
  padding: 8px 13px;
  min-height: 44px;
  white-space: nowrap;
  border-radius: 8px;
  background: #e8ece3;
}
#dates .active {
  background: var(--green);
  color: #fff;
}
.empty {
  padding: 20px;
  color: var(--muted);
  font-size: 15px;
}
footer {
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 12px;
}
footer > span {
  font: italic 17px var(--serif);
}
footer button {
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
}
#toast {
  position: fixed;
  z-index: 10000;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #173e35;
  color: white;
  padding: 13px 20px;
  max-width: calc(100% - 24px);
  width: max-content;
  border-radius: 12px;
  box-shadow: 0 3px 20px #0002;
  font-size: 14px;
}
dialog {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(510px, calc(100% - 26px));
  max-height: 88dvh;
  overflow: auto;
  padding: 0;
  box-shadow: 0 15px 70px #122e3433;
}
dialog::backdrop {
  background: #112e2c70;
  backdrop-filter: blur(2px);
}
.dialog-top {
  height: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.close {
  pointer-events: auto;
  background: white;
  border: 1px solid var(--line);
  margin: 12px 12px 0 0;
  border-radius: 100%;
}
.dialog-body {
  padding: 26px;
}
.dialog-body h2,
.join-card h1 {
  font: 500 32px/1.1 var(--serif);
  letter-spacing: -0.04em;
  margin: 8px 36px 14px 0;
}
.dialog-body h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.dialog-body p,
.join-card p {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.detail-img {
  width: 100%;
  height: 174px;
  object-fit: cover;
  display: block;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.detail-note {
  padding: 12px 14px;
  background: #eff3e9;
  border-radius: 10px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.review {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.review p {
  margin: 4px 0;
}
.review strong {
  margin-right: 8px;
}
.stars {
  color: #965d13;
}
.stack {
  display: grid;
  gap: 12px;
}
.stack label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: 14px;
}
.stack input,
.stack textarea,
.stack select {
  min-width: 0;
  width: 100%;
  border: 1px solid #cdd7cb;
  background: white;
  border-radius: 8px;
  min-height: 44px;
  padding: 9px 11px;
  font-weight: 400;
  font-size: 16px;
}
.stack textarea {
  resize: vertical;
}
.pair {
  display: flex;
  gap: 8px;
}
.pair > * {
  flex: 1;
  min-width: 0;
}
.stack .primary {
  justify-self: start;
}
.inline-error {
  color: #953f29;
  font-size: 14px;
}
.join-wrap {
  display: grid;
  min-height: 100dvh;
  place-items: center;
}
.join-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 460px;
  padding: 32px;
}
.join-card a {
  display: block;
  margin-top: 16px;
}
.choose-map {
  height: 200px;
  border-radius: 10px;
  z-index: 0;
  background: #b9dde1;
}
.date-alt {
  border: 1px solid var(--line);
  background: white;
  padding: 8px;
  border-radius: 8px;
}
.credit {
  margin: 10px 0;
  font-size: 14px;
}
@media (min-width: 1550px) {
  .cover {
    min-height: 235px;
  }
}
@media (max-width: 980px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search {
    width: 100%;
  }
  .top-inner {
    gap: 22px;
  }
  .nav {
    gap: 0;
  }
  .nav button {
    padding: 0 12px;
  }
  .workspace {
    grid-template-columns: minmax(270px, 0.95fr) minmax(0, 1.4fr);
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .top-inner {
    height: 57px;
  }
  .brand {
    font-size: 25px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .account {
    min-height: 40px;
    padding: 0 13px;
  }
  .nav {
    position: fixed;
    z-index: 900;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    background: #fffffff5;
    padding: 3px 6px calc(3px + env(safe-area-inset-bottom));
    backdrop-filter: blur(8px);
  }
  .nav button {
    min-width: 29%;
    min-height: 52px;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
  }
  .nav .selected {
    background: transparent;
    color: var(--green);
  }
  .nav .selected .icon {
    stroke-width: 2.2;
  }
  .cover {
    margin-top: 12px;
    min-height: 120px;
    border-radius: 15px;
    background-position: center 55%;
  }
  .cover-copy {
    padding: 16px 19px;
  }
  .cover h1 {
    font-size: 39px;
    margin: 5px 0 8px;
  }
  .country,
  .cover-meta {
    font-size: 12px;
  }
  .photo-caption {
    display: none;
  }
  .explore-title {
    margin: 18px 0 12px;
  }
  .explore-title h2 {
    font-size: 27px;
  }
  .explore-title .primary {
    padding: 8px 12px;
  }
  .toolbar {
    gap: 8px;
    margin-bottom: 10px;
  }
  .chips {
    margin-right: -16px;
    padding-right: 16px;
  }
  .chip {
    min-height: 44px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .map-panel {
    order: -1;
    height: clamp(248px, 35svh, 360px);
  }
  .catalog-panel {
    height: auto;
    max-height: none;
  }
  .place-list {
    overflow: visible;
  }
  .section-bar {
    padding: 6px 12px;
  }
  .place-row {
    padding: 10px 12px;
  }
  .map-badge,
  .map-controls {
    top: 10px;
  }
  .map-badge {
    left: 10px;
  }
  .map-controls {
    right: 10px;
  }
  .map-controls button {
    width: 44px;
    height: 44px;
  }
  .locate {
    bottom: 18px;
    right: 10px;
  }
  .place-img,
  .placeholder-img {
    width: 62px;
    height: 60px;
  }
  .row-name {
    font-size: 19px;
  }
  #toast {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
  dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 89dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dialog-body {
    padding: 22px 19px;
  }
  .detail-img {
    height: 145px;
  }
}

.cluster {
  display: grid;
  place-items: center;
  border: 4px solid #ffffffcf;
  border-radius: 50%;
  background: #286d59;
  color: white;
  box-shadow: 0 2px 6px #26453555;
  font:
    700 13px/1 Arial,
    sans-serif;
}
.ya {
  display: inline-grid;
  place-items: center;
  background: #f33;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font: 600 16px Arial;
}
.leaflet-tooltip {
  font:
    500 13px Arial,
    sans-serif;
}
.map-controls button:active,
.chip:active {
  transform: translateY(1px);
}
.photo-fields {
  display: grid;
  gap: 12px;
  margin: 2px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.photo-fields legend {
  font-weight: 650;
  padding: 0 6px;
}
.photo-fields small {
  color: var(--muted);
}
.stack .photo-picker,
.stack .switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.photo-picker {
  border: 1px dashed #829c8c;
  border-radius: 8px;
  min-height: 48px;
  justify-content: center;
  position: relative;
}
.stack .photo-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.photo-picker:focus-within {
  outline: 2px solid var(--green);
}
.stack .switch-label input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--green);
}
.photo-previews,
.google-credit,
.album-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.photo-previews:empty,
.photo-error:empty {
  display: none;
}
.photo-previews > div {
  width: 80px;
  height: 80px;
  position: relative;
  background: var(--paper);
  overflow: hidden;
  border-radius: 8px;
  font-size: 12px;
}
.photo-previews img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-previews button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  font-size: 20px;
}
.photo-error {
  color: #953f29;
  font-size: 14px;
}
.photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.photo-strip a {
  flex: 0 0 min(86%, 360px);
  scroll-snap-align: start;
}
.photo-strip img,
.google-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #edf0e9;
  border-radius: 10px;
  display: block;
}
.google-photos,
.google-result:not(:empty) {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
  font-size: 14px;
}
.google-photos h3 {
  margin: 0 0 8px;
}
.google-photos > a {
  display: inline-block;
  padding: 6px 0;
}
.google-figure {
  margin: 0;
}
.google-credit {
  padding: 9px 0;
  gap: 6px;
}
.google-credit span {
  font:
    500 14px/1.3 Arial,
    sans-serif;
  letter-spacing: normal;
  color: #333;
}
.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.source-links {
  display: flex;
  gap: 12px;
}
.album-nav {
  justify-content: center;
  margin: 8px 0;
}
.album-nav button {
  min-width: 44px;
  font-size: 20px;
}
.google-matches {
  display: grid;
  gap: 6px;
}
.google-match {
  display: grid;
  text-align: left;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
dialog:has(.google-image)::backdrop,
dialog:has(.google-matches)::backdrop {
  background: var(--paper);
  backdrop-filter: none;
}
