:root {
  --bg: #f6fff4;
  --bg-accent: #dff8e8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --line: rgba(36, 183, 114, 0.2);
  --text: #103321;
  --muted: #577568;
  --primary: #21c45d;
  --primary-strong: #08733b;
  --primary-soft: #dcffe8;
  --accent: #00c2ff;
  --accent-strong: #0877ff;
  --sunset: #ffb547;
  --pink: #ff5fb7;
  --danger: #ff4f6d;
  --shadow: 0 20px 48px rgba(18, 104, 61, 0.14), 0 2px 0 rgba(255, 255, 255, 0.78) inset;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 194, 255, 0.22), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(255, 95, 183, 0.18), transparent 22%),
    radial-gradient(circle at 50% 98%, rgba(33, 196, 93, 0.2), transparent 30%),
    linear-gradient(180deg, #fbfff7 0%, var(--bg) 48%, #edfff4 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.landing-body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.landing-shell,
.app-shell {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
}

.landing-shell {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 0 18px;
}

.hero-card,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.18);
}

.hero-card {
  width: min(720px, 100%);
  padding: 32px 24px;
}

.landing-hero {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  min-height: min(720px, calc(100dvh - 92px));
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 36px 24px;
  border: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 194, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(255, 95, 183, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(224, 255, 235, 0.7)),
    rgba(255, 255, 255, 0.54);
}

.landing-map-preview {
  position: absolute;
  inset: 18px;
  z-index: -2;
  overflow: hidden;
  border-radius: 28px;
  opacity: 0.62;
}

.landing-map-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 255, 246, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(244, 253, 243, 0.78), rgba(230, 246, 230, 0.88));
}

.landing-map-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(0.96);
  transform: scale(1.08);
}

.landing-content {
  display: grid;
  justify-items: center;
  max-width: 620px;
  text-align: center;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid rgba(33, 196, 93, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.landing-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  box-shadow: 0 0 0 6px rgba(0, 194, 255, 0.12);
}

.landing-content h1 {
  margin-bottom: 12px;
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  letter-spacing: 0;
  line-height: 0.92;
  background: linear-gradient(135deg, #0f3321 0%, #0d7a45 42%, #00b7ff 72%, #ff5fb7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-content .hero-subtitle {
  margin-bottom: 14px;
  color: #254c37;
  font-size: clamp(1.02rem, 3.2vw, 1.35rem);
  font-weight: 700;
}

.landing-content .hero-description {
  max-width: 46ch;
  margin-bottom: 28px;
  color: #536f61;
  line-height: 1.75;
}

.landing-actions {
  justify-content: center;
}

.landing-cta {
  min-width: 186px;
  min-height: 54px;
  gap: 10px;
  padding: 0 24px;
  box-shadow: 0 16px 32px rgba(8, 119, 255, 0.18), 0 12px 28px rgba(33, 196, 93, 0.22);
}

.landing-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.18s ease;
}

.landing-cta:hover svg {
  transform: translateX(3px);
}

.landing-pin {
  position: absolute;
  z-index: -1;
  width: 22px;
  height: 22px;
  border-radius: 999px 999px 999px 0;
  background: linear-gradient(135deg, var(--accent), var(--primary) 58%, var(--pink));
  box-shadow: 0 16px 32px rgba(0, 194, 255, 0.2);
  transform: rotate(-45deg);
  animation: landingPinFloat 3.2s ease-in-out infinite;
}

.landing-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.landing-pin--one {
  left: 18%;
  top: 38%;
}

.landing-pin--two {
  right: 22%;
  top: 30%;
  animation-delay: 0.4s;
}

.landing-pin--three {
  left: 56%;
  bottom: 26%;
  animation-delay: 0.8s;
}

@keyframes landingPinFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.hero-subtitle,
.page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-description {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.topbar-actions,
.detail-actions,
.form-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.icon-button,
.close-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-strong) 72%, var(--pink) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(8, 119, 255, 0.18), 0 10px 22px rgba(33, 196, 93, 0.22);
}

.button-secondary {
  background: linear-gradient(135deg, rgba(220, 255, 232, 0.95), rgba(223, 246, 255, 0.95));
  color: var(--primary-strong);
}

