:root {
  --bg: #f3efe6;
  --panel: #fffdf7;
  --ink: #243027;
  --muted: #6f6659;
  --line: #ded3bf;
  --green: #2f7d4b;
  --green-deep: #245c3a;
  --leaf: #dfead6;
  --wheat: #f1cf7a;
  --clay: #b45f45;
  --yellow: #c9891a;
  --red: #b44b42;
  --blue: #3478b8;
  --shadow: 0 18px 45px rgba(48, 38, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(47, 125, 75, 0.08), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.home-page {
  background: var(--bg);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(241, 207, 122, 0.78);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow);
}

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

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  min-height: 100vh;
}

body.map-page {
  height: 100vh;
  overflow: hidden;
}

body.map-page .app-shell {
  height: 100vh;
  min-height: 0;
}

body.map-page .map-panel {
  height: 100vh;
  overflow: hidden;
}

body.map-page .map {
  height: 100%;
  min-height: 0;
}

body.map-page .list-panel {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
}

.site-header {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(47, 125, 75, 0.12);
  background: rgba(255, 253, 247, 0.92);
  padding: 12px 24px;
  backdrop-filter: blur(14px);
}

.brand-link {
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 900;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header nav a {
  min-height: 36px;
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-header .nav-cta {
  background: var(--green-deep);
  color: #fff;
  padding-inline: 14px;
}

.home-hero {
  position: relative;
  min-height: min(760px, 92vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 92px 24px 64px;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(25, 31, 24, 0.24), rgba(25, 31, 24, 0.72)),
    linear-gradient(90deg, rgba(25, 31, 24, 0.42), rgba(25, 31, 24, 0.12), rgba(25, 31, 24, 0.42)),
    url("assets/home-hero-hofladen.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.field-lines {
  position: absolute;
  inset: auto -12% -22% -12%;
  height: 56%;
  background:
    repeating-linear-gradient(
      98deg,
      rgba(255, 253, 247, 0.28) 0,
      rgba(255, 253, 247, 0.28) 2px,
      transparent 2px,
      transparent 38px
    );
  transform: skewY(-5deg);
}

.home-hero-content {
  position: relative;
  width: min(760px, 100%);
  max-width: calc(100vw - 32px);
  display: grid;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(25, 31, 24, 0.64);
  color: #fff;
  box-shadow: 0 24px 80px rgba(36, 48, 39, 0.32);
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
  backdrop-filter: blur(12px);
}

.home-hero-content .eyebrow {
  color: #f7edc8;
}

.home-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.home-hero-content > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.16);
  color: #fff;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

.home-search {
  display: grid;
  gap: 8px;
  width: min(680px, 100%);
  margin-top: 24px;
}

.home-search-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.home-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
  padding: 8px;
}

.home-search-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.home-search-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: rgba(28, 46, 33, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.home-search input {
  min-height: 48px;
  min-width: 0;
  border: 1px solid rgba(47, 125, 75, 0.18);
  border-radius: 6px;
  background: #fffdf7;
  color: var(--ink);
  padding: 0 10px;
}

.home-search button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--green-deep);
  color: #fff;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 800;
}

.home-search p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.home-search .home-search-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.primary-map-link,
.secondary-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
}

.primary-map-link {
  background: #fff;
  color: var(--green-deep);
}

.secondary-home-link {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
}

.home-product-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  max-width: 100%;
}

.home-product-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(36, 92, 58, 0.82);
  color: #fff;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 800;
}

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

.topbar {
  position: absolute;
  z-index: 500;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.topbar > div {
  max-width: min(560px, calc(100vw - 170px));
  border: 1px solid rgba(255, 253, 247, 0.82);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.hero-copy {
  max-width: 470px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.42;
}

.location-button,
.filter-chip,
.admin-toggle,
.save-button,
.ghost-button,
.quick-products button,
.learn-link,
.section-link {
  border: 1px solid rgba(35, 33, 29, 0.12);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(43, 35, 24, 0.1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.learn-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
}

.learn-link {
  background: rgba(255, 253, 247, 0.94);
}

.location-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
}

.map-story {
  position: absolute;
  z-index: 500;
  left: 18px;
  bottom: 74px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(520px, calc(100% - 36px));
}

.map-story span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 253, 247, 0.78);
  border-radius: 999px;
  background: rgba(36, 92, 58, 0.9);
  color: #fff;
  box-shadow: 0 10px 26px rgba(48, 38, 25, 0.14);
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 700;
}

