/* ============================================================
   Ochanta Store Locator — Frontend CSS v1.1.0
   Design fidèle aux captures : panneau gauche blanc + carte droite
   ============================================================ */

/* ── Variables (overridées par Elementor via CSS vars inline) ── */
.osl-store-locator {
    --osl-primary:       #7B1C1C;
    --osl-primary-dark:  #5c1414;
    --osl-text:          #1a1a1a;
    --osl-muted:         #666;
    --osl-border:        #e8e8e8;
    --osl-bg:            #ffffff;
    --osl-panel-w:       390px;
    --osl-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --osl-r:             3px;
    --osl-shadow:        0 2px 12px rgba(0,0,0,.10);
}

/* ── Wrapper ────────────────────────────────────────────────── */
.osl-store-locator {
    display: flex;
    width: 100%;
    font-family: var(--osl-font);
    font-size: 14px;
    color: var(--osl-text);
    line-height: 1.4;
    position: relative;
    border: 1px solid var(--osl-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--osl-shadow);
}

.osl-store-locator.osl-panel-right { flex-direction: row-reverse; }

/* ── Panneau liste ──────────────────────────────────────────── */
.osl-panel {
    width: var(--osl-panel-w);
    min-width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--osl-bg);
    height: 600px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 2px 0 6px rgba(0,0,0,.06);
}

/* ── Zone recherche (fond blanc, bordure bas) ──────────────── */
.osl-search-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid var(--osl-border);
    flex-shrink: 0;
}

.osl-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: var(--osl-r);
    background: #fafafa;
    padding: 0 10px;
    gap: 8px;
    transition: border-color .2s;
}

.osl-search-field:focus-within {
    border-color: var(--osl-primary);
    background: #fff;
}

.osl-search-icon {
    color: #999;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.osl-search-icon svg { width: 15px; height: 15px; }

.osl-address-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--osl-text);
    padding: 9px 0;
    min-width: 0;
    font-family: var(--osl-font);
    text-align: center;
}

.osl-address-input::placeholder { color: #aaa; }

.osl-clear-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 18px;
    padding: 0 2px;
    line-height: 1;
    display: none;
}
.osl-clear-btn:hover { color: #555; }

/* Bouton géolocalisation — carré rouge */
.osl-geoloc-btn {
    width: 38px;
    height: 38px;
    background-color: var(--osl-primary);
    border: none;
    border-radius: var(--osl-r);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.osl-geoloc-btn:hover { background-color: var(--osl-primary-dark); }
.osl-geoloc-btn svg { width: 18px; height: 18px; }

.osl-geoloc-btn.is-spinning svg {
    animation: osl-spin .8s linear infinite;
}

/* ── Barre de rayon — fond rouge, pills blanches ───────────── */
.osl-radius-bar {
    background-color: var(--osl-primary);
    padding: 0;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    display: flex;
    align-items: stretch;
}

.osl-radius-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 7px 10px;
    gap: 6px;
    scrollbar-width: none;
    flex: 1;
}
.osl-radius-pills::-webkit-scrollbar { display: none; }

.osl-radius-pill {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.45);
    color: rgba(255,255,255,.85);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    font-family: var(--osl-font);
}
.osl-radius-pill:hover {
    border-color: #fff;
    color: #fff;
}
.osl-radius-pill.is-active {
    background: rgba(255,255,255,.22);
    border-color: #fff;
    color: #fff;
}

/* Filtre catégorie dans la barre */
.osl-cat-wrap {
    border-left: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.osl-category-select {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.4);
    color: rgba(255,255,255,.9);
    border-radius: var(--osl-r);
    padding: 4px 8px;
    font-size: 12px;
    font-family: var(--osl-font);
    cursor: pointer;
    max-width: 120px;
}
.osl-category-select option { background: #3a3a3a; color: #fff; }

/* ── Liste des magasins ─────────────────────────────────────── */
.osl-stores-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fafafa;
}
.osl-stores-list::-webkit-scrollbar { width: 5px; }
.osl-stores-list::-webkit-scrollbar-track { background: #fafafa; }
.osl-stores-list::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

.osl-stores-ul,
.osl-stores-ul > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px;
}