.button-ghost {
  background: transparent;
  color: var(--primary-strong);
  border: 1px solid var(--line);
}

.button-danger {
  background: rgba(191, 62, 62, 0.12);
  color: var(--danger);
}

.site-footer {
  padding: 0 16px 24px;
  color: var(--muted);
  text-align: center;
}

.app-body {
  padding: 10px 0 24px;
}

.map-page {
  min-height: 100dvh;
  padding: 0;
  overflow-x: hidden;
}

.map-app-shell {
  display: flex;
  align-items: stretch;
  width: min(100%, 460px);
  min-height: 100dvh;
  padding: 10px 0 18px;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.topbar-copy h1 {
  margin-bottom: 4px;
  font-size: clamp(1.9rem, 6vw, 3rem);
}

.topbar-copy .eyebrow {
  margin-bottom: 6px;
}

.topbar-copy .page-subtitle {
  margin-bottom: 0;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.toolbar-main {
  display: grid;
  gap: 12px;
}

.search-field,
.select-field {
  position: relative;
}

.search-field {
  z-index: 45;
}

.search-field input,
.select-field select,
.editor-form input,
.editor-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 255, 251, 0.9));
  padding: 12px 14px;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 194, 255, 0.05);
  outline: none;
}

.search-field input:focus,
.select-field select:focus,
.editor-form input:focus,
.editor-form textarea:focus {
  border-color: rgba(0, 194, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.12), 0 10px 22px rgba(33, 196, 93, 0.1);
}

.editor-form textarea {
  min-height: 110px;
  resize: vertical;
}

.search-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.search-result {
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  background: linear-gradient(135deg, rgba(33, 196, 93, 0.08), rgba(0, 194, 255, 0.08));
}

.search-result strong {
  display: block;
  margin-bottom: 4px;
}

.toolbar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(33, 196, 93, 0.12), rgba(0, 194, 255, 0.1));
  color: var(--primary-strong);
  font-weight: 700;
}

.map-layout,
.admin-layout {
  display: grid;
  gap: 18px;
}

.map-panel {
  position: relative;
  overflow: visible;
  padding: 12px;
}

.map-panel--fullscreen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(232, 255, 240, 0.34)),
    rgba(255, 255, 255, 0.18);
}

.map-header {
  flex: 0 0 auto;
  padding: 12px 8px 14px;
}

.map-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-brand__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(0, 194, 255, 0.16), rgba(33, 196, 93, 0.2));
  box-shadow: 0 12px 26px rgba(0, 194, 255, 0.14), 0 10px 24px rgba(22, 93, 51, 0.12);
  backdrop-filter: blur(14px);
}

.map-brand__icon svg {
  width: 34px;
  height: 34px;
}

.map-brand__text h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(135deg, #0d3522 0%, #08733b 45%, #00a8ff 78%, #ff5fb7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.map-brand__tag {
  margin: 0 0 4px;
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(0, 194, 255, 0.1), rgba(255, 95, 183, 0.08)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    0 18px 42px rgba(11, 102, 62, 0.16),
    0 0 0 1px rgba(33, 196, 93, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  aspect-ratio: var(--map-ratio, 2 / 3);
}

.map-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 19;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 18px rgba(18, 68, 38, 0.16);
  transform: translateX(-50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.map-frame.is-controls-visible::after,
.map-frame:hover::after,
.map-frame:focus-within::after {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.map-toolbar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.9fr);
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(236, 255, 243, 0.68)),
    radial-gradient(circle at 15% 15%, rgba(0, 194, 255, 0.12), transparent 42%);
}

.map-utility {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 14px;
  overflow: hidden;
}

.map-utility__header {
  margin-bottom: 8px;
}

.map-utility__header .eyebrow {
  margin-bottom: 0;
}

.map-utility__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
}

.map-utility__copy {
  min-height: 0;
}

.map-utility__copy h2 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.map-utility__copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.map-utility__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.utility-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(33, 196, 93, 0.12), rgba(0, 194, 255, 0.1));
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 600;
}

.icon-button,
.close-button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-strong);
  box-shadow: 0 12px 22px rgba(8, 119, 255, 0.12), 0 8px 16px rgba(18, 68, 38, 0.1);
}