.filters {
  position: absolute;
  z-index: 500;
  left: 18px;
  right: 18px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  white-space: nowrap;
}

.filter-chip.is-active {
  background: var(--green-deep);
  color: #fff;
}

.map {
  height: 100%;
  min-height: 620px;
}

.map-list-toggle {
  display: none;
}

.map-sheet-handle {
  display: none;
}

.map-filter-toggle {
  display: none;
}

.list-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(223, 234, 214, 0.64), transparent 260px),
    var(--panel);
  padding: 22px;
  overflow-y: auto;
}

.map-search-panel,
.home-intro,
.map-search-intro {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(47, 125, 75, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 234, 214, 0.95), rgba(255, 253, 247, 0.96) 48%),
    var(--panel);
  box-shadow: 0 14px 36px rgba(48, 38, 25, 0.08);
  padding: 18px;
}

.map-search-panel {
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
}

.map-search-toggle {
  display: none;
}

.map-search-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

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

.map-search-panel .map-search-intro {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.home-intro h2,
.map-search-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.15;
}

.home-intro p,
.map-search-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.quick-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-products button,
.quick-products a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-color: rgba(47, 125, 75, 0.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  padding: 0 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.quick-products button:hover,
.quick-products button:focus-visible,
.quick-products a:hover,
.quick-products a:focus-visible {
  background: var(--green-deep);
  color: #fff;
  outline: 2px solid rgba(47, 125, 75, 0.25);
  outline-offset: 2px;
}

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

.impact-strip div {
  min-width: 0;
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.78);
  padding: 10px;
}

.impact-strip dt {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.impact-strip dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.trust-section {
  background: #fffdf7;
}

.trust-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: center;
  padding: 42px 0;
}

.trust-inner h2 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  line-height: 1.08;
}

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

.trust-grid div {
  min-width: 0;
  border: 1px solid rgba(47, 125, 75, 0.15);
  border-radius: 8px;
  background: var(--leaf);
  padding: 14px;
}

.trust-grid dt {
  color: var(--green-deep);
  font-size: 1.08rem;
  font-weight: 900;
}

.trust-grid dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.landing-section {
  border-top: 1px solid rgba(47, 125, 75, 0.13);
  background: var(--bg);
}

.landing-section:nth-of-type(even) {
  background: #fffaf0;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 68px 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading p,
.copy-stack p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.landing-section h2 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.04;
}

.copy-stack {
  display: grid;
  gap: 16px;
}

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

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

.step-grid article,
.team-grid article {
  border: 1px solid rgba(47, 125, 75, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.88);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(48, 38, 25, 0.07);
}

.team-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.team-photo-placeholder {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid rgba(47, 125, 75, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 234, 214, 0.96), rgba(241, 207, 122, 0.28)),
    #fffdf7;
  color: var(--green-deep);
  font-size: 1.35rem;
  font-weight: 900;
}

.step-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-weight: 800;
}

.step-grid h3,
.team-grid h3 {
  margin: 14px 0 8px;
  font-size: 1.02rem;
}

.team-card h3 {
  margin-top: 0;
}

.step-grid p,
.team-grid p,
.team-section .section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.farm-section {
  background:
    linear-gradient(135deg, rgba(223, 234, 214, 0.82), transparent 48%),
    #fffdf7;
}

.section-link {
  justify-self: start;
  background: var(--green-deep);
  color: #fff;
}

.final-search {
  background: var(--green-deep);
  color: #fff;
}

.final-search .section-kicker,
.final-search h2 {
  color: #fff;
}

.final-search-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0;
}

.final-search .quick-products {
  justify-content: flex-end;
}

