/* --- Kustomisasi Header & Navbar --- */
.header { position: absolute; left: 0; top: 0; width: 100%; background: transparent; z-index: 999; }

.slicknav_menu { background: transparent !important; display: none; padding: 0 !important; }
.slicknav_btn { position: absolute; right: 10px; top: 26px; background: #f8931f !important; }
.slicknav_nav { 
    background: #ffffff !important; 
    border-radius: 10px !important; 
    margin-top: 15px !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}
.slicknav_nav a, .slicknav_nav .slicknav_row { 
    padding: 12px 25px !important; 
    color: #111111 !important; 
    font-weight: 600 !important; 
    text-transform: uppercase; 
}
.slicknav_nav ul a { 
    padding-left: 50px !important; font-weight: 500 !important; text-transform: capitalize !important; }

/* --- Style Konten Library --- */
.library-section { padding: 80px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-family: 'Play', sans-serif; color: #0f4c4d; font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.section-title p { color: #666; max-width: 800px; margin: 0 auto; line-height: 1.6; }

.library-item { position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 30px; height: 300px; }
.library-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.library-item:hover img { transform: scale(1.1); }

.library-overlay {
position: absolute; left: 0; top: 0; width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease;
}
.library-item:hover .library-overlay { background: rgba(15, 76, 77, 0.7); }
.library-overlay h4 { color: #fff; font-family: 'Play', sans-serif; font-size: 24px; font-weight: 700; text-align: center; z-index: 2; }

.breadcrumb-option { padding: 150px 0 100px; }

/* --- 1. ISOLASI CSS PETA --- */
#gspi-app-root {
--app-primary: #0f4c4d;
--app-accent: #f8931f;
--app-bg: #ffffff;
font-family: 'Josefin Sans', sans-serif;
position: relative;
width: 100%;
height: 90vh;
min-height: 600px;
overflow: hidden;
background: #e0e0e0;
border-top: 1px solid #ccc;
box-sizing: border-box;
}
#gspi-app-root * { box-sizing: border-box; }

#gspi-app-root:fullscreen { width: 100vw; height: 100vh; border: none; }

#gspi-map { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

/* --- 3. SIDEBAR FRAME (RESPONSIVE FOCUS) --- */
.gspi-sidebar-frame {
position: absolute;
top: 20px; left: 20px; bottom: 20px;
width: 380px;
background: #fff;
z-index: 999;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
overflow: hidden;
transition: all 0.4s ease;
}

.gspi-panel {
position: absolute; top: 0; bottom: 0; width: 100%;
background: #fff; display: flex; flex-direction: column;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#panel-list { left: 0; z-index: 2; }
#panel-detail { left: 100%; z-index: 3; }

.gspi-sidebar-frame.show-detail #panel-list { transform: translateX(-100%); }
.gspi-sidebar-frame.show-detail #panel-detail { transform: translateX(-100%); }

/* STYLING KONTEN */
.gspi-head { padding: 20px 20px 10px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
.gspi-title { font-family:'Play', sans-serif; font-size:20px; color:var(--app-primary); margin:0 0 15px; font-weight:800; }
.gspi-search { position: relative; margin-bottom: 15px; }
.gspi-inp { width: 100%; padding: 10px 15px 10px 35px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; outline:none; }
.gspi-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #aaa; }
.gspi-filters { display: flex; gap: 5px; margin-bottom: 15px; }
.gspi-chip {
flex: 1; border: 1px solid #eee; background: #fff; padding: 8px; border-radius: 6px;
font-size: 10px; font-weight: 700; color: #666; cursor: pointer; text-align: center; text-transform: uppercase;
}
.gspi-chip.active { background: var(--app-primary); color: #fff; border-color: var(--app-primary); }
.gspi-scroll { flex-grow: 1; overflow-y: auto; padding: 10px 20px; background: #f9f9f9; }

.gspi-card {
background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px;
margin-bottom: 10px; cursor: pointer; transition: 0.2s;
}
.gspi-card:hover { border-color: var(--app-accent); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.gspi-card h4 { font-size: 14px; font-weight: 700; color: var(--app-primary); margin: 0 0 5px; }
.gspi-meta { display: flex; justify-content: space-between; font-size: 11px; color: #777; }
.gspi-badge { font-size: 9px; padding: 3px 6px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.bg-lidar { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }
.bg-foto { background: #e0f2f1; color: #00695c; border: 1px solid #b2dfdb; }

.gspi-det-head { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; align-items: center; background: #fff; }
.gspi-back { border: none; background: none; font-size: 13px; font-weight: 700; color: #555; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.gspi-back:hover { color: var(--app-accent); }

.gspi-row { display: flex; justify-content: space-between; border-bottom: 1px dashed #eee; padding-bottom: 5px; margin-bottom: 15px; font-size: 13px; }
.gspi-lbl { color: #888; font-weight: 600; font-size: 11px; text-transform: uppercase; }
.gspi-val { color: #333; font-weight: 700; }

#gspi-app-root .noUi-target { height: 4px; background: #ddd; border: none; box-shadow: none; margin-top:15px; }
#gspi-app-root .noUi-connect { background: var(--app-accent); }
#gspi-app-root .noUi-handle { width: 16px; height: 16px; background: var(--app-accent); border: 2px solid #fff; border-radius: 50%; right: -8px !important; top: -6px; cursor: grab; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.leaflet-control-fullscreen {
background: #fff; width: 34px; height: 34px; border-radius: 4px;
box-shadow: 0 1px 5px rgba(0,0,0,0.65); cursor: pointer;
display: flex; align-items: center; justify-content: center;
font-size: 16px; color: #333; transition: 0.2s;
}
.leaflet-control-fullscreen:hover { background: #f4f4f4; color: var(--app-primary); }

/* =========================================
MEDIA QUERIES (MOBILE & TABLET) 
========================================= */

/* Tablet (Layar Sedang) */
@media (max-width: 991px) {
.gspi-sidebar-frame { width: 320px; left: 15px; top: 15px; bottom: 15px; }
.section-title h2 { font-size: 28px; }
}

/* Mobile (Layar Kecil) */
@media (max-width: 767px) {
#gspi-app-root { height: 85vh; min-height: 500px; display: flex; flex-direction: column; }

/* Sidebar Pindah ke Bawah (Bottom Sheet Style) */
.gspi-sidebar-frame {
    position: relative;
    top: auto; left: auto; bottom: auto;
    width: 100%;
    height: 45%; /* Menempati 45% dari tinggi container peta */
    border-radius: 20px 20px 0 0;
    margin: 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

#gspi-map {
    position: relative;
    height: 55%; /* Peta di atas sidebar */
}

/* Zoom Control Pindah agar tidak tertutup */
.leaflet-bottom.leaflet-right { bottom: 10px !important; }

.gspi-head { padding: 15px 15px 5px; }
.gspi-title { font-size: 16px; margin-bottom: 10px; }
.gspi-inp { padding: 8px 12px 8px 30px; }
.gspi-chip { padding: 6px; font-size: 9px; }

/* Sembunyikan Breadcrumb di Mobile agar User Langsung ke Peta */
.breadcrumb-option { padding: 100px 0 50px; }
}