/* mypro.ch · app.central — design proche DOCS/INSPI/booking.html */

:root {
    --primary: #0f172a;
    --accent: #f59e0b;
    --ring: 0 0 0 4px rgb(15 23 42 / 0.08);
}

html, body, #root { height: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; }

/* ====== Carte style Google Maps ====== */

/* Marqueur pin SVG : pas de fond / pas de bord */
.gmap-pin { background: transparent !important; border: 0 !important; }
.gmap-pin svg { display: block; }

/* Leaflet — palette & contrôles Material-like */
.leaflet-container {
    font-family: 'Roboto', 'Inter', system-ui, sans-serif;
    background: #e8eaed;            /* gris Google */
}
.mp-map { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

/* Vehicle card image */
.vehicle-card__img {
    width: 88px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4px;
}
.vehicle-card__img--ph {
    display: inline-flex; align-items: center; justify-content: center;
}

/* Switcher de fond de carte (style Google Maps) */
.mp-map-wrap { position: relative; }
.mp-map-switch {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 500;
    display: flex; gap: 4px;
    background: #fff;
    padding: 4px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.mp-map-switch__btn {
    appearance: none; border: 0; background: transparent;
    color: #4b5563;
    font-size: 0.78rem; font-weight: 600;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.15s;
}
.mp-map-switch__btn:hover { background: #f3f4f6; color: #111827; }
.mp-map-switch__btn.active {
    background: #1a73e8;
    color: #fff;
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.4);
}
@media (max-width: 640px) {
    .mp-map-switch__btn span { display: none; }
    .mp-map-switch__btn { padding: 8px 10px; }
}

/* Zoom control façon Google Maps (boutons ronds blancs, ombre subtile) */
.leaflet-bar {
    border: 0 !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 1px 4px -1px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.15) !important;
}
.leaflet-control-zoom { margin: 0 12px 24px 0 !important; }
.leaflet-control-zoom a {
    width: 40px !important; height: 40px !important; line-height: 40px !important;
    font-size: 20px !important;
    background: #ffffff !important;
    color: #5f6368 !important;       /* gris icône Google */
    border: 0 !important;
    border-bottom: 1px solid #e8eaed !important;
}
.leaflet-control-zoom a:last-child { border-bottom: 0 !important; }
.leaflet-control-zoom a:hover { background: #f8f9fa !important; color: #202124 !important; }
.leaflet-control-zoom-in  { border-radius: 8px 8px 0 0 !important; }
.leaflet-control-zoom-out { border-radius: 0 0 8px 8px !important; }

.leaflet-control-attribution {
    font-size: 11px !important;
    background: rgba(255,255,255,.85) !important;
    color: #5f6368 !important;
    padding: 2px 8px !important;
    border-radius: 4px 0 0 0 !important;
}
.leaflet-control-attribution a { color: #1a73e8 !important; }

/* Tiles : léger lissage pour adoucir le rendu façon Google */
.leaflet-tile-container img { image-rendering: auto; }

/* Inputs cohérents */
.mp-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: white;
    transition: all .15s;
}
.mp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

.mp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .15s;
    cursor: pointer;
}
.mp-btn-primary {
    background: var(--primary);
    color: white;
}
.mp-btn-primary:hover { background: #1e293b; }
.mp-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.mp-btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid #e2e8f0;
}
.mp-btn-ghost:hover { background: #f8fafc; }

/* Step header */
.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e2e8f0; color: #64748b;
    font-weight: 700; font-size: .85rem;
    transition: all .2s;
}
.step-dot.active { background: var(--primary); color: white; }
.step-dot.done { background: #22c55e; color: white; }

/* Vehicle card */
.vehicle-card {
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all .15s;
    background: white;
}
.vehicle-card:hover { border-color: #cbd5e1; }
.vehicle-card.selected {
    border-color: var(--primary);
    background: #f8fafc;
    box-shadow: var(--ring);
}

/* Suggest dropdown */
.suggest {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    max-height: 280px; overflow-y: auto;
    z-index: 30;
}
.suggest-item {
    padding: .65rem .9rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: #f8fafc; }

/* Loading */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    display: inline-block; width: 1em; height: 1em;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: spin .7s linear infinite;
}
