:root {
  --ink: #1f2a22;
  --muted: #687269;
  --paper: #f5f2e9;
  --card: #fffef9;
  --line: #dedbd0;
  --orange: #e56537;
  --orange-dark: #bd4722;
  --forest: #304c3c;
  --forest-light: #e4ebe4;
  --sand: #e8dfcd;
  --shadow: 0 18px 50px rgba(31, 42, 34, 0.15);
  --radius: 20px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

/* Travel-platform style photo album */
.detail-cover.detail-gallery-viewer {
  height: auto;
  overflow: hidden;
  background: #17211b;
}

.detail-photo-collage {
  position: relative;
  display: grid;
  height: 310px;
  gap: 3px;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.collage-photo {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #26342c;
  border: 0;
  cursor: pointer;
}

.collage-photo-1 {
  grid-row: 1 / -1;
}

.collage-1 {
  display: block;
}

.collage-1 .collage-photo-1 {
  width: 100%;
  height: 100%;
}

.collage-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.collage-2 .collage-photo-1 {
  grid-row: auto;
}

.collage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.collage-photo:hover img {
  filter: brightness(0.94);
  transform: scale(1.025);
}

.view-all-photos {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9px;
  box-shadow: 0 7px 22px rgba(10, 16, 12, 0.25);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.view-all-photos span {
  font-size: 16px;
}

.detail-carousel {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #17211b;
}

.detail-carousel-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.detail-carousel-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity 360ms cubic-bezier(.22, .61, .36, 1),
    transform 360ms cubic-bezier(.22, .61, .36, 1);
}

.detail-carousel-slide.no-transition {
  transition: none;
}

.detail-carousel-slide.switch-next {
  opacity: .18;
  transform: translateX(-2.5%) scale(1.025);
}

.detail-carousel-slide.switch-previous {
  opacity: .18;
  transform: translateX(2.5%) scale(1.025);
}

.detail-carousel-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(22px) brightness(.58) saturate(.9);
  transform: scale(1.09);
}

.detail-carousel-slide::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 18, .2), transparent 25%, transparent 75%, rgba(15, 23, 18, .2)),
    linear-gradient(0deg, rgba(10, 16, 12, .24), transparent 32%);
  content: "";
  pointer-events: none;
}

.detail-cover .detail-carousel-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .22));
  transform: scale(1.001);
  transition: transform 5s ease-out;
}

.detail-cover .detail-carousel-slide .detail-carousel-image {
  transform: scale(1.018);
}

.detail-carousel-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 42px;
  height: 52px;
  padding: 0;
  place-items: center;
  color: white;
  background: rgba(18, 29, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
  pointer-events: none;
}

.detail-carousel:hover .detail-carousel-nav,
.detail-carousel:active .detail-carousel-nav {
  opacity: 1;
  pointer-events: auto;
}

.detail-carousel-nav.previous { left: 14px; }
.detail-carousel-nav.next { right: 14px; }

.detail-carousel-dots {
  position: absolute;
  z-index: 3;
  bottom: 17px;
  left: 50%;
  display: flex;
  max-width: 48%;
  gap: 7px;
  transform: translateX(-50%);
}

.detail-carousel-dots button {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.58);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

.detail-carousel-dots button.active {
  width: 22px;
  background: white;
}

.detail-carousel-count {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 14px;
  padding: 6px 9px;
  color: white;
  background: rgba(18, 29, 23, 0.62);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .detail-carousel-slide {
    transition: opacity 180ms linear;
  }

  .detail-carousel-slide,
  .detail-carousel-slide.switch-next,
  .detail-carousel-slide.switch-previous {
    transform: none;
  }

  .detail-cover .detail-carousel-image,
  .detail-cover .detail-carousel-slide .detail-carousel-image {
    transform: none;
    transition: none;
  }
}

.photo-lightbox {
  display: block;
  padding: 0;
  color: white;
  background: #111713;
}

.lightbox-header {
  position: relative;
  z-index: 2;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #18201b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-header strong,
.lightbox-header span {
  display: block;
}

.lightbox-header strong {
  max-width: min(55vw, 600px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.lightbox-header span {
  margin-top: 3px;
  color: #aeb8b1;
  font-size: 11px;
}

.lightbox-close {
  position: static;
  width: 40px;
  height: 40px;
}

.lightbox-layout {
  display: grid;
  height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1fr) 310px;
}

.lightbox-stage {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 28px 70px;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(54, 70, 60, 0.32), transparent 55%),
    #090d0b;
}

.lightbox-stage figure {
  display: grid;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  place-items: center;
}

.lightbox-stage figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-stage .lightbox-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 66px;
  transform: translateY(-50%);
}

.lightbox-stage .lightbox-nav.previous {
  left: 14px;
}

.lightbox-stage .lightbox-nav.next {
  right: 14px;
}

.lightbox-catalog {
  min-width: 0;
  overflow-y: auto;
  background: #f6f4ed;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.lightbox-catalog::-webkit-scrollbar {
  display: none;
}

.catalog-heading {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 16px 12px;
  color: var(--ink);
  background: rgba(246, 244, 237, 0.96);
  backdrop-filter: blur(10px);
}

.catalog-heading strong {
  font-size: 14px;
}

.catalog-heading span {
  color: var(--muted);
  font-size: 10px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 12px 18px;
}

.catalog-grid button {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #d8d7d0;
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.72;
}

.catalog-grid button.active {
  border-color: var(--orange);
  opacity: 1;
}

.catalog-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-grid button span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: white;
  background: rgba(12, 18, 14, 0.68);
  border-radius: 50%;
  font-size: 9px;
}