.final-search .quick-products button,
.final-search .quick-products a {
  border-color: rgba(255, 255, 255, 0.26);
}

.admin-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.admin-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.admin-shell {
  display: grid;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.98;
}

.admin-hero p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-panel.is-collapsed {
  gap: 0;
  border-color: transparent;
  background: transparent;
  padding: 0;
}

.admin-panel.is-collapsed .admin-header > div {
  display: none;
}

.admin-panel.is-collapsed .admin-toggle {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(43, 35, 24, 0.08);
}

.admin-panel.is-collapsed .admin-tools,
.admin-panel.is-collapsed .admin-message,
.admin-panel.is-collapsed .place-form,
.admin-panel.is-collapsed .candidate-panel {
  display: none;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-kicker {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.admin-toggle,
.save-button,
.ghost-button,
.admin-secondary-button,
.danger-button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 700;
}

.save-button,
.admin-secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.save-button {
  background: var(--green);
  color: #fff;
}

.admin-secondary-button {
  border: 1px solid var(--line);
  background: #f4f1eb;
  color: var(--ink);
}

.admin-secondary-button:hover,
.admin-secondary-button:focus-visible {
  background: #ebe5dc;
  outline: 0;
}

.danger-button {
  border: 1px solid rgba(163, 74, 63, 0.28);
  background: #fff1ee;
  color: var(--red);
  cursor: pointer;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: #f8ddd8;
  outline: 0;
}

.ghost-button,
.import-button {
  background: transparent;
  box-shadow: none;
}

.admin-tools {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.admin-tools summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
}

.admin-tools summary::-webkit-details-marker {
  display: none;
}

.local-count,
.admin-message {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
}

.admin-tools:not([open]) .admin-tool-actions {
  display: none;
}

.import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(35, 33, 29, 0.12);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  padding: 0 12px;
  font-weight: 700;
}

.import-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-message {
  min-height: 18px;
  margin: 0;
}

