.mpf-card {
    --mpf-height: 640px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1320px;
    margin: 1.5em auto;
    padding: 1.25em 1.25em 1em;
    background: #ffffff;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(20, 40, 70, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1c2733;
}

.mpf-card *, .mpf-card *::before, .mpf-card *::after { box-sizing: border-box; }

.mpf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1em;
    flex-wrap: wrap;
    margin-bottom: 0.75em;
}

.mpf-kicker {
    margin: 0 0 0.2em;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #2f7bd6;
}

.mpf-header h2 { margin: 0 0 0.25em; font-size: 1.35rem; }

.mpf-meta { margin: 0; font-size: 0.85rem; color: #5c6b7a; }

.mpf-badge {
    flex-shrink: 0;
    background: linear-gradient(135deg, #1f6fd1, #2f9bd6);
    color: #fff;
    padding: 0.5em 0.9em;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
}
.mpf-badge strong { font-size: 0.95rem; }

.mpf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-bottom: 0.6em;
}

.mpf-tab {
    border: 1px solid #d5dde5;
    background: #f5f8fb;
    color: #33475b;
    border-radius: 999px;
    padding: 0.4em 0.95em;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.mpf-tab:hover { background: #e9f1fa; }
.mpf-tab.is-active {
    background: #1f6fd1;
    border-color: #1f6fd1;
    color: #fff;
    font-weight: 600;
}

.mpf-controls { margin: 0; }

.mpf-controls.mpf-controls-fixed {
    position: fixed;
    top: 0;
    z-index: 900;
    background: #ffffff;
    padding: 0.6em 1.25em 0.5em;
    border-bottom: 1px solid #dfe6ec;
    box-shadow: 0 4px 12px rgba(20, 40, 70, 0.08);
}
.mpf-controls.mpf-controls-fixed .mpf-tabs:last-child { margin-bottom: 0; }

.mpf-controls-spacer { display: none; }
.mpf-controls-spacer:not([hidden]) { display: block; }

.mpf-stale {
    margin: 0 0 0.6em;
    padding: 0.5em 0.8em;
    background: #fff6e5;
    border: 1px solid #f0d59a;
    color: #7a5a00;
    border-radius: 8px;
    font-size: 0.82rem;
}

.mpf-map-wrap {
    position: relative;
    width: 100%;
    height: var(--mpf-height);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dde5ec;
    background: #eaf3fa;
}

.mpf-map { position: absolute; inset: 0; }

.mpf-loading, .mpf-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1em;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.92);
    color: #33475b;
    z-index: 500;
}
.mpf-error { color: #a33; }
.mpf-loading[hidden], .mpf-error[hidden] { display: none; }

.mpf-footer {
    margin-top: 0.8em;
    font-size: 0.75rem;
    color: #7a8a99;
    text-align: center;
}
.mpf-footer a { color: #2f7bd6; text-decoration: none; }
.mpf-footer a:hover { text-decoration: underline; }

/* Bulles météo sur la carte */
.mpf-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    background: #ffffff;
    border: 1px solid #d7e2ec;
    border-radius: 16px;
    padding: 0.25em 0.8em 0.3em;
    box-shadow: 0 3px 8px rgba(20, 40, 70, 0.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    cursor: pointer;
}
.mpf-bubble-top { display: flex; align-items: center; gap: 0.3em; }
.mpf-bubble .mpf-bubble-icon { font-size: 1.7rem; line-height: 1; }
.mpf-bubble .mpf-bubble-temp { font-size: 1.3rem; font-weight: 700; color: #1c2733; line-height: 1; }
.mpf-bubble .mpf-bubble-temp.is-missing { color: #9aa7b2; font-weight: 500; }
.mpf-bubble .mpf-bubble-sea {
    font-size: 0.55rem;
    font-weight: 600;
    color: #1f6fd1;
    line-height: 1;
    white-space: nowrap;
}
.mpf-bubble-wrap .mpf-bubble-name {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: #5c6b7a;
    text-align: center;
    margin-top: 0.1em;
}
.mpf-bubble-wrap { display: flex; flex-direction: column; align-items: center; }

.mpf-leaflet-attrib .leaflet-control-attribution {
    font-size: 0.68rem;
}