.icon-button.wide {
  min-width: 92px;
  padding: 0 12px;
}

.icon-button--solid {
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 700;
}

.map-fab {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 12px;
}

.map-fab svg {
  width: 18px;
  height: 18px;
}

.map-fab.is-off {
  background: linear-gradient(135deg, var(--accent-strong), var(--pink));
  color: #f6fff6;
  box-shadow: 0 12px 24px rgba(8, 119, 255, 0.22);
}

.map-overlay {
  position: absolute;
  z-index: 20;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.map-overlay > * {
  pointer-events: auto;
}

.map-overlay--actions {
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 7px;
  justify-items: start;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px) scale(0.96);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.map-frame.is-controls-visible .map-overlay--actions,
.map-frame:hover .map-overlay--actions,
.map-frame:focus-within .map-overlay--actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.map-stage {
  position: relative;
  overflow: hidden;
  min-height: min(70vh, 600px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(33, 196, 93, 0.1), rgba(0, 194, 255, 0.06), rgba(255, 95, 183, 0.04)),
    #f9fff8;
  touch-action: none;
}

.map-stage--ratio {
  width: 100%;
  height: 100%;
  border-radius: 28px;
}

.map-stage--ratio .map-transform {
  width: 100%;
  height: 100%;
  margin: 0;
}

.map-stage--ratio .map-layer {
  width: 100%;
  height: 100%;
}

.admin-stage {
  min-height: min(72vh, 640px);
}

.map-transform {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  transform-origin: 0 0;
  user-select: none;
}

.map-layer {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-layer.roads.is-hidden,
.marker-layer.is-hidden {
  opacity: 0;
}

.map-layer.roads {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease;
}

.marker-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease;
}

.map-marker {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px 999px 999px 0;
  background: linear-gradient(135deg, #23e06e, #0c8f4b 62%, #00c2ff);
  box-shadow: 0 9px 18px rgba(0, 194, 255, 0.18), 0 8px 18px rgba(18, 68, 38, 0.22);
  transform: translate(-50%, -100%) rotate(-45deg);
  cursor: pointer;
}

.map-marker::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(0, 194, 255, 0.18);
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}

.map-marker::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.map-marker__sr {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-marker__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  display: none;
  min-width: max-content;
  max-width: 120px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 79, 109, 0.96), rgba(255, 95, 183, 0.94));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 18px rgba(255, 79, 109, 0.24);
  transform: translateX(-50%) rotate(45deg);
  white-space: nowrap;
  pointer-events: none;
}

.map-marker.is-active,
.map-marker:hover {
  width: 26px;
  height: 26px;
}

.map-marker.is-active {
  background: linear-gradient(135deg, #ff5fb7, #ff4f6d 54%, #ffb547) !important;
  box-shadow: 0 12px 24px rgba(255, 79, 109, 0.34), 0 0 0 5px rgba(255, 181, 71, 0.14) !important;
}

.map-marker.is-active .map-marker__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-marker.is-active::before {
  background: rgba(255, 95, 183, 0.24);
  opacity: 1;
  animation: markerPulse 1.8s ease-out infinite;
}

.map-marker.is-visited {
  background: linear-gradient(135deg, #b4f461, #21c45d);
}

.map-marker.admin-marker {
  cursor: grab;
}

.map-marker.admin-marker:active {
  cursor: grabbing;
}

@keyframes markerPulse {
  0% {
    opacity: 0.55;
    transform: rotate(45deg) scale(0.72);
  }

  70% {
    opacity: 0;
    transform: rotate(45deg) scale(1.45);
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) scale(1.45);
  }
}

.detail-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.detail-panel__header,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.close-button {
  padding: 0 14px;
  font-size: 1.6rem;
  line-height: 1;
}

.detail-meta {
  color: var(--muted);
  line-height: 1.7;
}

.detail-meta strong {
  color: var(--text);
}

.image-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 194, 255, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(33, 196, 93, 0.09), rgba(255, 255, 255, 0.85));
}

.image-frame.compact {
  min-height: 180px;
}

.image-frame--modal {
  min-height: 0;
  aspect-ratio: 4 / 3;
  max-height: none;
}

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

