:root {
  --ink: #193c36;
  --ink-soft: #4f665f;
  --forest: #183c36;
  --forest-light: #27564d;
  --cream: #f4f0e5;
  --paper: #fffdf8;
  --white: #ffffff;
  --coral: #ed785c;
  --coral-dark: #c95842;
  --sun: #f0c864;
  --leaf: #dce8a6;
  --sky: #abd5df;
  --line: #d9d8ce;
  --muted: #77847f;
  --danger: #a84036;
  --shadow-sm: 0 2px 10px rgba(25, 60, 54, 0.08);
  --shadow-md: 0 16px 48px rgba(25, 60, 54, 0.16);
  --shadow-lg: 0 24px 80px rgba(25, 60, 54, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --header-height: clamp(52px, 7dvh, 64px);
  --intro-height: clamp(88px, 12dvh, 112px);
  color-scheme: light;
  font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
}

body.dialog-open {
  overflow: hidden;
}

[data-public-only][hidden],
#editor-verification-retry[hidden],
#removal-verification-retry[hidden],
.public-mode [data-local-only] {
  display: none !important;
}

.public-service-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff4d8;
  border: 1px solid var(--sun);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  line-height: 1.5;
}

.submission-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap;
}

.submission-verification {
  min-height: 65px;
  margin-top: 14px;
  max-width: 100%;
}

.public-submission-fields > label {
  display: grid;
  gap: 7px;
}

.public-mode .header-actions > a {
  text-decoration: none;
}

@media (max-width: 760px) {
  .public-mode .header-actions > a {
    width: auto;
    min-width: 42px;
    padding: 0 9px;
    font-size: 11px;
  }

  .public-service-status {
    font-size: 12px;
  }
}

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

button,
a,
select,
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

svg {
  display: block;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--white);
  background: var(--forest);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--leaf);
  border-radius: 50% 50% 47% 53% / 48% 47% 53% 52%;
  transform: rotate(-3deg);
}

.brand-mark svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  transform: rotate(3deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.icon-button,
.text-button,
.data-action,
.favorite-button,
.rating-button {
  border: 0;
  cursor: pointer;
}

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button svg,
.text-button svg,
.icon-button svg,
.data-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  color: #18372f;
  background: var(--leaf);
  box-shadow: 0 4px 18px rgba(12, 32, 27, 0.18);
}

.button-primary:hover {
  background: #e8f0be;
  box-shadow: 0 7px 22px rgba(12, 32, 27, 0.22);
}

.button:disabled,
.button:disabled:hover {
  cursor: wait;
  opacity: 0.58;
  box-shadow: none;
}

.button-secondary {
  color: inherit;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: inherit;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}

.text-button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  transition: background 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  background: rgba(25, 60, 54, 0.08);
  transform: rotate(2deg);
}

.icon-button:focus-visible,
.button:focus-visible,
.text-button:focus-visible,
.playground-card:focus-visible,
.data-action:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(237, 120, 92, 0.48);
  outline-offset: 2px;
}

