.mmdhub-mappoints-widget {
    position: relative;
    width: 100%;
    margin: 10px 0;
    min-height: 540px;
    font-family: system-ui, -apple-system, sans-serif;
}
#mmdhub-map {
    width: 100%;
    height: 640px;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(17,24,39,0.15);
}
.mmdhub-left-panel {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 380px;
    z-index: 600;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100% - 48px);
}
.mmdhub-store-panel {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15,23,42,0.18);
    padding: 20px 22px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease;
}
.mmdhub-store-panel.is-open {
    max-height: calc(100% - 12px);
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
}
.mmdhub-store-panel.is-open::-webkit-scrollbar {
    width: 8px;
}
.mmdhub-store-panel.is-open::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}
.mmdhub-store-panel.is-open::-webkit-scrollbar-thumb {
    background: rgba(15,23,42,0.3);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.mmdhub-store-panel.is-open::-webkit-scrollbar-thumb:hover {
    background: rgba(15,23,42,0.45);
}
.mmdhub-store-panel.is-open {
    scrollbar-width: thin;
    scrollbar-color: rgba(15,23,42,0.35) transparent;
    padding-right: 28px;
}
.mmdhub-store-panel[hidden] {
    display: none;
}
.mmdhub-store-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #111827;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 34px;
    padding: 0;
}
.mmdhub-store-close:hover {
    background: #e5e7eb;
}
.mmdhub-store-header {
    margin-top: 24px;
    margin-bottom: 18px;
}
.mmdhub-store-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}
.mmdhub-store-city {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 4px;
}
.mmdhub-store-section {
    margin-bottom: 16px;
}
.mmdhub-store-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 6px;
}
.mmdhub-store-value {
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 4px;
    word-break: break-word;
}
.mmdhub-hours-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.mmdhub-hours-day {
    min-width: 90px;
    font-weight: 600;
    color: #111827;
}
.mmdhub-hours-range {
    color: #111827;
}
.mmdhub-search-panel {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15,23,42,0.18);
}
.mmdhub-search-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.mmdhub-search-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 14px;
}
.mmdhub-search-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}
.mmdhub-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.mmdhub-search-actions {
    display: flex;
    gap: 10px;
}
.mmdhub-btn {
    flex: 1;
    padding: 11px 12px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
}
.mmdhub-btn-primary {
    background: #2563eb;
    color: #ffffff;
}
.mmdhub-btn-primary:hover {
    background: #1d4ed8;
}
.mmdhub-btn-ghost {
    background: #eef2ff;
    color: #1e3a8a;
}
.mmdhub-btn-ghost:hover {
    background: #e0e7ff;
}
.mmdhub-search-status {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #6b7280;
}
.mmdhub-cluster {
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 6px 14px rgba(15,23,42,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mmdhub-cluster-small {
    background: #1d4ed8;
}
.mmdhub-cluster-medium {
    background: #f59e0b;
}
.mmdhub-cluster-large {
    background: #ef4444;
}

.mmdhub-marker-drop {
  animation: mmdhub-drop 0.45s ease-out;
  transform-origin: bottom center;
}

.mmdhub-shadow-drop {
  animation: mmdhub-shadow 0.45s ease-out;
  transform-origin: center center;
}
 
/* Pin : arrive en douceur */
@keyframes mmdhub-drop {
  0%   { transform: translateY(-18px) scale(0.98); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Ombre : pas visible au début, apparaît pendant la chute */
@keyframes mmdhub-shadow {
  0%   { transform: scale(0.65); opacity: 0; }
  60%  { opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .mmdhub-marker-drop {
        animation: none;
    }
}
@media (max-width: 768px) {
    #mmdhub-map {
        height: 520px;
        border-radius: 10px;
    }
    .mmdhub-left-panel {
        position: relative;
        top: auto;
        left: auto;
        width: calc(100% - 24px);
        margin: 12px auto 0;
    }
    .mmdhub-search-panel,
    .mmdhub-store-panel {
        box-shadow: 0 12px 30px rgba(15,23,42,0.15);
    }
}
