.farm-map-page #results { padding-top: 0; }
.farm-map-search { flex: none; min-width: 0; }
#supplier-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.supplier-map-link { margin: 8px 0 2px; padding: 0; border: 0; background: none; color: #444; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.catalog-query-summary { margin: 0 0 14px; color: #555; font-size: 12px; }
.farm-map-layout {
  display: grid;
  grid-template-columns: var(--directory-sidebar-width) minmax(0, 1fr);
  height: calc(100svh - 45px);
  min-height: 540px;
  min-width: 0;
  border-bottom: 1px solid #222;
}
.farm-map-sidebar { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 5px 12px 24px 0; border-right: 1px solid #111; background: #fff; }
.farm-map-list-heading { flex: none; padding: 9px 0; border-bottom: 1px solid #dedede; }
.farm-map-list-heading[hidden] { display: none; }
.farm-map-list-heading h2 { margin: 0; font-size: 11px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.farm-map-list-heading h2 span { margin-left: 4px; color: #777; font-size: 10px; font-weight: 400; }
.farm-map-list-heading p { margin: 0; font-size: 10px; color: #777; line-height: 1.6; overflow-wrap: anywhere; }
.farm-map-list { position: relative; flex: 0 1 auto; min-height: 0; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; list-style: none; }
.farm-region-group { margin: 0; padding: 0; list-style: none; }
.farm-region-button { min-height: 24px; padding: 3px 0; border-bottom: 1px solid #222; font-size: 11px; line-height: 1.55; }
.farm-region-button.active { align-items: baseline; justify-content: flex-start; gap: 7px; background: transparent; font-size: 12px; font-weight: 500; }
.farm-region-button .count { font-size: 11px; }
.farm-region-button.active .count { margin-left: 0; font-weight: 400; }
.farm-region-button[data-map-region="all"], .farm-region-button[data-map-region="all"] .count { font-weight: 700; }
.farm-region-farms { margin: 0; padding: 5px 0 9px; list-style: none; }
.farm-region-farms[hidden] { display: none; }
.farm-region-farms .farm-map-empty { padding: 10px 8px 14px; }
.farm-map-list-item { position: relative; display: block; min-width: 0; min-height: 23px; margin: 0; padding: 0; border: 0; }
.farm-map-focus { display: block; width: 100%; min-width: 0; min-height: 23px; padding: 1px 0; background: transparent; border: 0; text-align: left; line-height: 1.55; }
.farm-map-focus strong { color: #222; font-size: 11px; line-height: 1.55; font-weight: 400; overflow-wrap: anywhere; }
.farm-map-list-item.is-selected .farm-map-focus strong, .farm-map-focus:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.farm-map-empty > strong { display: block; color: #444; font-size: 12px; font-weight: 500; }
.farm-map-empty > p { margin-top: 8px; line-height: 1.7; }
.farm-map-empty > button { display: block; width: fit-content; margin-top: 10px; padding: 0; border: 0; background: none; color: #555; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.farm-map-empty { padding: 24px 12px; color: #888; font-size: 11px; }
.farm-map-stage { position: relative; min-width: 0; min-height: 0; background: #f2f2f2; isolation: isolate; }
#farm-map { position: absolute; inset: 0; width: 100%; height: 100%; background: #f2f2f2; font: inherit; z-index: 0; }
#farm-map .leaflet-tile-pane { filter: grayscale(1) contrast(.85) brightness(1.06); }
#farm-map .leaflet-control-attribution { padding: 2px 5px; background: #fffffff0; color: #555; font-size: 9px; line-height: 1.6; }
#farm-map .leaflet-control-attribution a { color: #444; text-decoration: underline; text-underline-offset: 2px; }
#farm-map .leaflet-control-zoom { margin: 14px 14px 0 0; border: 1px solid #aaa; border-radius: 0; box-shadow: none; }
#farm-map .leaflet-control-zoom a { width: 28px; height: 28px; border-radius: 0; background: #fff; color: #333; font-size: 18px; font-weight: 400; line-height: 28px; }
#farm-map .leaflet-control-scale { margin-left: 12px; margin-bottom: 10px; }
#farm-map .leaflet-control-scale-line { border-color: #777; background: #fffc; color: #555; font-size: 9px; }
.farm-map-tooltip { border: 1px solid #aaa; border-radius: 0; background: #fff; box-shadow: none; color: #222; font-size: 10px; }
.farm-map-popup-shell .leaflet-popup-content-wrapper { padding: 0; border-radius: 0; box-shadow: 0 3px 15px #0002; }
.farm-map-popup-shell .leaflet-popup-content { width: min(240px, calc(100vw - 190px)) !important; margin: 0; font-family: inherit; }
.farm-map-popup-shell .farm-map-popup { min-width: 0; max-width: none; box-shadow: none; }
.farm-map-unavailable { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 35px 30px 225px; background: #f2f2f2; text-align: center; }
.farm-map-unavailable[hidden], .farm-map-topline[hidden] { display: none; }
.farm-map-eyebrow { display: block; margin-bottom: 13px; font-size: 9px; letter-spacing: 1.3px; color: #888; }
.farm-map-unavailable h2 { margin: 0; font-size: 17px; font-weight: 400; letter-spacing: -.4px; color: #555; line-height: 1.6; }
.farm-map-unavailable p { margin: 10px 0 0; color: #888; font-size: 11px; line-height: 1.8; }
.farm-map-retry { margin-top: 16px; min-height: 34px; padding: 7px 14px; border: 1px solid #bbb; background: #fff; color: #333; font: inherit; font-size: 11px; cursor: pointer; }
.farm-map-retry:hover { border-color: #333; }
.farm-map-retry:focus-visible { outline: 2px solid #333; outline-offset: 3px; }
.farm-map-topline { position: absolute; top: 14px; left: 15px; display: flex; align-items: center; gap: 12px; padding: 7px 10px; background: #fffffff5; border: 1px solid #ccc; color: #666; font-size: 10px; z-index: 2; }
.farm-map-topline button { padding: 0 0 0 10px; border: 0; border-left: 1px solid #ccc; background: none; color: #333; font-size: 10px; }
.farm-map-topline button:hover { text-decoration: underline; text-underline-offset: 3px; }
.farm-map-selection { position: absolute; bottom: 46px; left: 20px; right: 20px; max-width: 310px; padding: 17px 19px 15px; background: #fff; border: 1px solid #d4d4d4; box-shadow: 0 2px 8px #00000006; z-index: 2; }
.farm-map-selection[hidden] { display: none; }
.farm-map-selected-match, .farm-map-popup-match { margin: 9px 0 0; color: #444; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.farm-map-selection-source { color: #888; font-size: 9px; }
.farm-map-selection h3 { margin: 5px 0 8px; color: #222; font-size: 15px; font-weight: 500; }
.farm-map-address { margin: 0; color: #555; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }
.farm-map-position-note { margin: 7px 0 0; color: #888; font-size: 10px; line-height: 1.65; }
.farm-map-selection-actions { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e5e5; }
.farm-map-selection-actions button, .farm-map-selection-actions a { padding: 0; background: none; border: 0; color: #333; font-size: 10px; text-decoration: none; text-align: left; line-height: 1.7; }
.farm-map-selection-actions button:hover, .farm-map-selection-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.farm-map-selection-empty { color: #777; font-size: 11px; }
.farm-map-marker { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.farm-map-dot { display: block; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--marker-color, #555); box-shadow: 0 0 0 1px #0002; transition: transform .12s; }
.farm-map-marker:hover .farm-map-dot { transform: scale(1.2); }
.farm-map-marker.is-selected .farm-map-dot { width: 16px; height: 16px; box-shadow: 0 0 0 2px #333; }
.farm-map-marker:focus-visible { outline: 2px solid #333; outline-offset: 1px; }
.farm-map-popup { position: relative; min-width: 190px; max-width: 260px; padding: 17px 27px 15px 16px; border: 1px solid #ccc; background: #fff; box-shadow: 0 2px 12px #0001; font-family: inherit; }
.farm-map-popup > strong { display: block; color: #222; font-size: 12px; font-weight: 500; }
.farm-map-popup > span { display: block; margin-top: 5px; font-size: 10px; color: #666; }
.farm-map-popup > small { display: block; margin-top: 8px; color: #888; font-size: 9px; }
.farm-map-popup > button:not(.farm-map-popup-close), .farm-map-popup > a { display: block; border: 0; background: none; margin-top: 10px; padding: 0; text-align: left; color: #333; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.farm-map-popup-close { position: absolute; right: 4px; top: 4px; width: 23px; height: 23px; padding: 0; border: 0; background: none; font-size: 18px; line-height: 1; color: #888; }
@media (max-width: 1000px) {
  .farm-map-selection { left: 16px; right: 16px; }
}
@media (max-width: 760px) {
  .farm-map-layout { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .farm-map-sidebar { padding: 10px 0 12px; border-right: 0; border-bottom: 1px solid #111; }
  .farm-map-list { flex: none; max-height: 45svh; }
  .farm-map-stage { height: 65svh; min-height: 400px; }
  .farm-map-list-heading { padding: 8px 0; }
  .farm-map-list-heading h2 { font-size: 10px; }
  .farm-map-list-heading p { font-size: 9px; }
  .farm-region-button { width: 100%; min-height: 29px; }
  .farm-map-list-item, .farm-map-focus { min-height: 32px; }
  .farm-map-focus strong { font-size: 11px; }
  .farm-map-unavailable { padding: 20px 13px 240px; }
  .farm-map-eyebrow { font-size: 8px; margin-bottom: 10px; }
  .farm-map-unavailable h2 { font-size: 14px; word-break: keep-all; }
  .farm-map-unavailable p { font-size: 10px; }
  .farm-map-selection { left: 10px; right: 10px; bottom: 40px; padding: 13px 11px; }
  .farm-map-selection h3 { font-size: 13px; }
  .farm-map-address { font-size: 10px; }
  .farm-map-position-note { font-size: 9px; }
  .farm-map-selection-actions { gap: 8px; margin-top: 10px; padding-top: 9px; }
  .farm-map-selection-actions button, .farm-map-selection-actions a { font-size: 9px; }
  .farm-map-topline { top: 10px; left: 10px; padding: 6px 8px; }
  .farm-map-topline > span { display: none; }
  .farm-map-topline button { border-left: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .farm-map-dot { transition: none; }
}
