/* =====================================================
   BIOMONDE STORE LOCATOR — Elementor Widget
   ===================================================== */

/* CSS OPTIMISÉ (PERF & STABILITÉ) */
.bio-locator-wrapper {
    --bio-green: #8ec045; --bio-green-hover: #7ab035; --bio-text: #3e302b;
    position: relative; margin-left: 0; font-family: inherit; cursor: crosshair; z-index: 1;
    /* Anti-saut */
    box-sizing: border-box;
    transform: translateZ(0); /* Force GPU */
}
.bio-locator-wrapper * { box-sizing: border-box; }

.bio-map-container {
    width: 100%; height: 100%; overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); position: relative; background: #eee;
    /* Isolation de performance pour éviter le reflow de la page */
    contain: content; 
}
.bio-map-iframe { 
    width: 160%; height: 100%; border: 0; margin-left: -60%; display: block; 
}

.bio-float-card {
    position: absolute; transform: translateY(-50%); width: 280px; padding: 25px 20px; z-index: 20;
    opacity: 1; transition: opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    /* Optimisation animation */
    will-change: opacity, transform; 
    cursor: default;
    /* Stabilité */
    backface-visibility: hidden;
}

/* INTERACTIONS */
@media (hover: hover) {
    .bio-locator-wrapper:hover .bio-float-card { opacity: 0.25; filter: grayscale(100%); }
    .bio-locator-wrapper .bio-float-card:hover { 
        opacity: 1 !important; filter: grayscale(0%) !important; 
        box-shadow: -15px 20px 50px rgba(62, 48, 43, 0.25); 
        transform: translateY(-50%) scale(1.02); z-index: 30; 
    }
}

.bio-float-title { margin: 0 0 8px 0; font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.bio-rating { color: #ffb400; font-size: 0.85rem; margin-bottom: 20px; display: flex; align-items: center; gap: 5px; font-weight: 600; }
.bio-rating span { color: #8a7a74; font-weight: 400; font-size: 0.8em; }
.bio-float-details { list-style: none; padding: 0; margin: 0 0 25px 0; }
.bio-float-item { display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 0.95rem; line-height: 1.4; font-style: normal; }
.bio-float-icon { color: var(--bio-green); margin-right: 12px; font-size: 1.1rem; width: 18px; text-align: center; flex-shrink: 0; }

.bio-actions { display: flex; gap: 10px; }
.bio-btn { flex: 1; padding: 12px 10px; text-align: center; border-radius: 50px; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: all 0.2s ease; cursor: pointer; display: inline-block; }
.bio-btn-primary { background-color: var(--bio-green); color: white !important; box-shadow: 0 5px 15px rgba(142, 192, 69, 0.3); }
.bio-btn-primary:hover { background-color: var(--bio-green-hover); transform: translateY(-2px); }
.bio-btn-secondary { background-color: #ffffff; color: var(--bio-text) !important; border: 1px solid #e0ded9; }
.bio-btn-secondary:hover { background-color: #f0f0f0; border-color: #ccc; }

/* MOBILE OPTIMISÉ */
@media (max-width: 768px) {
    .bio-locator-wrapper { height: auto !important; display: flex; flex-direction: column-reverse; cursor: default; }
    .bio-map-container { height: 250px; border-radius: 18px 18px 0 0; z-index: 1; width: 100%; }
    .bio-map-iframe { width: 100%; margin-left: 0; }
    .bio-float-card { 
        position: relative; top: auto !important; right: auto !important; left: auto !important; 
        transform: none !important; width: 100%; 
        border-radius: 0 0 18px 18px; box-shadow: none; border: 1px solid #eee; border-top: 0; padding: 20px; 
        opacity: 1 !important; filter: none !important;
    }
    .bio-float-title { font-size: 1.2rem; }
    .bio-actions { flex-direction: column; gap: 8px; }
    .bio-btn { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 12px 16px; font-size: 0.95rem; }
    .bio-locator-wrapper:hover .bio-float-card { opacity: 1; filter: none; }
}
