.mmpl-locator {
  --mmpl-text: #163132;
  --mmpl-muted: #66736f;
  --mmpl-border: #e3e7e4;
  --mmpl-surface: #ffffff;
  --mmpl-soft: #f5f7f4;
  --mmpl-accent: #ff5100;
  color: var(--mmpl-text);
  margin: 32px 0;
}

.mmpl-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.mmpl-toolbar label {
  display: block;
  margin-bottom: 6px;
  color: var(--mmpl-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.mmpl-toolbar input,
.mmpl-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--mmpl-border);
  border-radius: 8px;
  background: #fff;
  color: var(--mmpl-text);
}

.mmpl-toolbar button,
.mmpl-directions-link {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--mmpl-text);
  border-radius: 8px;
  background: var(--mmpl-text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.mmpl-toolbar button:hover,
.mmpl-directions-link:hover {
  background: var(--mmpl-accent);
  border-color: var(--mmpl-accent);
  color: #fff;
}

.mmpl-reset-button {
  background: #fff !important;
  color: var(--mmpl-text) !important;
}

.mmpl-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.35fr);
  gap: 18px;
}

.mmpl-list-wrap,
.mmpl-map-wrap {
  min-width: 0;
}

.mmpl-result-meta {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: var(--mmpl-muted);
  font-weight: 700;
}

.mmpl-list {
  display: grid;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.mmpl-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--mmpl-border);
  border-radius: 8px;
  background: var(--mmpl-surface);
  box-shadow: 0 12px 32px rgba(22, 49, 50, .08);
  cursor: pointer;
}

.mmpl-card:hover {
  border-color: rgba(255, 81, 0, .45);
  box-shadow: 0 16px 38px rgba(22, 49, 50, .12);
}

.mmpl-card-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--mmpl-border);
  border-radius: 8px;
  background: var(--mmpl-soft);
  overflow: hidden;
}

.mmpl-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mmpl-card-logo span {
  font-size: 28px;
  font-weight: 800;
}

.mmpl-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.mmpl-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

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

.mmpl-card h3 a:hover {
  color: var(--mmpl-accent);
}

.mmpl-distance {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 81, 0, .1);
  color: var(--mmpl-accent);
  font-size: 12px;
  font-weight: 800;
}

.mmpl-card-location,
.mmpl-card-address,
.mmpl-card-description {
  margin: 6px 0 0;
}

.mmpl-card-location {
  color: var(--mmpl-muted);
  font-weight: 700;
}

.mmpl-card-description {
  color: var(--mmpl-muted);
}

.mmpl-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.mmpl-card-actions a {
  color: var(--mmpl-accent);
  font-weight: 700;
  text-decoration: none;
}

.mmpl-card-note {
  color: #a15c00;
  font-weight: 700;
}

.mmpl-map-wrap {
  position: sticky;
  top: 24px;
  align-self: start;
}

.mmpl-map {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--mmpl-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--mmpl-soft);
}

.mmpl-map-empty,
.mmpl-no-results {
  padding: 16px;
  border: 1px dashed var(--mmpl-border);
  border-radius: 8px;
  background: var(--mmpl-soft);
  color: var(--mmpl-muted);
}

.mmpl-info-window {
  display: grid;
  gap: 4px;
  max-width: 240px;
  color: #163132;
}

.mmpl-info-window img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e3e7e4;
}

.mmpl-leaflet-logo-marker {
  width: 52px !important;
  height: 52px !important;
  margin-left: -26px !important;
  margin-top: -26px !important;
  background: transparent;
  border: 0;
}

.mmpl-marker-logo-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(22, 49, 50, .28);
  overflow: hidden;
}

.mmpl-marker-logo-img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mmpl-marker-logo-fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #163132;
  color: #fff;
  font-weight: 800;
}

.mmpl-info-window strong {
  font-size: 15px;
}

.mmpl-info-window span,
.mmpl-info-window p {
  margin: 0;
  color: #66736f;
}

.mmpl-single-details {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--mmpl-border, #e3e7e4);
  border-radius: 8px;
  background: #fff;
}

.mmpl-single-details dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 18px;
}

.mmpl-single-details dt {
  color: #66736f;
  font-weight: 800;
}

.mmpl-single-details dd {
  margin: 0;
}

.mmpl-directions-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .mmpl-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mmpl-layout {
    grid-template-columns: 1fr;
  }

  .mmpl-map-wrap {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .mmpl-toolbar {
    grid-template-columns: 1fr;
  }

  .mmpl-card {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 12px;
  }

  .mmpl-card-logo {
    width: 56px;
    height: 56px;
  }

  .mmpl-card-heading {
    display: block;
  }

  .mmpl-distance {
    display: inline-block;
    margin-top: 6px;
  }

  .mmpl-single-details dl {
    grid-template-columns: 1fr;
  }
}
