/* public/assets/css/modules/maps.css */

/* --- 1. TERMINÁL MAPA (Hala) --- */
.section-terminal-map {
    background: white;
    position: relative;
    padding-bottom: 0;
    display: block;
    width: 100%;
}

.section-terminal-map--home {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 80% at 50% -20%, rgba(0, 155, 58, 0.09), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
}

.section-terminal-map--home::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 68%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 68%);
    pointer-events: none;
}

.terminal-map-stage {
    position: relative;
    z-index: 1;
}

.section-terminal-map--home .terminal-widget-wrapper {
    box-shadow:
        0 0 0 1px rgba(0, 155, 58, 0.11),
        0 34px 72px -40px rgba(15, 23, 42, 0.38);
}

/* KONTEJNER (RÁMEČEK) */
.terminal-widget-wrapper {
    position: relative;
    border-radius: 24px;
    
    /* Barva pozadí pod mapou - bílá, aby splynula s vaší mapou */
    background: #ffffff; 
    
    /* Pevná výška */
    height: 550px; 
    width: 100%;
    
    overflow: hidden;
    /* Jemný technický rámeček */
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

/* SAMOTNÝ OBRÁZEK MAPY */
.terminal-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* KLÍČOVÁ ZMĚNA: 'contain' zobrazí VŽDY celou mapu bez ořezu */
    object-fit: contain !important; 
    object-position: center;
    
    transition: opacity 0.5s ease;
    z-index: 0;
}

/* Plovoucí karta vlevo */
.terminal-float-card {
    position: absolute; top: 30px; left: 30px;
    background: rgba(255,255,255,0.95); padding: 25px;
    border-radius: 18px; max-width: 320px; z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

.terminal-float-card--plan {
    max-width: 340px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.terminal-float-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.2rem;
    background: linear-gradient(145deg, #00a843, var(--fl-green-dark));
    box-shadow: 0 10px 22px -12px rgba(0, 155, 58, 0.65);
}

.terminal-float-card-lead {
    line-height: 1.45;
}

/* Ovládání vpravo dole */
.terminal-controls {
    position: absolute; bottom: 30px; right: 30px;
    display: flex; flex-direction: column; gap: 10px; z-index: 10;
}
.terminal-btn-icon {
    width: 50px; height: 50px; background: white; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; cursor: pointer; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* Odkazy pod mapou */
.terminal-links-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    position: relative; z-index: 20; padding: 0 30px;
    margin-top: -60px;
}
.terminal-link-card {
    background: white; padding: 20px; border-radius: 16px;
    display: flex; align-items: center; text-decoration: none; color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s;
    border: 1px solid #f1f5f9;
}
.terminal-link-card:hover { transform: translateY(-5px); border-bottom: 3px solid var(--fl-green-primary); }
.tl-icon {
    width: 45px; height: 45px; background: #f1f5f9; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-right: 15px;
}

/* --- 2. GOOGLE MAPA (Spodní) --- */
.section-location-map {
    position: relative;
    width: 100%;
    padding: 110px 0 120px;
    background:
        radial-gradient(circle at top left, rgba(0, 155, 58, 0.1), transparent 35%),
        linear-gradient(180deg, #f8fafc 0%, #eef7f1 52%, #f8fafc 100%);
    overflow: hidden;
}

.section-location-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(15, 23, 42, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 100%);
    pointer-events: none;
}

.location-map-shell {
    position: relative;
    z-index: 1;
}

.location-map-intro {
    max-width: none;
    margin-bottom: 34px;
}

.location-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 155, 58, 0.14);
    color: var(--fl-green-primary);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.4);
}

