.locdev-locator {
  --locdev-primary: #08783f;
  --locdev-primary-hover: #056533;
  --locdev-text: #17231c;
  --locdev-muted: #5c6861;
  --locdev-border: #d4ded7;
  --locdev-surface: #ffffff;
  --locdev-soft: #f4f7f5;
  color: var(--locdev-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  max-width: 100%;
  width: 100%;
}

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

.locdev-locator__filters {
  align-items: end;
  background: var(--locdev-soft);
  border: 1px solid var(--locdev-border);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px;
}

.locdev-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.locdev-field label {
  color: var(--locdev-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.locdev-field input,
.locdev-field select {
  appearance: none;
  background-color: var(--locdev-surface);
  border: 1px solid #97a69c;
  border-radius: 9px;
  box-shadow: none;
  color: var(--locdev-text);
  font: inherit;
  height: 46px;
  line-height: normal;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  padding: 0 13px;
  width: 100%;
}

.locdev-field select {
  background-image: linear-gradient(45deg, transparent 50%, #526059 50%), linear-gradient(135deg, #526059 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px;
}

.locdev-field select:disabled {
  background-color: #e9eeeb;
  color: #68746d;
  cursor: not-allowed;
  opacity: 1;
}

.locdev-field input:focus-visible,
.locdev-field select:focus-visible,
.locdev-button:focus-visible,
.locdev-store-card:focus-visible {
  outline: 3px solid rgba(8, 120, 63, .3);
  outline-offset: 2px;
}

.locdev-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.locdev-locator .locdev-button {
  align-items: center;
  background: var(--locdev-primary);
  border: 1px solid var(--locdev-primary);
  border-radius: 9px;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
  min-height: 46px;
  padding: 10px 17px;
  text-decoration: none;
  text-transform: none;
  touch-action: manipulation;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  width: 100%;
}

.locdev-locator .locdev-button:hover {
  background: var(--locdev-primary-hover);
  border-color: var(--locdev-primary-hover);
  color: #fff;
}

.locdev-locator .locdev-button:disabled {
  cursor: wait;
  opacity: .7;
}

.locdev-locator .locdev-button--secondary {
  background: var(--locdev-surface);
  color: var(--locdev-primary);
}

.locdev-locator .locdev-button--secondary:hover {
  background: #e7f3ec;
  border-color: var(--locdev-primary-hover);
  color: var(--locdev-primary-hover);
}

.locdev-button.is-loading::before {
  animation: locdev-spin .8s linear infinite;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  content: '';
  height: 16px;
  margin-right: 8px;
  width: 16px;
}

@keyframes locdev-spin { to { transform: rotate(360deg); } }

.locdev-status {
  color: var(--locdev-muted);
  font-size: 15px;
  margin: 10px 2px;
  min-height: 24px;
}

.locdev-status.is-error { color: #a52121; }

.locdev-locator__content {
  background: var(--locdev-surface);
  border: 1px solid var(--locdev-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.locdev-store-list {
  background: var(--locdev-surface);
  max-height: 440px;
  order: 2;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aab5ad transparent;
}

.locdev-store-card {
  background: var(--locdev-surface);
  border: 0;
  border-bottom: 1px solid var(--locdev-border);
  border-left: 4px solid transparent;
  color: var(--locdev-text);
  cursor: pointer;
  padding: 18px;
  transition: background-color .2s ease, border-color .2s ease;
}

.locdev-store-card:hover { background: #f7faf8; }
.locdev-store-card.is-active { background: #eaf6ef; border-left-color: var(--locdev-primary); }
.locdev-store-card[hidden] { display: none; }
.locdev-store-card h3 { color: var(--locdev-text); font-size: 17px; line-height: 1.4; margin: 0 0 7px; }
.locdev-store-card p { font-size: 15px; line-height: 1.5; margin: 5px 0; }
.locdev-store-card__address { color: #34443a; }
.locdev-store-card__meta strong { color: var(--locdev-text); font-weight: 700; }
.locdev-store-card__distance { color: #675400; font-size: 14px !important; font-weight: 700; }

.locdev-map-wrap {
  background: #e7ebe8;
  min-height: 360px;
  order: 1;
  position: relative;
}

.locdev-map {
  border: 0;
  display: block;
  height: 100%;
  min-height: 360px;
  width: 100%;
}

.locdev-no-results,
.locdev-empty {
  background: var(--locdev-soft);
  border: 1px solid var(--locdev-border);
  border-radius: 12px;
  color: var(--locdev-muted);
  padding: 24px;
  text-align: center;
}

.locdev-no-results { border: 0; border-radius: 0; }

@media (min-width: 700px) {
  .locdev-locator__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locdev-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .locdev-locator__content {
    display: grid;
    grid-template-columns: minmax(300px, 34%) minmax(0, 1fr);
    min-height: 520px;
  }

  .locdev-store-list {
    max-height: 520px;
    order: initial;
  }

  .locdev-map-wrap,
  .locdev-map {
    min-height: 520px;
    order: initial;
  }
}

@media (min-width: 1180px) {
  .locdev-locator__filters {
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(180px, 1fr)) minmax(270px, auto);
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .locdev-locator *,
  .locdev-locator *::before,
  .locdev-locator *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
