/* ================================================================
   MAKARSKA GASTRO — Empfehlungs-Slider (mg-rec-*)
   ================================================================ */

.mg-rec-section {
    max-width: 1200px;
    margin: 52px auto 0;
    padding: 0 24px 8px;
    background: transparent;
}

/* Kopf: Wave-Glyphe + Titel + Subline, konsistent mit .mg-section-head */
.mg-rec-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.mg-rec-head-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--mg-gold, #BE9440);
    color: var(--mg-bord, #851B2F);
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(190, 148, 64, .12);
}

.mg-rec-head-text h2 {
    margin: 0;
    font-family: var(--font, 'Poppins', sans-serif);
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--mg-ink, #2A2024);
    line-height: 1.15;
    position: relative;
    padding-top: 20px;
}

.mg-rec-head-text h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 10px;
    background: var(--mg-wave-glyph) repeat-x 0 0 / 48px 10px;
}

@media (prefers-reduced-motion: no-preference) {
    .mg-rec-head-text h2::before {
        animation: mgGlyph 5s linear infinite;
    }
}

.mg-rec-head-text p {
    margin: 6px 0 0;
    color: var(--ink-mid, #6B6B6B);
    font-size: .88rem;
    line-height: 1.5;
    max-width: 640px;
}

/* ── Slider ── */
.mg-rec-slider {
    position: relative;
}

.mg-rec-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 4px 18px;
    scroll-padding-left: 0;
    align-items: flex-start;
}
.mg-rec-track::-webkit-scrollbar { display: none; }

