:root {
  --honey: #b8860b;
  --honey-dark: #8b6914;
  --cream: #fdf8ee;
  --ink: #2c2416;
  --muted: #6b5f4f;
  --border: #e8dcc8;
  --white: #fff;
  --error: #b42318;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(44, 36, 22, 0.08);
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}

a { color: var(--honey-dark); }
a:hover { color: var(--honey); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(44, 36, 22, 0.07);
  border-bottom: 1px solid var(--border);
}

.site-header__main {
  background: var(--white);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 0;
}

.site-brand__mark {
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  width: 18rem;
  height: 18rem;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(184, 134, 11, 0.28));
  -webkit-mask-image: var(--heart-mask);
  mask-image: var(--heart-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.site-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-brand__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.05;
}

.site-brand__tagline {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.2;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav__list a:hover {
  color: var(--honey-dark);
  background: var(--cream);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.5rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
}

.site-nav__login {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
}

.site-nav__login:hover {
  color: var(--honey-dark);
  background: var(--cream);
}

.site-nav__user {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-form { display: inline; margin: 0; }

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.site-footer__osm { margin-top: 0.25rem; }

.hero { padding: 1rem 0 2rem; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--honey);
  font-weight: 600;
}
.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.25rem 0 0.75rem;
}
.hero__lead { color: var(--muted); font-size: 1.125rem; max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.section { margin-top: 2rem; }
.section--narrow { max-width: 720px; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section__head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0;
  font-size: 1.75rem;
}

.muted { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: var(--honey);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--honey-dark); color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--honey-dark);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--white); }
.btn--small { padding: 0.4rem 0.85rem; font-size: 0.875rem; }
.btn--icon {
  padding: 0.4rem;
  width: 2.25rem;
  height: 2.25rem;
}
.btn--icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.plant-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  position: relative;
}
.plant-card__icon { font-size: 1.75rem; }
.plant-card__name { font-weight: 600; }
.plant-card__meta { font-size: 0.85rem; color: var(--muted); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.badge--now {
  background: #e8f5e9;
  color: #2e7d32;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.calendar-page {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-bottom: 2rem;
}

.calendar-page__inner {
  width: 80vw;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 1rem;
}

.calendar-page h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0 0 0.35rem;
}

.calendar-page__intro {
  margin: 0 0 1rem;
}

.calendar-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calendar-accordion__body {
  padding-top: 0.85rem;
}

.calendar-accordion__empty {
  margin: 0;
  font-size: 0.875rem;
}

