/* ==========================================================
   WEBGIS MULTI BENCANA
========================================================== */

:root{

    --primary:#dc3545;
    --secondary:#0d6efd;
    --success:#198754;
    --warning:#ffc107;
    --dark:#212529;
    --light:#f8f9fa;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:#ffffff;

    color:#333;

}

/* ==========================================================
   SECTION
========================================================== */

section{

    padding:80px 0;

}

.section-title{

    margin-bottom:50px;

}

.section-title h2{

    font-weight:700;

}

.section-title p{

    color:#777;

}

/* ==========================================================
   HERO
========================================================== */

.hero-section{

    position:relative;

}

.hero-image{

    height:700px;

    object-fit:cover;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

    z-index:1;

}

.carousel-caption{

    z-index:2;

    bottom:18%;

    text-align:left;

}

.carousel-caption h1{

    font-size:56px;

    font-weight:700;

}

.carousel-caption p{

    font-size:20px;

}

.hero-info{

    margin-top:-70px;

    position:relative;

    z-index:5;

}

.hero-box{

    background:#fff;

    border-radius:18px;

    padding:30px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.35s;

}

.hero-box:hover{

    transform:translateY(-8px);

}

.hero-box i{

    font-size:42px;

    color:var(--primary);

    margin-bottom:20px;

}

/* ==========================================================
   CARD
========================================================== */

.card{

    border:none;

    border-radius:18px;

    overflow:hidden;

    transition:.35s;

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

/* ==========================================================
   STATISTIK
========================================================== */

.counter{

    font-size:46px;

    font-weight:700;

}

/* ==========================================================
   MAP
========================================================== */

#map,

#mapKontak{

    border-radius:18px;

}

.leaflet-popup-content{

    width:260px;

}

/* ==========================================================
   GALLERY
========================================================== */

.gallery-card{

    position:relative;

    overflow:hidden;

}

.gallery-img{

    transition:.5s;

}

.gallery-card:hover .gallery-img{

    transform:scale(1.08);

}

.gallery-overlay{

    position:absolute;

    inset:auto 0 0 0;

    background:linear-gradient(transparent,rgba(0,0,0,.85));

    color:#fff;

    padding:20px;

}

/* ==========================================================
   BERITA
========================================================== */

.berita-img{

    height:250px;

    object-fit:cover;

}

/* ==========================================================
   BUTTON
========================================================== */

.btn{

    border-radius:30px;

    padding:12px 28px;

}

/* ========================================
   NAVBAR GRADIASI MERAH
======================================== */

.custom-navbar {

    background: linear-gradient(
        135deg,
        #eb0909 0%,
        #e21818 50%,
        #E63946 100%
    );

    min-height: 78px;

    border-bottom: 4px solid #8B0000;

    transition: .3s;

    z-index: 9999;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .18);
}


/* ========================================
   CONTAINER
======================================== */

.custom-navbar > .container {

    padding-left: 10px;
    padding-right: 10px;

    display: flex;
    align-items: center;
}


/* ========================================
   LOGO
======================================== */

.custom-navbar .navbar-logo {

    width: 50px;
    height: 50px;

    object-fit: contain;

    margin-right: 8px;

    border-radius: 6px;

    flex-shrink: 0;
}


/* ========================================
   BRAND / JUDUL
======================================== */

.custom-navbar .navbar-brand {

    color: #FFFFFF !important;

    font-size: 18px !important;

    font-weight: 700;

    letter-spacing: .3px;

    line-height: 1.25;

    white-space: normal;

    width: 550px;
    
    max-width: 550px;

    padding: 4px 0;

    margin-right: 20px;

    display: flex;

    align-items: center;
}


/* Jarak antar baris judul */

.custom-navbar .navbar-brand span {

    display: block;

    line-height: 1.25;

    white-space: normal;
}


.custom-navbar .navbar-brand:hover {

    color: #FFFFFF !important;
}


/* ========================================
   MENU
======================================== */

.custom-navbar .nav-link {

    color: #ffffff !important;

    font-weight: 500;

    font-size: 14px;

    padding: 9px 14px !important;

    border-radius: 30px;

    transition: .3s;

    white-space: nowrap;
}


/* ========================================
   MENU HOVER
======================================== */