/* ── Carte d'un magasin ─────────────────────────────────────── */
.osl-card {
    padding: 20px 14px 20px;
    border-bottom: 1px solid var(--osl-border);
    cursor: pointer;
    transition: background .12s;
    position: relative;
}
.osl-card:hover { background: #f8f8f8; }
.osl-card.is-active {
    background: #fdf5f5;
    border-left: 3px solid var(--osl-primary);
    padding-left: 11px;
}

/* Distance — affichée en rouge en haut à droite */
.osl-dist {
    position: absolute;
    top: 15px;
    right: 12px;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--osl-primary);
    letter-spacing: .01em;
}

/* Nom */
.osl-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--osl-text);
    margin: 0 0 6px;
    padding-right: 68px; /* espace pour la distance */
    line-height: 1.3;
}

/* Badge statut */
.osl-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-bottom: 5px;
}
.osl-badge--warn   { background: #fff3cd; color: #856404; }
.osl-badge--closed { background: #f8d7da; color: #721c24; }

/* Note GMB */
.osl-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}
.osl-stars {
    display: inline-flex;
    gap: 1px;
    font-size: 13px;
    line-height: 1;
}
.osl-star          { display: inline-block; color: #e0e0e0; line-height: 1; }
.osl-star-full     { color: #f5a623; }
.osl-star-half     { position: relative; color: #e0e0e0; }
.osl-star-half .osl-star-bg { display: block; line-height: 1; }
.osl-star-half .osl-star-fg {
    position: absolute;
    left: 0; top: 0;
    width: 50%;
    overflow: hidden;
    color: #f5a623;
    display: block;
    line-height: 1;
    white-space: nowrap;
}
.osl-rating-num {
    font-weight: 700;
    font-size: 12px;
    color: var(--osl-text);
}
.osl-review-count {
    font-size: 11px;
    color: var(--osl-muted);
}

/* Meta infos */
.osl-meta {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
.osl-meta li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 4px;
    color: var(--osl-muted);
    font-size: 12.5px;
}
.osl-meta a { color: inherit; text-decoration: none; }
.osl-meta a:hover { text-decoration: underline; }

.osl-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: .55;
}

.osl-hours {
    font-size: 12px;
    line-height: 1.5;
}
.osl-closed-label { color: #dc3232; font-weight: 600; font-size: 12px; }

/* Statut temps réel (ouvert / fermé / ouvre bientôt / ferme bientôt) */
.osl-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-bottom: 5px;
}
.osl-status--open          { background: #d4edda; color: #155724; }
.osl-status--closing-soon  { background: #fff3cd; color: #856404; }
.osl-status--opening-soon  { background: #cce5ff; color: #004085; }
.osl-status--closed        { background: #f8d7da; color: #721c24; }

/* ── Boutons d'action ───────────────────────────────────────── */
.osl-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.osl-btn {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--osl-r);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .15s;
    font-family: var(--osl-font);
    white-space: nowrap;
    line-height: 1;
}
.osl-btn:hover { opacity: .82; }

.osl-btn--primary {
    background-color: var(--osl-primary);
    color: #fff !important;
}
.osl-btn--secondary {
    background-color: var(--osl-primary);
    color: #fff !important;
}

/* ── États chargement / vide ────────────────────────────────── */
.osl-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    gap: 14px;
    color: var(--osl-muted);
    font-size: 13px;
}
.osl-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--osl-primary);
    border-radius: 50%;
    animation: osl-spin .7s linear infinite;
}
.osl-no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--osl-muted);
    font-size: 13px;
}

@keyframes osl-spin { to { transform: rotate(360deg); } }

/* ── Carte Google Maps ──────────────────────────────────────── */
.osl-map-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}
.osl-map-container {
    width: 100%;
    height: 600px;
}

