/* VMA Directory — Plugin frontend styles (cards, map, search widget, avis) */

/* ── Markers Leaflet ── */
.vma-marker {
  width: 28px; height: 28px;
  background: #2563eb;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.vma-marker--premium { background: #f59e0b; }

/* ── Popup ── */
.vma-popup { font-size: 13px; min-width: 160px; }
.vma-popup img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.vma-popup strong { display: block; font-size: 14px; margin-bottom: 2px; }
.vma-popup a { color: #2563eb; text-decoration: none; }
.vma-popup__metier, .vma-popup__ville, .vma-popup__dist { display: block; color: #6b7280; font-size: 12px; }

/* ── Spinner ── */
.vma-spinner {
  width: 40px; height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: vma-spin .8s linear infinite;
  margin: 40px auto;
}
@keyframes vma-spin { to { transform: rotate(360deg); } }

/* ── Stars ── */
.vma-stars { display: flex; align-items: center; gap: 1px; }
.vma-stars svg { flex-shrink: 0; }
.vma-stars span { margin-left: 4px; font-size: 12px; color: #6b7280; }

/* ── Badges ── */
.vma-badge {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
}
.vma-badge--certif { background: #dcfce7; color: #166534; }
.vma-badge--premium { background: #fef3c7; color: #92400e; }

/* ── Cards ── */
.vma-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.vma-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.vma-card--premium { border-color: #f59e0b; box-shadow: 0 0 0 2px #fef3c7; }

.vma-card__img-wrap { display: block; height: 160px; overflow: hidden; }
.vma-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vma-card__img-placeholder { width: 100%; height: 100%; background: #f3f4f6; }

.vma-card__body { padding: 14px; }
.vma-card__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.vma-card__metier { font-size: 11px; font-weight: 600; color: #2563eb; text-transform: uppercase; letter-spacing: .5px; }
.vma-card__dist { margin-left: auto; font-size: 11px; color: #6b7280; }
.vma-card__title { font-size: 15px; font-weight: 700; margin: 4px 0; }
.vma-card__title a { color: #111827; text-decoration: none; }
.vma-card__title a:hover { color: #2563eb; }
.vma-card__ville { font-size: 12px; color: #6b7280; display: flex; align-items: center; gap: 3px; margin: 4px 0; }
.vma-card__tel  { font-size: 13px; margin: 4px 0; }
.vma-card__tel a { color: #059669; font-weight: 600; text-decoration: none; }
.vma-card__certifs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.vma-card__cta { margin-top: 8px; }

/* ── No results / error ── */
.vma-no-results, .vma-error { text-align: center; padding: 40px; color: #6b7280; }

/* ── Avis form ── */
.vma-avis-form { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-top: 32px; }
.vma-avis-form h3 { margin-top: 0; font-size: 18px; }
.vma-star-input { cursor: pointer; transition: transform .1s; }
.vma-star-input.active svg { fill: #f59e0b !important; }
.vma-star-input:hover svg { transform: scale(1.2); }
.vma-avis-msg { display: none; padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-size: 14px; }
.vma-avis-msg.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.vma-avis-msg.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
