.ofml-locator {
  --ofml-border: #d0d7de;
  --ofml-border-soft: #e6eaf0;
  --ofml-bg: #fff;
  --ofml-muted: #667085;
  --ofml-text: #1f2937;
  --ofml-soft: #f6f8fb;
  --ofml-accent: #256f3f;
  --ofml-accent-dark: #1f5f36;
  --ofml-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --ofml-shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.07);
  width: 100%;
  max-width: 1180px;
  margin: 1.75rem auto;
  color: var(--ofml-text);
  box-sizing: border-box;
}
.ofml-locator *, .ofml-locator *::before, .ofml-locator *::after { box-sizing: border-box; }
.ofml-filter-toggle {
  display: none;
  width: 100%;
  min-height: 46px;
  margin: 0 0 0.85rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ofml-border);
  border-radius: 14px;
  background: #fff;
  color: var(--ofml-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--ofml-shadow-soft);
}
.ofml-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(5, minmax(130px, 1fr));
  gap: 0.85rem;
  align-items: end;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--ofml-border-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--ofml-shadow-soft);
}
.ofml-compact {
  margin: 1rem auto;
}
.ofml-compact .ofml-filters {
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  padding: 0.7rem;
  border-radius: 14px;
}
.ofml-compact .ofml-filter label {
  margin-bottom: 0.22rem;
  font-size: 0.74rem;
}
.ofml-compact .ofml-filters input,
.ofml-compact .ofml-filters select,
.ofml-compact .ofml-filters button {
  min-height: 38px;
  padding: 0.42rem 0.58rem;
  border-radius: 9px;
  font-size: 0.9rem;
}
.ofml-compact .ofml-filter-actions button {
  min-height: 34px;
  padding: 0.38rem 0.55rem;
}
.ofml-compact .ofml-toolbar {
  min-height: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}