/* ── Suppression du padding excessif de Google Maps InfoWindow ── */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
}
/* Bouton fermer sorti du flux → plus de vide en haut */
.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 2;
    height: auto !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.gm-style button.gm-ui-hover-effect {
    width: 26px !important;
    height: 26px !important;
    opacity: .55;
}
.gm-style button.gm-ui-hover-effect span {
    width: 14px !important;
    height: 14px !important;
    margin: 6px !important;
}

/* Info-window personnalisée */
.osl-iw {
    font-family: var(--osl-font);
    min-width: 200px;
    max-width: 260px;
    padding: 14px 36px 14px 14px; /* droite: espace pour le bouton ✕ */
}
.osl-iw-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}
.osl-iw-rating { color: #f5a623; font-size: 12px; margin-bottom: 4px; }
.osl-iw-addr, .osl-iw-phone {
    margin: 0 0 3px;
    font-size: 12px;
    color: #555;
}
.osl-iw-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 11px;
    background: var(--osl-primary, #7B1C1C);
    color: #fff !important;
    border-radius: 3px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
}

/* ── Bouton masquer/afficher la carte (mobile) ──────────────── */
.osl-map-toggle-btn {
    display: none; /* visible uniquement via @media mobile */
    width: 100%;
    padding: 10px 16px;
    background: var(--osl-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--osl-font);
    font-weight: 600;
    letter-spacing: .3px;
    text-align: center;
    order: 0; /* avant .osl-map-wrap (order:1) */
}
.osl-map-toggle-btn:hover { opacity: .88; }

/* Quand la carte est masquée */
.osl-map-hidden .osl-map-wrap { display: none; }
.osl-map-hidden .osl-panel    { max-height: 80vh; }

/* ── Toggle mobile (legacy — conservé pour compatibilité) ───── */
.osl-mobile-toggle {
    display: none;
    border-bottom: 1px solid var(--osl-border);
}
.osl-mobile-toggle-btn {
    flex: 1;
    padding: 9px;
    background: #f8f8f8;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    transition: all .2s;
    font-family: var(--osl-font);
}
.osl-mobile-toggle-btn.is-active {
    color: var(--osl-primary);
    background: #fff;
    border-bottom-color: var(--osl-primary);
}

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 900px) {
    .osl-panel { --osl-panel-w: 320px; }
}

@media (max-width: 768px) {
    .osl-store-locator {
        flex-direction: column !important;
    }

    .osl-panel {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 65vh;
        box-shadow: none;
        order: 2;
    }

    .osl-map-wrap {
        order: 1;
        width: 100%;
    }

    .osl-mobile-toggle { display: none !important; }

    .osl-map-toggle-btn { display: block; }

    .osl-map-container { height: 280px; }

    .osl-panel {
        max-height: 55vh;
    }

    .osl-actions { flex-direction: column; }
    .osl-btn { text-align: center; padding: 9px 14px; }
    .osl-name { padding-right: 50px; }
    .osl-search-area { padding: 8px 10px; }
}

/* ── Google Places Autocomplete ─────────────────────────────── */
.osl-address-input.pac-target-input {
    margin-top: 10px;
    margin-bottom: 10px;
}

.pac-item {
    padding: 10px;
    margin-left: 0 !important;
}

/* ============================================================
   WIDGET AVIS GOOGLE — Badge + Cards
   ============================================================ */

/* ── Badge ───────────────────────────────────────────────── */
.osl-reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow .2s;
}
.osl-reviews-badge--shadow { box-shadow: 0 2px 12px rgba(0,0,0,.10); }
.osl-reviews-badge--shadow:hover { box-shadow: 0 4px 20px rgba(0,0,0,.15); }