.location-map-title {
    color: var(--fl-heading, #3C3939);
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.location-map-copy {
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .location-map-copy {
        white-space: nowrap;
    }
}

.location-map-stage {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: #dbe5dc;
    box-shadow: 0 36px 80px -42px rgba(15, 23, 42, 0.45);
}

.location-map-container {
    width: 100%;
    height: clamp(700px, 62vw, 760px);
    background: #eef2f6;
    position: relative;
    overflow: hidden;
    --pin-x: 68%;
    --pin-y: 46%;
}

.location-map-tiles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #e7eee9;
}

.location-map-tiles img {
    position: absolute;
    display: block;
    width: 256px;
    height: 256px;
    max-width: none;
}

.location-map-pin {
    position: absolute;
    left: var(--pin-x);
    top: var(--pin-y);
    z-index: 2;
    transform: translate(-50%, -100%);
    color: #009b3a;
    font-size: 2.4rem;
    line-height: 1;
    filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.28));
    pointer-events: none;
}

.location-map-credit {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #334155;
    font-size: 0.72rem;
    text-decoration: none;
}

.location-map-iframe {
    width: 122%;
    height: 100%;
    border: 0;
    filter: saturate(0.9) contrast(1.02);
    display: block;
    /* Mírný posun: Florenc ve viditelné části vedle karty */
    margin-left: -14%;
    max-width: none;
}

.location-info-overlay {
    position: absolute;
    top: 34px;
    left: 34px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 28px;
    border-radius: 28px;
    max-width: 390px;
    width: calc(100% - 68px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px -36px rgba(15, 23, 42, 0.55);
}

.location-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: rgba(0, 155, 58, 0.1);
    color: var(--fl-green-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.location-access-list {
    display: grid;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.location-access-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.location-access-item i {
    color: var(--fl-green-primary);
    font-size: 1rem;
    margin-top: 1px;
}

.location-cta-primary,
.location-cta-secondary {
    border-radius: 16px;
    padding: 14px 18px;
}

/* --- 3. ANIMACE RECENZÍ --- */
.reviews-marquee-mask {
    overflow: hidden; width: 100%; position: relative;
    margin-top: 18px; padding: 14px 0 4px; border-top: 1px solid rgba(226, 232, 240, 0.9);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.reviews-track {
    display: flex; gap: 15px; width: max-content;
    animation: scrollInfinite 40s linear infinite;
}
.reviews-marquee-mask:hover .reviews-track { animation-play-state: paused; }
@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.review-chip {
    background: rgba(248, 250, 252, 0.95); border: 1px solid #e2e8f0; padding: 9px 12px;
    border-radius: 14px; display: flex; align-items: center; gap: 8px;
    min-width: 210px; box-shadow: 0 12px 30px -26px rgba(15, 23, 42, 0.4);
}
.review-avatar {
    width: 30px; height: 30px; background: #FFC107; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; flex-shrink: 0;
}
.stars-row { color: #FFC107; font-size: 0.7rem; margin-bottom: 2px; }
.review-content { font-size: 0.75rem; line-height: 1.2; color: #334155; }

@media (max-width: 991px) {
    .terminal-widget-wrapper { height: 400px; }
    .section-terminal-map--home .terminal-float-card {
        top: auto;
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        padding: 18px 20px;
    }
    .section-terminal-map--home .terminal-float-card-lead {
        font-size: 0.8rem;
    }
    .terminal-links-grid { grid-template-columns: 1fr; margin-top: 20px; padding: 0; }
    .section-location-map {
        padding: 80px 0 90px;
    }
    .location-map-intro {
        margin-bottom: 26px;
    }
    .location-map-stage {
        border-radius: 26px;
    }
    .location-map-container {
        height: 420px;
        --pin-x: 50%;
        --pin-y: 46%;
    }
    .location-map-iframe {
        width: 100%;
        margin-left: 0;
    }
    .location-info-overlay {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    }
}

@media (max-width: 576px) {
    .section-location-map {
        padding: 68px 0 74px;
    }
    .location-kicker {
        width: 100%;
        justify-content: center;
    }
    .location-map-title {
        font-size: 2rem;
    }
    .location-map-copy {
        font-size: 0.98rem;
        line-height: 1.75;
    }
    .location-map-stage {
        border-radius: 22px;
    }
    .location-info-overlay {
        padding: 22px 18px;
    }
    .location-access-item {
        font-size: 0.86rem;
    }
    .review-chip {
        min-width: 188px;
    }
}
.location-map-iframe[hidden] { display: none !important; }
