/**
 * GeoCompani — Reports & Expertise Showcase CSS
 * Brand Colors: #7FA842 (Primary Green), #6c9334 (Hover), #5a7d28 (Deep Accent), #eff6e8 (Light Tint), #d5e5be (Border)
 * Typography: 'RoadRadio', 'Road_Radio', 'HelveticaNeueCyr', 'Inter', sans-serif
 * Namespace: .geo-showcase-*, .geo-lightbox-*
 * 100% Isolated Styles for Elementor Compatibility
 */

/* ==========================================================================
   Main Showcase Container
   ========================================================================== */
.geo-showcase-wrapper {
    margin: 45px auto 35px auto !important;
    max-width: 1140px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: 'HelveticaNeueCyr', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1e293b !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

.geo-showcase-container {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
    border: 1px solid #dce8ce;
    border-radius: 16px;
    padding: 32px 30px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.geo-showcase-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7FA842 0%, #9bc45d 50%, #f97316 100%);
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.geo-showcase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaf2de;
}

.geo-showcase-title-group {
    flex: 1 1 550px;
}

.geo-showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6e8;
    color: #5a7d28;
    border: 1px solid #d5e5be;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    font-family: 'RoadRadio', 'Road_Radio', sans-serif;
}

.geo-showcase-title {
    margin: 0 0 6px 0 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px;
    font-family: 'RoadRadio', 'Road_Radio', 'HelveticaNeueCyr', sans-serif !important;
}

.geo-showcase-subtitle {
    margin: 0 !important;
    font-size: 14.5px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    font-family: 'HelveticaNeueCyr', 'Inter', sans-serif !important;
}

.geo-showcase-trust-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.geo-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #dce8ce;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.geo-trust-pill-icon {
    font-size: 14px;
}

/* ==========================================================================
   Filter Tabs Bar
   ========================================================================== */
.geo-showcase-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.geo-showcase-tabs::-webkit-scrollbar {
    height: 4px;
}

.geo-showcase-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.geo-showcase-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
    font-family: 'HelveticaNeueCyr', 'Inter', sans-serif;
}

.geo-showcase-tab-btn:hover {
    background: #eff6e8;
    color: #2e4312;
}

.geo-showcase-tab-btn.active {
    background: #7FA842;
    color: #ffffff;
    border-color: #7FA842;
    box-shadow: 0 4px 10px rgba(127, 168, 66, 0.25);
}

.geo-showcase-tab-count {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}

.geo-showcase-tab-btn.active .geo-showcase-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Document Cards Grid
   ========================================================================== */
.geo-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.geo-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.geo-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(127, 168, 66, 0.15);
    border-color: #7FA842;
}

.geo-doc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fbfdf9;
    border-bottom: 1px solid #f1f5f9;
}

.geo-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'RoadRadio', 'Road_Radio', sans-serif;
}