.calendar-table-wrap {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.calendar-table th,
.calendar-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.calendar-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.calendar-table tbody tr:hover {
  background: color-mix(in srgb, var(--cream) 65%, var(--white));
}

.calendar-table__latin em {
  font-style: italic;
}

.calendar-table__external {
  color: var(--honey-dark);
  font-weight: 600;
  text-decoration: none;
}

.calendar-table__external:hover,
.calendar-table__external:focus-visible {
  color: var(--honey);
  text-decoration: underline;
}

.calendar-table__local {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.calendar-table__local:hover,
.calendar-table__local:focus-visible {
  color: var(--honey-dark);
  text-decoration: underline;
}

.plant-detail__head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.plant-detail__icon { font-size: 3rem; }
.plant-detail__sci { color: var(--muted); margin: 0; }

.meta-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.meta-list div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.meta-list dt { font-weight: 600; margin: 0; }
.meta-list dd { margin: 0; color: var(--muted); }

.source-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.source-list a {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
}

.auth-card .form,
.form {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}
.form input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.alert--error {
  background: #fef3f2;
  color: var(--error);
  border: 1px solid #fecdca;
}

.alert--info {
  background: #eef6ff;
  color: #1e4f7a;
  border: 1px solid #c7dff5;
}

.admin-import__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.admin-import__stats {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-import__stats h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.admin-import__stats ul {
  margin: 0;
  padding-left: 1.2rem;
}

.admin-import__hint {
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* ——— Admin (WordPress-style sidebar) ——— */
.admin-body {
  background: #f0f0f1;
  min-height: 100vh;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #1f1a12;
  color: #f5f0e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 200;
}

.admin-sidebar__brand {
  padding: 1.1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__logo {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.admin-sidebar__logo:hover {
  color: var(--honey);
}

.admin-sidebar__badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 230, 0.55);
}

.admin-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.admin-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-sidebar__link {
  display: block;
  padding: 0.55rem 1rem;
  color: rgba(245, 240, 230, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-left: 3px solid transparent;
}

.admin-sidebar__link:hover,
.admin-sidebar__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar__link.is-active {
  color: #fff;
  background: rgba(184, 134, 11, 0.18);
  border-left-color: var(--honey);
}

.admin-sidebar__footer {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__footer-link {
  color: rgba(245, 240, 230, 0.65);
  font-size: 0.8125rem;
  text-decoration: none;
}

.admin-sidebar__footer-link:hover {
  color: #fff;
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar__toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

.admin-topbar__title {
  font-weight: 600;
  font-size: 0.9375rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.admin-topbar__link {
  font-size: 0.875rem;
  text-decoration: none;
}

.admin-topbar__user {
  font-size: 0.875rem;
}

.admin-content {
  flex: 1;
  padding: 1.25rem;
  max-width: 960px;
}

.admin-content--wide {
  max-width: none;
  padding: 0;
}

.admin-content--wide .map-page {
  width: 100%;
  max-width: none;
  margin: 0;
  --map-content-width: 100%;
}

.admin-content--wide .map-page__toolbar {
  padding: 1rem 1.25rem;
}

.admin-content--wide .forage-map {
  border-top: 1px solid var(--border);
}

.admin-page__head h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0 0 0.35rem;
}

.admin-page__head .muted {
  margin: 0 0 1.25rem;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.admin-card {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.admin-card:hover,
.admin-card:focus-visible {
  border-color: var(--honey);
  transform: translateY(-1px);
  outline: none;
}

.admin-card__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.admin-card__meta {
  margin: 0;
  font-size: 0.8125rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border, #e5e0d8);
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border, #e5e0d8);
}

.admin-table th {
  font-weight: 600;
  background: #faf8f4;
  white-space: nowrap;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
}

.admin-table__meta {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}

.admin-waarneming-form__coords {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.admin-waarneming-form__photo-current {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}

.admin-user-form__section {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.admin-user-form__section legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.admin-user-form__roles {
  display: grid;
  gap: 0.35rem;
}

.admin-user-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-user-form__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
}

.admin-user-form__permissions {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 1.5rem;
  font-size: 0.8125rem;
}

.admin-user-form__actions {
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 150;
  }

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

  .admin-topbar__toggle {
    display: inline-block;
  }

  .admin-topbar__user {
    display: none;
  }
}

.map-page {
  width: 100vw;
  max-width: 100vw;
  margin-top: -1.5rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  --map-content-width: 80vw;
}

.map-page__toolbar,
.stand-panel,
.bloom-catalog:not(.bloom-catalog--overlay),
.map-layers-bar,
.map-explore-controls,
.map-explore-panel,
.forage-map-wrap,
.map-locations-panel {
  width: var(--map-content-width);
  margin-left: auto;
  margin-right: auto;
}

.map-page__toolbar {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
}
.map-page__toolbar h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 0 0 0.25rem;
}

.map-page__toolbar--compact {
  padding-bottom: 0.65rem;
}

.map-page__lede {
  margin: 0;
  max-width: 52rem;
  font-size: 0.9375rem;
}

.map-page__lede a {
  font-weight: 600;
}

.map-explore-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem 1.25rem;
  padding: 0 1rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 auto 0.75rem;
  width: var(--map-content-width);
}

.map-explore-controls__group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.map-explore-controls__slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-explore-controls__slider-row input[type="range"] {
  flex: 1;
  min-width: 0;
}

.map-explore-controls__slider-row output {
  min-width: 4.5rem;
  font-weight: 600;
  text-align: right;
}

.map-explore-controls__group.is-muted {
  opacity: 0.55;
}

.map-explore-controls__group.is-muted input[type="range"] {
  pointer-events: none;
}

.map-explore-popup__photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 0.55rem;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.map-explore-popup__photo-btn:hover {
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.45);
}

.map-explore-popup__photo-btn img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-muted, #f3f4f6);
}

.leaflet-popup-content:has(.map-explore-popup) {
  min-width: 240px;
  max-width: 300px;
}

.leaflet-popup-content .map-explore-popup {
  min-width: 0;
  max-width: none;
}

body.map-photo-lightbox-open {
  overflow: hidden;
}

.map-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.map-photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.map-photo-lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(960px, 100%);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-photo-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: #111;
}

.map-photo-lightbox__caption {
  margin: 0.75rem 0 0;
  color: #fff;
  font-size: 0.9375rem;
  text-align: center;
}

.map-photo-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  transform: translate(50%, -50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.map-photo-lightbox__close:hover {
  background: #f3f4f6;
}

.map-explore-panel {
  margin: 0.75rem auto 0;
  width: var(--map-content-width);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.85rem;
}

.map-explore-panel__head h2 {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.map-explore-panel__head .muted {
  margin: 0 0 0.85rem;
}

.map-explore-panel__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
}

.map-explore-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.map-explore-table-toolbar__search {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.map-explore-table-toolbar__search input {
  width: 100%;
  font: inherit;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.map-explore-table-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.map-explore-table-toolbar__count {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.map-explore-table-wrap {
  overflow-x: auto;
}

.map-explore-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.map-explore-table--imker {
  border: 1px solid #b8b8b8;
}

.map-explore-table th,
.map-explore-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.map-explore-table--imker th,
.map-explore-table--imker td {
  border: 1px solid #b8b8b8;
  padding: 0.35rem 0.5rem;
}

.map-explore-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.map-explore-table--imker thead th {
  background: #fcd5b5;
  color: #000;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
  font-size: 0.8125rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.map-explore-table--imker thead th.is-sorted {
  background: #f5c89a;
}

.map-explore-table--imker thead th.num,
.map-explore-table--imker td.num {
  text-align: center;
  width: 4.5rem;
}

.map-explore-table--imker td.num:last-child,
.map-explore-table--imker th.num:last-child {
  width: 3.5rem;
}

.map-explore-table--imker td a {
  color: #0645ad;
  text-decoration: none;
  font-weight: 600;
}

.map-explore-table--imker td a:hover {
  text-decoration: underline;
}

.map-explore-table th:last-child,
.map-explore-table td:last-child {
  width: 7rem;
  text-align: right;
}

.map-explore-table--imker th:last-child,
.map-explore-table--imker td:last-child {
  text-align: center;
  width: auto;
}

.map-explore-table__row {
  cursor: pointer;
}

.map-explore-table__row:hover {
  background: color-mix(in srgb, var(--cream) 70%, var(--white));
}

.map-explore-table__sci {
  font-size: 0.8125rem;
}

.catalog-page {
  max-width: 1200px;
}

.catalog-page__head h1 {
  margin-top: 0;
}

.catalog-table-panel {
  margin-top: 1.25rem;
}

.plant-table-pagination {
  margin-top: 0.85rem;
}

.plant-table-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.plant-table-pagination__status {
  font-size: 0.875rem;
  color: var(--muted);
}

.plant-table-pagination__btn {
  min-width: 5.5rem;
}

.map-explore-center__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #059669;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.45);
}

.time-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.time-control label { font-weight: 600; font-size: 0.875rem; }
.time-control input[type="datetime-local"] {
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.stand-panel {
  padding: 0 1rem 0.75rem;
}

.stand-panel__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.stand-panel__select-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.stand-panel__select-wrap select,
.stand-panel__radius select {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  max-width: 220px;
}

.stand-panel__default {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn--danger {
  color: var(--error);
  border-color: color-mix(in srgb, var(--error) 35%, var(--border));
}

.btn--danger:hover {
  background: color-mix(in srgb, var(--error) 8%, var(--white));
  color: var(--error);
}

.stand-panel__radius {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.stand-panel__name {
  font: inherit;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 140px;
}

.stand-panel__status,
.stand-panel__hint {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.stand-panel .btn.is-active {
  background: var(--honey-dark);
}

.my-locations__intro {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
}

.map-locations-panel {
  margin-top: 0.75rem;
  padding: 0 1rem 1.25rem;
}

.map-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-accordion--nested {
  margin-top: 0.65rem;
  box-shadow: none;
}

.map-accordion__summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.map-accordion__summary::-webkit-details-marker {
  display: none;
}

.map-accordion__summary::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--honey-dark);
  border-bottom: 2px solid var(--honey-dark);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.map-accordion[open] > .map-accordion__summary::before {
  transform: rotate(45deg);
}

.map-accordion__summary-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.map-accordion__title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.map-accordion__meta {
  font-size: 0.8125rem;
  font-weight: 500;
}

.map-accordion__body {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.map-accordion__body--nested {
  padding-top: 0.75rem;
  border-top: 0;
}

.my-locations__empty {
  margin: 0;
  font-size: 0.875rem;
}

.my-locations__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.my-locations__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}

.my-locations__item.is-hidden {
  opacity: 0.65;
}

.my-locations__visibility {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.my-locations__visibility input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--honey);
}

.my-locations__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.my-locations__main:hover .my-locations__name,
.my-locations__main:focus-visible .my-locations__name {
  color: var(--honey-dark);
}

.my-locations__name {
  font-weight: 600;
  font-size: 0.875rem;
}

.my-locations__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.my-locations__badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--honey) 18%, var(--white));
  color: var(--honey-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: middle;
}

.my-locations__edit {
  flex-shrink: 0;
}

.forage-map-wrap {
  position: relative;
}

.forage-map-wrap:fullscreen,
.forage-map-wrap.is-fullscreen {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.forage-map-wrap.is-fullscreen:not(:fullscreen) {
  position: fixed;
  inset: 0;
  z-index: 1500;
  width: 100% !important;
  height: 100%;
}

.forage-map-wrap:fullscreen {
  width: 100% !important;
}

.forage-map-wrap:fullscreen .forage-map,
.forage-map-wrap.is-fullscreen .forage-map {
  flex: 1;
  height: auto;
  min-height: 0;
  border-top: 0;
}

.map-fullscreen-btn__exit {
  display: none;
}

.forage-map-wrap:fullscreen .map-fullscreen-btn__enter,
.forage-map-wrap.is-fullscreen .map-fullscreen-btn__enter {
  display: none;
}

.forage-map-wrap:fullscreen .map-fullscreen-btn__exit,
.forage-map-wrap.is-fullscreen .map-fullscreen-btn__exit {
  display: block;
}

.map-search {
  position: absolute;
  top: 0.75rem;
  left: 3.25rem;
  z-index: 500;
  width: min(calc(100% - 3.25rem - 8.5rem), 420px);
}

.map-search__form {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.2rem;
  box-shadow: var(--shadow);
}

.map-search__input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.map-search__input:focus {
  outline: none;
}

.map-search__submit {
  display: none;
}

.map-search__results {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
}

.map-search__result,
.map-search__empty {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.map-search__result:hover,
.map-search__result:focus-visible {
  background: var(--cream);
  outline: none;
}

.map-search__empty {
  color: var(--muted);
  cursor: default;
}

.forage-map--picking {
  cursor: crosshair;
}

.forage-map--picking .leaflet-container {
  cursor: crosshair;
}

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

.bloom-catalog {
  padding: 0 1rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
}

.bloom-catalog--overlay {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 500;
  margin: 0;
  padding: 0.45rem 0.55rem;
  min-height: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  scrollbar-width: thin;
}

.bloom-catalog--overlay .bloom-chip {
  flex-shrink: 0;
}

.bloom-catalog__empty {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.bloom-catalog__loading {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.map-controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.map-controls__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.map-controls__check-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0;
}

.map-controls__check-row .map-controls__check {
  margin: 0;
  flex: 1;
}

.map-controls__info {
  position: relative;
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.map-controls__popover .map-controls__info::after {
  left: auto;
  right: calc(100% + 0.45rem);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.map-controls__popover .map-controls__info::before {
  left: auto;
  right: calc(100% + 0.1rem);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-top-color: transparent;
  border-left-color: #1f2937;
}

.map-controls__info:hover,
.map-controls__info:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 25%, var(--border));
}

.map-controls__info::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 0.45rem);
  transform: translateY(-50%);
  width: max-content;
  max-width: 14rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}

.map-controls__info::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 0.1rem);
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}

.map-controls__info:hover::after,
.map-controls__info:hover::before,
.map-controls__info:focus-visible::after,
.map-controls__info:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.map-controls__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--honey-dark);
  box-shadow: var(--shadow);
  cursor: pointer;
  list-style: none;
}

.map-controls__btn::-webkit-details-marker {
  display: none;
}

.map-controls__btn svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.map-controls__btn:hover,
.map-controls__btn:focus-visible {
  background: var(--honey);
  color: var(--white);
  outline: none;
}

.map-controls__menu {
  position: relative;
}

.map-controls__menu[open] > .map-controls__btn {
  background: var(--honey);
  color: var(--white);
}

.map-controls__popover {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-controls__group {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
}

.map-controls__group:last-child {
  margin-bottom: 0;
}

.map-controls__group legend {
  padding: 0;
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.map-controls__time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-controls__time input[type="datetime-local"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.map-controls__link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--honey-dark);
  cursor: pointer;
  white-space: nowrap;
}

.map-controls__link:hover,
.map-controls__link:focus-visible {
  color: var(--honey);
  text-decoration: underline;
  outline: none;
}

.map-controls__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.map-controls__hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.map-status {
  position: absolute;
  left: 50%;
  bottom: 4.25rem;
  z-index: 501;
  transform: translateX(-50%);
  max-width: min(90%, 28rem);
  margin: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  text-align: center;
  background: rgba(44, 36, 22, 0.88);
  color: #fff;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: var(--shadow);
}

.map-status:empty {
  display: none;
}

.map-status.muted {
  color: #fff;
}

.map-sources-trigger {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 501;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.map-sources-trigger:hover,
.map-sources-trigger:focus-visible {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 20%, var(--border));
  outline: none;
}

.map-sources-trigger[hidden] {
  display: none;
}

.map-sources-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--honey);
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.map-sources-link:hover,
.map-sources-link:focus-visible {
  color: var(--text);
}

.map-sources-link[hidden] {
  display: none;
}

.map-sources-dialog {
  width: min(92vw, 22rem);
  max-height: min(80vh, 28rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-sources-dialog::backdrop {
  background: rgba(44, 36, 22, 0.35);
}

.map-sources-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.35rem;
}

.map-sources-dialog__head h3 {
  margin: 0;
  font-size: 1rem;
}

.map-sources-dialog__close {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.map-sources-dialog__close:hover,
.map-sources-dialog__close:focus-visible {
  background: var(--cream);
  color: var(--text);
  outline: none;
}

.map-sources-dialog__context,
.map-sources-dialog__hint {
  margin: 0;
  padding: 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.map-sources-dialog__list {
  list-style: none;
  margin: 0.65rem 0 0.75rem;
  padding: 0 0.5rem;
}

.map-sources-dialog__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.map-sources-dialog__item:nth-child(odd) {
  background: color-mix(in srgb, var(--cream) 65%, transparent);
}

.map-sources-dialog__item.is-off {
  opacity: 0.65;
}

.map-sources-dialog__label {
  font-weight: 600;
}

.map-sources-dialog__value {
  text-align: right;
  color: var(--muted);
}

.map-sources-dialog__item:not(.is-off) .map-sources-dialog__value {
  color: var(--text);
}

.map-sources-dialog__hint {
  padding-bottom: 0.9rem;
}

@media (max-width: 640px) {
  .map-search {
    left: 0.75rem;
    width: calc(100% - 1.5rem - 7.75rem);
  }

  .map-controls__popover {
    width: min(17rem, calc(100vw - 1.5rem));
  }
}

.map-layers-bar {
  display: none;
}

.opendata-marker {
  opacity: 0.92;
}
.bloom-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
}
a.bloom-chip {
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
a.bloom-chip:hover,
a.bloom-chip:focus-visible {
  background: var(--cream);
  border-color: var(--honey);
  color: var(--honey-dark);
  box-shadow: var(--shadow);
  outline: none;
}
.bloom-chip--catalog { border-style: dashed; }

.forage-map {
  height: min(70vh, 640px);
  width: 100%;
  border-top: 1px solid var(--border);
}

.forage-map--admin {
  height: min(75vh, 720px);
}

.map-page--admin .map-page__toolbar {
  align-items: flex-end;
}

.admin-map__count {
  margin: 0;
  font-size: 0.875rem;
  white-space: nowrap;
}

.stand-circle { fill-opacity: 0.08; }

.standalone-page {
  background: var(--cream);
  min-height: 100vh;
}

.standalone-page .section {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.code-block {
  background: #1e1e1e;
  color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
}

body.map-modal-open { overflow: hidden; }

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 22, 0.45);
}

.map-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}

.map-modal__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.map-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.map-modal__body { padding: 0.5rem 1rem 1rem; }

.map-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0 1rem 1rem;
}

.map-modal__intro { margin-top: 0; }

.map-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.map-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.map-action-card:not(:disabled):hover,
.map-action-card:not(:disabled):focus-visible {
  border-color: var(--honey);
  background: var(--white);
  outline: none;
}

.map-action-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.map-action-card__icon { font-size: 1.75rem; }

.map-action-card__label {
  font-weight: 600;
  font-size: 0.875rem;
}

.map-action-card__hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.map-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.map-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.map-form__field input,
.map-form__field select,
.map-form__field textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.map-form__hint {
  font-size: 0.8125rem;
}

.map-form__bloom-values {
  margin: 0.15rem 0 0;
  font-size: 0.9375rem;
}

.map-form__bloom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.map-autocomplete {
  position: relative;
}

.map-autocomplete__list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 12rem;
  overflow-y: auto;
}

.map-autocomplete__option,
.map-autocomplete__empty {
  display: block;
  width: 100%;
  padding: 0.45rem 0.65rem;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.map-autocomplete__option:hover,
.map-autocomplete__option:focus-visible {
  background: color-mix(in srgb, var(--cream) 70%, var(--white));
}

.map-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.map-draft-pin,
.map-stand-pin,
.map-swarm-pin {
  background: transparent;
  border: 0;
  pointer-events: auto;
}

.map-draft-pin__icon,
.map-stand-pin__icon,
.map-swarm-pin__icon {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.map-swarm-pin__icon { filter: hue-rotate(15deg) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }

.map-apiary-marker {
  background: transparent !important;
  border: 0 !important;
}

.map-apiary-flight-circle {
  pointer-events: auto;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(44, 36, 22, 0.08);
    padding: 1rem 1.25rem 1.25rem;
  }

  .site-nav.is-open { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav__list a {
    padding: 0.65rem 0.75rem;
  }

  .site-nav__actions {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
    flex-wrap: wrap;
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .site-brand__tagline {
    display: none;
  }

  .site-brand__mark {
    width: 12rem;
    height: 12rem;
  }

  .meta-list div { grid-template-columns: 1fr; }
}

.map-form__intro {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.map-form--observation .map-form__field input,
.map-form--observation .map-form__field select,
.map-form--observation .map-form__field textarea {
  font-size: 1rem;
}

.map-fab {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 650;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--honey);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.map-fab:hover,
.map-fab:focus-visible {
  background: var(--honey-dark);
}

.map-observation-marker {
  background: transparent;
  border: 0;
}

.map-observation-marker__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--honey);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .map-modal__dialog {
    width: min(100%, calc(100vw - 1rem));
    max-height: calc(100vh - 1rem);
    margin: 0.5rem;
  }

  .map-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

.pwa-install-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pwa-install-banner__text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.9375rem;
}

.pwa-install-banner__actions {
  display: flex;
  gap: 0.5rem;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 768px) {
  body:has(.mobile-tabbar) .site-main {
    padding-bottom: 4.75rem;
  }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }

  .mobile-tabbar__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.25rem 0.15rem;
    font-size: 0.6875rem;
    color: var(--muted);
    text-decoration: none;
    text-align: center;
  }

  .mobile-tabbar__link.is-active,
  .mobile-tabbar__link--cta.is-active {
    color: var(--accent-dark, #8b6914);
    font-weight: 600;
  }

  .mobile-tabbar__link--cta {
    color: var(--accent, #b8860b);
    font-weight: 600;
  }

  .mobile-tabbar__icon {
    font-size: 1.125rem;
    line-height: 1;
  }

  .page-observation-add .site-footer {
    padding-bottom: 5rem;
  }
}

.obs-add {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.obs-add__head h1 {
  margin-bottom: 0.35rem;
}

.obs-add__status {
  margin: 1rem 0;
}

.obs-add__type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.obs-add__type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  background: var(--white);
}

.obs-add__type-card:has(input:checked) {
  border-color: var(--accent, #b8860b);
  background: #fffaf0;
}

.obs-add__type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.obs-add__type-icon {
  font-size: 1.5rem;
}

.obs-add__gps.card,
.obs-add__form .card {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  margin-bottom: 0.75rem;
}

.obs-add__gps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.obs-add__photo input[type="file"] {
  width: 100%;
}

.obs-add__photo-preview {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.obs-add__photo-preview img {
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.obs-add__footer {
  margin-top: 1rem;
  text-align: center;
}
