/* ── Local SEO GMB Map Pro – Frontend ─────────────────────────────── */

/*
 * .lsgmb-wrapper gebruikt overflow:visible zodat de schaduw volledig
 * zichtbaar blijft en er geen wit stukje onderaan verschijnt.
 * De border-radius wordt via clip-path op de kaart zelf gezet.
 */
.lsgmb-wrapper {
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.14);
    /* Geen losse hoogte hier – de kaartdiv bepaalt de hoogte */
}

/* ── Kaart: desktop standaard 420px, mobiel 300px ───────────────── */
#lsgmb-map {
    width: 100%;
    height: 420px;   /* desktop */
    display: block;
    min-height: 0;   /* reset browser-defaults */
}

@media (max-width: 600px) {
    #lsgmb-map {
        height: 300px;  /* mobiel */
    }
}

/* ── Info Panel ─────────────────────────── */
.lsgmb-info-panel {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    padding: 0;
    overflow: hidden;
    overflow-y: auto;
    max-height: calc(100% - 32px); /* nooit groter dan de kaart zelf */
    transition: opacity .3s ease, transform .3s ease;
    z-index: 9;
}

.lsgmb-info-panel.lsgmb-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.lsgmb-info-panel.lsgmb-visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Close button */
.lsgmb-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: background .2s;
    line-height: 1;
}
.lsgmb-close:hover { background: #f1f1f1; }

/* Loader */
.lsgmb-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 28px 0;
}
.lsgmb-loader span {
    width: 10px;
    height: 10px;
    background: #4285F4;
    border-radius: 50%;
    animation: lsgmbBounce 1.2s infinite ease-in-out;
}
.lsgmb-loader span:nth-child(1) { animation-delay: 0s; }
.lsgmb-loader span:nth-child(2) { animation-delay: .18s; }
.lsgmb-loader span:nth-child(3) { animation-delay: .36s; }

@keyframes lsgmbBounce {
    0%,80%,100% { transform: scale(0); }
    40%          { transform: scale(1); }
}

/* ── Card Content ───────────────────────── */
.lsgmb-photo-strip {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.lsgmb-card-body {
    padding: 14px 16px 16px;
}

.lsgmb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.lsgmb-biz-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.lsgmb-rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #FFF8E1;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    color: #F57F17;
    white-space: nowrap;
    flex-shrink: 0;
}

.lsgmb-stars { color: #FFB300; font-size: 11px; letter-spacing: 1px; }
.lsgmb-review-count { font-size: 11px; color: #777; font-weight: 400; margin-left: 2px; }

.lsgmb-address {
    font-size: 12px;
    color: #666;
    margin: 4px 0 8px;
    display: flex;
    gap: 5px;
    align-items: flex-start;
}

.lsgmb-address svg { flex-shrink:0; margin-top:2px; }

.lsgmb-meta-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.lsgmb-meta-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    background: #F5F5F5;
    border-radius: 20px;
    padding: 3px 10px;
    color: #444;
    text-decoration: none;
}

.lsgmb-meta-chip.open  { background: #E8F5E9; color: #2E7D32; }
.lsgmb-meta-chip.closed{ background: #FFEBEE; color: #C62828; }

.lsgmb-hours-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 8px 10px;
    background: #FAFAFA;
    border-radius: 8px;
    font-size: 11.5px;
    color: #555;
}
.lsgmb-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}
.lsgmb-hours-list li.today {
    font-weight: 700;
    color: #1a1a1a;
}

.lsgmb-reviews-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 8px 0 6px;
}

.lsgmb-review-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}
.lsgmb-review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.lsgmb-review-author { font-weight: 600; color: #333; }
.lsgmb-review-text   { color: #555; margin-top: 1px; font-size: 11.5px; line-height: 1.4; }

.lsgmb-cta-btn {
    display: block;
    width: 100%;
    padding: 11px;
    background: #4285F4;
    color: #fff !important;
    text-align: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 12px;
    transition: background .2s, transform .15s;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}
.lsgmb-cta-btn:hover,
.lsgmb-cta-btn:focus,
.lsgmb-cta-btn:visited,
.lsgmb-cta-btn:active {
    background: #3367D6;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
    outline: none;
}

/* Google branding row */
.lsgmb-google-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 10.5px;
    color: #999;
}

/* ── Mobiel aanpassingen ≤ 600px ──────────── */
@media (max-width: 600px) {
    .lsgmb-info-panel {
        max-width: 96%;
        bottom: 8px;
        border-radius: 12px;
    }
    .lsgmb-photo-strip {
        height: 90px;
    }
    .lsgmb-card-body {
        padding: 10px 12px 12px;
    }
    .lsgmb-biz-name {
        font-size: 14px;
    }
    .lsgmb-hours-list {
        display: none; /* uren verbergen op klein scherm – te veel ruimte */
    }
}
