.mmaf-finder {
  --mmaf-ink: #302237;
  --mmaf-muted: #6e6172;
  --mmaf-accent: #8b3277;
  --mmaf-border: #e9dfe9;
  color: var(--mmaf-ink);
  background: #fff;
  border: 1px solid var(--mmaf-border);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  max-width: 980px;
  margin: 24px auto;
  box-shadow: 0 6px 30px rgba(48, 34, 55, .06);
}
.mmaf-finder * { box-sizing: border-box; }
.mmaf-header h2 { margin: 0 0 6px; font-size: clamp(1.55rem, 3vw, 2rem); color: var(--mmaf-ink); }
.mmaf-header p { margin: 0 0 24px; color: var(--mmaf-muted); }
.mmaf-controls label { display: block; margin-bottom: 8px; font-weight: 700; }
.mmaf-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mmaf-search {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #baa9bb;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--mmaf-ink);
  font: inherit;
}
.mmaf-location, .mmaf-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid var(--mmaf-accent);
  padding: 10px 18px;
  background: var(--mmaf-accent);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
}
.mmaf-location:hover { background: #6e255d; color: #fff !important; }
.mmaf-whatsapp { background: #128c47; border-color: #128c47; }
.mmaf-whatsapp:hover { background: #0d7038; color: #fff !important; }
.mmaf-location:disabled { opacity: .6; cursor: wait; }
.mmaf-finder [hidden] { display: none !important; }
.mmaf-search:focus-visible, .mmaf-country:focus-visible, .mmaf-location:focus-visible, .mmaf-whatsapp:focus-visible {
  outline: 3px solid #e8a7d2;
  outline-offset: 2px;
}
.mmaf-hint { color: var(--mmaf-muted); font-size: .9rem; margin: 8px 0 0; }
.mmaf-country-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.mmaf-country-row label { margin: 0; white-space: nowrap; }
.mmaf-country { min-height: 40px; min-width: 190px; border: 1px solid #baa9bb; border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--mmaf-ink); font: inherit; }
.mmaf-status { color: var(--mmaf-muted); margin: 20px 0 16px; }
.mmaf-map-wrap {
  margin: 0 0 22px;
  border: 1px solid #e5d6e4;
  border-radius: 16px;
  overflow: hidden;
  background: #fbf6fb;
  box-shadow: 0 8px 26px rgba(48, 34, 55, .09);
}
.mmaf-map-heading, .mmaf-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
}
.mmaf-map-heading { background: linear-gradient(110deg, #fff9fc, #f1e4f0); }
.mmaf-map-heading h3 { margin: 1px 0 0; color: var(--mmaf-ink); font-size: 1.15rem; }
.mmaf-map-eyebrow { color: var(--mmaf-accent); font-size: .69rem; font-weight: 800; letter-spacing: .12em; }
.mmaf-map-legend { display: inline-flex; align-items: center; gap: 7px; color: #665268; font-size: .8rem; white-space: nowrap; }
.mmaf-map-legend span { width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--mmaf-accent); box-shadow: 0 0 0 1px #c9a5c5, 0 1px 4px #ab83a7; }
.mmaf-map { height: 380px; width: 100%; background: #e9e4e6; z-index: 0; }
.mmaf-map-footer { align-items: flex-start; background: #fff; }
.mmaf-map-caption, .mmaf-map-status { margin: 0; color: var(--mmaf-muted); font-size: .8rem; line-height: 1.4; }
.mmaf-map-status { text-align: right; white-space: nowrap; }
.mmaf-map .leaflet-control-zoom { border: 0; box-shadow: 0 4px 14px rgba(48, 34, 55, .2); }
.mmaf-map .leaflet-control-zoom a { color: var(--mmaf-accent); border-color: #eaddea; background: #fff; }
.mmaf-map .leaflet-control-zoom a:hover { background: #fbecf7; color: #672357; }
.mmaf-map .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 7px 24px rgba(48, 34, 55, .22); }
.mmaf-map .leaflet-popup-content { margin: 15px; min-width: 190px; }
.mmaf-map .leaflet-container a.leaflet-popup-close-button { color: var(--mmaf-accent); }
.mmaf-pin-shell { border: 0; background: transparent; }
.mmaf-pin-core {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--mmaf-accent);
  color: #fff;
  font: 800 13px/1 sans-serif;
  box-shadow: 0 2px 9px rgba(48, 34, 55, .35), 0 0 0 1px #bc89b3;
}
.mmaf-pin-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.mmaf-popup { font: inherit; color: var(--mmaf-ink); }
.mmaf-popup strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.mmaf-popup p { margin: 0 0 10px; line-height: 1.4; }
.mmaf-popup-group { max-height: 260px; overflow-y: auto; padding-right: 8px; }
.mmaf-popup-group-title { color: var(--mmaf-accent); }
.mmaf-popup-entry { padding: 9px 0; border-top: 1px solid var(--mmaf-border); }
.mmaf-popup-entry::after { content: ""; display: block; clear: both; }
.mmaf-popup-image { float: right; width: 55px; height: 55px; margin: 0 0 8px 10px; border-radius: 50%; object-fit: cover; border: 2px solid #e9d1e4; }
.mmaf-popup .mmaf-whatsapp { min-height: 32px; padding: 5px 9px; font-size: .8rem; }
.mmaf-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.mmaf-card {
  border: 1px solid var(--mmaf-border);
  border-radius: 12px;
  padding: 18px;
  background: #fffcff;
  overflow-wrap: anywhere;
}
.mmaf-card h3 { margin: 0 0 5px; font-size: 1.14rem; color: var(--mmaf-ink); }
.mmaf-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.mmaf-card-title { min-width: 0; }
.mmaf-card-image { width: 60px; height: 60px; flex: 0 0 60px; object-fit: cover; border-radius: 50%; border: 2px solid #ead4e7; }
.mmaf-card p { margin: 0 0 12px; line-height: 1.45; }
.mmaf-card-place { color: var(--mmaf-muted); font-size: .92rem; }
.mmaf-distance { color: var(--mmaf-accent); font-weight: 700; }
.mmaf-areas { font-size: .94rem; }
.mmaf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mmaf-whatsapp { min-height: 38px; padding: 7px 12px; font-size: .9rem; }
@media (max-width: 560px) {
  .mmaf-location { width: 100%; }
  .mmaf-country-row { align-items: stretch; flex-direction: column; gap: 6px; }
  .mmaf-map { height: auto; aspect-ratio: 3 / 4; }
  .mmaf-map-heading, .mmaf-map-footer { padding: 12px; }
  .mmaf-map-footer { display: block; }
  .mmaf-map-status { text-align: left; white-space: normal; margin-top: 5px; }
}