/* Vertical (card) */
.osl-reviews-badge--card {
    flex-direction: column;
    text-align: center;
    gap: 6px;
}
.osl-reviews-badge--card .osl-reviews-badge__logo { margin-bottom: 4px; }

/* Minimal */
.osl-reviews-badge--minimal {
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none !important;
}

.osl-reviews-badge__logo { display: flex; align-items: center; justify-content: center; }

.osl-reviews-badge__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.osl-reviews-badge--inline .osl-reviews-badge__body { flex-direction: row; align-items: center; gap: 8px; }

.osl-reviews-badge__score {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
}
.osl-reviews-badge--inline .osl-reviews-badge__score { font-size: 20px; }

.osl-reviews-badge__stars {
    font-size: 18px;
    color: #f5a623;
    letter-spacing: 2px;
    line-height: 1;
}

.osl-reviews-badge__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.osl-reviews-badge--inline .osl-reviews-badge__meta { flex-direction: row; gap: 6px; align-items: center; }

.osl-reviews-badge__count {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}
.osl-reviews-badge__label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── En-tête résumé (mode reviews) ──────────────────────── */
.osl-reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.osl-reviews-summary__score {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}
.osl-reviews-summary__stars {
    font-size: 20px;
    color: #f5a623;
    letter-spacing: 2px;
}
.osl-reviews-summary__count {
    font-size: 13px;
    color: #666;
}

/* ── Grille d'avis ───────────────────────────────────────── */
.osl-reviews-grid { width: 100%; }

/* ── Carte d'un avis ─────────────────────────────────────── */
.osl-review-card {
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    break-inside: avoid;
}
.osl-review-card--shadow { box-shadow: 0 2px 10px rgba(0,0,0,.07); }

/* Header : avatar + meta + étoiles */
.osl-review-card__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.osl-review-card__avatar-wrap { flex-shrink: 0; }

.osl-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.osl-review-card__avatar--initial {
    background: #7B1C1C;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    user-select: none;
}

.osl-review-card__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.osl-review-card__author {
    font-weight: 600;
    font-size: 13.5px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.osl-review-card__date {
    font-size: 11.5px;
    color: #999;
}

.osl-review-card__stars {
    font-size: 15px;
    color: #f5a623;
    letter-spacing: 1px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Corps du commentaire */
.osl-review-card__text {
    font-size: 13.5px;
    color: #333;
    line-height: 1.55;
}

.osl-review-card__more {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 12.5px;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-family: inherit;
}
.osl-review-card__more:hover { text-decoration: underline; }

/* Réponse du propriétaire */
.osl-review-card__reply {
    background: #f8f8f8;
    border-left: 3px solid #e0e0e0;
    border-radius: 0 4px 4px 0;
    padding: 10px 12px;
    font-size: 12.5px;
    color: #444;
    line-height: 1.5;
}
.osl-review-card__reply p { margin: 4px 0 0; }
.osl-review-card__reply-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 11.5px;
    color: #666;
    margin-bottom: 4px;
}

/* Lien "voir tous les avis" */
.osl-reviews-link-wrap { margin-top: 20px; text-align: center; }
.osl-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    transition: opacity .15s;
}
.osl-reviews-link:hover { opacity: .75; }

.osl-reviews-empty { color: #999; font-size: 13px; text-align: center; padding: 20px 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .osl-reviews-grid { grid-template-columns: 1fr !important; }
    .osl-reviews-badge--inline { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
    .osl-card { padding: 12px 10px; }
    .osl-name { font-size: 14px; }
    .osl-radius-pills { padding: 6px 8px; gap: 5px; }
    .osl-radius-pill { padding: 3px 10px; font-size: 11.5px; }
}

/* ── Widget Horaires ────────────────────────────────────────────────────── */
.osl-hours { font-size: 14px; }

.osl-hours__table { display: flex; flex-direction: column; }

.osl-hours__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 4px;
}

