/* ═══════════════════════════════════════════════════════════════
   preporuke.css
   Rote Preis-Bubble auf Feature-Bildern der Restaurant-Listings.
   Exakt wie im index.php-Empfehlungsslider (gastro_preporuke.php).
   Kein Inline-CSS in restorani.php – alles hier zentral.
   ═══════════════════════════════════════════════════════════════ */

/* Container: überlagert das komplette Feature-Bild */
.mg-pp {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

/* Kleiner runder Chip oben rechts (€ oder i) */
.mg-pp-chip {
    pointer-events: auto;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #851B2F;
    font-size: .78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    cursor: pointer;
    line-height: 1;
    transition: transform .15s ease, background .15s ease;
}

.mg-pp-chip:hover,
.mg-pp-chip:focus {
    transform: scale(1.08);
    background: #fff;
    outline: none;
}

/* Rote Bubble mit Preis-Index-Zeilen */
.mg-pp-bubble {
    box-shadow: 0 4px 14px rgba(74, 16, 32, .35);
    border: 1px solid rgba(190, 148, 64, .55);
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(133, 27, 47, .95);
    color: #fff;
    font-size: .68rem;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

/* Sichtbar bei Hover, Fokus, is-open oder automatischem Peek */
.mg-pp-chip:hover ~ .mg-pp-bubble,
.mg-pp-chip:focus ~ .mg-pp-bubble,
.mg-pp.is-open .mg-pp-bubble,
.mg-pp.is-peek .mg-pp-bubble {
    opacity: 1;
    transform: none;
}

/* Preiszeile: Label links, Preis rechts */
.mg-pp-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 1.5px 0;
}

.mg-pp-row span {
    color: rgba(255, 255, 255, .88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mg-pp-row b {
    font-weight: 700;
    color: #F2D78C;
    white-space: nowrap;
}

/* Sterne-/Feature-Zeile */
.mg-pp-rate {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, .3);
    color: #F2D78C;
    font-weight: 600;
}

.mg-pp-ft {
    max-height: 1.5em;
    overflow: hidden;
    gap: 0 8px;
    font-weight: 600;
    color: #F2D78C;
}

.mg-pp-ft span::before {
    content: '✓ ';
    color: #7ED3A0;
}

/* Kurzer Gastkommentar */
.mg-pp-cm {
    margin-top: 3px;
    font-style: italic;
    color: rgba(255, 255, 255, .85);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating-Zeile außerhalb der Bubble (unter dem Titel) */
.mg-rec-cc-rate {
    margin-top: 2px;
    font-size: .72rem;
    color: #6B6B6B;
    line-height: 1.2;
}

.mg-rec-cc-rate strong {
    color: #2A2024;
    font-weight: 700;
}

.mg-rec-cc-star {
    color: #BE9440;
}

/* ─── Mobile: etwas kleiner, aber gleiche Optik ─── */
@media (max-width: 768px) {
    .mg-pp-bubble {
        font-size: .64rem;
        padding: 6px 8px;
    }
    .mg-pp-chip {
        width: 24px;
        height: 24px;
        font-size: .72rem;
        top: 7px;
        right: 7px;
    }
}

/* ─── Dark Mode ─── */
@media (prefers-color-scheme: dark) {
    .mg-pp-bubble {
        background: rgba(133, 27, 47, .97);
        border-color: rgba(190, 148, 64, .45);
    }
    .mg-pp-chip {
        background: rgba(255, 255, 255, .92);
        color: #851B2F;
    }
}

/* ─── Reduced Motion: keine Transform-Animation ─── */
@media (prefers-reduced-motion: reduce) {
    .mg-pp-bubble,
    .mg-pp-chip {
        transition: none;
    }
}