.photo-lightbox.single-photo .lightbox-catalog {
  display: none;
}

.photo-lightbox.single-photo .lightbox-layout {
  grid-template-columns: 1fr;
}

@media (max-width: 700px) {
  .detail-carousel {
    height: 250px;
  }

  .detail-carousel-nav {
    width: 38px;
    height: 46px;
  }

  .detail-carousel-nav.previous { left: 9px; }
  .detail-carousel-nav.next { right: 9px; }

  .detail-carousel-dots {
    bottom: 14px;
    max-width: 42%;
    gap: 5px;
  }

  .detail-photo-collage {
    display: block;
    height: 270px;
  }

  .detail-photo-collage .collage-photo {
    display: none;
  }

  .detail-photo-collage .collage-photo-1 {
    display: block;
    width: 100%;
    height: 100%;
  }

  .view-all-photos {
    right: 10px;
    bottom: 10px;
    min-height: 42px;
    font-size: 13px;
  }

  .lightbox-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 64px;
    background: linear-gradient(rgba(5, 8, 6, 0.82), transparent);
    border-bottom: 0;
  }

  .lightbox-header strong {
    max-width: 72vw;
    font-size: 15px;
  }

  .lightbox-header span {
    color: white;
  }

  .lightbox-layout {
    height: 100vh;
    grid-template-columns: 1fr;
  }

  .lightbox-stage {
    padding: 64px 0 34px;
  }

  .lightbox-stage figure img {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .lightbox-catalog {
    display: none;
  }

  .lightbox-stage .lightbox-nav {
    width: 42px;
    height: 58px;
    opacity: 0.72;
  }

  .lightbox-stage .lightbox-nav.previous {
    left: 7px;
  }

  .lightbox-stage .lightbox-nav.next {
    right: 7px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(229, 101, 55, 0.28);
  outline-offset: 2px;
}

.app-shell {
  height: 100%;
  display: grid;
  grid-template-rows: 72px 1fr;
}

.topbar {
  position: fixed;
  z-index: 1002;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 254, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backface-visibility: hidden;
  backdrop-filter: blur(16px);
  transform: translateZ(0);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--orange);
  background: #f7e6dc;
  border-radius: 14px;
}

.brand-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.brand strong {
  display: block;
  font-family: "Songti SC", STSong, serif;
  font-size: 21px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(229, 101, 55, 0.24);
}

.button-primary:hover {
  background: var(--orange-dark);
}

.button-quiet {
  background: var(--forest-light);
}

.button-dark {
  width: 100%;
  color: white;
  background: var(--ink);
}

.button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.icon {
  font-size: 18px;
  line-height: 0;
}

.workspace {
  grid-row: 2;
  min-height: 0;
  display: grid;
  grid-template-columns: 410px 1fr;
}