.intro {
  position: relative;
  min-height: var(--intro-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  padding: 12px clamp(20px, 4vw, 64px);
  overflow: hidden;
  color: var(--white);
  background: var(--forest);
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.intro::before {
  width: 340px;
  height: 340px;
  top: -265px;
  right: 15%;
  border: 42px solid rgba(220, 232, 166, 0.08);
}

.intro::after {
  width: 210px;
  height: 105px;
  right: -45px;
  bottom: -38px;
  background: rgba(171, 213, 223, 0.08);
  border-radius: 110px 110px 0 0;
  transform: rotate(-12deg);
}

.intro-copy,
.stats {
  position: relative;
  z-index: 1;
}

.intro-copy {
  min-width: 0;
  max-width: 1000px;
}

.intro .eyebrow {
  display: none;
}

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

.intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.intro h1 br {
  display: none;
}

.intro h1 em {
  color: var(--leaf);
  font-weight: 400;
}

.intro-lede {
  max-width: 850px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.stats {
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
}

.stats div {
  min-width: 90px;
  padding: 4px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.stats dt {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--leaf);
  font-size: 28px;
  line-height: 1;
}

.stats dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.explorer {
  position: relative;
  height: calc(100dvh - var(--header-height) - var(--intro-height));
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(340px, 28vw) 1fr;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid rgba(25, 60, 54, 0.1);
}

.directory {
  position: relative;
  z-index: 20;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 28px rgba(25, 60, 54, 0.07);
}

.directory-toolbar {
  flex: 0 0 auto;
  padding: 20px 20px 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.search-control {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid #cfd3ca;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.search-control:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(237, 120, 92, 0.14);
}

.search-control svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-control input {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-control input::placeholder {
  color: #8f9995;
}

.search-control kbd {
  padding: 2px 6px;
  color: #8d9894;
  background: #f4f3ee;
  border: 1px solid #dcddd6;
  border-radius: 5px;
  font-family: inherit;
  font-size: 10px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.select-control {
  min-width: 0;
  flex: 1;
}

.select-control select {
  width: 100%;
  height: 36px;
  padding: 0 27px 0 10px;
  color: var(--ink-soft);
  background-color: #f3f2ec;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.filter-row .icon-button {
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.results-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-heading strong {
  color: var(--ink);
}

.locate-button {
  padding: 5px 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.locate-button:hover {
  background: rgba(25, 60, 54, 0.07);
}

.locate-button svg {
  width: 15px;
  height: 15px;
}

.playground-list {
  min-height: 0;
  flex: 1;
  padding: 8px 8px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #c7cbc4 transparent;
  scrollbar-width: thin;
}

.playground-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 13px;
  padding: 12px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.playground-card + .playground-card {
  margin-top: 2px;
}

.playground-card:hover {
  background: #f5f3eb;
  transform: translateX(2px);
}

.playground-card.is-selected {
  background: #eef2da;
  border-color: #d7dfaa;
}

.card-thumb {
  position: relative;
  width: 74px;
  height: 70px;
  overflow: hidden;
  background: #dde5cd;
  border-radius: 11px;
}

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

.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(25, 60, 54, 0.5);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.55) 0 5px, transparent 6px),
    linear-gradient(145deg, #dfe9af, #a8d2cf);
}

.card-thumb-placeholder svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.card-copy {
  min-width: 0;
  align-self: center;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title-row h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-rating {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 800;
}

.card-rating svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: currentColor;
}

.card-address {
  display: block;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  overflow: hidden;
}

.mini-tag {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: var(--ink-soft);
  background: #ecece4;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mini-tag.needs-visit {
  color: #865046;
  background: #f4ddd7;
}

.empty-results {
  margin: 32px 18px;
  padding: 26px 20px;
  text-align: center;
  background: #f4f2ea;
  border: 1px dashed #cdd0c8;
  border-radius: 14px;
}

.empty-results strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.empty-results p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.map-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #dce6db;
}

#map {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #dce6db;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-sm) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
  background: var(--paper) !important;
  border-color: #dedfd7 !important;
}

.leaflet-control-attribution {
  padding: 3px 7px !important;
  color: #66736e;
  background: rgba(255, 253, 248, 0.88) !important;
  font-size: 9px !important;
}

.leaflet-control-attribution a {
  color: var(--ink-soft);
}

.leaflet-tooltip.playground-tooltip {
  padding: 8px 10px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 750;
}

.leaflet-tooltip-top.playground-tooltip::before {
  border-top-color: var(--paper);
}

.playground-pin-wrapper {
  background: transparent;
  border: 0;
}

.playground-pin {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--forest-light);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(25, 60, 54, 0.38);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.playground-pin.is-profiled {
  background: var(--coral);
}

.playground-pin.is-selected {
  border-width: 4px;
  box-shadow: 0 0 0 3px rgba(237, 120, 92, 0.38), 0 4px 12px rgba(25, 60, 54, 0.38);
  transform: scale(1.06);
}

.playground-pin-wrapper:hover .playground-pin {
  transform: scale(1.18);
}

.map-legend {
  position: absolute;
  z-index: 500;
  left: 16px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 11px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid rgba(25, 60, 54, 0.1);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(5px);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(25, 60, 54, 0.18);
}

.legend-profiled {
  background: var(--coral);
}

.legend-unprofiled {
  background: var(--forest-light);
}

.map-unavailable {
  position: absolute;
  z-index: 800;
  inset: 50% auto auto 50%;
  width: min(360px, calc(100% - 40px));
  padding: 18px;
  text-align: center;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
}

.map-unavailable strong,
.map-unavailable span {
  display: block;
}

.map-unavailable span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-panel {
  position: absolute;
  z-index: 700;
  top: 0;
  right: 0;
  width: min(430px, calc(100% - minmax(340px, 28vw)));
  width: min(430px, calc(100% - 340px));
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 40px rgba(25, 60, 54, 0.16);
  transform: translateX(104%);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-panel.is-open {
  transform: translateX(0);
}

.detail-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.detail-hero {
  position: relative;
  height: 180px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.6) 0 12px, transparent 13px),
    radial-gradient(circle at 76% 64%, rgba(255, 255, 255, 0.38) 0 22px, transparent 23px),
    linear-gradient(145deg, var(--leaf), var(--sky));
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero img[hidden] {
  display: none;
}

.detail-photo-expand {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: transparent;
  cursor: zoom-in;
}

.detail-photo-expand span {
  padding: 6px 10px;
  background: rgba(17, 39, 35, 0.78);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(4px);
}

.detail-photo-expand:hover span,
.detail-photo-expand:focus-visible span {
  background: var(--forest);
}

.detail-photo-expand:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: -3px;
}

.detail-photo-expand:disabled {
  display: none;
}

.detail-hero-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(25, 60, 54, 0.55);
}

.detail-hero-placeholder svg {
  width: 70px;
  height: 70px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.photo-count {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  padding: 6px 9px;
  color: var(--white);
  background: rgba(17, 39, 35, 0.72);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.detail-photo-strip {
  display: flex;
  gap: 7px;
  padding: 9px 12px;
  overflow-x: auto;
  background: #eeece3;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.detail-photo-thumbnail {
  width: 58px;
  height: 46px;
  flex: 0 0 auto;
  padding: 2px;
  overflow: hidden;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 7px;
  opacity: 0.7;
  transition: border-color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.detail-photo-thumbnail:hover,
.detail-photo-thumbnail.is-active {
  border-color: var(--coral);
  opacity: 1;
  transform: translateY(-1px);
}

.detail-photo-thumbnail:focus-visible {
  outline: 3px solid rgba(237, 120, 92, 0.4);
  outline-offset: 1px;
}

.detail-photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.detail-photo-thumbnail.has-image-error {
  position: relative;
  background: #dedfd7;
  border-color: #c4c8bd;
}

.detail-photo-thumbnail.has-image-error::after {
  content: "Unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-body {
  padding: 24px 24px 38px;
}

.detail-kicker {
  margin: 0 0 7px;
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-title-row h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.favorite-button {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-soft);
  background: #f0efe8;
  border-radius: 50%;
}

.favorite-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.favorite-button.is-favorite {
  color: var(--coral-dark);
  background: #f8e2dc;
}

.favorite-button.is-favorite svg {
  fill: currentColor;
}

.detail-address {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-address svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.detail-summary {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

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

.detail-actions .button {
  border-color: #ced2ca;
}

.detail-actions .button-secondary {
  color: var(--ink);
  background: var(--white);
}

.detail-actions .button-secondary:hover {
  background: #f2f1ea;
}

.profile-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 12px;
  color: #665b31;
  background: #f7efc8;
  border: 1px solid #eadc99;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.35;
}

.profile-banner.is-started {
  color: #33584f;
  background: #e7edd0;
  border-color: #d3dda4;
}

.profile-banner svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.section-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
}

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

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

.fact-card {
  min-width: 0;
  padding: 12px 9px 10px;
  text-align: center;
  background: #f1f0e9;
  border-radius: 10px;
}

.fact-card strong,
.fact-card span {
  display: block;
}

.fact-card strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
}

.fact-card strong.word-value {
  padding-top: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.fact-card span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.feature-tag {
  padding: 6px 9px;
  color: var(--ink-soft);
  background: #eef1df;
  border: 1px solid #dee5bd;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}

.unknown-message {
  padding: 17px;
  color: var(--muted);
  text-align: center;
  background: #f3f1ea;
  border: 1px dashed #ccd0c7;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.amenity-list,
.access-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amenity-list li,
.access-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
  color: var(--ink-soft);
  background: #f3f2ec;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.amenity-list i,
.access-list i {
  width: 17px;
  height: 17px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--forest-light);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.access-list li.is-partial i {
  color: var(--ink);
  background: var(--sun);
}

.private-notes {
  padding: 14px;
  color: var(--ink-soft);
  background: #faf0dd;
  border-left: 3px solid var(--sun);
  border-radius: 4px 10px 10px 4px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.rating-number {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--coral-dark);
  font-size: 38px;
  line-height: 1;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--coral);
}

.stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
}

.rating-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.review-list {
  display: grid;
  gap: 9px;
}

.review-card {
  padding: 13px;
  background: #f3f2ec;
  border-radius: 10px;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-card-header strong {
  font-size: 11px;
}

.review-card-header time {
  color: var(--muted);
  font-size: 9px;
}

.review-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.review-tags span {
  padding: 3px 6px;
  color: var(--muted);
  background: var(--white);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.add-review-button {
  width: 100%;
  margin-top: 11px;
  color: var(--ink);
  background: var(--white);
  border-color: #ccd1c8;
}

.detail-source {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.detail-source a {
  color: var(--ink-soft);
  text-underline-offset: 2px;
}

.app-dialog {
  width: min(790px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.edit-dialog {
  height: min(880px, calc(100vh - 32px));
  height: min(880px, calc(100dvh - 32px));
}

.app-dialog[open] {
  animation: dialog-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-dialog::backdrop {
  background: rgba(14, 36, 31, 0.67);
  backdrop-filter: blur(4px);
}

.photo-viewer-dialog {
  width: min(1100px, calc(100vw - 32px));
  height: min(850px, calc(100vh - 32px));
  height: min(850px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  color: var(--white);
  background: #10231f;
}

.photo-viewer-shell {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.photo-viewer-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.photo-viewer-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 500;
}

.photo-viewer-header p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.photo-viewer-close {
  flex: 0 0 auto;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.photo-viewer-stage {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.photo-viewer-frame {
  min-width: 0;
  height: 100%;
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  overflow: hidden;
}

.photo-viewer-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-viewer-frame img[hidden],
.photo-viewer-frame p[hidden],
.photo-viewer-nav[hidden] {
  display: none;
}

.photo-viewer-frame p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.photo-viewer-nav {
  width: 42px;
  height: 52px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.photo-viewer-nav:hover,
.photo-viewer-nav:focus-visible,
.photo-viewer-close:hover,
.photo-viewer-close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
}

.photo-viewer-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-viewer-caption {
  flex: 0 0 auto;
  margin: 0;
  padding: 13px 20px 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

.app-dialog form {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 20px;
  background: var(--forest);
}

.dialog-header h2 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dialog-header .eyebrow {
  margin-bottom: 8px;
}

.dialog-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.dialog-close {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 28px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.form-sections {
  display: grid;
  gap: 0;
}

.form-sections fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 28px;
  border: 0;
}

.form-sections fieldset + fieldset {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.form-sections fieldset:last-child {
  padding-bottom: 0;
}

.form-sections legend {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
}

.form-sections legend span {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
}

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

.form-grid.two-columns {
  grid-template-columns: 1fr 1fr;
}

.form-grid.three-columns,
.count-grid {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid + .form-grid,
.form-grid + .checkbox-fieldset,
.checkbox-fieldset + .checkbox-fieldset {
  margin-top: 17px;
}

.form-grid label,
.standalone-label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.standalone-label {
  margin-top: 19px;
}

.form-grid label.wide {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.standalone-label textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd2ca;
  border-radius: 8px;
  outline: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.form-grid input,
.form-grid select {
  height: 42px;
}

.form-grid textarea,
.standalone-label textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.standalone-label textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(237, 120, 92, 0.12);
}

#playground-form.was-validated .form-grid input:invalid,
#playground-form.was-validated .form-grid select:invalid,
#playground-form.was-validated .form-grid textarea:invalid {
  border-color: #b44838;
  box-shadow: 0 0 0 3px rgba(180, 72, 56, 0.12);
}

.field-help {
  margin: -7px 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.photo-editor {
  display: grid;
  gap: 10px;
}

.photo-upload-control {
  display: grid;
  gap: 7px;
}

.photo-upload-control input[type="file"] {
  height: auto;
  min-height: 46px;
  padding: 5px;
  cursor: pointer;
}

.photo-upload-control input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 7px 12px;
  color: var(--white);
  background: var(--forest);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.photo-upload-control input[type="file"]:disabled,
.photo-upload-control input[type="file"]:disabled::file-selector-button {
  cursor: wait;
  opacity: 0.65;
}

.photo-editor .field-help,
.photo-rights-copy {
  margin: 0;
}

.photo-upload-status {
  margin: 0;
  color: #52725f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.photo-upload-status:empty {
  display: none;
}

.photo-upload-status.is-error {
  color: #a34836;
}

.photo-manager {
  display: grid;
  gap: 10px;
}

.photo-manager-empty {
  display: grid;
  gap: 3px;
  padding: 17px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  border: 1px dashed #c5cabf;
  border-radius: 10px;
  text-align: center;
}

.photo-manager-empty strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.photo-manager-empty span {
  font-size: 11px;
  line-height: 1.45;
}

.photo-editor-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 13px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.photo-editor-preview {
  width: 124px;
  height: 108px;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #e7e7df;
  border-radius: 8px;
  cursor: zoom-in;
}

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

.photo-editor-preview span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 7px;
  color: var(--white);
  background: rgba(17, 39, 35, 0.78);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}

.photo-editor-preview:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.photo-editor-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.photo-editor-heading,
.photo-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.photo-editor-heading strong {
  color: var(--ink);
  font-size: 12px;
}

.photo-editor-heading span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.form-grid .photo-alt-control {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.form-grid .photo-alt-control input {
  height: 34px;
  padding: 7px 9px;
  font-size: 11px;
}

.form-grid .cover-photo-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.form-grid .cover-photo-control input {
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  accent-color: var(--forest);
}

.photo-editor-actions button {
  padding: 4px 2px;
  color: #a34836;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.photo-editor-actions button:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.checkbox-fieldset > span {
  width: 100%;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkbox-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  color: var(--ink-soft);
  background: #f1f0e9;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.checkbox-fieldset label:has(input:checked) {
  color: var(--ink);
  background: #e9efd0;
  border-color: #d5dfa5;
}

.checkbox-fieldset input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--forest);
}

.dialog-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 28px;
  background: #eeece3;
  border-top: 1px solid var(--line);
}

.edit-dialog-status {
  flex: 0 0 auto;
  margin: 0;
  padding: 11px 28px;
  color: #66511d;
  background: #fff4cf;
  border-top: 1px solid #ead79a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.edit-dialog-status.is-error {
  color: #832f24;
  background: #fff0ec;
  border-color: #edb8af;
}

.edit-dialog-status:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: -4px;
}

.dialog-footer p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #78a16e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(120, 161, 110, 0.14);
}

.dialog-footer > div {
  display: flex;
  gap: 8px;
}

.dialog-footer .button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: #c9cdc4;
}

.compact-dialog {
  width: min(580px, calc(100vw - 32px));
}

#data-dialog[open] {
  display: flex;
  flex-direction: column;
}

#data-dialog .dialog-body,
.remove-location-dialog form {
  min-height: 0;
  max-height: inherit;
  overflow-y: auto;
}

.detail-location-tools {
  display: flex;
  justify-content: flex-end;
  margin: 9px 0 0;
}

.danger-text {
  color: var(--danger);
}

.button-danger {
  color: var(--white);
  background: var(--danger);
}

.button-danger:hover {
  background: #913d30;
}

.location-manager {
  min-width: 0;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.location-manager-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.location-manager .field-help {
  margin: 6px 0 14px;
}

.new-location-help {
  margin-top: 12px;
}

.location-manager h3,
.location-manager h4 {
  margin: 0;
  font-size: 15px;
}

.location-manager h4 {
  margin-top: 20px;
  font-size: 12px;
}

.location-manager h4 span {
  padding: 2px 7px;
  margin-left: 4px;
  background: var(--leaf);
  border-radius: 999px;
}

.location-manager .button,
.removed-location .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--forest);
  background: #f2f3e8;
  border-color: var(--line);
}

.removed-location-list {
  display: grid;
  gap: 8px;
}

.removed-location {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.removed-location > div {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.removed-location strong,
.removed-location small {
  display: block;
  line-height: 1.45;
}

.removed-location strong {
  font-size: 12px;
}

.removed-location small,
.removed-location p,
.removed-location-empty {
  color: var(--muted);
  font-size: 11px;
}

.removed-location p {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.removed-location .button {
  flex: 0 0 auto;
}

.location-status {
  margin: 12px 0 0;
  color: var(--forest);
  font-size: 12px;
  line-height: 1.5;
}

.location-status.is-error {
  color: var(--danger);
}

#remove-location-description {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.data-actions {
  display: grid;
  gap: 9px;
}

.data-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 14px;
  background: #eaf0d6;
  border: 1px solid #d6e0aa;
  border-radius: 11px;
}

.data-status-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: #719069;
  border-radius: 50%;
  font-weight: 900;
}

.data-status strong,
.data-status p {
  display: block;
}

.data-status strong {
  font-size: 12px;
}

.data-status p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.data-action {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  color: var(--ink);
  text-align: left;
  background: #f3f2ec;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.data-action:hover {
  background: #efeee6;
  border-color: #d2d5cd;
  transform: translateX(2px);
}

.data-action > svg {
  width: 19px;
  height: 19px;
  justify-self: center;
  color: var(--forest-light);
}

.data-action span strong,
.data-action span small {
  display: block;
}

.data-action span strong {
  font-size: 12px;
}

.data-action span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.danger-action {
  color: var(--danger);
}

.danger-action > svg {
  color: currentColor;
}

.prose {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.prose p {
  margin: 0;
}

.prose p + h3 {
  margin-top: 22px;
}

.prose h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.toast {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 24px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 11px 16px;
  color: var(--white);
  text-align: center;
  background: var(--forest);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
  font-weight: 700;
}

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

.app-dialog > .toast {
  position: absolute;
  bottom: 76px;
  max-width: calc(100% - 40px);
}

@media (max-width: 980px) {
  .intro {
    align-items: center;
    gap: 20px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .intro h1 {
    font-size: clamp(22px, 2.7vw, 26px);
  }

  .stats {
    min-width: 250px;
  }

  .stats div {
    min-width: 76px;
    padding: 4px 10px;
  }

  .explorer {
    grid-template-columns: 340px 1fr;
  }
}

@media (min-width: 761px) and (max-height: 700px) {
  :root {
    --header-height: 48px;
    --intro-height: calc(20dvh - 48px);
  }

  .intro {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .intro-lede {
    display: none;
  }

  .stats div {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .stats dt {
    font-size: 22px;
  }

  .stats dd {
    margin-top: 3px;
    font-size: 7px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 58px;
  }

  .site-header {
    gap: 10px;
    padding: 0 12px;
  }

  .brand {
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

  .brand small,
  .header-actions .text-button {
    display: none;
  }

  .header-actions .button-primary,
  .header-actions .button-secondary {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 0;
  }

  .header-actions .button-primary svg,
  .header-actions .button-secondary svg {
    width: 20px;
    height: 20px;
  }

  .intro {
    min-height: auto;
    display: block;
    padding: 8px 18px;
  }

  .intro h1 {
    max-width: 580px;
    font-size: clamp(19px, 5.2vw, 26px);
  }

  .intro-lede {
    display: none;
  }

  .stats {
    min-width: 0;
    margin-top: 6px;
    padding-bottom: 0;
  }

  .stats div {
    min-width: 0;
    padding: 2px 12px;
  }

  .stats div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .stats dt {
    font-size: 18px;
  }

  .stats dd {
    margin-top: 3px;
    font-size: 8px;
  }

  .explorer {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
    overflow: visible;
  }

  .map-wrap {
    height: 52vh;
    min-height: 390px;
  }

  .directory {
    min-height: 540px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .playground-list {
    max-height: none;
    overflow-y: visible;
  }

  .detail-panel {
    position: fixed;
    z-index: 1500;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(82vh, 760px);
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 50px rgba(25, 60, 54, 0.25);
    transform: translateY(105%);
  }

  .detail-panel.is-open {
    transform: translateY(0);
  }

  .detail-panel::before {
    content: "";
    position: absolute;
    z-index: 7;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 4px;
    background: rgba(25, 60, 54, 0.28);
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .detail-close {
    top: 18px;
  }

  .detail-hero {
    height: 150px;
  }

  .map-legend {
    left: 10px;
    bottom: 24px;
  }

  .app-dialog {
    width: 100vw;
    max-width: none;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .edit-dialog {
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
  }

  .photo-viewer-dialog {
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
  }

  .photo-viewer-stage {
    gap: 4px;
    padding: 0 6px;
  }

  .photo-viewer-nav {
    width: 34px;
    height: 46px;
  }

  .dialog-header {
    padding: 22px 20px 18px;
  }

  .dialog-header h2 {
    font-size: 24px;
  }

  .dialog-body {
    padding: 22px 20px 28px;
  }

  .dialog-footer {
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .edit-dialog-status {
    padding: 10px 20px;
  }

  .dialog-footer p {
    display: none;
  }

  .dialog-footer > div {
    width: 100%;
  }

  .dialog-footer .button {
    flex: 1;
  }

  .photo-editor-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .photo-editor-preview {
    width: 96px;
    height: 104px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .intro .stats {
    display: none;
  }
}

@media (max-width: 520px) {
  .photo-editor-card {
    grid-template-columns: 1fr;
  }

  .photo-editor-preview {
    width: 100%;
    height: 150px;
  }

  .directory-toolbar {
    padding: 16px 13px 10px;
  }

  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 34px;
  }

  .filter-row .select-control:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .filter-row .icon-button {
    grid-column: 3;
    grid-row: 1;
  }

  .results-heading {
    margin-top: 10px;
  }

  .playground-card {
    grid-template-columns: 68px 1fr;
    gap: 11px;
    padding: 10px 8px;
  }

  .card-thumb {
    width: 68px;
    height: 67px;
  }

  .detail-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .form-grid.two-columns,
  .form-grid.three-columns,
  .count-grid,
  .accessibility-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .wide {
    grid-column: 1 / -1;
  }

  .feature-options label {
    flex: 1 0 42%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .intro,
  .map-wrap,
  .directory-toolbar,
  .detail-panel,
  dialog,
  .toast {
    display: none !important;
  }

  .explorer,
  .directory {
    display: block;
    height: auto;
    min-height: 0;
  }

  .playground-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
  }

  .playground-card {
    border-color: var(--line);
  }
}