.geo-doc-badge-geodesy { background: #e0f2fe; color: #0369a1; }
.geo-doc-badge-section { background: #eff6e8; color: #5a7d28; }
.geo-doc-badge-borehole { background: #fef3c7; color: #92400e; }
.geo-doc-badge-lab { background: #dcfce7; color: #15803d; }
.geo-doc-badge-stamp { background: #f3e8ff; color: #6b21a8; }
.geo-doc-badge-case { background: #ffe4e6; color: #9f1239; }
.geo-doc-badge-eco, .geo-doc-badge-ecology { background: #eaf8e6; color: #2e6912; border: 1px solid #c7e8bd; }
.geo-doc-badge-topoplan { background: #e0f2fe; color: #0284c7; }
.geo-doc-badge-report { background: #f0fdf4; color: #166534; }
.geo-doc-badge-network { background: #faf5ff; color: #7e22ce; }
.geo-doc-badge-act { background: #fff7ed; color: #c2410c; }

.geo-doc-code {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    font-family: monospace;
}

.geo-doc-img-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.geo-doc-card:hover .geo-doc-img {
    transform: scale(1.04);
}

.geo-doc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.geo-doc-card:hover .geo-doc-overlay {
    opacity: 1;
}

.geo-doc-zoom-btn {
    background: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(6px);
    transition: transform 0.2s ease;
}

.geo-doc-card:hover .geo-doc-zoom-btn {
    transform: translateY(0);
}

.geo-doc-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.geo-doc-title {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.35 !important;
    font-family: 'RoadRadio', 'Road_Radio', 'HelveticaNeueCyr', sans-serif !important;
}

.geo-doc-meta-list {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 12.5px !important;
    color: #475569 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.geo-doc-meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.geo-doc-meta-icon {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #7FA842;
}

.geo-doc-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.geo-doc-view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
    color: #7FA842;
    text-decoration: none !important;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    transition: color 0.2s;
    font-family: 'HelveticaNeueCyr', 'Inter', sans-serif;
}

.geo-doc-view-link:hover {
    color: #5a7d28;
    text-decoration: underline !important;
}

.geo-doc-norm-tag {
    font-size: 11px;
    color: #64748b;
    background: #eff6e8;
    border: 1px solid #d5e5be;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Expertise Case Study Section
   ========================================================================== */
.geo-case-section {
    background: #ffffff;
    border: 1px solid #dce8ce;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 26px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.geo-case-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.geo-case-main-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'RoadRadio', 'Road_Radio', 'HelveticaNeueCyr', sans-serif !important;
}

.geo-case-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.geo-case-step {
    background: #fbfdf9;
    border: 1px solid #eaf2de;
    border-radius: 8px;
    padding: 12px 14px;
}

.geo-case-step-num {
    font-size: 11px;
    font-weight: 800;
    color: #7FA842;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: 'RoadRadio', 'Road_Radio', sans-serif;
}

.geo-case-step-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    font-family: 'RoadRadio', 'Road_Radio', sans-serif;
}

.geo-case-step-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

.geo-case-summary {
    background: #eff6e8;
    border: 1px solid #d5e5be;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #364f14;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* ==========================================================================
   Showcase Footer CTA Box
   ========================================================================== */
.geo-showcase-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    color: #ffffff;
}

.geo-showcase-footer-title {
    margin: 0 0 4px 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-family: 'RoadRadio', 'Road_Radio', 'HelveticaNeueCyr', sans-serif !important;
}

.geo-showcase-footer-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.geo-showcase-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #7FA842;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(127, 168, 66, 0.35);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'RoadRadio', 'Road_Radio', 'HelveticaNeueCyr', sans-serif;
}

.geo-showcase-cta-btn:hover {
    background: #6c9334;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ==========================================================================
   HD Lightbox Modal Viewer
   ========================================================================== */
.geo-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.geo-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.geo-lightbox-header {
    height: 56px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.geo-lightbox-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.geo-lightbox-doc-title {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
    font-family: 'RoadRadio', 'Road_Radio', sans-serif;
}

.geo-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.geo-lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}

.geo-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.geo-lightbox-btn-close {
    background: #ef4444;
    border-color: #ef4444;
}

.geo-lightbox-btn-close:hover {
    background: #dc2626;
}

.geo-lightbox-stage {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.geo-lightbox-stage:active {
    cursor: grabbing;
}

.geo-lightbox-img-wrapper {
    position: absolute;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    background: #ffffff;
    pointer-events: none;
}

.geo-lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.geo-lightbox-nav-btn:hover {
    background: #7FA842;
    border-color: #7FA842;
    transform: translateY(-50%) scale(1.08);
}

.geo-lightbox-nav-prev { left: 20px; }
.geo-lightbox-nav-next { right: 20px; }

.geo-lightbox-caption-bar {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    color: #cbd5e1;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.geo-lightbox-zoom-indicator {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
    .geo-showcase-container {
        padding: 22px 18px;
        border-radius: 12px;
    }
    
    .geo-showcase-title {
        font-size: 20px !important;
    }
    
    .geo-showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .geo-doc-img-box {
        height: 180px;
    }
    
    .geo-showcase-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }
    
    .geo-showcase-cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .geo-lightbox-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .geo-lightbox-nav-prev { left: 10px; }
    .geo-lightbox-nav-next { right: 10px; }
}