.place-form {
  display: grid;
  gap: 12px;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.form-grid label,
.product-picker {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

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

.product-picker {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.product-picker legend {
  padding: 0 5px;
}

.product-options {
  display: grid;
  gap: 8px;
}

.product-category {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fffdfa;
}

.product-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-category-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.category-expand {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-category-items {
  display: grid;
  gap: 6px;
}

.product-category-items[hidden] {
  display: none;
}

.product-option {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 7px !important;
  min-height: 30px;
  color: var(--ink) !important;
  font-weight: 400 !important;
}

.product-option-row {
  min-height: 30px;
}

.product-option input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.candidate-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.review-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

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

.review-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 10px;
}

.review-card > div:first-child {
  display: grid;
  gap: 3px;
}

.review-card strong {
  font-size: 0.95rem;
}

.review-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.candidate-header h3 {
  margin: 0;
  font-size: 0.95rem;
}

.candidate-header span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.candidate-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fffdfa;
}

.candidate-card.has-duplicate {
  border-color: #e5bd5b;
  background: #fffaf0;
}

.candidate-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.candidate-summary > div {
  display: grid;
  gap: 3px;
}

.candidate-coordinate-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f4f1eb;
  color: var(--red);
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.candidate-coordinate-badge.is-ready {
  color: var(--green);
}

.candidate-edit-grid {
  display: grid;
  gap: 8px;
}

.candidate-edit-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.candidate-edit-grid input,
.candidate-edit-grid select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 9px;
}

.candidate-product-picker {
  padding: 8px;
}

.candidate-map-hint {
  border-radius: 8px;
  background: #f4f1eb;
  color: var(--ink);
  padding: 9px;
  font-size: 0.84rem;
}

.candidate-card strong {
  font-size: 0.95rem;
}

.duplicate-badge,
.duplicate-warning {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a4d00;
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.duplicate-badge {
  margin: 0 12px 10px;
}

.candidate-card .duplicate-warning {
  justify-self: start;
}

.save-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.candidate-meta,
.candidate-products,
.candidate-source {
  color: var(--muted);
  font-size: 0.82rem;
}

.candidate-products {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-box {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.search-box label,
.search-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.search-box input,
.search-fields input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(47, 125, 75, 0.24);
  border-radius: 8px;
  padding: 0 13px;
  background: #fffdf7;
  color: var(--ink);
}

.search-box input:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(47, 125, 75, 0.18);
}

.result-summary {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.place-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(48, 38, 25, 0.06);
}

.place-card.is-active {
  border-color: rgba(47, 125, 75, 0.75);
  background: #f5fbf6;
  box-shadow: 0 12px 30px rgba(47, 125, 75, 0.16);
}

.active-place-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0 14px 12px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.place-card-button {
  display: grid;
  width: 100%;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.place-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.place-type-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 19px;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 75, 0.22);
  background: #eef6f1;
  color: var(--green-deep);
  padding: 0 6px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.place-type-badge.is-vending-machine {
  border-color: rgba(52, 120, 184, 0.24);
  background: #eef5fb;
  color: #276291;
}

.place-type-badge.is-self-service {
  border-color: rgba(201, 137, 26, 0.28);
  background: #fff7e8;
  color: #8a6100;
}

.place-type-badge.is-pickup {
  border-color: rgba(118, 101, 168, 0.25);
  background: #f4f1fb;
  color: #5a4a86;
}

.place-type-badge.is-market-stall {
  border-color: rgba(155, 91, 54, 0.25);
  background: #fbf1ec;
  color: #754127;
}

.place-card:has(.place-card-button:hover),
.place-card:has(.place-card-button:focus-visible) {
  border-color: rgba(45, 138, 87, 0.55);
  box-shadow: 0 12px 30px rgba(47, 125, 75, 0.14);
}

.place-card-button:focus-visible {
  outline: 0;
}

.place-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.place-edit-button,
.place-delete-button {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: #fffdfa;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.place-delete-button {
  background: #fff8f6;
  color: var(--red);
  border-left: 1px solid var(--line);
}

.place-edit-button:hover,
.place-edit-button:focus-visible {
  background: #f4f1eb;
  outline: 0;
}

.place-delete-button:hover,
.place-delete-button:focus-visible {
  background: #ffece8;
  outline: 0;
}

.place-edit-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px;
  background: #fffdfa;
}

.place-edit-panel[hidden] {
  display: none;
}

.stock-edit-list {
  display: grid;
  gap: 7px;
}

.stock-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 8px;
  align-items: center;
}

.stock-edit-row select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
}

.place-type,
.place-address {
  color: var(--muted);
  font-size: 0.86rem;
}

.product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: #f4f1eb;
  color: var(--ink);
  font-size: 0.82rem;
}

.assortment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.assortment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--green);
  padding: 0 9px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.status-unknown {
  background: #9ca3af;
}

.status-available {
  background: var(--green);
}

.status-low {
  background: var(--yellow);
}

.status-sold-out {
  background: var(--red);
}

.status-preorder {
  background: var(--blue);
}

.farm-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 1.15rem;
}

.farm-marker.is-vending-machine {
  background: #3478b8;
}

.farm-marker.is-self-service {
  background: #c9891a;
}

.farm-marker.is-pickup {
  background: #7665a8;
}

.farm-marker.is-market-stall {
  background: #9b5b36;
}

.draft-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  font-weight: 700;
}

.marker-products {
  position: absolute;
  left: 28px;
  bottom: -8px;
  display: flex;
  gap: 2px;
  min-height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fffdfa;
  padding: 1px 5px;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(43, 35, 24, 0.18);
  font-size: 0.86rem;
  white-space: nowrap;
}

.popup {
  max-width: min(280px, calc(100vw - 56px));
  min-width: 230px;
}

.popup h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.popup h3 {
  margin: 10px 0 6px;
  font-size: 0.88rem;
}

.popup p {
  margin: 0 0 8px;
  color: var(--muted);
}