.custom-navbar .nav-link:hover {

    background: rgba(255, 255, 255, .18);

    color: #FFFFFF !important;
}


/* ========================================
   MENU AKTIF
======================================== */

.custom-navbar .nav-link.active {

    background: rgba(255, 255, 255, .25);

    color: #FFFFFF !important;

    font-weight: 700;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .12);
}


/* ========================================
   MENU AKTIF + HOVER
======================================== */

.custom-navbar .nav-link.active:hover {

    background: rgba(255, 255, 255, .32);

    color: #FFFFFF !important;
}


/* ========================================
   LOGIN
======================================== */

.custom-navbar .btn {

    border-radius: 30px;

    padding: 9px 22px;

    font-weight: 600;

    font-size: 14px;

    transition: .3s;

    white-space: nowrap;
}


.custom-navbar .btn-light {

    background: #FFFFFF !important;

    color: #B30000 !important;

    border: 2px solid #FFFFFF;
}


.custom-navbar .btn-light:hover {

    background: #FFF5F5 !important;

    color: #8B0000 !important;

    transform: translateY(-2px);
}


/* ========================================
   HAMBURGER
======================================== */

.custom-navbar .navbar-toggler {

    border-color: rgba(255, 255, 255, .7);
}


.custom-navbar .navbar-toggler:focus {

    box-shadow:
        0 0 0 .15rem rgba(255, 255, 255, .25);
}


.custom-navbar .navbar-toggler-icon {

    filter: brightness(0) invert(1);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1200px) {

    .custom-navbar .navbar-logo {

        width: 50px;
        height: 50px;

        margin-right: 8px;
    }


    .custom-navbar .navbar-brand {

        font-size: 16px !important;

        max-width: 330px;

        width: 330px;

        margin-right: 12px;

        line-height: 1.3;
    }


    .custom-navbar .navbar-brand span {

        line-height: 1.4;
    }


    .custom-navbar .nav-link {

        font-size: 13px;

        padding-left: 8px !important;
        padding-right: 8px !important;
    }

}


/* ========================================
   TABLET / MOBILE
======================================== */

@media (max-width: 991px) {

    .custom-navbar .navbar-logo {

        width: 58px;
        height: 58px;
    }


    .custom-navbar .navbar-brand {

        font-size: 14px !important;

        max-width: 270px;

        width: 270px;

        margin-right: 0;

        line-height: 1.4;
    }


    .custom-navbar .navbar-brand span {

        line-height: 1.5;
    }


    .custom-navbar .navbar-nav {

        padding-top: 15px;
    }


    .custom-navbar .nav-link {

        margin-bottom: 5px;

        text-align: center;

        white-space: normal;
    }


    .custom-navbar .btn {

        width: 100%;

        margin-top: 10px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 576px) {

    .custom-navbar > .container {

        padding-left: 5px;
        padding-right: 5px;
    }


    .custom-navbar .navbar-logo {

        width: 50px;
        height: 50px;

        margin-right: 8px;
    }


    .custom-navbar .navbar-brand {

        font-size: 12px;

        max-width: 200px;

        padding: 5px 0;

        line-height: 1.5;
    }


    .custom-navbar .navbar-brand span {

        line-height: 1.55;
    }


    .custom-navbar .navbar-toggler {

        padding: 5px 8px;
    }

}/* ==========================================================
   FOOTER
========================================================== */

footer{

    background:#111111;

    color:#fff;

    padding:40px 0;

}

footer a{

    color:#fff;

    text-decoration:none;

}

footer a:hover{

    color:#ffc107;

}

/* ==========================================================
   BACK TO TOP
========================================================== */

#backToTop:hover{

    transform:scale(1.1);

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:992px){

.hero-image{

height:520px;

}

.carousel-caption{

bottom:12%;

}

.carousel-caption h1{

font-size:38px;

}

.hero-info{

margin-top:20px;

}

}

@media(max-width:768px){

.hero-image{

height:420px;

}

.carousel-caption{

text-align:center;

}

.carousel-caption h1{

font-size:30px;

}

.carousel-caption p{

font-size:16px;

}

section{

padding:60px 0;

}

}
.card{

    transition:.35s ease;

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}

.carousel-item img{

    transition:transform 8s linear;

}

.carousel-item.active img{

    transform:scale(1.08);

}

.legend{

    line-height:24px;

}

