/* =============================================================================
   Overview — Styles
   Reuses pv- carousel/lightbox classes from plantingvisualization.css
   and lv- pill/timeline classes from locationvisualization.css
   ============================================================================= */

/* ── KPI row ────────────────────────────────────────────────────────────────── */

#ov-kpi-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1023px) {
    #ov-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    #ov-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Summary marker pin ─────────────────────────────────────────────────────── */

.ov-loc-marker {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0369a1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.55));
}

/* ── Popup styling ──────────────────────────────────────────────────────────── */

.ov-popup {
    font-family: inherit;
    min-width: 180px;
}

.ov-popup-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1c1917;
    margin-bottom: 6px;
    border-bottom: 1px solid #e7e5e4;
    padding-bottom: 5px;
}

.ov-popup-row {
    font-size: 0.82rem;
    color: #57534e;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ov-popup-row i {
    color: var(--color-forest-600, #16a34a);
    width: 14px;
}

.ov-popup-action {
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid #e7e5e4;
}

.ov-popup-action a {
    font-size: 0.82rem;
    color: var(--color-forest-700, #15803d);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.ov-popup-action a:hover {
    text-decoration: underline;
}

/* ── Zoom-in hint line inside auto-opened popup ─────────────────────────────── */

.ov-popup-hint {
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid #e7e5e4;
    font-size: 0.78rem;
    color: #78716c;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ov-popup-hint i {
    color: #0369a1;
}

/* ── Lightbox loading spinner ───────────────────────────────────────────────── */

#ov-lb-inner,
#ov-tlb-inner {
    position: relative;
}

.ov-lb-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.ov-lb-spinner::after {
    content: '';
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: #fff;
    animation: pvSpin 0.7s linear infinite;
}

.pv-lb-inner.ov-lb-loading .ov-lb-spinner {
    display: flex;
}

.pv-lb-inner.ov-lb-loading .pv-lb-img {
    opacity: 0.12;
}