.popup-products {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.popup-more-link {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.freshness-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.freshness-pill.is-fresh {
  background: #eef6f1;
  color: var(--green);
}

.freshness-pill.is-recent {
  background: #fff7df;
  color: #8a6100;
}

.freshness-pill.is-stale {
  background: #f1f3f5;
  color: #6b7280;
}

.popup-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.popup-note {
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-link,
.homepage-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  text-decoration: none;
}

.route-link {
  background: var(--ink);
  color: #fff !important;
}

.homepage-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink) !important;
}

.detail-link,
.place-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef6f1;
  color: var(--green);
  padding: 0 12px;
  text-decoration: none;
  font-weight: 700;
}

.place-detail-link {
  width: fit-content;
  margin: 0 14px 12px;
}

.detail-page {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  background: var(--bg);
  color: var(--ink);
  padding: 24px;
  overflow-x: hidden;
}

.detail-nav {
  display: flex;
  gap: 12px;
  margin: 0 auto 28px;
  width: min(100%, 1040px);
}

.detail-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.detail-map-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  background: var(--green-deep);
  color: #fff !important;
  padding: 0 14px;
  box-shadow: 0 10px 24px rgba(47, 125, 75, 0.18);
}

.detail-hero {
  display: grid;
  gap: 14px;
  margin: 0 auto 24px;
  width: min(100%, 1040px);
  border-radius: 8px;
  background: #fffdfa;
  padding: clamp(24px, 5vw, 56px);
}

.detail-hero h1 {
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4rem);
  overflow-wrap: anywhere;
}

.detail-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

.detail-edit-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef6f1;
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 12px;
  font-weight: 700;
}

.detail-edit-panel {
  display: grid;
  gap: 16px;
  margin: 0 auto 16px;
  width: min(100%, 1040px);
  border: 1px solid rgba(47, 125, 75, 0.22);
  border-radius: 8px;
  background: #fffdfa;
  padding: 18px;
}