.ofml-compact .ofml-region-button {
  min-height: 32px;
  padding: 0.36rem 0.62rem;
  font-size: 0.84rem;
}
.ofml-compact .ofml-layout {
  padding: 0.42rem;
  border-radius: 16px;
}
.ofml-compact .ofml-map {
  border-radius: 12px;
}
.ofml-filter { min-width: 0; }
.ofml-filter-search { grid-column: span 2; }
.ofml-filter label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 800;
  color: #344054;
}
.ofml-filters input,
.ofml-filters select,
.ofml-filters button {
  width: 100%;
  min-height: 44px;
  padding: 0.58rem 0.75rem;
  border: 1px solid var(--ofml-border);
  border-radius: 12px;
  background: var(--ofml-bg);
  color: var(--ofml-text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.ofml-filters input:focus,
.ofml-filters select:focus,
.ofml-filters button:focus {
  outline: none;
  border-color: var(--ofml-accent);
  box-shadow: 0 0 0 3px rgba(37, 111, 63, 0.16);
}
.ofml-filters button {
  cursor: pointer;
  font-weight: 800;
  background: var(--ofml-accent);
  border-color: var(--ofml-accent);
  color: #fff;
}
.ofml-filters button:hover { background: var(--ofml-accent-dark); transform: translateY(-1px); }
.ofml-filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: end;
  justify-content: flex-start;
  grid-column: span 2;
  min-width: 0;
  flex-wrap: nowrap;
}
.ofml-filter-actions button {
  width: auto;
  min-width: 82px;
  min-height: 38px;
  padding: 0.48rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.ofml-filter-actions button[data-ofml="location"] {
  min-width: 142px;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
.ofml-filter-actions .ofml-secondary {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
.ofml-filters .ofml-secondary { background: #fff; color: var(--ofml-text); border-color: var(--ofml-border); }
.ofml-filters .ofml-secondary:hover { background: #f8fafc; color: var(--ofml-text); }
.ofml-region-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.ofml-region-nav[hidden] { display: none; }
.ofml-region-button {
  min-height: 38px;
  padding: 0.48rem 0.82rem;
  border: 1px solid var(--ofml-border);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.ofml-region-button:hover,
.ofml-region-button:focus {
  border-color: var(--ofml-accent);
  color: var(--ofml-accent-dark);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}
.ofml-region-button.is-active {
  background: #ecfdf3;
  border-color: var(--ofml-accent-dark);
  color: #14532d;
  box-shadow: 0 7px 16px rgba(47, 133, 90, 0.16);
}
.ofml-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 1.6rem;
  margin: 0 0 0.55rem;
  color: var(--ofml-muted);
  font-size: 0.94rem;
}
.ofml-count { font-weight: 800; color: #475467; }
.ofml-layout {
  display: block;
  position: relative;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--ofml-border-soft);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--ofml-shadow);
}
.ofml-map {
  width: 100%;
  height: clamp(var(--ofml-map-min-height, 520px), 64vh, var(--ofml-map-max-height, 880px));
  min-height: var(--ofml-map-min-height, 520px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ofml-border-soft);
  background: #e9eef3;
}
.ofml-map .leaflet-popup-content-wrapper { border-radius: 14px; }
.ofml-map .leaflet-control-zoom a { color: var(--ofml-text); }

@media (min-width: 1440px) {
  .ofml-locator { max-width: min(92vw, 1440px); }
  .ofml-map { height: clamp(var(--ofml-map-min-height, 560px), 66vh, var(--ofml-map-max-height, 940px)); }
}
@media (min-width: 1900px) {
  .ofml-locator { max-width: min(88vw, 1680px); }
  .ofml-map { height: clamp(640px, 70vh, var(--ofml-map-max-height, 1100px)); }
}
@media (max-width: 1180px) {
  .ofml-locator { max-width: none; padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 1100px) {
  .ofml-filters { grid-template-columns: 1fr 1fr 1fr; }
  .ofml-filter-search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ofml-locator { margin: 1rem auto; padding-left: 0.75rem; padding-right: 0.75rem; }
  .ofml-filter-toggle { display: block; }
  .ofml-locator.ofml-mobile-filters-collapsed .ofml-filters { display: none; }
  .ofml-locator:not(.ofml-mobile-filters-collapsed) .ofml-filters { display: block; }
  .ofml-filters { padding: 0.85rem; border-radius: 18px; }
  .ofml-filter, .ofml-filter-actions { margin-bottom: 0.7rem; }
  .ofml-filter:last-child, .ofml-filter-actions { margin-bottom: 0; }
  .ofml-filter-actions { display: flex; grid-column: auto; }
  .ofml-filter-actions button[data-ofml="location"] { min-width: 150px; }
  .ofml-region-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; }
  .ofml-region-button { flex: 0 0 auto; }
  .ofml-toolbar { display: block; margin-top: 0.25rem; }
  .ofml-layout { padding: 0.45rem; border-radius: 18px; }
  .ofml-map { height: min(62vh, var(--ofml-map-mobile-height, 500px)); min-height: 430px; border-radius: 14px; }
}
@media (max-width: 480px) {
  .ofml-locator { padding-left: 0.5rem; padding-right: 0.5rem; }
  .ofml-map { height: min(60vh, 460px); min-height: 390px; }
}

/* v0.3.20 map styling presets */
.ofml-theme-oregon_fresh {
  --ofml-accent: #2f855a;
  --ofml-accent-dark: #276749;
  --ofml-accent-soft: #ecfdf3;
  --ofml-soft: #fbf7ed;
  --ofml-border-soft: #dbe7d5;
  --ofml-shadow: 0 22px 56px rgba(39, 103, 73, 0.16);
  --ofml-shadow-soft: 0 10px 26px rgba(39, 103, 73, 0.10);
}
.ofml-theme-clean_light {
  --ofml-accent: #256f8f;
  --ofml-accent-dark: #1e5a73;
  --ofml-accent-soft: #eef7fb;
}
.ofml-theme-minimal {
  --ofml-border: #d8dee6;
  --ofml-border-soft: #edf0f3;
  --ofml-shadow: none;
  --ofml-shadow-soft: none;
}
.ofml-theme-classic {
  --ofml-accent: #2563eb;
  --ofml-accent-dark: #1d4ed8;
}
.ofml-theme-oregon_fresh .ofml-filters {
  background: linear-gradient(135deg, #fffef9 0%, #f2fbf0 100%);
}
.ofml-theme-oregon_fresh .ofml-layout {
  background: linear-gradient(180deg, #fffef9 0%, #ffffff 100%);
}
.ofml-theme-oregon_fresh .ofml-region-nav {
  padding: 0.1rem 0 0.25rem;
}
.ofml-theme-oregon_fresh .ofml-region-button {
  background: #fffef9;
  border-color: #cfe3cb;
}
.ofml-theme-oregon_fresh .ofml-region-button.is-active {
  background: #dff6e7;
  border-color: #2f855a;
  color: #123c24;
  box-shadow: 0 9px 18px rgba(47, 133, 90, 0.20);
}
.ofml-theme-minimal .ofml-filters,
.ofml-theme-minimal .ofml-layout,
.ofml-theme-minimal .ofml-filter-toggle {
  box-shadow: none;
}
.ofml-div-marker {
  background: transparent;
  border: 0;
}
.ofml-marker-pin {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  background: var(--ofml-marker-color, #2f855a);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}
.ofml-marker-dot {
  position: absolute;
  inset: 7px;
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.ofml-marker-pin::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 8px;
  left: 7px;
  bottom: -11px;
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  transform: rotate(45deg);
  filter: blur(2px);
}
.ofml-div-marker:hover .ofml-marker-pin {
  transform: rotate(-45deg) translate(1px, -2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28);
}
.ofml-map .marker-cluster-small div,
.ofml-map .marker-cluster-medium div,
.ofml-map .marker-cluster-large div {
  background: var(--ofml-accent);
  color: #fff;
  font-weight: 800;
}
.ofml-map .marker-cluster-small,
.ofml-map .marker-cluster-medium,
.ofml-map .marker-cluster-large {
  background: rgba(47, 133, 90, 0.22);
}
.ofml-popup-card {
  width: min(360px, calc(100vw - 76px));
  max-width: calc(100vw - 76px);
  max-height: min(68vh, calc(var(--ofml-map-min-height, 520px) - 82px));
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 0.1rem;
  color: var(--ofml-text);
  scrollbar-width: thin;
}
.ofml-map .leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  max-width: calc(100vw - 48px);
  overflow: hidden;
}
.ofml-map .leaflet-popup-content {
  width: auto !important;
  margin: 0.85rem 0.85rem 0.65rem;
  line-height: 1.42;
}
.ofml-popup-title {
  margin-bottom: 0.45rem;
  color: #153b25;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.22;
}
.ofml-popup-meta {
  color: #475467;
  font-size: 0.92rem;
}
.ofml-popup-line + .ofml-popup-line {
  margin-top: 0.22rem;
}
.ofml-popup-description {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
}
.ofml-popup-description .ofml-popup-section-heading {
  margin-top: 0;
}
.ofml-popup-description-body {
  color: #344054;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ofml-popup-description-body > *:first-child {
  margin-top: 0;
}
.ofml-popup-description-body > *:last-child {
  margin-bottom: 0;
}
.ofml-popup-description-body p {
  margin: 0 0 0.55rem;
}
.ofml-popup-description-body ul,
.ofml-popup-description-body ol {
  margin: 0.35rem 0 0.55rem 1.15rem;
  padding: 0;
}
.ofml-popup-description-body li + li {
  margin-top: 0.2rem;
}
.ofml-popup-description-body a {
  color: var(--ofml-accent-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ofml-popup-section-heading {
  margin: 0.65rem 0 0.35rem;
  color: #153b25;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ofml-popup-schedule {
  margin-top: 0.45rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(47, 133, 90, 0.18);
  border-radius: 12px;
  background: rgba(236, 253, 243, 0.55);
}
.ofml-popup-csa {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.72);
}
.ofml-popup-csa-row {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr;
  gap: 0.6rem;
  padding: 0.22rem 0;
}
.ofml-popup-csa-row + .ofml-popup-csa-row {
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}
.ofml-popup-csa-label {
  color: #1d4ed8;
  font-weight: 850;
}
.ofml-popup-csa-value {
  color: #344054;
  text-align: right;
}
.ofml-popup-csa-badges {
  margin-top: 0.45rem;
}
.ofml-popup-csa-schedule {
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.58);
}
.ofml-popup-schedule-row {
  display: grid;
  grid-template-columns: minmax(82px, auto) 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.24rem 0;
}
.ofml-popup-schedule-row + .ofml-popup-schedule-row {
  border-top: 1px solid rgba(47, 133, 90, 0.14);
}
.ofml-popup-schedule-day {
  color: #153b25;
  font-weight: 850;
}
.ofml-popup-schedule-time {
  color: #344054;
  text-align: right;
}

.ofml-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin: 0.65rem 0 0;
}
.ofml-popup-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--ofml-accent-soft, #ecfdf3);
  color: var(--ofml-accent-dark, #276749);
  font-size: 0.76rem;
  font-weight: 850;
}
.ofml-popup-actions {
  position: sticky;
  bottom: -0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem -0.1rem 0;
  padding: 0.55rem 0 0.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), #fff 44%);
}
.ofml-popup-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--ofml-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 850;
}
.ofml-popup-actions a.ofml-popup-secondary-link {
  background: #fff;
  color: var(--ofml-text) !important;
  border: 1px solid var(--ofml-border);
}
.ofml-popup-style-compact .ofml-popup-card { width: min(300px, calc(100vw - 76px)); }
.ofml-popup-style-compact .ofml-popup-title { margin-bottom: 0.3rem; }
.ofml-popup-style-compact .ofml-popup-actions { margin-top: 0.55rem; }
.ofml-user-location-marker {
  stroke: #1d4ed8;
  fill: #3b82f6;
  fill-opacity: 0.35;
}

@media (max-width: 760px) {
  .ofml-popup-card {
    width: min(330px, calc(100vw - 64px));
    max-width: calc(100vw - 64px);
    max-height: min(62vh, 390px);
  }
  .ofml-map .leaflet-popup-content {
    margin: 0.7rem 0.7rem 0.5rem;
  }
  .ofml-popup-csa-row,
  .ofml-popup-schedule-row {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }
  .ofml-popup-csa-value,
  .ofml-popup-schedule-time {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .ofml-popup-card {
    width: min(300px, calc(100vw - 52px));
    max-width: calc(100vw - 52px);
    max-height: min(58vh, 340px);
  }
}