.sidebar {
  position: relative;
  z-index: 500;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.sidebar-scroll {
  height: 100%;
  min-height: 0;
  padding: 30px 24px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.sidebar-scroll::-webkit-scrollbar {
  display: none;
}

.intro {
  padding: 4px 2px 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  font-family: "Songti SC", STSong, serif;
  font-size: clamp(35px, 3vw, 47px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.intro h1 em {
  color: var(--orange);
  font-style: normal;
}

.intro > p:last-child {
  max-width: 330px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(31, 42, 34, 0.04);
}

.search-box span {
  color: var(--muted);
  font-size: 24px;
  transform: rotate(-15deg);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input::placeholder {
  color: #9a9f98;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  padding: 12px 0 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip.active {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 20px 0 10px;
}

.list-heading span {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.list-heading small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.text-button,
.sidebar-footer button {
  padding: 0;
  color: var(--orange-dark);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.spot-list {
  display: grid;
  gap: 10px;
}

.spot-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 13px;
  width: 100%;
  padding: 11px;
  text-align: left;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(31, 42, 34, 0.045);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.spot-card:hover,
.spot-card.active {
  border-color: rgba(229, 101, 55, 0.55);
  box-shadow: 0 10px 30px rgba(31, 42, 34, 0.09);
  transform: translateY(-1px);
}

.spot-thumb {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(145deg, rgba(48, 76, 60, 0.2), rgba(31, 42, 34, 0.7)),
    radial-gradient(circle at 70% 20%, #d8a267 0 9%, transparent 10%),
    linear-gradient(150deg, #a9bba4 0 45%, #546d59 46% 62%, #334b3d 63%);
  border-radius: 12px;
}

.spot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-thumb span {
  font-size: 25px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.spot-card-content {
  min-width: 0;
  padding-top: 2px;
}

.spot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.type-label {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
}

.distance {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
}

.spot-card h3 {
  margin: 6px 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.mini-tag {
  padding: 3px 6px;
  color: var(--forest);
  background: var(--forest-light);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
}

.empty-state {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 254, 249, 0.65);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.pro-card {
  position: relative;
  margin-top: 20px;
  padding: 21px;
  overflow: hidden;
  color: white;
  background: var(--forest);
  border-radius: 20px;
}

.pro-card::after {
  position: absolute;
  right: -40px;
  bottom: -45px;
  width: 150px;
  height: 150px;
  content: "";
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.pro-badge {
  color: #f5c4aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pro-card h2 {
  margin: 11px 0 7px;
  font-family: "Songti SC", STSong, serif;
  font-size: 21px;
}

.pro-card p {
  margin: 0 0 17px;
  color: #cfdbd2;
  font-size: 12px;
  line-height: 1.65;
}

.pro-card .button {
  position: relative;
  z-index: 1;
  color: var(--ink);
  background: #f3dfc3;
}

.sidebar-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 2px 4px;
  color: var(--muted);
  font-size: 10px;
}

.map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
  background: #d7dfd4;
}

.map-overzoom .leaflet-tile-pane {
  filter: contrast(1.12) saturate(1.06);
}

.map-overzoom .leaflet-tile {
  image-rendering: -webkit-optimize-contrast;
}

.amap-map-tools-control {
  overflow: visible;
  border: 0 !important;
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(24, 35, 28, 0.2);
}

.amap-map-tools {
  position: relative;
  display: grid;
  width: 42px;
  padding: 3px;
  background: rgba(255, 254, 249, 0.94);
  border: 1px solid rgba(222, 219, 208, 0.92);
  border-radius: 13px;
  backdrop-filter: blur(10px);
}

.amap-map-tool-button {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.amap-map-tool-button:hover:not(:disabled) {
  color: var(--orange-dark);
  background: #f7e6dc;
}

.amap-map-tool-button:active:not(:disabled) {
  transform: scale(0.92);
}

.amap-map-tool-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.amap-map-tool-button::after {
  position: absolute;
  top: 50%;
  right: calc(100% + 9px);
  padding: 6px 8px;
  content: attr(data-tooltip);
  color: white;
  background: rgba(31, 42, 34, 0.92);
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  transform: translate(5px, -50%);
  transition: opacity 140ms ease, transform 140ms ease;
}

.amap-map-tool-button:hover::after,
.amap-map-tool-button:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.amap-map-tool-button:disabled {
  cursor: default;
  opacity: 0.28;
}

.amap-map-tools-divider {
  display: block;
  height: 1px;
  margin: 3px 4px;
  background: var(--line);
}

.amap-hybrid-button.active {
  color: white;
  background: var(--orange);
  box-shadow: 0 5px 12px rgba(229, 101, 55, 0.25);
}

.amap-hybrid-button.active:hover {
  color: white;
  background: var(--orange-dark);
}

.leaflet-control-attribution {
  font-size: 9px !important;
}

.custom-marker {
  --marker-color: #315a47;
  --marker-deep: #203f32;
  position: relative;
  width: 44px;
  height: 52px;
  filter: drop-shadow(0 8px 8px rgba(25, 35, 29, 0.24));
  transform-origin: center bottom;
  transition: filter 180ms ease, transform 180ms ease;
}

.custom-marker:hover {
  z-index: 2;
  filter: drop-shadow(0 10px 10px rgba(25, 35, 29, 0.3));
  transform: translateY(-2px) scale(1.07);
}

.marker-pin {
  position: relative;
  display: grid;
  z-index: 2;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, var(--marker-color), var(--marker-deep));
  border: 2px solid rgba(255, 254, 249, 0.96);
  border-radius: 15px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -8px 14px rgba(13, 25, 19, 0.1);
}

.marker-pin::after {
  position: absolute;
  inset: 4px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  pointer-events: none;
}

.marker-tip {
  position: absolute;
  bottom: 3px;
  left: 50%;
  z-index: 1;
  width: 15px;
  height: 15px;
  background: var(--marker-deep);
  border-right: 2px solid rgba(255, 254, 249, 0.96);
  border-bottom: 2px solid rgba(255, 254, 249, 0.96);
  border-radius: 2px 2px 5px 2px;
  transform: translateX(-50%) rotate(45deg);
}

.marker-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}

.marker-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.marker-view {
  --marker-color: #3f6b61;
  --marker-deep: #294c45;
}

.marker-service {
  --marker-color: #a66a3f;
  --marker-deep: #78492d;
}

.marker-camp {
  --marker-color: #566a3d;
  --marker-deep: #394a29;
}

.marker-drive {
  --marker-color: #b05c3f;
  --marker-deep: #7c3d29;
}

.marker-wild {
  --marker-color: #795f4d;
  --marker-deep: #503e33;
}

.marker-location {
  --marker-color: #d56f43;
  --marker-deep: #a54c2d;
}

.custom-marker.is-active {
  z-index: 3;
  filter:
    drop-shadow(0 9px 10px rgba(25, 35, 29, 0.32))
    drop-shadow(0 0 5px rgba(220, 112, 66, 0.5));
  transform: translateY(-3px) scale(1.12);
}

.custom-marker.is-active .marker-pin {
  border-color: #fff9ef;
  box-shadow:
    0 0 0 3px rgba(221, 111, 65, 0.82),
    0 0 0 6px rgba(255, 254, 249, 0.84),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.spot-cluster {
  --cluster-size: 50px;
  --cluster-core: rgba(192, 95, 62, 0.92);
  --cluster-mid: rgba(238, 151, 82, 0.72);
  --cluster-soft: rgba(255, 210, 130, 0.36);
  --cluster-edge: rgba(255, 244, 210, 0.18);
  position: relative;
  display: grid;
  width: var(--cluster-size);
  height: var(--cluster-size);
  place-items: center;
  color: #fffdf7;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.52) 0 8%, transparent 24%),
    radial-gradient(circle at 54% 50%, var(--cluster-core) 0 28%, transparent 54%),
    radial-gradient(circle at 28% 58%, var(--cluster-mid) 0 25%, transparent 55%),
    radial-gradient(circle at 70% 35%, var(--cluster-soft) 0 28%, transparent 58%),
    radial-gradient(circle at 50% 50%, var(--cluster-edge) 0 58%, transparent 70%);
  border: 1px solid rgba(255, 252, 244, 0.68);
  border-radius: 42% 58% 50% 47% / 48% 43% 57% 52%;
  box-shadow:
    0 10px 22px rgba(57, 38, 24, 0.2),
    0 0 0 calc(var(--cluster-size) * 0.18) color-mix(in srgb, var(--cluster-soft), transparent 48%),
    0 0 0 calc(var(--cluster-size) * 0.36) color-mix(in srgb, var(--cluster-edge), transparent 32%);
  transform-origin: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(1px);
  isolation: isolate;
}

.spot-cluster:hover {
  transform: translateY(-1px) scale(1.06);
  box-shadow:
    0 12px 24px rgba(57, 38, 24, 0.24),
    0 0 0 calc(var(--cluster-size) * 0.2) color-mix(in srgb, var(--cluster-soft), transparent 42%),
    0 0 0 calc(var(--cluster-size) * 0.4) color-mix(in srgb, var(--cluster-edge), transparent 26%);
}

.spot-cluster.is-active {
  box-shadow:
    0 12px 24px rgba(57, 38, 24, 0.26),
    0 0 0 3px rgba(255, 252, 244, 0.86),
    0 0 0 calc(var(--cluster-size) * 0.2) color-mix(in srgb, var(--cluster-soft), transparent 34%),
    0 0 0 calc(var(--cluster-size) * 0.42) color-mix(in srgb, var(--cluster-edge), transparent 20%);
}

.spot-cluster span {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 30px;
  max-width: calc(var(--cluster-size) - 16px);
  padding: 5px 8px;
  overflow: hidden;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 5px rgba(66, 37, 23, 0.42);
  white-space: nowrap;
  background: rgba(92, 48, 31, 0.38);
  border: 1px solid rgba(255, 250, 240, 0.46);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.spot-cluster::before,
.spot-cluster::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 246, 218, 0.34), transparent 60%);
  border-radius: inherit;
  filter: blur(2px);
}

.spot-cluster::before {
  inset: 9%;
  transform: translate(-13%, 8%) rotate(-12deg);
}

.spot-cluster::after {
  inset: 14%;
  transform: translate(15%, -10%) rotate(18deg);
}

.cluster-low {
  --cluster-core: rgba(73, 144, 132, 0.86);
  --cluster-mid: rgba(103, 180, 150, 0.62);
  --cluster-soft: rgba(151, 214, 172, 0.32);
  --cluster-edge: rgba(208, 237, 201, 0.2);
}

.cluster-mid {
  --cluster-core: rgba(213, 139, 59, 0.9);
  --cluster-mid: rgba(232, 178, 84, 0.66);
  --cluster-soft: rgba(249, 212, 125, 0.36);
  --cluster-edge: rgba(255, 239, 190, 0.2);
}

.cluster-high {
  --cluster-core: rgba(188, 83, 62, 0.92);
  --cluster-mid: rgba(218, 112, 72, 0.72);
  --cluster-soft: rgba(244, 165, 100, 0.38);
  --cluster-edge: rgba(255, 220, 168, 0.22);
}

.leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border-radius: 14px !important;
  box-shadow: var(--shadow) !important;
}

.leaflet-popup-content {
  width: 220px !important;
  margin: 0 !important;
}

.map-popup {
  padding: 15px;
}

.map-popup small {
  color: var(--orange-dark);
  font-weight: 800;
}

.map-popup h3 {
  margin: 5px 0;
  font-size: 14px;
}

.map-popup p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.map-popup button {
  width: 100%;
  padding: 8px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.map-notice {
  position: absolute;
  z-index: 450;
  right: 16px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 310px;
  padding: 11px 14px;
  background: rgba(255, 254, 249, 0.92);
  border: 1px solid rgba(222, 219, 208, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(31, 42, 34, 0.12);
  backdrop-filter: blur(12px);
}

.map-notice > span {
  color: var(--orange);
}

.map-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.map-notice strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.modal-backdrop {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(23, 31, 26, 0.66);
  backdrop-filter: blur(7px);
  scrollbar-width: none;
}

.modal-backdrop::-webkit-scrollbar {
  width: 0;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(100%, 760px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  scrollbar-width: none;
}

.modal::-webkit-scrollbar {
  display: none;
}

.feedback-modal {
  width: min(100%, 560px);
}

.feedback-fields {
  display: grid;
  gap: 14px;
  padding: 23px 28px 4px;
}

.feedback-fields textarea {
  min-height: 120px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 28px 18px;
}

.modal h2 {
  margin: 0;
  font-family: "Songti SC", STSong, serif;
  font-size: 30px;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.modal-close.static {
  position: relative;
  flex: 0 0 auto;
}

.modal-close::before,
.lightbox-close::before,
.photo-preview button::before {
  position: absolute;
  top: calc(50% + 1px);
  left: 50%;
  display: block;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.leaflet-container a.leaflet-popup-close-button {
  font-size: 0;
  line-height: 0;
}

.leaflet-container a.leaflet-popup-close-button::before {
  position: absolute;
  top: calc(50% + 1px);
  left: 50%;
  display: block;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.location-picker {
  position: relative;
  height: 250px;
  margin: 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

#pickerMap {
  width: 100%;
  height: 100%;
}

.simple-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 28px 13px;
}

.simple-step.form-step {
  margin-top: 24px;
  margin-bottom: -8px;
}

.simple-step > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--orange);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
}

.simple-step strong,
.simple-step small {
  display: block;
}

.simple-step strong {
  font-size: 16px;
}

.simple-step small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.picker-tip {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  white-space: nowrap;
  background: rgba(255, 254, 249, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(31, 42, 34, 0.14);
  font-size: 11px;
  font-weight: 700;
  transform: translateX(-50%);
  cursor: pointer;
}

.location-region {
  display: flex;
  min-height: 20px;
  align-items: center;
  margin: 10px 28px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 23px 28px 14px;
}

.simple-form-grid {
  gap: 20px;
}

.update-modal {
  width: min(760px, calc(100% - 32px));
}

.update-form-body {
  display: grid;
  gap: 18px;
  padding: 4px 28px 8px;
}

.update-edit-section {
  overflow: hidden;
  background: #f3f1e9;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.update-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  background: rgba(255, 254, 249, 0.72);
  border-bottom: 1px solid var(--line);
}

.update-section-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.update-section-heading > div > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.update-section-heading strong {
  font-size: 16px;
}

.update-section-heading small {
  color: var(--muted);
  font-size: 11px;
}

.update-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 17px;
}

.update-fields-grid input,
.update-fields-grid select {
  height: 48px;
}

.update-fields-grid textarea[name="description"] {
  min-height: 112px;
}

.update-fields-grid textarea[name="message"] {
  min-height: 92px;
}

.update-contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 2px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span,
.field legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: var(--card);
}

.field input,
.field select {
  height: 50px;
  padding: 0 14px;
  font-size: 15px;
}

.field textarea {
  min-height: 125px;
  padding: 14px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.6;
}

.type-choice-field {
  min-width: 0;
}

.type-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.type-choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-choices span {
  display: grid;
  min-height: 70px;
  padding: 10px 6px;
  place-items: center;
  align-content: center;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.type-choices small {
  margin-top: 3px;
  font-size: 10px;
}

.type-choices input:checked + span {
  color: var(--forest);
  background: var(--forest-light);
  border-color: var(--forest);
}

.optional-details {
  padding: 0;
  background: #eeece3;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.optional-details summary {
  padding: 15px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.optional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 4px 16px 17px;
}

.share-optional-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px 20px;
}

.share-optional-grid .info-third {
  grid-column: span 2;
}

.share-optional-grid .info-half {
  grid-column: span 3;
}

.share-optional-grid .facilities-field {
  grid-column: 1 / -1;
}

.share-optional-grid .field input,
.share-optional-grid .field select {
  height: 46px;
  font-size: 14px;
}

.optional-section {
  grid-column: 1 / -1;
  width: 100%;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 254, 249, 0.98), rgba(239, 238, 228, 0.94));
  border: 1px solid #d8d5c9;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(31, 42, 34, 0.07);
}

.optional-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(222, 219, 208, 0.8);
}

.optional-section-heading strong {
  display: block;
  font-family: "Songti SC", STSong, serif;
  font-size: 20px;
  line-height: 1.2;
}

.optional-section-heading small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.optional-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--forest);
  background: var(--forest-light);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.facilities-field {
  min-width: 0;
}

.facility-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.facility-options label {
  cursor: pointer;
}

.facility-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.facility-options span {
  position: relative;
  display: grid;
  min-height: 82px;
  padding: 10px 6px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(31, 42, 34, 0.04);
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.facility-options b {
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.facility-options em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.update-facilities-field {
  margin-top: 4px;
}

.update-facilities-field legend small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.update-facility-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.update-facility-options span {
  min-height: 70px;
  padding: 8px 5px;
}

.update-facility-options b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--forest);
  background: var(--forest-light);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.water-quality-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px 16px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
  background: #eef5f1;
  border: 1px solid rgba(47, 91, 69, 0.2);
  border-radius: 12px;
}

.water-quality-field[hidden] {
  display: none;
}

.water-quality-field > span:first-child strong,
.water-quality-field > span:first-child small {
  display: block;
}

.water-quality-field > span:first-child strong {
  font-size: 14px;
}

.water-quality-field > span:first-child small,
.water-quality-field > small {
  color: var(--muted);
  font-size: 11px;
}

.water-quality-field > small {
  grid-column: 1 / -1;
  line-height: 1.5;
}

.water-quality-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.water-quality-input input {
  width: 100%;
  height: 42px;
  padding: 0 8px 0 12px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.water-quality-input b {
  padding-right: 11px;
  color: var(--muted);
  font-size: 11px;
}

.facility-detail-field {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(140px, 0.8fr);
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding: 14px 16px;
  background: #f7f3e9;
  border: 1px solid #e3d8c4;
  border-radius: 12px;
}

.facility-detail-field[hidden] {
  display: none;
}

.facility-detail-field > div strong,
.facility-detail-field > div small {
  display: block;
}

.facility-detail-field > div strong {
  font-size: 14px;
}

.facility-detail-field > div small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.facility-detail-field label {
  display: grid;
  gap: 5px;
}

.facility-detail-field label > span:first-child {
  color: var(--muted);
  font-size: 11px;
}

.facility-detail-field select,
.distance-input {
  width: 100%;
  height: 42px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.facility-detail-field select {
  padding: 0 10px;
  font-size: 13px;
}

.distance-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

.distance-input input {
  width: 100%;
  height: 40px;
  padding: 0 8px 0 12px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.distance-input b {
  padding-right: 11px;
  color: var(--muted);
  font-size: 11px;
}

.facility-options input:checked + span {
  color: var(--forest);
  background: var(--forest-light);
  border-color: var(--forest);
  box-shadow: 0 7px 18px rgba(48, 76, 60, 0.15);
  transform: translateY(-1px);
}

.facility-options input:checked + span::after {
  position: absolute;
  top: 6px;
  right: 7px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 50%;
  content: "✓";
  font-size: 11px;
  font-weight: 900;
}

.photo-upload {
  display: grid;
  min-height: 105px;
  place-items: center;
  align-content: center;
  cursor: pointer;
  color: var(--muted);
  background: rgba(255, 254, 249, 0.6);
  border: 1px dashed #bbb9ae;
  border-radius: 13px;
}

.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-upload strong {
  margin: 2px 0;
  color: var(--ink);
  font-size: 12px;
}

.upload-icon {
  color: var(--orange);
  font-size: 24px;
}

.photo-previews {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.photo-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  color: white;
  background: rgba(0, 0, 0, 0.66);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
}

.photo-preview button::before {
  width: 10px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.consent input {
  margin-top: 2px;
  accent-color: var(--orange);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px 28px;
}

.form-actions p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.small-modal {
  width: min(100%, 470px);
  padding: 35px;
}

.small-modal > p:not(.eyebrow) {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.small-modal form {
  display: grid;
  gap: 13px;
}

.safety-list {
  display: grid;
  gap: 14px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding: 13px 14px;
  color: var(--muted);
  background: var(--card);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.safety-list strong {
  display: block;
  color: var(--ink);
}

.detail-modal {
  width: min(100%, 680px);
}

.detail-cover {
  position: relative;
  display: grid;
  height: 260px;
  place-items: center;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(140deg, rgba(48, 76, 60, 0.15), rgba(31, 42, 34, 0.8)),
    radial-gradient(circle at 70% 20%, #e4b26d 0 9%, transparent 10%),
    linear-gradient(150deg, #b8c4af 0 45%, #66806c 46% 62%, #354e40 63%);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cover.detail-gallery {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
}

.detail-gallery-viewer {
  display: block;
  height: auto;
  overflow: visible;
  background: #17211b;
}

.detail-gallery-stage {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #17211b;
}

.detail-main-photo-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.detail-main-photo {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 160ms ease;
}

.gallery-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: white;
  background: rgba(14, 20, 16, 0.7);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 54px;
  padding: 0;
  place-items: center;
  color: white;
  background: rgba(15, 22, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 13px;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 140ms ease, transform 140ms ease;
  backdrop-filter: blur(8px);
}

.gallery-nav:hover {
  background: rgba(15, 22, 18, 0.88);
  transform: translateY(-50%) scale(1.04);
}

.gallery-nav.previous {
  left: 14px;
}

.gallery-nav.next {
  right: 14px;
}

.detail-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px 12px;
  background: #f0eee6;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.detail-thumbnails button {
  width: 72px;
  height: 54px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  background: #d8d7d0;
  border: 3px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  opacity: 0.68;
  scroll-snap-align: center;
  transition: opacity 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.detail-thumbnails button.active {
  border-color: var(--orange);
  opacity: 1;
  transform: translateY(-1px);
}

.detail-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery-viewer .detail-photo-count {
  top: 12px;
  left: 14px;
  right: auto;
  bottom: auto;
  font-size: 12px;
}

.detail-gallery img:first-child {
  grid-row: 1 / -1;
}

.detail-gallery-2 img:nth-child(2) {
  grid-row: 1 / -1;
}

.detail-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  color: white;
  background: rgba(20, 27, 22, 0.72);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.photo-lightbox {
  position: fixed;
  z-index: 4000;
  inset: 0;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  padding: 50px 24px 28px;
  color: white;
  background: rgba(6, 10, 8, 0.96);
  backdrop-filter: blur(12px);
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox figure {
  display: grid;
  min-width: 0;
  height: 100%;
  max-height: calc(100vh - 78px);
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
}

.photo-lightbox figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.52);
}

.photo-lightbox figcaption {
  padding-top: 14px;
  color: #d9dfda;
  text-align: center;
  font-size: 13px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.lightbox-close::before {
  width: 16px;
  height: 16px;
}

.lightbox-nav {
  display: grid;
  width: 56px;
  height: 72px;
  padding: 0;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  cursor: pointer;
  font-size: 42px;
}

.lightbox-nav.previous {
  justify-self: start;
}

.lightbox-nav.next {
  justify-self: end;
}

.photo-lightbox.single-photo .lightbox-nav {
  visibility: hidden;
}

.detail-cover-placeholder {
  display: grid;
  width: 100%;
  min-height: 260px;
  padding: 28px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(81, 93, 73, 0.92), rgba(42, 54, 44, 0.96));
  border: 0;
  cursor: pointer;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: filter 180ms ease, transform 180ms ease;
}

.detail-cover-placeholder:hover {
  filter: brightness(1.05);
}

.detail-cover-placeholder:active {
  transform: scale(0.995);
}

.detail-cover-placeholder span {
  display: block;
  font-size: 44px;
}

.detail-cover-placeholder strong {
  font-size: 17px;
  font-weight: 900;
}

.detail-cover-placeholder small {
  max-width: 220px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 11px;
  line-height: 1.5;
}

.detail-body {
  padding: 24px 27px 28px;
}

.detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.status-tag {
  padding: 5px 8px;
  color: var(--orange-dark);
  background: #f7e6dc;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
}

.status-tag.verified {
  color: var(--forest);
  background: var(--forest-light);
}

.detail-body h2 {
  margin: 12px 0 7px;
  font-size: 30px;
}

.detail-region {
  margin: 0 0 5px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
}

.detail-author {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.contributors-link {
  display: inline;
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(47, 91, 69, 0.35);
  text-underline-offset: 3px;
}

.contributors-link span {
  font-size: 14px;
}

.contributors-backdrop {
  z-index: 2200;
}

.contributors-modal {
  width: min(480px, calc(100% - 32px));
  padding: 28px;
}

.contributors-header {
  padding-right: 30px;
}

.contributors-heart {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--orange-dark);
  background: #f7e6dc;
  border-radius: 50%;
  font-size: 18px;
}

.contributors-header h2 {
  margin: 4px 0 7px;
}

.contributors-header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.contributors-list {
  display: grid;
  gap: 8px;
  max-height: min(440px, 52vh);
  margin-top: 20px;
  overflow-y: auto;
}

.contributor-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contributor-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.contributor-main {
  min-width: 0;
  flex: 1;
}

.contributor-main strong,
.contributor-main small {
  display: block;
}

.contributor-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.contributor-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.contributor-order {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: var(--forest);
  background: var(--forest-light);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.contributors-note {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}

.detail-metrics {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.detail-metrics strong {
  color: var(--ink);
  font-size: 11px;
}

.detail-metrics i {
  width: 1px;
  height: 10px;
  background: var(--line);
}

.detail-section {
  margin-top: 24px;
}

.detail-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.detail-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.detail-section-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.detail-facilities > p {
  margin: 0;
  padding: 15px 16px;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 11px;
  font-size: 13px;
}

.detail-description {
  margin: 20px 0;
  color: #4f5b52;
  font-size: 14px;
  line-height: 1.8;
}

.contribution-note-list {
  display: grid;
  gap: 8px;
}

.contribution-note {
  padding: 14px 15px;
  background: #fffaf1;
  border: 1px solid #eadfc9;
  border-left: 4px solid var(--orange);
  border-radius: 11px;
}

.contribution-note p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.contribution-note footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.contribution-note footer span {
  color: var(--forest);
  font-weight: 800;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.facility-item {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--forest);
  background: var(--forest-light);
  border: 1px solid rgba(47, 91, 69, 0.1);
  border-radius: 10px;
}

.facility-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 50%;
}

.facility-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facility-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.facility-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.guidance-item {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #fff8ed;
  border: 1px solid #ead6b8;
  border-radius: 12px;
}

.guidance-item.positive {
  background: var(--forest-light);
  border-color: rgba(47, 91, 69, 0.16);
}

.guidance-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: #8a5a20;
  background: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.guidance-item.positive .guidance-icon {
  color: var(--forest);
}

.guidance-item small,
.guidance-item strong {
  display: block;
}

.guidance-item small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.guidance-item strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.detail-facts > h3 {
  margin-bottom: 9px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.facts-grid > div {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.fact-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--orange-dark);
  background: #f7e6dc;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.facts-grid > div > span:last-child {
  min-width: 0;
}

.facts-grid dt {
  color: var(--muted);
  font-size: 11px;
}

.facts-grid dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.detail-actions .contribute {
  color: white;
  background: var(--orange);
}

.detail-actions .button {
  padding: 0 10px;
}

.detail-actions .secondary {
  color: var(--forest);
  background: var(--forest-light);
}

.detail-actions .report {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.sample-warning {
  margin-top: 15px;
  padding: 10px 12px;
  color: #83522d;
  background: #faead9;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  z-index: 3000;
  left: 50%;
  bottom: 30px;
  max-width: calc(100vw - 40px);
  padding: 11px 17px;
  color: white;
  background: rgba(31, 42, 34, 0.94);
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-only {
  display: none;
}

@media (max-width: 840px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: grid;
  }

  .app-shell {
    grid-template-rows: 62px 1fr;
  }

  .topbar {
    height: 62px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 8px;
  }

  .topbar .button-primary {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .workspace {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .map-panel {
    position: absolute;
    inset: 0;
  }

  .sidebar {
    position: absolute;
    z-index: 800;
    right: 0;
    bottom: 0;
    left: 0;
    height: 43%;
    min-height: 260px;
    background: var(--paper);
    border: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 35px rgba(31, 42, 34, 0.14);
    transition: height 260ms ease;
  }

  .sidebar.expanded {
    height: 78%;
  }

  .sidebar-scroll {
    position: absolute;
    inset: 0;
    height: auto;
    padding: 23px 15px 20px;
  }

  .intro {
    display: none;
  }

  .square-button {
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    color: var(--forest);
    background: var(--forest-light);
    border: 0;
    border-radius: 14px;
    font-size: 22px;
  }

  .filter-scroll {
    padding-top: 10px;
  }

  .list-heading {
    margin-top: 13px;
  }

  .pro-card,
  .sidebar-footer {
    display: none;
  }

  .spot-card {
    grid-template-columns: 76px 1fr;
  }

  .spot-thumb {
    width: 76px;
    height: 76px;
  }

  .map-notice {
    top: 12px;
    right: 12px;
    bottom: auto;
    left: 12px;
    max-width: none;
    padding: 8px 11px;
  }

  .map-notice p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-notice strong {
    display: inline;
  }

  #map .leaflet-top.leaflet-right .amap-map-tools-control {
    margin-top: 58px;
  }

  .map-share-fab {
    position: absolute;
    z-index: 700;
    right: 17px;
    bottom: calc(43% + 18px);
    width: 50px;
    height: 50px;
    padding: 0;
    place-items: center;
    color: white;
    background: var(--orange);
    border: 4px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(31, 42, 34, 0.2);
    cursor: pointer;
    font-size: 29px;
    transition: bottom 260ms ease;
  }

  .sidebar.expanded ~ .map-panel .map-share-fab {
    bottom: calc(78% + 18px);
  }

  .mobile-sheet-handle {
    position: absolute;
    z-index: 900;
    bottom: calc(43% - 10px);
    left: 50%;
    width: 60px;
    height: 22px;
    padding: 0;
    place-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    transform: translateX(-50%);
    transition: bottom 260ms ease;
  }

  .mobile-sheet-handle span {
    width: 34px;
    height: 4px;
    background: #b8b5ab;
    border-radius: 999px;
  }

  .sidebar.expanded ~ .map-panel .mobile-sheet-handle {
    bottom: calc(78% - 10px);
  }

  .leaflet-control-zoom {
    display: none;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .modal-header {
    padding: 22px 18px 15px;
  }

  .modal h2 {
    font-size: 26px;
  }

  .location-picker {
    height: 210px;
    margin: 0 18px;
  }

  .location-region {
    margin-right: 18px;
    margin-left: 18px;
  }

  .simple-step {
    margin-right: 18px;
    margin-left: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    padding: 20px 18px 12px;
  }

  .update-form-body {
    gap: 14px;
    padding: 2px 18px 8px;
  }

  .contributors-modal {
    padding: 24px 18px 20px;
  }

  .contributor-order {
    display: none;
  }

  .update-section-heading {
    display: block;
    padding: 14px;
  }

  .update-section-heading small {
    display: block;
    margin: 6px 0 0 34px;
  }

  .update-fields-grid,
  .update-contact-section {
    grid-template-columns: 1fr;
  }

  .update-fields-grid {
    gap: 14px;
    padding: 14px;
  }

  .update-contact-section {
    gap: 14px;
  }

  .type-choices {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
  }

  .optional-grid {
    grid-template-columns: 1fr;
  }

  .share-optional-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 16px;
  }

  .share-optional-grid .info-third,
  .share-optional-grid .info-half,
  .share-optional-grid .facilities-field {
    grid-column: auto;
  }

  .facility-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facility-options span {
    min-height: 78px;
  }

  .photo-previews {
    grid-template-columns: repeat(3, 1fr);
  }

  .field.full {
    grid-column: auto;
  }

  .consent {
    padding: 0 18px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 18px 24px;
  }

  .detail-cover {
    height: 220px;
  }

  .detail-cover.detail-gallery-viewer {
    height: auto;
  }

  .detail-gallery-stage {
    height: 270px;
  }

  .gallery-nav {
    width: 42px;
    height: 52px;
  }

  .gallery-nav.previous {
    left: 9px;
  }

  .gallery-nav.next {
    right: 9px;
  }

  .gallery-zoom-hint {
    right: 10px;
    bottom: 10px;
  }

  .detail-thumbnails {
    padding: 9px 10px 11px;
  }

  .detail-thumbnails button {
    width: 64px;
    height: 48px;
  }

  .photo-lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 62px 8px 22px;
  }

  .lightbox-nav {
    width: 42px;
    height: 58px;
    font-size: 36px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .detail-body {
    padding: 21px 18px 24px;
  }

  .detail-body h2 {
    font-size: 26px;
  }

  .facility-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guidance-grid {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facts-grid > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .update-facility-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .water-quality-field {
    grid-template-columns: 1fr;
  }

  .water-quality-field > small {
    grid-column: auto;
  }

  .facility-detail-field {
    grid-template-columns: 1fr 1fr;
  }

  .facility-detail-field > div {
    grid-column: 1 / -1;
  }

  .detail-actions {
    grid-template-columns: 1fr 1fr;
  }

  .small-modal {
    padding: 32px 20px 26px;
  }
}

@media (max-width: 380px) {
  .brand small {
    display: none;
  }

  .topbar .button-primary {
    padding: 0 10px;
  }
}

/* Keep the album layout authoritative over the legacy lightbox rules above. */
.photo-lightbox {
  display: block;
  padding: 0;
}

.photo-lightbox .lightbox-header .lightbox-close {
  position: relative;
  width: 40px;
  height: 40px;
}

.photo-lightbox .lightbox-layout {
  display: grid;
  height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1fr) 310px;
}

.photo-lightbox .lightbox-stage figure {
  display: grid;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  grid-template-rows: none;
  place-items: center;
}

.photo-lightbox .lightbox-stage figure img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 700px) {
  .photo-lightbox .lightbox-header {
    position: absolute;
  }

  .photo-lightbox .lightbox-layout {
    height: 100vh;
    grid-template-columns: 1fr;
  }

  .photo-lightbox .lightbox-catalog {
    display: none;
  }

  .photo-lightbox .lightbox-stage figure img {
    width: auto;
    border-radius: 0;
  }
}

/* Strict viewport containment for very large, panoramic and portrait photos. */
.photo-lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.photo-lightbox .lightbox-layout,
.photo-lightbox .lightbox-stage,
.photo-lightbox .lightbox-stage figure {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.photo-lightbox .lightbox-layout {
  max-width: 100vw;
  max-height: calc(100dvh - 68px);
}

.photo-lightbox .lightbox-stage {
  max-width: 100%;
  max-height: 100%;
}

.photo-lightbox .lightbox-stage figure {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  contain: layout paint size;
}

.photo-lightbox .lightbox-stage figure img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 700px) {
  .photo-lightbox .lightbox-layout {
    height: 100dvh;
    max-height: 100dvh;
  }

  .photo-lightbox .lightbox-stage {
    height: 100dvh;
    padding-top: 64px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .photo-lightbox .lightbox-stage figure {
    width: 100%;
    height: 100%;
  }
}