.osl-hours__day {
    flex: 0 0 auto;
    min-width: 100px;
    font-weight: inherit;
}

.osl-hours__slots { flex: 1 1 auto; text-align: right; }

.osl-hours__closed { color: #dc3232; }

/* Jour courant */
.osl-hours__row--today {
    background: #f0f8ff;
    font-weight: 600;
    border-radius: 4px;
}

/* Horaires exceptionnels */
.osl-hours__special {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff8e1;
    border-left: 4px solid #f0c000;
    border-radius: 0 4px 4px 0;
}

.osl-hours__special-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.osl-hours__special-row .osl-hours__day { min-width: 160px; }

.osl-hours__special-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a6d00;
    margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Widget Avis Google (osl-rv-*) — inspiré du module GRM
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
.osl-rv-wrapper {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    margin: 40px 0;
    padding: 0;
}
.osl-rv-wrapper * { box-sizing: border-box; }

/* ── Thèmes ───────────────────────────────────────────────────────────────── */
.osl-rv-theme-dark {
    --osl-rv-bg:       #000000;
    --osl-rv-bg-card:  #1a1a1a;
    --osl-rv-text:     #ffffff;
    --osl-rv-text-2:   #b3b3b3;
    --osl-rv-border:   #333333;
    --osl-rv-star:     #fbbc04;
    --osl-rv-accent:   #4285f4;
}
.osl-rv-theme-light {
    --osl-rv-bg:       #ffffff;
    --osl-rv-bg-card:  #f8f9fa;
    --osl-rv-text:     #202124;
    --osl-rv-text-2:   #5f6368;
    --osl-rv-border:   #dadce0;
    --osl-rv-star:     #fbbc04;
    --osl-rv-accent:   #4285f4;
}
.osl-rv-wrapper {
    background: var(--osl-rv-bg);
    border-radius: 12px;
    padding: 30px;
}

/* ── Layout principal ─────────────────────────────────────────────────────── */
.osl-rv-main-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ── Badge EXCELLENT ──────────────────────────────────────────────────────── */
.osl-rv-rating-badge-left {
    background: var(--osl-rv-bg-card);
    border: 1px solid var(--osl-rv-border);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
}
.osl-rv-rating-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--osl-rv-text);
    margin-bottom: 15px;
}
.osl-rv-rating-stars { margin-bottom: 15px; }
.osl-rv-stars-wrapper {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}
.osl-rv-star-large  { font-size: 30px; }
.osl-rv-star        { font-size: 20px; display: inline-block; line-height: 1; }
.osl-rv-star-small  { font-size: 14px; }
.osl-rv-star-filled { color: var(--osl-rv-star); }
.osl-rv-star-empty  { color: var(--osl-rv-border); }

/* Demi-étoile : ★ orange clipée à 50% sur fond gris */
.osl-rv-star-half {
    position: relative;
    color: var(--osl-rv-border);
}
.osl-rv-star-half .osl-rv-star-bg {
    display: block;
    line-height: 1;
}
.osl-rv-star-half .osl-rv-star-fg {
    position: absolute;
    left: 0; top: 0;
    width: 50%;
    overflow: hidden;
    color: var(--osl-rv-star);
    display: block;
    line-height: 1;
    white-space: nowrap;
}

.osl-rv-rating-meta {
    font-size: 13px;
    color: var(--osl-rv-text-2);
    margin-bottom: 15px;
    line-height: 1.4;
}
.osl-rv-rating-meta strong {
    color: var(--osl-rv-text);
    display: block;
}
.osl-rv-rating-score {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--osl-rv-border);
}
.osl-rv-score-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--osl-rv-star);
}
.osl-rv-score-total {
    font-size: 16px;
    color: var(--osl-rv-text-2);
    margin-left: 2px;
}
.osl-rv-google-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    margin-top: 10px;
}

/* ── Zone avis ───────────────────────────────────────────────────────────── */
.osl-rv-reviews-wrapper {
    flex: 1;
    min-width: 0;
}