.image-placeholder {
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.map-empty {
  position: absolute;
  inset: 12px;
  z-index: 21;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0, 194, 255, 0.32);
  background: rgba(255, 255, 255, 0.92);
}

.file-label {
  cursor: pointer;
}

.helper-text {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-sidebar {
  display: grid;
  gap: 18px;
}

.editor-form,
.location-list {
  display: grid;
  gap: 14px;
}

.editor-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.grid-two {
  display: grid;
  gap: 14px;
}

.stack-actions {
  display: grid;
}

.location-list {
  max-height: 420px;
  overflow: auto;
}

.location-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.location-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.location-item__actions {
  display: flex;
  gap: 8px;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(11, 36, 28, 0.32);
  backdrop-filter: blur(8px);
}

.detail-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  width: min(92vw, 420px);
  max-width: 440px;
  padding: 16px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(0, 194, 255, 0.14), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(255, 95, 183, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.9);
}

.detail-modal .detail-panel__header {
  align-items: center;
}

.detail-modal .eyebrow {
  margin-bottom: 5px;
}

.detail-modal h2 {
  font-size: 1.22rem;
}

.detail-modal .detail-meta {
  line-height: 1.5;
}

.detail-modal .detail-meta p {
  margin-bottom: 0;
}

.detail-keywords {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.detail-panel.is-empty .detail-actions {
  opacity: 0.7;
  pointer-events: none;
}

code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(22, 93, 51, 0.08);
}

@media (min-width: 720px) {
  .landing-shell,
  .app-shell {
    width: min(1300px, calc(100% - 40px));
  }

  .map-app-shell {
    width: min(100%, 460px);
  }

  .map-layout {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 360px);
    align-items: start;
  }

  .admin-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 420px);
    align-items: start;
  }

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

@media (max-width: 719px) {
  .hero-card,
  .card {
    border-radius: 24px;
  }

  .landing-shell {
    width: min(100% - 20px, 460px);
    padding: 18px 0 14px;
  }

  .landing-hero {
    min-height: calc(100dvh - 76px);
    padding: 30px 18px;
    border-radius: 28px;
  }

  .landing-map-preview {
    inset: 10px;
    border-radius: 24px;
  }

  .landing-content h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .landing-content .hero-description {
    margin-bottom: 24px;
    font-size: 0.98rem;
  }

  .landing-cta {
    min-width: 178px;
  }

  .landing-pin--one {
    left: 10%;
    top: 36%;
  }

  .landing-pin--two {
    right: 10%;
    top: 26%;
  }

  .map-panel--fullscreen {
    padding: 8px;
  }

  .map-header {
    padding: 10px 6px 10px;
  }

  .map-brand {
    gap: 10px;
  }

  .map-brand__icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .map-brand__icon svg {
    width: 30px;
    height: 30px;
  }

  .map-brand__text h1 {
    font-size: 1.95rem;
  }

  .map-brand__tag {
    margin-bottom: 3px;
    font-size: 0.66rem;
  }

  .map-frame,
  .map-stage--ratio {
    border-radius: 24px;
  }

  .map-toolbar {
    padding: 10px;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 0.88fr);
  }

  .map-utility {
    padding: 10px 12px;
  }

  .map-utility__copy h2 {
    font-size: 1rem;
  }

  .map-utility__copy p {
    font-size: 0.92rem;
  }

  .map-overlay--actions {
    left: 50%;
    bottom: 9px;
    gap: 6px;
  }

  .map-fab {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 11px;
  }

  .map-fab svg {
    width: 17px;
    height: 17px;
  }

  .search-field input,
  .select-field select {
    min-height: 46px;
    padding: 10px 12px;
  }

  .icon-button,
  .close-button {
    min-width: 42px;
    min-height: 42px;
  }

  .detail-modal {
    width: min(92vw, 392px);
    padding: 14px;
  }

  .image-frame--modal {
    aspect-ratio: 4 / 3;
  }
}

@media (max-height: 780px) {
  .map-panel--fullscreen {
    grid-template-rows: auto auto auto minmax(64px, 1fr);
  }

  .map-utility__meta {
    display: none;
  }

  .map-utility__copy p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