.detail-edit-header {
  position: sticky;
  z-index: 15;
  top: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: -10px -10px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  padding: 10px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.detail-edit-header.is-stuck {
  border-color: rgba(47, 125, 75, 0.18);
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 12px 28px rgba(48, 38, 25, 0.08);
  backdrop-filter: blur(10px);
}

.detail-edit-header h2,
.detail-edit-header p {
  margin: 0;
}

.detail-edit-header p {
  color: var(--muted);
  margin-top: 4px;
}

.detail-edit-actions {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-edit-grid label,
.detail-edit-fieldset {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.detail-edit-grid input,
.detail-edit-grid select,
.detail-edit-grid textarea,
.opening-edit-grid input,
.opening-edit-note textarea,
.detail-stock-row select,
.detail-add-product input,
.detail-add-product select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.detail-edit-grid textarea,
.opening-edit-note textarea {
  resize: none;
}

.detail-edit-wide {
  grid-column: 1 / -1;
}

.detail-edit-fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.detail-edit-hint {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.opening-edit-grid {
  display: grid;
  gap: 8px;
}

.opening-edit-grid label {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
}

.opening-edit-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.opening-edit-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 500;
}

.opening-edit-note span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.detail-check-grid,
.detail-stock-list {
  display: grid;
  gap: 8px;
}

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

.detail-check-row,
.detail-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
}

.detail-check-row {
  justify-content: flex-start;
}

.detail-stock-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 160px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.detail-stock-row.is-dragging {
  opacity: 0.55;
}

.detail-drag-handle,
.detail-remove-product {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--muted);
  cursor: grab;
  padding: 0;
}

.detail-remove-product {
  border-color: rgba(180, 75, 66, 0.28);
  background: #fff3f1;
  color: var(--red);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.map-footer {
  position: fixed;
  right: 18px;
  bottom: 12px;
  z-index: 700;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(24, 35, 28, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.legal-shell {
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: 32px 0 12px;
}

.legal-content {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(38, 51, 42, 0.08);
}

.legal-content h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.legal-content h2 {
  margin: 28px 0 8px;
  font-size: 1.12rem;
}

.legal-content p {
  max-width: 74ch;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--green);
}

.legal-note {
  padding: 12px 14px;
  border: 1px solid rgba(186, 134, 57, 0.35);
  border-radius: 8px;
  background: rgba(255, 248, 224, 0.72);
}

.detail-stock-product {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-product-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-add-product {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.detail-add-product label {
  display: grid;
  gap: 6px;
}

.detail-product-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(48, 38, 25, 0.14);
  padding: 6px;
}

.detail-product-suggestions[hidden] {
  display: none;
}

.detail-product-suggestion {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 7px 9px;
  text-align: left;
}

.detail-product-category {
  padding: 10px 9px 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-product-category:first-child {
  padding-top: 4px;
}

.detail-product-suggestion:hover,
.detail-product-suggestion:focus-visible {
  background: #eef6f1;
  outline: 0;
}

.detail-product-empty {
  color: var(--muted);
  padding: 8px 9px;
  font-size: 0.86rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  width: min(100%, 1040px);
}

.detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  overflow-wrap: anywhere;
}

.detail-panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

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

.detail-panel-heading h2 {
  margin: 0;
}

.detail-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(47, 125, 75, 0.22);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--green-deep);
  padding: 0 11px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.detail-mini-button:hover,
.detail-mini-button:focus-visible {
  border-color: rgba(47, 125, 75, 0.38);
  background: #eef6f1;
  outline: 0;
}

.detail-subtitle {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-panel h2 + .detail-subtitle {
  margin-top: 0;
}

.detail-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.news-text {
  white-space: pre-line;
}

.detail-freshness {
  font-weight: 700;
}

.opening-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.94rem;
}

.opening-table tr {
  border-bottom: 1px solid var(--line);
}

.opening-table tr:last-child {
  border-bottom: 0;
}

.opening-table th,
.opening-table td {
  padding: 8px 0;
  text-align: left;
  vertical-align: middle;
  line-height: 1.35;
}

.opening-table th {
  width: 48px;
  color: var(--green-deep);
  font-weight: 800;
  white-space: nowrap;
}

.opening-table td {
  color: var(--ink);
  padding-left: 10px;
}

.opening-note {
  margin-top: 8px !important;
  font-size: 0.84rem;
}

.sales-mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(47, 125, 75, 0.22);
  border-radius: 999px;
  background: #eef6f1;
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.86rem;
  font-weight: 500;
}

.sales-mode-pill.is-vending-machine {
  border-color: rgba(52, 120, 184, 0.24);
  background: #eef5fb;
  color: #276291;
}

.sales-mode-pill.is-self-service {
  border-color: rgba(201, 137, 26, 0.28);
  background: #fff7e8;
  color: #8a6100;
}

.sales-mode-pill.is-pickup {
  border-color: rgba(118, 101, 168, 0.25);
  background: #f4f1fb;
  color: #5a4a86;
}

.sales-mode-pill.is-market-stall {
  border-color: rgba(155, 91, 54, 0.25);
  background: #fbf1ec;
  color: #754127;
}

.sales-mode-pill.is-online-shop {
  border-color: rgba(31, 118, 143, 0.24);
  background: #eef8f9;
  color: #17606f;
}

.detail-products {
  display: grid;
  gap: 8px;
}

.detail-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.detail-product-quick select {
  min-width: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 7px 9px;
  font: inherit;
  font-size: 0.9rem;
}

.detail-product-quick select:focus {
  border-color: rgba(47, 125, 75, 0.5);
  outline: 3px solid rgba(47, 125, 75, 0.13);
}

.source-list {
  margin: 0;
  padding-left: 18px;
}

.source-list a {
  color: var(--green);
}

.detail-seo-links {
  grid-column: 1 / -1;
}

.region-page > .detail-seo-links {
  margin: 0 auto;
  width: min(100%, 1040px);
}

.seo-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  border: 1px solid rgba(47, 125, 75, 0.18);
  border-radius: 999px;
  background: #fffdfa;
  color: var(--green-deep);
  padding: 0 11px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.seo-link:hover,
.seo-link:focus-visible {
  border-color: rgba(47, 125, 75, 0.34);
  background: #eef6f1;
  outline: 0;
}

.region-page {
  gap: 0;
}

.region-place-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 24px;
  width: min(100%, 1040px);
}

.region-place-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  overflow-wrap: anywhere;
}