/* ── Pfeile ── */
.mg-rec-nav {
    position: absolute;
    top: calc(50% - 30px);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--mg-gold, #BE9440);
    color: var(--mg-bord, #851B2F);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.mg-rec-nav-prev { left: -20px; }
.mg-rec-nav-next { right: -20px; }
.mg-rec-nav:hover {
    background: var(--mg-bord, #851B2F);
    border-color: var(--mg-bord, #851B2F);
    color: #fff;
}
.mg-rec-nav:disabled {
    opacity: .35;
    cursor: default;
}
.mg-rec-nav:disabled:hover {
    background: #fff;
    border-color: var(--mg-gold, #BE9440);
    color: var(--mg-bord, #851B2F);
}

/* ── Bild-Karte ── */
.mg-rec-card {
    flex: 0 0 240px;
    min-width: 240px;
    max-width: 240px;
    height: 320px; /* Gleiche Höhe wie Video */
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--mg-sand, #E8DCC0);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mg-rec-card:hover {
    transform: translateY(-4px);
    border-color: var(--mg-gold, #BE9440);
    box-shadow: 0 18px 30px -18px rgba(133, 27, 47, .45);
}

.mg-rec-card-media {
    display: block;
    height: 150px;
    overflow: hidden;
    background: var(--mg-cream, #F6EFE3);
    position: relative;
    flex-shrink: 0;
}
.mg-rec-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s;
}
.mg-rec-card:hover .mg-rec-card-media img {
    transform: scale(1.04);
}
.mg-rec-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mg-gold, #BE9440);
    font-size: 40px;
    background: linear-gradient(135deg, #FBF8F1, #EFE4CC);
}

.mg-rec-card-body {
    padding: 10px 14px 14px; /* Leicht angepasst für besseren Abstand unten */
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.mg-rec-card-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mg-rec-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mg-rec-card-title {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}
.mg-rec-card-title a {
    color: var(--mg-ink, #2A2024);
    text-decoration: none;
    transition: color .15s;
}
.mg-rec-card-title a:hover {
    color: var(--mg-bord, #851B2F);
}

.mg-rec-card-desc {
    margin: 0;
    font-size: .74rem;
    color: var(--ink-mid, #6B6B6B);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.mg-rec-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: .68rem;
    color: var(--ink-muted, #9A9A9A);
    margin-top: auto;
    flex-shrink: 0;
}

.mg-rec-card-place {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.mg-rec-card-place i { color: var(--mg-gold, #BE9440); font-size: .62rem; }

.mg-rec-card-badge {
    background: var(--mg-cream, #F6EFE3);
    color: var(--mg-bord, #851B2F);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .58rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Footer der Bild-Karte */
.mg-rec-card-footer {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Zentriert Preis und Button */
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--mg-sand, #E8DCC0);
    flex-shrink: 0;
}

.mg-rec-card-cta {
    color: var(--mg-bord, #851B2F);
    font-weight: 700;
    text-decoration: none;
    font-size: .68rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .15s, gap .15s;
}
.mg-rec-card-cta:hover {
    color: var(--mg-ink, #2A2024);
    gap: 8px;
}

.mg-rec-card-price {
    background: var(--mg-cream, #F6EFE3);
    color: var(--mg-bord, #851B2F);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: -.005em;
    white-space: nowrap;
}

/* ── Video-Karte (im Track) — gleiche Höhe wie Bildkarte ── */
.mg-rec-track .mg-video-card {
    flex: 0 0 150px;
    min-width: 150px;
    max-width: 150px;
    height: 320px; /* Gleiche Höhe wie Bild-Karte */
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--mg-sand, #E8DCC0);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mg-rec-track .mg-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--mg-gold, #BE9440);
    box-shadow: 0 18px 30px -18px rgba(133, 27, 47, .45);
}

.mg-rec-track .mg-video-card-media {
    height: 195px; /* Etwas größer für besseres Video-Cover */
    flex-shrink: 0;
    aspect-ratio: auto;
    position: relative;
    overflow: hidden;
    background: #000;
    display: block;
    line-height: 0;
    font-size: 0;
}
.mg-rec-track .mg-video-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s;
}
.mg-rec-track .mg-video-card:hover .mg-video-card-media img {
    transform: scale(1.04);
}
.mg-rec-track .mg-video-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(107,20,37,.35) 0%, rgba(107,20,37,.05) 50%, rgba(107,20,37,0) 100%);
    pointer-events: none;
}
.mg-rec-track .mg-video-play-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--mg-bord, #851B2F);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: transform .25s, background .25s;
}
.mg-rec-track .mg-video-play-icon svg { width: 14px; height: 14px; margin-left: 2px; }
.mg-rec-track .mg-video-card:hover .mg-video-play-icon {
    transform: scale(1.1);
    background: #fff;
}

/* Footer der Videokarte */
.mg-rec-track .mg-video-card-footer {
    padding: 12px 10px; /* Mehr Abstand oben */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    background: var(--mg-bord, #851B2F);
    color: #fff;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
}

.mg-rec-track .mg-video-card-restaurant {
    font-family: var(--font, 'Poppins', sans-serif);
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.005em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    flex-shrink: 0;
}

/* Beschreibung */
.mg-rec-track .mg-video-card-desc {
    font-family: var(--font, 'Poppins', sans-serif);
    font-size: .70rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
    margin: 2px 0;
}

.mg-rec-track .mg-video-card-city {
    margin-top: auto;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .mg-rec-nav { display: none; }
    .mg-rec-card {
        flex: 0 0 78%;
        min-width: 78%;
        max-width: 78%;
        height: 300px;
    }
    .mg-rec-track .mg-video-card {
        flex: 0 0 130px;
        min-width: 130px;
        max-width: 130px;
        height: 300px; /* Angepasst für Mobile */
    }
    .mg-rec-card-media {
        height: 140px;
    }
    .mg-rec-track .mg-video-card-media {
        height: 180px;
    }
}
@media (max-width: 480px) {
    .mg-rec-card {
        flex: 0 0 86%;
        min-width: 86%;
        max-width: 86%;
        height: 300px;
    }
    .mg-rec-card-media {
        height: 135px;
    }
}

/* ── Neue Features für Empfehlungen ── */

/* Wetter Banner */
.mg-rec-weather-banner {
    display: flex; justify-content: space-between; align-items: center;
    background: #2c3e50; color: #fff; padding: 12px 20px; border-radius: 8px;
    margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.mg-rec-weather-content { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; }
.mg-rec-weather-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; opacity: .7; }
.mg-rec-weather-close:hover { opacity: 1; }

/* Begrüßung & Map Buttons */
.mg-rec-greeting {
    font-size: .85rem; font-weight: 700; color: var(--mg-gold, #BE9440);
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px;
}
.mg-rec-actions { display: flex; gap: 10px; }
.mg-rec-btn-action {
    background: #fff; border: 1px solid var(--mg-sand, #E8DCC0); border-radius: 999px;
    padding: 8px 16px; font-weight: 600; font-size: .8rem; color: var(--mg-ink);
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: all .2s;
}
.mg-rec-btn-action:hover { background: var(--mg-bord); color: #fff; border-color: var(--mg-bord); }
.mg-rec-btn-action i { color: var(--mg-gold); }
.mg-rec-btn-action:hover i { color: #fff; }

/* Open Badges auf Karten */
.mg-rec-badge {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    padding: 4px 10px; border-radius: 4px; font-size: .65rem; font-weight: 700; text-transform: uppercase;
}
.mg-rec-badge--open { background: #2D5A3D; color: #fff; }
.mg-rec-badge--closing { background: #f39c12; color: #fff; }
.mg-rec-badge--closed { background: #7f8c8d; color: #fff; }

/* Map Modal */
.mg-rec-map-modal {
    position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center;
}
.mg-rec-map-modal.is-open { display: flex; }
.mg-rec-map-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.mg-rec-map-box {
    position: relative; background: #fff; width: 90%; max-width: 900px; height: 80vh;
    border-radius: 12px; overflow: hidden; z-index: 1; box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
#mgRecMapContainer { width: 100%; height: 100%; }
.mg-rec-map-close {
    position: absolute; top: 12px; right: 12px; z-index: 1000; width: 40px; height: 40px;
    background: #fff; border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #333;
}

/* ── Wetter Filter Chips ── */
.mg-rec-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 14px;
    scrollbar-width: none;
}
.mg-rec-filters::-webkit-scrollbar { display: none; }

.mg-rec-filter-btn {
    background: #fff;
    border: 1px solid var(--mg-sand, #E8DCC0);
    color: var(--mg-ink);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.mg-rec-filter-btn:hover {
    border-color: var(--mg-gold, #BE9440);
}
.mg-rec-filter-btn.active {
    background: var(--mg-bord, #851B2F);
    color: #fff;
    border-color: var(--mg-bord, #851B2F);
}

/* ── Live Puls Punkt für "Jetzt offen" ── */
.mg-rec-pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: mgRecPulse 2s infinite;
    vertical-align: middle;
}
@keyframes mgRecPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Begrüßungs-Text */
.mg-rec-greeting {
    font-size: .95rem;
    color: var(--mg-bord, #851B2F);
    margin-bottom: 4px;
}

/* ── Wetter Filter Chips ── */
.mg-rec-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 14px;
    scrollbar-width: none;
}
.mg-rec-filters::-webkit-scrollbar { display: none; }

.mg-rec-filter-btn {
    background: #fff;
    border: 1px solid var(--mg-sand, #E8DCC0);
    color: var(--mg-ink, #2A2024);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.mg-rec-filter-btn:hover {
    border-color: var(--mg-gold, #BE9440);
}
.mg-rec-filter-btn.active {
    background: var(--mg-bord, #851B2F);
    color: #fff;
    border-color: var(--mg-bord, #851B2F);
}

/* ── Live-Karte (Morgen/Mittag/Abend) ── */
.mg-rec-live-card {
    position: relative;
    box-shadow: 0 4px 15px rgba(190, 148, 64, 0.15);
}
.mg-rec-live-card:hover {
    box-shadow: 0 8px 25px rgba(190, 148, 64, 0.25) !important;
}
.mg-rec-live-card .mg-rec-card-meta {
    color: #2D5A3D; /* Grüne Textfarbe für die Zeiten */
    font-weight: 700;
}
.mg-rec-live-card .mg-rec-card-place i {
    color: #2D5A3D;
}

/* ── Goldene Live-Karte Begrüßung ── */
.mg-rec-live-greeting {
    padding: 14px 16px;
    background: #FBF8F1;
    border-bottom: 1px solid var(--mg-sand, #E8DCC0);
    font-size: .75rem;
    color: var(--mg-gold, #BE9440);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.3;
}

/* ── Mobile Feinschliff (schmalere Karten) ── */
@media (max-width: 768px) {
    .mg-rec-card, .mg-rec-track .mg-video-card {
        flex: 0 0 75% !important; /* Schmaler für besseren Swipe-Effekt */
        min-width: 75% !important;
        max-width: 75% !important;
    }
}
@media (max-width: 480px) {
    .mg-rec-card, .mg-rec-track .mg-video-card {
        flex: 0 0 82% !important; 
        min-width: 82% !important;
        max-width: 82% !important;
    }
}

/* =========================================================
   1. MOBILE: YouTube Shorts schmaler (wie Desktop)
   ========================================================= */
@media (max-width: 768px) {
    /* Nur die Video-Karten schmaler machen */
    .mg-rec-track .mg-video-card {
        flex: 0 0 130px !important;
        min-width: 130px !important;
        max-width: 130px !important;
    }
    /* Bild-Karten bleiben wie sie sind, damit sie den Platz füllen */
    .mg-rec-card {
        flex: 0 0 75% !important;
        min-width: 75% !important;
        max-width: 75% !important;
    }
}

/* =========================================================
   2. DESKTOP: Die erste Karte (Live-Empfehlung) 
      exakt wie im Mobile-Screenshot gestalten
   ========================================================= */
@media (min-width: 769px) {
    /* Die goldene Karte bekommt das exakte Layout des Screenshots */
    .mg-rec-live-card {
        display: flex !important;
        flex-direction: column !important;
        height: 320px !important; /* Höhe der anderen Karten beibehalten */
        padding: 0 !important;
        overflow: hidden !important;
        border: 2px solid var(--mg-gold, #BE9440) !important;
    }

    /* Der Begrüßungstext oben */
    .mg-rec-live-greeting {
        padding: 14px 16px !important;
        background: #FBF8F1 !important;
        border-bottom: 1px solid var(--mg-sand, #E8DCC0) !important;
        font-size: 0.75rem !important;
        color: var(--mg-gold, #BE9440) !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        line-height: 1.3 !important;
    }

    /* Das Feature-Bild darunter */
    .mg-rec-live-card .mg-rec-card-media {
        height: 110px !important; /* Feste Höhe für das Bild */
        flex-shrink: 0 !important;
    }

    /* Der untere Bereich (Body) */
    .mg-rec-live-card .mg-rec-card-body {
        padding: 10px 14px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    /* Der Footer (Zeiten & Button) ganz nach unten */
    .mg-rec-live-card .mg-rec-card-footer {
        margin-top: auto !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 8px !important;
        border-top: 1px solid var(--mg-sand, #E8DCC0) !important;
    }
}

/* =========================================================
   WETTER IM HEADER (Goldener Kreis + Temperatur + Datum)
   ========================================================= */

/* Der Container für den Header, damit Bild und Text nebeneinander stehen */
.mg-rec-head-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Das neue Wetter-Widget (ersetzt das reine Sonnen-Icon) */
.mg-rec-weather-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    text-align: center;
}

/* Der goldene Kreis mit dem Wetter-Icon */
.mg-rec-weather-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--mg-gold, #BE9440);
    color: var(--mg-bord, #851B2F);
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(190, 148, 64, .12);
    margin-bottom: 6px;
}
.mg-rec-weather-icon svg {
    width: 28px;
    height: 28px;
}

/* Die Temperatur in unserem Rot */
.mg-rec-weather-temp {
    font-family: var(--font, 'Poppins', sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mg-bord, #851B2F);
    line-height: 1.1;
    margin-bottom: 2px;
}

/* Das Wort "Heute" / "Danas" */
.mg-rec-weather-today {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted, #9A9A9A);
    line-height: 1;
    margin-bottom: 2px;
}

/* Das aktuelle Datum (z.B. 21.10.) */
.mg-rec-weather-date {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ink-mid, #6B6B6B);
    line-height: 1;
}

/* Mobile-Anpassung, damit der Header nicht zu breit wird */
@media (max-width: 768px) {
    .mg-rec-head-main {
        gap: 12px;
    }
    .mg-rec-weather-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 4px;
    }
    .mg-rec-weather-icon svg {
        width: 24px;
        height: 24px;
    }
    .mg-rec-weather-temp {
        font-size: 0.95rem;
    }
}

/* =========================================================
   WETTER IM HEADER (Goldener Kreis + Temperatur + Datum)
   ========================================================= */

/* Der Container für den Header, damit Bild und Text nebeneinander stehen */
.mg-rec-head-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Das neue Wetter-Widget (ersetzt das reine Sonnen-Icon) */
.mg-rec-weather-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    text-align: center;
}

/* Der goldene Kreis mit dem Wetter-Icon */
.mg-rec-weather-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid var(--mg-gold, #BE9440);
    color: var(--mg-bord, #851B2F);
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(190, 148, 64, .12);
    margin-bottom: 6px;
}
.mg-rec-weather-icon svg {
    width: 28px;
    height: 28px;
}

/* Die Temperatur in unserem Rot */
.mg-rec-weather-temp {
    font-family: var(--font, 'Poppins', sans-serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--mg-bord, #851B2F);
    line-height: 1.1;
    margin-bottom: 2px;
}

/* Das Wort "Heute" / "Danas" */
.mg-rec-weather-today {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted, #9A9A9A);
    line-height: 1;
    margin-bottom: 2px;
}

/* Das aktuelle Datum (z.B. 21.10.) */
.mg-rec-weather-date {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ink-mid, #6B6B6B);
    line-height: 1;
}

/* Mobile-Anpassung, damit der Header nicht zu breit wird */
@media (max-width: 768px) {
    .mg-rec-head-main {
        gap: 12px;
    }
    .mg-rec-weather-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 4px;
    }
    .mg-rec-weather-icon svg {
        width: 24px;
        height: 24px;
    }
    .mg-rec-weather-temp {
        font-size: 0.95rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   SMART FEATURES – Gastro Recommendations
   ═══════════════════════════════════════════════════════════ */

/* Feature 1: Filter-Chip "Brzo i ukusno" */
.mg-rec-filter-btn--fast {
    background: linear-gradient(135deg, #BE9440, #D4AF61);
    color: #fff;
    border-color: #BE9440;
}
.mg-rec-filter-btn--fast:hover,
.mg-rec-filter-btn--fast.active {
    background: linear-gradient(135deg, #A67C2E, #BE9440);
    color: #fff;
    box-shadow: 0 2px 8px rgba(190, 148, 64, 0.4);
}
.mg-rec-filter-btn--fast i {
    margin-right: 4px;
    font-size: 0.9em;
}

/* Feature 2 & 3: Smart-Badges (Local Secret / Best Value / Fast) */
/* Wichtig: innerhalb des Media-Containers positioniert, damit sie pro Karte
   korrekt mitwandern und nicht über den Slider hinaus sichtbar bleiben. */
.mg-rec-card-media,
.mg-video-card-media {
    position: relative;
}

.mg-rec-smart-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 4;
    pointer-events: none;
}
.mg-rec-badge-smart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: auto;
    white-space: nowrap;
    backdrop-filter: blur(2px);
}
.mg-rec-badge-smart--local {
    background: linear-gradient(135deg, #BE9440, #D4AF61);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
}
.mg-rec-badge-smart--value {
    background: linear-gradient(135deg, #2D5A3D, #3E7A52);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
}
.mg-rec-badge-smart--fast {
    background: linear-gradient(135deg, #8B2E4A, #A8435F);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 4px 8px;
}
.mg-rec-badge-smart i {
    font-size: 0.95em;
}

/* "Danas preporučujemo": Desktop im Header, Mobile pro Card */
.mg-rec-weather-whisper {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #5a4a2a;
    background: linear-gradient(90deg, rgba(190,148,64,0.12), rgba(190,148,64,0.03));
    border-left: 3px solid #BE9440;
    border-radius: 6px;
    line-height: 1.4;
    display: none;
}
.mg-rec-weather-whisper:not(:empty) {
    display: block;
}
.mg-rec-weather-whisper i {
    color: #BE9440;
    margin-right: 4px;
}
.mg-rec-weather-whisper a {
    color: #851B2F;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Mobile-Variante pro Card: nur auf kleinen Screens sichtbar */
.mg-rec-weather-whisper--mobile {
    display: none;
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 4;
    padding: 4px 10px;
    font-size: 11.5px;
    background: rgba(255,255,255,0.92);
    border-left: 3px solid #BE9440;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: auto;
}
.mg-rec-weather-whisper--mobile i {
    color: #BE9440;
    margin-right: 3px;
}
.mg-rec-weather-whisper--mobile a {
    color: #851B2F;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 768px) {
    .mg-rec-weather-whisper:not(.mg-rec-weather-whisper--mobile) {
        display: none !important;
    }
    .mg-rec-weather-whisper--mobile {
        display: block;
    }
    .mg-rec-smart-badges {
        top: 6px;
        left: 6px;
        right: 6px;
    }
    .mg-rec-badge-smart {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Feature 5: Sonnenuntergangs-Radar */
.mg-rec-sunset-radar {
    margin-top: 6px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #c0392b, #e67e22, #f1c40f);
    border-radius: 999px;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(230,126,34,0.3);
    width: fit-content;
}
.mg-rec-sunset-radar i {
    animation: mgRecSunsetPulse 1.8s ease-in-out infinite;
}
@keyframes mgRecSunsetPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.15); }
}
/* Responsive Anpassungen */
@media (max-width: 768px) {
    .mg-rec-smart-badges {
        top: 44px;
        left: 6px;
        right: 6px;
    }
    .mg-rec-badge-smart {
        font-size: 10px;
        padding: 3px 8px;
    }
    .mg-rec-weather-whisper {
        font-size: 12px;
        padding: 5px 10px;
    }
    .mg-rec-sunset-radar {
        font-size: 11.5px;
        padding: 4px 10px;
    }
}

/* Offen/Geschlossen-Badge rechts unten im Bild (nicht mehr auf der Karte) */
.mg-rec-card-media,
.mg-video-card-media {
    position: relative;
    overflow: hidden;
}

.mg-rec-badge--on-media {
    position: absolute;
    right: 8px;
    bottom: 8px;
    top: auto;
    left: auto;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
    backdrop-filter: blur(2px);
}

/* Auf Mobile etwas kleiner */
@media (max-width: 768px) {
    .mg-rec-badge--on-media {
        right: 6px;
        bottom: 6px;
        font-size: 10.5px;
        padding: 3px 8px;
    }
}

/* ═══════════════════════════════════════════════════════════
   KORREKTUR: Preis-Tipp im Bild unten (Mobile)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* 1. Der Bild-Container muss der Anker sein */
    .mg-rec-live-card .mg-rec-card-media {
        position: relative !important;
    }

    /* 2. Den Preis-Tipp aus dem normalen Fluss nehmen und unten ins Bild setzen */
    .mg-rec-live-card .mg-rec-live-price-tip {
        position: absolute !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        top: auto !important;
        margin: 0 !important;
        z-index: 10;

        /* Weißer Hintergrund, wie gewünscht */
        background: #ffffff !important;
        border: none !important;
        border-radius: 6px !important;
        padding: 6px 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;

        /* Layout innerhalb des Kästchens */
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;

        font-size: 12px !important;
        color: #5a4a2a !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    /* Text im Kästchen darf umbrechen */
    .mg-rec-live-card .mg-rec-live-price-tip > span {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }

    .mg-rec-live-card .mg-rec-live-price-tip strong {
        color: #851B2F !important;
    }

    /* 3. Der Geöffnet-Badge muss nach oben rechts wandern, 
          damit er nicht mit dem Preis-Tipp kollidiert */
    .mg-rec-live-card .mg-rec-badge--on-media {
        top: 8px !important;
        bottom: auto !important;
        right: 8px !important;
    }
}

/* Auf sehr kleinen Bildschirmen noch etwas kompakter */
@media (max-width: 480px) {
    .mg-rec-live-card .mg-rec-live-price-tip {
        left: 6px !important;
        right: 6px !important;
        bottom: 6px !important;
        padding: 5px 8px !important;
        font-size: 11.5px !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   HEADER WETTER ICON (SVG) – sorgt dafür, dass das Icon groß 
   und golden ist, wenn die echten Daten geladen sind.
   ───────────────────────────────────────────────────────────── */
#mgRecWeatherIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Größe des Icons */
    color: #BE9440;  /* Goldene Farbe */
    width: 50px;
    height: 50px;
}

/* ─────────────────────────────────────────────────────────────
   DEIN PREIS-TIPP CODE (Aus der .txt-Datei)
   ───────────────────────────────────────────────────────────── */
.mg-rec-live-price-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin: 6px 0 4px;
    background: linear-gradient(90deg, rgba(190,148,64,0.12), rgba(190,148,64,0.03));
    border-left: 3px solid #BE9440;
    border-radius: 6px;
    font-size: 13px;
    color: #5a4a2a;
    line-height: 1.35;
}
.mg-rec-live-price-tip > i {
    color: #BE9440;
    flex-shrink: 0;
}
.mg-rec-live-price-tip strong {
    color: #851B2F;
}

@media (max-width: 768px) {
    .mg-rec-live-card .mg-rec-card-media {
        position: relative !important;
    }
    .mg-rec-live-card .mg-rec-live-price-tip {
        position: absolute !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important; 
        top: auto !important;
        margin: 0 !important;
        z-index: 10;
        background: #ffffff !important;
        border: none !important;
        border-radius: 6px !important;
        padding: 6px 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        font-size: 12.5px !important;
        white-space: normal !important;
    }
    .mg-rec-live-card .mg-rec-live-price-tip > span {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        word-break: break-word !important;
    }
    .mg-rec-live-card .mg-rec-badge--on-media {
        top: 8px !important;
        bottom: auto !important;
        right: 8px !important;
    }
}

/* Wetter Widget im Header (Icon + Temperatur) */
#mgRecWeatherIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem; 
    color: #BE9440;
    width: 55px;
    height: 55px;
    margin-bottom: 5px;
}
#mgRecWeatherIcon i {
    /* Sorgt dafür, dass das FontAwesome Icon exakt gerade sitzt */
    line-height: 1;
}

/* Feature: Sonnenaufgangs-Radar (Coffee Time) */
.mg-rec-sunrise-radar {
    margin-top: 6px;
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #d4a017, #f39c12, #f1c40f);
    border-radius: 999px;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(243,156,18,0.35);
    width: fit-content;
}
.mg-rec-sunrise-radar i {
    animation: mgRecSunrisePulse 2.2s ease-in-out infinite;
}
@keyframes mgRecSunrisePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.75; transform: scale(1.12); }
}
@media (max-width: 480px) {
    .mg-rec-sunrise-radar {
        font-size: 11.5px;
        padding: 4px 10px;
    }
}