:root {
  --bg: #eef2ed;
  --panel: #ffffff;
  --panel-soft: #f8faf7;
  --ink: #1a241f;
  --muted: #64736b;
  --line: #d5ded6;
  --forest: #174d3a;
  --leaf: #6f8f35;
  --water: #247680;
  --amber: #b56a34;
  --berry: #8d4666;
  --shadow: 0 20px 54px rgba(31, 49, 40, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(111, 143, 53, 0.14), transparent 280px),
    linear-gradient(180deg, #f7f8f3 0, var(--bg) 42%);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 22px 16px 28px;
}

.screen-active {
  display: block;
}

.topbar {
  padding: 0;
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(23, 77, 58, 0.18);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(15, 61, 45, 0.95) 0%, rgba(15, 61, 45, 0.72) 48%, rgba(15, 61, 45, 0.18) 100%),
    url("./assets/hero-parken-zuid.png"),
    #174d3a;
  background-size: cover;
  background-position: center right;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

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

.hero-panel .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.intro {
  max-width: 30rem;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-panel .intro {
  max-width: 19rem;
  color: rgba(255, 255, 255, 0.86);
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 14px 0 16px;
}

.status-row div {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.status-row strong,
.status-row span {
  display: block;
}

.status-row strong {
  color: var(--forest);
  font-size: 1rem;
}

.status-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.update-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.update-panel strong,
.update-panel span {
  display: block;
}

.update-panel strong {
  color: var(--forest);
  font-size: 0.92rem;
}

.update-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.update-panel a {
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--forest);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.search-wrap {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.search-wrap label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.search-wrap input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(31, 49, 40, 0.06);
}

.park-grid {
  display: grid;
  gap: 12px;
}

.park-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  width: 100%;
  min-height: 152px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  color: inherit;
  text-align: left;
  box-shadow: 0 10px 26px rgba(31, 49, 40, 0.08);
  cursor: pointer;
}

.park-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--forest), var(--leaf));
}

.park-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(36, 118, 128, 0.1);
}

.park-photo-wrap {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 118px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe9e2;
}

.park-photo {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}

.park-card:hover {
  border-color: rgba(23, 77, 58, 0.34);
  box-shadow: 0 14px 34px rgba(31, 49, 40, 0.12);
}

.park-card:active {
  transform: translateY(1px);
}

.park-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.park-area-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #edf4ef;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
}

.park-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.park-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.park-card h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.park-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.detail-header {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  border: 1px solid rgba(23, 77, 58, 0.18);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0 52%, rgba(255, 255, 255, 0.78)),
    var(--detail-photo),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 241, 0.92)),
    var(--panel);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(31, 49, 40, 0.08);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--forest);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.link-button {
  text-decoration: none;
}

.admin-card {
  margin-top: 14px;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.save-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.photo-check {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(31, 49, 40, 0.08);
}

.photo-check-header h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.photo-upload {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 1px dashed var(--forest);
  border-radius: 8px;
  padding: 14px;
  background: #eef6f1;
  color: var(--forest);
  font-weight: 800;
  cursor: pointer;
}

.photo-upload input {
  display: none;
}

.photo-preview {
  width: 100%;
  max-height: 280px;
  margin-top: 12px;
  border-radius: 8px;
  object-fit: cover;
}

.question-box {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.question-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.photo-check .save-button {
  width: 100%;
  margin-top: 12px;
}

.photo-answer {
  margin-top: 12px;
  border-radius: 8px;
  padding: 13px;
  background: #f5f7f1;
  color: var(--ink);
  line-height: 1.45;
}

.live-panel {
  background: #f4f7f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 18px 0;
  padding: 16px;
}

.live-panel p {
  color: var(--muted);
  margin: 6px 0 0;
}

.live-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.live-header span {
  background: var(--pale);
  border-radius: 999px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.observation-list {
  display: grid;
  gap: 12px;
}

.observation-item {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.observation-item img,
.observation-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--pale);
  display: block;
  object-fit: cover;
  width: 100%;
}

.observation-copy {
  display: grid;
  gap: 4px;
  padding: 13px;
}

.observation-item span,
.observation-item small,
.muted {
  color: var(--muted);
}

.observation-item small {
  font-size: 0.82rem;
}

.park-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}

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

.tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 49, 40, 0.05);
}

.tab-active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.detail-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-card h2 {
  margin: 0;
  padding: 18px 18px 0;
  font-size: 1.32rem;
  line-height: 1.2;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 18px 18px;
  list-style: none;
}

.info-list li {
  position: relative;
  border: 1px solid #e2e8e1;
  border-radius: 8px;
  padding: 13px 13px 13px 42px;
  background: var(--panel-soft);
  color: var(--ink);
  line-height: 1.42;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 5px rgba(111, 143, 53, 0.14);
}

.info-list li:nth-child(2n)::before {
  background: var(--water);
  box-shadow: 0 0 0 5px rgba(36, 118, 128, 0.14);
}

.info-list li:nth-child(3n)::before {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(181, 106, 52, 0.14);
}

.policy-grid {
  display: grid;
  gap: 10px;
  padding: 16px 18px 6px;
}

.policy-card {
  border: 1px solid #e2e8e1;
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.policy-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e8f1ea;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
}

.policy-card h3 {
  margin: 10px 0 8px;
  font-size: 1rem;
}

.policy-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.month-strip {
  display: grid;
  gap: 8px;
  padding: 10px 18px 6px;
}

.month-strip span {
  border-left: 4px solid var(--water);
  border-radius: 8px;
  padding: 10px 12px;
  background: #eef6f4;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.compact-list {
  padding-top: 10px;
}

.note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 14px 18px 16px;
  background: #f5f7f1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.note a {
  color: var(--forest);
  font-weight: 700;
}

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

@media (min-width: 680px) {
  .screen {
    padding: 34px 28px 40px;
  }

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

@media (max-width: 430px) {
  .hero-panel {
    min-height: 310px;
    padding: 22px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(15, 61, 45, 0.12) 0%, rgba(15, 61, 45, 0.78) 66%, rgba(15, 61, 45, 0.96) 100%),
      url("./assets/hero-parken-zuid.png"),
      #174d3a;
    background-size: cover;
    background-position: center;
  }

  .status-row {
    grid-template-columns: 1fr 1fr;
  }

  .park-card {
    grid-template-columns: 1fr auto;
  }

  .park-photo-wrap {
    grid-column: 1 / -1;
    min-height: 148px;
  }

  .park-photo {
    min-height: 148px;
  }
}