/* ── Slider ──────────────────────────────────────────────────────────────── */
.osl-rv-slider-container {
    overflow: hidden;
    position: relative;
    cursor: default;
}
.osl-rv-slider {
    display: flex !important;
    gap: 20px;
    will-change: transform;
    user-select: none;
}
.osl-rv-slider .osl-rv-review-card {
    flex: 0 0 380px;
    min-width: 380px;
    max-width: 380px;
}

/* ── Grille ──────────────────────────────────────────────────────────────── */
.osl-rv-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--osl-rv-columns, 3), 1fr);
    gap: 20px;
}

/* ── Cartes ──────────────────────────────────────────────────────────────── */
.osl-rv-review-card {
    background: var(--osl-rv-bg-card);
    border: 1px solid var(--osl-rv-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.osl-rv-review-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    border-color: var(--osl-rv-accent);
}
/* Pas de déplacement vertical dans le slider (évite le clipping du overflow:hidden) */
.osl-rv-grid .osl-rv-review-card:hover {
    transform: translateY(-4px);
}
.osl-rv-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.osl-rv-author-section {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.osl-rv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--osl-rv-border);
}
.osl-rv-avatar-placeholder {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border: none;
}
.osl-rv-author-details {
    flex: 1;
    min-width: 0;
}
.osl-rv-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--osl-rv-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.osl-rv-review-time {
    font-size: 13px;
    color: var(--osl-rv-text-2);
}
.osl-rv-google-icon {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.osl-rv-review-card:hover .osl-rv-google-icon { opacity: 1; }

.osl-rv-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.osl-rv-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--osl-rv-text);
    margin-bottom: 12px;
    flex-grow: 1;
    word-wrap: break-word;
}
.osl-rv-read-more {
    background: none;
    border: none;
    color: var(--osl-rv-accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 0 0;
    transition: opacity 0.2s;
    align-self: flex-start;
    font-family: inherit;
}
.osl-rv-read-more:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ── Réponse du propriétaire ─────────────────────────────────────────────── */
.osl-rv-reply {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(66,133,244,.06);
    border-left: 3px solid var(--osl-rv-accent);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--osl-rv-text-2);
}
.osl-rv-reply-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 12px;
    color: var(--osl-rv-accent);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Lien "voir tous les avis" ───────────────────────────────────────────── */
.osl-rv-see-all {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.osl-rv-see-all a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--osl-rv-accent);
    text-decoration: none;
    transition: opacity .2s;
}
.osl-rv-see-all a:hover { opacity: .7; text-decoration: underline; }

/* ── Mini badge ──────────────────────────────────────────────────────────── */
.osl-rv-mini-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--osl-rv-bg-card);
    border: 1px solid var(--osl-rv-border);
    border-radius: 12px;
    padding: 16px 20px;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.osl-rv-mini-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.osl-rv-mini-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}
.osl-rv-mini-score {
    font-size: 32px;
    font-weight: 700;
    color: var(--osl-rv-star);
    line-height: 1;
}
.osl-rv-mini-stars { display: flex; flex-direction: column; }
.osl-rv-mini-count {
    font-size: 13px;
    color: var(--osl-rv-text-2);
    font-weight: 500;
}
.osl-rv-mini-google { opacity: 0.7; margin-top: 4px; }