.region-place-card h3 {
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.region-place-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.region-place-card h3 a:hover,
.region-place-card h3 a:focus-visible {
  color: var(--green-deep);
  outline: 0;
}

.region-place-card p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.region-card-meta {
  font-size: 0.84rem;
  font-weight: 700;
}

.assortment-pill.is-highlighted {
  border-color: rgba(47, 125, 75, 0.36);
  background: #e3f2e8;
  color: var(--green-deep);
}

.details-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(47, 125, 75, 0.24);
  border-radius: 999px;
  background: #eef6f1;
  color: var(--green-deep);
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.details-link:hover,
.details-link:focus-visible {
  border-color: rgba(47, 125, 75, 0.42);
  background: #dfeee5;
  outline: 0;
}

.detail-error {
  padding: 24px;
}

@media (max-width: 860px) {
  body.home-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 62vh auto;
  }

  body.map-page .app-shell {
    height: 100vh;
    grid-template-rows: 100vh;
    overflow: hidden;
  }

  body.map-page .map-panel,
  body.map-page .list-panel {
    height: auto;
    min-height: 0;
  }

  body.map-page .map {
    min-height: 0;
  }

  .site-header {
    width: 100%;
    max-width: 100vw;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 16px;
    overflow: hidden;
  }

  .site-header nav {
    min-width: 0;
    justify-content: end;
  }

  .site-header .nav-cta {
    min-height: 34px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .site-header nav {
    display: none;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .home-hero {
    width: 100%;
    max-width: 100vw;
    min-height: 100svh;
    padding: 76px 14px 34px;
  }

  .home-hero h1 {
    font-size: clamp(1.9rem, 8.7vw, 2.65rem);
    line-height: 1.04;
    max-width: 320px;
  }

  .home-hero-content {
    width: calc(100% - 28px);
    min-width: 0;
    max-width: 300px;
    padding: 18px;
  }

  .home-hero-content .eyebrow {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .home-hero-content > p {
    max-width: 100%;
    width: min(100%, 320px);
    font-size: 0.9rem;
    overflow-wrap: break-word;
  }

  .home-search-row,
  .home-search-fields {
    grid-template-columns: 1fr;
  }

  .home-search,
  .home-search-row,
  .home-search input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .home-search,
  .hero-actions,
  .home-product-links {
    width: min(100%, 260px);
  }

  .home-search button,
  .primary-map-link,
  .secondary-home-link {
    width: 100%;
  }

  .hero-proof {
    display: none;
  }

  .home-product-links {
    max-width: 100%;
    overflow: visible;
  }

  .home-product-links a {
    min-height: 32px;
    padding-inline: 11px;
    font-size: 0.9rem;
  }

  .list-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .map {
    min-height: 420px;
  }

  .topbar {
    align-items: flex-start;
    top: 10px;
    left: 10px;
    right: 10px;
    justify-content: flex-end;
  }

  .topbar > div:first-child {
    display: none;
  }

  .topbar > div {
    max-width: calc(100vw - 20px);
    padding: 10px 11px;
  }

  .topbar-actions {
    position: absolute;
    top: 0;
    right: 0;
  }

  .topbar > .topbar-actions {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
  }

  .location-button {
    min-height: 32px;
    border-color: rgba(255, 253, 247, 0.82);
    background: rgba(36, 92, 58, 0.92);
    box-shadow: 0 8px 18px rgba(24, 35, 28, 0.16);
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .topbar h1 {
    font-size: 1.08rem;
  }

  .learn-link {
    display: none;
  }

  .hero-copy {
    display: none;
  }

  .map-story {
    display: none;
  }

  .map-search-intro {
    gap: 8px;
    padding: 10px;
  }

  .map-search-panel {
    display: grid;
    gap: 0;
    padding: 0;
  }

  .map-search-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 10px 11px;
    text-align: left;
    cursor: pointer;
  }

  .map-search-toggle strong {
    display: block;
    margin-top: 2px;
    font-size: 1rem;
    line-height: 1.1;
  }

  .map-search-toggle-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--green-deep);
    border-bottom: 2px solid var(--green-deep);
    transform: rotate(45deg);
    transition: transform 160ms ease;
  }

  .map-search-toggle[aria-expanded="false"] .map-search-toggle-icon {
    transform: rotate(-45deg);
  }

  .map-search-content {
    gap: 8px;
    padding: 0 10px 10px;
  }

  .map-search-intro p:not(.section-kicker),
  .map-search-intro .quick-products,
  .map-search-desktop-heading {
    display: none;
  }

  .map-search-intro h2 {
    font-size: 1.05rem;
  }

  .search-box {
    padding: 9px 10px;
  }

  .filters {
    left: 10px;
    right: auto;
    bottom: 98px;
    display: none;
    max-width: min(220px, calc(100vw - 20px));
    flex-direction: column;
    align-items: flex-start;
    overflow: visible;
  }

  .is-map-filters-open .filters {
    display: flex;
  }

  .filter-chip {
    min-height: 34px;
    width: fit-content;
    padding: 0 11px;
    font-size: 0.86rem;
  }

  .map-list-panel {
    position: fixed;
    z-index: 640;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: min(54svh, 440px);
    max-height: min(54svh, 440px);
    gap: 10px;
    border: 1px solid rgba(47, 125, 75, 0.14);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -18px 44px rgba(24, 35, 28, 0.2);
    padding: 0 12px 12px;
    overflow-y: auto;
    transform: translateY(0);
    transition: transform 180ms ease;
  }

  .is-map-sheet-collapsed .map-list-panel {
    transform: translateY(calc(100% - 28px));
  }

  .map-sheet-handle {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    min-height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    background: linear-gradient(180deg, var(--panel), rgba(255, 253, 247, 0.92));
    cursor: grab;
    touch-action: none;
  }

  .map-sheet-handle:active {
    cursor: grabbing;
  }

  .map-sheet-handle span {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(36, 48, 39, 0.28);
  }

  .is-map-sheet-collapsed .map-sheet-handle span {
    background: rgba(36, 48, 39, 0.42);
  }

  .map-list-toggle {
    display: none;
  }

  .map-filter-toggle {
    position: absolute;
    z-index: 520;
    left: 10px;
    bottom: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid rgba(255, 253, 247, 0.82);
    border-radius: 999px;
    background: rgba(255, 253, 247, 0.94);
    color: var(--green-deep);
    box-shadow: 0 10px 24px rgba(24, 35, 28, 0.18);
    padding: 0 13px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(10px);
  }

  .map-filter-toggle[aria-expanded="true"] {
    background: var(--green-deep);
    color: #fff;
  }

  .is-map-search-collapsed .map-list-panel {
    gap: 8px;
  }

  .map-footer {
    display: none;
  }

  .impact-strip {
    grid-template-columns: 1fr;
  }

  .trust-inner,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .section-inner {
    width: min(100% - 32px, 720px);
    padding: 48px 0;
  }

  .split-layout,
  .step-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .team-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .team-photo-placeholder {
    width: 88px;
    font-size: 1.05rem;
  }

  .final-search-inner {
    display: grid;
  }

  .final-search .quick-products {
    justify-content: flex-start;
  }

  .search-fields {
    grid-template-columns: 1fr;
  }

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

  .detail-page {
    padding: 16px;
  }

  .detail-hero {
    padding: 22px;
  }

  .detail-hero,
  .detail-nav,
  .detail-grid,
  .region-place-list {
    width: 100%;
    max-width: 100%;
  }

  .region-place-list {
    grid-template-columns: 1fr;
  }

  .details-link {
    width: 100%;
  }

  .detail-edit-header,
  .detail-edit-actions {
    display: grid;
  }

  .detail-edit-grid,
  .detail-check-grid,
  .detail-stock-row,
  .opening-edit-grid label,
  .detail-add-product {
    grid-template-columns: 1fr;
  }

  .detail-drag-handle,
  .detail-remove-product {
    width: 100%;
    border-radius: 8px;
  }
}