.legend i{

    width:18px;

    height:18px;

    float:left;

    margin-right:8px;

    opacity:.9;

}
.content-berita{

    line-height:1.9;

    font-size:16px;

    text-align:justify;

}

.content-berita img{

    max-width:100%;

    height:auto;

    border-radius:10px;

    margin:20px 0;

}

.content-berita table{

    width:100%;

}

.content-berita iframe{

    max-width:100%;


}

.card img{

    transition:.4s;

}

.card:hover img{

    transform:scale(1.08);

}

.card{

    overflow:hidden;

}

/*==================================================
HALAMAN PETA
==================================================*/

.map-page{

    background:#f3f5f9;

    min-height:100vh;

    padding-bottom:30px;

}

/*==================================================
SIDEBAR
==================================================*/

.sidebar-panel{

    position:sticky;

    top:90px;

}

/*==================================================
CARD
==================================================*/

.sidebar-card{

    background:#fff;

    border-radius:20px;

    padding:22px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    border:none;

    transition:.3s;

}

.sidebar-card:hover{

    transform:translateY(-3px);

}

/*==================================================
JUDUL CARD
==================================================*/

.sidebar-title{

    font-size:18px;

    font-weight:700;

    color:#5b3b1d;

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:10px;

}

.sidebar-title i{

    color:#198754;

}

/*==================================================
STATISTIK
==================================================*/

.stat-box{

    background:#f8f9fa;

    border-radius:16px;

    padding:18px 10px;

    text-align:center;

    transition:.3s;

}

.stat-box:hover{

    background:#198754;

    color:#fff;

}

.stat-box h3{

    font-size:28px;

    font-weight:700;

    margin-bottom:5px;

}

.stat-box span{

    font-size:13px;

}

/*==================================================
FORM
==================================================*/

.sidebar-card label{

    font-weight:600;

    margin-bottom:8px;

    color:#555;

}

.form-select{

    height:50px;

    border-radius:14px;

    border:1px solid #ddd;

    box-shadow:none;

}

.form-select:focus{

    border-color:#198754;

    box-shadow:0 0 0 .15rem rgba(25,135,84,.2);

}

/*==================================================
BUTTON
==================================================*/

#resetFilter{

    height:50px;

    border-radius:14px;

    font-weight:600;

}

/*==================================================
LEGENDA
==================================================*/

.legend-list{

    display:flex;

    flex-direction:column;

    gap:14px;

}

.legend-item{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:15px;

}

.legend-color{

    width:18px;

    height:18px;

    border-radius:50%;

    border:2px solid #fff;

    box-shadow:0 2px 8px rgba(0,0,0,.2);

}

/*==================================================
MINI MAP
==================================================*/

#miniMap{

    width:100%;

    height:220px;

    border-radius:16px;

    overflow:hidden;

}

/*==================================================
MAP
==================================================*/

.map-wrapper{

    background:#fff;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

}

/*==================================================
HEADER MAP
==================================================*/

.map-header{

    background:#6b4325;

    color:#fff;

    padding:18px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.map-header h3{

    margin:0;

    font-size:26px;

    font-weight:700;

}

.map-header p{

    margin:0;

    opacity:.85;

}

.map-info{

    background:#fff;

    color:#198754;

    padding:8px 18px;

    border-radius:40px;

    font-weight:600;

}

/*==================================================
LEAFLET
==================================================*/

#map{

    width:100%;

    height:78vh;

}

/*==================================================
FLOATING TOOL
==================================================*/

.floating-tools{

    position:absolute;

    top:90px;

    right:25px;

    z-index:999;

    display:flex;

    flex-direction:column;

    gap:12px;

}

.tool-btn{

    width:48px;

    height:48px;

    border:none;

    border-radius:50%;

    background:#fff;

    box-shadow:0 5px 20px rgba(0,0,0,.2);

    transition:.3s;

}

.tool-btn:hover{

    background:#198754;

    color:#fff;

    transform:scale(1.08);

}

/*==================================================
RESPONSIVE
==================================================*/

@media(max-width:991px){

.sidebar-panel{

position:relative;

top:0;

margin-bottom:25px;

}

#map{

height:70vh;

}

.map-header{

flex-direction:column;

align-items:flex-start;

gap:10px;

}

.floating-tools{

top:120px;

}

}