/* ── Message vide ────────────────────────────────────────────────────────── */
.osl-rv-no-reviews {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

/* ── Animations grille ───────────────────────────────────────────────────── */
.osl-rv-grid .osl-rv-review-card {
    animation: osl-rv-fade-in 0.5s ease-out backwards;
}
.osl-rv-grid .osl-rv-review-card:nth-child(1) { animation-delay: 0.1s; }
.osl-rv-grid .osl-rv-review-card:nth-child(2) { animation-delay: 0.2s; }
.osl-rv-grid .osl-rv-review-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes osl-rv-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .osl-rv-main-container { flex-direction: column; }
    .osl-rv-rating-badge-left { max-width: 100%; min-width: 100%; }
    .osl-rv-slider .osl-rv-review-card { flex: 0 0 320px; min-width: 320px; max-width: 320px; }
    .osl-rv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .osl-rv-wrapper { padding: 20px; }
    .osl-rv-main-container { gap: 20px; }
    .osl-rv-rating-badge-left { padding: 20px; }
    .osl-rv-slider .osl-rv-review-card { flex: 0 0 280px; min-width: 280px; max-width: 280px; }
    .osl-rv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .osl-rv-rating-label { font-size: 16px; }
    .osl-rv-star-large   { font-size: 26px; }
    .osl-rv-review-card  { padding: 18px; }
    .osl-rv-avatar       { width: 40px; height: 40px; }
    .osl-rv-mini-badge   { padding: 12px 16px; }
    .osl-rv-mini-score   { font-size: 28px; }
}

/* ── Badge statut horaires ───────────────────────────────────────────────── */
.osl-hours__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1;
}

.osl-hours__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.osl-hours__badge-next {
    font-weight: 400;
    opacity: 0.85;
}

/* Ouvert */
.osl-hours__badge--open {
    background: #e6f4ea;
    color: #1e7e34;
}
.osl-hours__badge--open .osl-hours__badge-dot {
    background: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, .2);
    animation: osl-pulse-green 2s infinite;
}

/* Ferme bientôt */
.osl-hours__badge--closing_soon {
    background: #fff3e0;
    color: #e65100;
}
.osl-hours__badge--closing_soon .osl-hours__badge-dot {
    background: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, .2);
    animation: osl-pulse-orange 2s infinite;
}

/* Ouvre bientôt */
.osl-hours__badge--open_soon {
    background: #e8f4fd;
    color: #0d6efd;
}
.osl-hours__badge--open_soon .osl-hours__badge-dot {
    background: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .2);
}

/* Fermé */
.osl-hours__badge--closed {
    background: #fde8e8;
    color: #c0392b;
}
.osl-hours__badge--closed .osl-hours__badge-dot {
    background: #dc3232;
}

@keyframes osl-pulse-green {
    0%, 100% { box-shadow: 0 0 0 3px rgba(40, 167, 69, .2); }
    50%       { box-shadow: 0 0 0 6px rgba(40, 167, 69, .0); }
}
@keyframes osl-pulse-orange {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 152, 0, .2); }
    50%       { box-shadow: 0 0 0 6px rgba(255, 152, 0, .0); }
}

/* ── Widget Carte du magasin (osl-store-map) ─────────────────────────────── */
.osl-store-map { display: flex; flex-direction: column; gap: 12px; }

.osl-store-map__wrap { position: relative; }

.osl-store-map__canvas {
    width: 100%;
    height: 400px;
    display: block;
    background: #e8eaed;
}

/* Placeholder éditeur */
.osl-store-map__canvas--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f4f8;
    border: 2px dashed #c5d0dc;
}
.osl-store-map__placeholder-icon { font-size: 40px; }
.osl-store-map__placeholder-text { font-size: 15px; font-weight: 600; color: #4a5568; }
.osl-store-map__placeholder-sub  { font-size: 12px; color: #90a0b0; }

/* Bouton itinéraire */
.osl-store-map__actions { display: flex; align-items: center; }
.osl-store-map__actions--above { margin-bottom: 0; }
.osl-store-map__actions--below { margin-top: 0; }
.osl-store-map__actions[style*="stretch"] { flex-direction: column; align-items: stretch; }

.osl-store-map__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity .2s, transform .2s;
    white-space: nowrap;
}
.osl-store-map__btn:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

/* Bouton flottant sur la carte */
.osl-store-map__overlay-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 10;
}
.osl-store-map__overlay-btn .osl-store-map__btn {
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
