:root {
    --primary: #c8102e;
    --primary-dark: #9e0c24;
    --warning: #f5a623;
    --success: #27ae60;
    --info: #2980b9;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --background-light: #fbfcfe;
    --border-light: #e8e8e8;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-primary);
    background: var(--background-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-line-main,
.brand-line-bottom,
.section-heading,
.chart-title,
.info-card h5,
.news-item-title,
.stat-value {
    font-family: "Manrope", sans-serif;
}
.text-primary {
    color: var(--primary) !important;
}

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.45rem 0;
    min-height: 72px;
}
.navbar .container {
    align-items: center;
    gap: 2.25rem;
}
.navbar-brand {
    padding: 0;
    margin-right: 1rem;
    gap: 0.85rem !important;
    white-space: nowrap;
}
.navbar-brand .brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    color: var(--text-primary);
}
.brand-line {
    display: block;
    text-transform: uppercase;
}
.brand-line-top {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.25px;
}
.brand-line-main {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #111;
}
.brand-line-bottom {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.3px;
}
.logo-badge {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.navbar-collapse {
    justify-content: space-between;
    gap: 1.5rem;
}
.header-nav {
    gap: 0.95rem;
    align-items: center;
    flex-wrap: nowrap;
}
.header-nav .nav-item {
    display: flex;
    align-items: center;
}
.header-actions {
    gap: 1.45rem;
    margin-left: 1.6rem;
    flex-shrink: 0;
}
.navbar .nav-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    padding: 0.6rem 0.95rem;
    position: relative;
    transition: color 0.2s;
}
.navbar .nav-link.active {
    color: var(--primary) !important;
}
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0.75rem;
    right: 0.75rem;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}
.navbar .nav-link:hover {
    color: var(--primary) !important;
}
.btn-login {
    border: 1.5px solid var(--text-primary);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.34rem 0.85rem;
    color: var(--text-primary);
    background: transparent;
    transition: all 0.2s;
}
.btn-login:hover {
    background: var(--text-primary);
    color: #fff;
}

.btn-report {
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.34rem 0.85rem;
    color: white;
    background: var(--primary) !important;
    transition: all 0.2s;
}
.btn-report:hover {
    background: var(--text-primary);
    color: #fff;
}

/* ─── HERO ───────────────────────────────── */
.hero {
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.96) 8%,
            rgba(255, 255, 255, 0.78) 42%,
            rgba(255, 255, 255, 0.36) 56%,
            rgba(255, 255, 255, 0) 68%
        ),
        url("/images/hero.jpg") center/cover no-repeat;
    min-height: clamp(520px, 64vh, 700px);
    display: flex;
    align-items: center;
    position: relative;
}
.hero .container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 58rem;
}
.hero-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}
.hero h1 {
    font-size: clamp(2.7rem, 4vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    max-width: none;
    white-space: nowrap;
}
.hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 430px;
    line-height: 1.65;
}
.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 0.2s;
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}
.btn-hero-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid #ccc;
    border-radius: 6px;
    padding: 0.65rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-hero-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ─── STAT CARDS ─────────────────────────── */
.stat-section {
    background: var(--background-light);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    padding: 1.4rem 1.5rem 1.5rem;
    margin-top: -34px;
    position: relative;
    z-index: 10;
}
.stat-section .row {
    margin-left: -0.35rem;
    margin-right: -0.35rem;
}
.stat-section .col-6,
.stat-section .col-lg-3 {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}
.stat-label-top {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(18, 38, 63, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.09);
    box-shadow: 0 8px 18px rgba(18, 38, 63, 0.08);
}
.stat-card:last-child {
    border-right: none;
}
.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: #fff;
}
.icon-primary {
    background: var(--primary);
}
.icon-warning {
    background: var(--warning);
}
.icon-success {
    background: var(--success);
}
.icon-info {
    background: var(--info);
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.stat-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}
.stat-title {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.1rem;
    font-weight: 600;
}

/* ─── SECTION HEADING ────────────────────── */
.section-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0;
}
.bg-section {
    background: var(--background-light);
}

/* ─── INFOGRAFIS ─────────────────────────── */
.infografis-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(18, 38, 63, 0.06);
}
.infografis-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}
.year-label {
    font-size: 0.82rem;
    font-weight: 600;
}
.spatial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 28px rgba(18, 38, 63, 0.06);
}
.info-card-download,
.info-card-report,
.info-card-news {
    position: relative;
    overflow: hidden;
}
.info-card-download::before,
.info-card-report::before,
.info-card-news::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.info-card-download::before {
    background: linear-gradient(90deg, var(--primary), #e04b64);
}
.info-card-report::before {
    background: linear-gradient(90deg, var(--success), #6ccf8f);
}
.info-card-news::before {
    background: linear-gradient(90deg, var(--info), #6aa9df);
}
.chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
}
.chart-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.infografis-card .col-lg-5 {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.donut-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    width: 100%;
}
.donut-chart-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    margin: 0 auto;
}
#donutChart {
    width: 100% !important;
    height: 100% !important;
}
.donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}
.donut-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}
.donut-label {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.3;
}
.donut-legend {
    width: 100%;
    max-width: 280px;
}

/* ─── DONUT LEGEND ───────────────────────── */
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    justify-content: space-between;
}
.legend-item span:last-child {
    font-weight: 700;
    color: var(--text-primary);
}

.infografis-page {
    background: #fff;
}
.infografis-page .bg-section {
    background: #fff;
}
.hero-infografis {
    min-height: clamp(260px, 32vh, 380px);
}
.hero-infografis .hero-content {
    max-width: 560px;
}
.infografis-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 10px rgba(18, 38, 63, 0.04);
}
.infografis-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
    font-weight: 700;
}
.infografis-filter i {
    color: var(--primary);
}
.filter-label {
    font-size: 0.9rem;
}
.infografis-chart-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 2px 12px rgba(18, 38, 63, 0.05);
    height: 100%;
}
.chart-card-title,
.table-card-title {
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.chart-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.infografis-chart-card #barChart {
    width: 100% !important;
    max-height: 260px;
}
.donut-panel-page {
    align-items: flex-start;
}
.donut-legend-page {
    max-width: 100%;
    width: 100%;
}
.infografis-table-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 2px 12px rgba(18, 38, 63, 0.05);
}
.table-header-wrap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.infografis-table thead th {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.infografis-table tbody td,
.infografis-table tfoot td {
    font-size: 0.82rem;
    border-color: rgba(0, 0, 0, 0.06);
}
.infografis-table tbody tr:hover {
    background: rgba(200, 16, 46, 0.03);
}
.infografis-table tfoot .table-total-row td {
    background: rgba(200, 16, 46, 0.08);
    font-weight: 800;
    color: var(--text-primary);
}
.infografis-table td:first-child,
.infografis-table th:first-child {
    text-align: center;
    width: 70px;
}
.infografis-table td:last-child,
.infografis-table th:last-child {
    text-align: center;
    width: 150px;
}

@media (max-width: 767px) {
    .infografis-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .infografis-toolbar {
        padding: 0.85rem 0.9rem;
    }
    .infografis-chart-card,
    .infografis-table-card {
        padding: 1rem;
    }
    .chart-card-title,
    .table-card-title {
        font-size: 0.98rem;
    }
    .table-header-wrap {
        flex-direction: column;
    }
    .infografis-table {
        min-width: 760px;
    }
    .donut-chart-wrap {
        width: 210px;
        height: 210px;
    }
}

.spatial-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.icon-download {
    background: var(--primary);
}
.icon-report {
    background: var(--success);
}
.icon-news {
    background: var(--info);
}
.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.18);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.75rem;
}
.info-link-accent {
    background: rgba(200, 16, 46, 0.04);
    border-radius: 10px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.info-card-news .news-item {
    margin-bottom: 0.85rem;
}
.info-card-news .news-item:last-of-type {
    margin-bottom: 1rem;
}
.info-card-news .news-img {
    width: 64px;
    height: 54px;
}
.info-card-report .info-link:last-child {
    margin-bottom: 0;
}

/* ─── SPATIAL MAP ────────────────────────── */
.map-placeholder {
    background: #e8edf2 url("https://tile.openstreetmap.org/12/3232/2020.png")
        center/cover no-repeat;
    border-radius: 12px;
    height: 320px;
    position: relative;
    overflow: hidden;
}
.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.15) 100%
    );
}
.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.map-btn {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.map-legend {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: #fff;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.legend-primary {
    width: 14px;
    height: 14px;
    background: rgba(200, 16, 46, 0.7);
    border-radius: 2px;
}
.spatial-feature {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}
.spatial-feature:hover {
    color: var(--primary);
}
.spatial-feature i {
    color: var(--primary);
    font-size: 1rem;
}

/* ─── WEBGIS PAGE ───────────────────────── */
body[data-page="webgis"] {
    --webgis-primary: #d31a39;
    --webgis-primary-dark: #b3122d;
    --webgis-surface: rgba(255, 255, 255, 0.84);
    --webgis-surface-strong: rgba(255, 255, 255, 0.96);
    --webgis-border: rgba(15, 23, 42, 0.08);
    --webgis-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --webgis-shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(200, 16, 46, 0.12),
            transparent 22%
        ),
        radial-gradient(
            circle at 86% 18%,
            rgba(41, 128, 185, 0.12),
            transparent 20%
        ),
        radial-gradient(
            circle at 70% 78%,
            rgba(56, 189, 248, 0.08),
            transparent 18%
        ),
        linear-gradient(180deg, #edf2f8 0%, #f7f9fc 42%, #eef3f9 100%);
    height: 100dvh;
    overflow: hidden;
}
body[data-page="webgis"] .navbar {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.webgis-page {
    height: calc(100dvh - 72px);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}
.webgis-stage {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 0;
}
.webgis-shell {
    display: grid;
    grid-template-columns: clamp(300px, 24vw, 348px) minmax(0, 1fr);
    height: calc(100dvh - 72px);
    min-height: 0;
    align-items: stretch;
    background: var(--webgis-surface);
    border: 1px solid var(--webgis-border);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--webgis-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        grid-template-columns 0.25s ease,
        box-shadow 0.25s ease;
}
.webgis-shell.is-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
}
.webgis-sidebar {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(249, 251, 253, 0.98) 100%
    );
    color: var(--text-primary);
    padding: 0 0.95rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-right: 1px solid rgba(15, 23, 42, 0.07);
    height: calc(100dvh - 72px);
    max-height: calc(100dvh - 72px);
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        padding 0.2s ease;
}
.webgis-sidebar-head {
    margin: 0 -0.9rem 0;
    padding: 1rem 0.95rem 0.95rem;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0)
        ),
        linear-gradient(
            180deg,
            var(--webgis-primary) 0%,
            var(--webgis-primary-dark) 100%
        );
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 88px;
    position: sticky;
    top: 0;
    /* z-index: 2; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(179, 18, 45, 0.18);
}
.webgis-sidebar-head-content {
    min-width: 0;
}
.webgis-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}
.webgis-title {
    font-size: 1.06rem;
    line-height: 1.18;
    font-weight: 800;
    margin: 0.2rem 0 0.3rem;
    color: #fff;
    text-wrap: balance;
}
.webgis-sidebar-toggle {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    margin-top: 0.05rem;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}
.webgis-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
.webgis-shell.is-collapsed .webgis-sidebar {
    opacity: 0;
    padding: 0;
    border-right: none;
    transform: translateX(-8px);
    pointer-events: none;
}
.webgis-shell.is-collapsed .webgis-sidebar-head,
.webgis-shell.is-collapsed .webgis-filter-card,
.webgis-shell.is-collapsed .webgis-layer-list,
.webgis-shell.is-collapsed .webgis-label,
.webgis-shell.is-collapsed .webgis-download-btn {
    display: none;
}
.webgis-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.webgis-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.webgis-label::after {
    content: "";
    width: 18px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(200, 16, 46, 0.35),
        rgba(200, 16, 46, 0)
    );
}
.webgis-filter-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.97),
        rgba(250, 252, 255, 0.98)
    );
    color: var(--text-primary);
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.webgis-filter-card {
    padding: 0.95rem 0.95rem 0.92rem;
}
.webgis-accordion {
    display: block;
    gap: 0.55rem;
    min-height: 0;
}
.webgis-accordion-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(15, 23, 42, 0.12),
        transparent
    );
    margin: 0.4rem 0.1rem 0.45rem;
}
.webgis-accordion .accordion-item {
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}
.webgis-accordion .accordion-button {
    padding: 0.8rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}
.webgis-accordion .accordion-button:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
    border-color: rgba(200, 16, 46, 0.14);
}
.webgis-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.webgis-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.18rem rgba(200, 16, 46, 0.12);
}
.webgis-accordion .accordion-button::after {
    background-size: 0.85rem;
}
.webgis-accordion .accordion-body {
    padding: 0.45rem 0.15rem 0.2rem;
}
.webgis-select-wrap {
    position: relative;
    margin-top: 0.55rem;
}
.webgis-select-wrap i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e8e;
    z-index: 2;
}
.webgis-select {
    height: 40px;
    border-radius: 8px;
    padding-left: 2.15rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 0.85rem;
    box-shadow: none;
}
.webgis-layer-list {
    display: grid;
    gap: 0.5rem;
    padding-right: 0.25rem;
}
.webgis-layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.74rem 0.85rem;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.99),
        rgba(248, 250, 252, 0.99)
    );
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    min-height: 46px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}
.webgis-layer-item.is-loading {
    opacity: 0.9;
}
.webgis-layer-item:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 16, 46, 0.16);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}
.webgis-layer-empty {
    padding: 0.75rem 0.85rem;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.4;
    background: rgba(248, 250, 252, 0.86);
}
.webgis-layer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.14rem;
    min-width: 0;
    flex: 1 1 auto;
}
.webgis-layer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    line-height: 1;
    color: #64748b;
}
.webgis-layer-status::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 2px solid rgba(100, 116, 139, 0.28);
    border-top-color: rgba(200, 16, 46, 0.9);
    animation: webgis-spin 0.75s linear infinite;
}
.webgis-layer-toggle-wrap {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.webgis-layer-meta strong {
    display: block;
    font-size: 0.84rem;
    line-height: 1.2;
    color: var(--text-primary);
    font-weight: 700;
}
.webgis-layer-toggle-wrap .form-switch {
    padding-left: 0;
}
.webgis-layer-toggle-wrap .form-check-input {
    margin-left: 0;
}
@keyframes webgis-spin {
    to {
        transform: rotate(360deg);
    }
}
.webgis-sidebar::-webkit-scrollbar {
    width: 6px;
}
.webgis-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.webgis-sidebar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.28);
    border-radius: 999px;
}
.webgis-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.42);
}
.webgis-basemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.9rem;
}
.webgis-basemap-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    text-align: center;
}
.webgis-basemap-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.webgis-basemap-thumb {
    width: 100%;
    aspect-ratio: 1.75 / 1;
    border-radius: 10px;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.webgis-basemap-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.26),
            rgba(255, 255, 255, 0) 45%
        ),
        radial-gradient(
            circle at 18% 22%,
            rgba(255, 255, 255, 0.8) 0 2px,
            transparent 3px
        ),
        radial-gradient(
            circle at 68% 28%,
            rgba(255, 255, 255, 0.72) 0 1.5px,
            transparent 2.5px
        ),
        radial-gradient(
            circle at 42% 64%,
            rgba(255, 255, 255, 0.6) 0 1.5px,
            transparent 2.5px
        );
    opacity: 0.9;
}
.webgis-basemap-thumb--rbi {
    background-image:
        linear-gradient(
            180deg,
            rgba(245, 250, 255, 0.2),
            rgba(245, 250, 255, 0.05)
        ),
        linear-gradient(
            115deg,
            #8fd3ff 0 34%,
            #6fc7ff 34% 48%,
            #bfe4ff 48% 100%
        ),
        radial-gradient(
            circle at 64% 40%,
            rgba(255, 255, 255, 0.8) 0 10%,
            transparent 11%
        ),
        linear-gradient(
            160deg,
            #d9e7b6 0 22%,
            #f2e5c9 22% 38%,
            #dfe8c6 38% 100%
        );
}
.webgis-basemap-thumb--bing {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.12)),
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.7) 0 9%,
            transparent 10%
        ),
        radial-gradient(
            circle at 60% 55%,
            rgba(255, 255, 255, 0.22) 0 14%,
            transparent 15%
        ),
        linear-gradient(135deg, #23313a 0 48%, #173249 48% 100%),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.15) 0 4%,
            transparent 4% 100%
        );
}
.webgis-basemap-thumb--osm {
    background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0)
        ),
        linear-gradient(
            135deg,
            #cfe5f1 0 22%,
            #f7f6ef 22% 48%,
            #dbe7cc 48% 100%
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.85) 0 8%,
            transparent 8% 100%
        ),
        linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.7) 0 2%,
            transparent 2% 100%
        );
}
.webgis-basemap-thumb--carto {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.18)),
        linear-gradient(
            135deg,
            #232323 0 35%,
            #4f4f4f 35% 60%,
            #2e2e2e 60% 100%
        ),
        radial-gradient(
            circle at 40% 38%,
            rgba(255, 255, 255, 0.7) 0 7%,
            transparent 8%
        ),
        radial-gradient(
            circle at 66% 48%,
            rgba(255, 255, 255, 0.12) 0 10%,
            transparent 11%
        );
}
.webgis-basemap-tile:hover .webgis-basemap-thumb {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.webgis-basemap-tile input:checked + .webgis-basemap-thumb {
    border-color: var(--primary);
    box-shadow:
        0 0 0 2px rgba(200, 16, 46, 0.12),
        0 8px 18px rgba(0, 0, 0, 0.12);
}
.webgis-basemap-name {
    font-size: 0.8rem;
    line-height: 1.25;
    color: var(--text-primary);
    min-height: 2.5em;
}
.webgis-layer-toggle.form-check-input {
    width: 2.25rem;
    height: 1.15rem;
    cursor: pointer;
    border-radius: 999px;
    border-color: #d7d7d7;
    box-shadow: none;
}
.webgis-layer-toggle.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.webgis-layer-toggle.form-check-input:focus {
    box-shadow: 0 0 0 0.18rem rgba(200, 16, 46, 0.15);
}
.webgis-download-btn {
    border: 1px solid var(--primary);
    border-radius: 10px;
    background: transparent;
    color: var(--primary);
    padding: 0.78rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: auto;
    transition: all 0.2s ease;
}
.webgis-download-btn:hover {
    background: rgba(200, 16, 46, 0.06);
}
.webgis-map-wrap {
    position: relative;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.22),
            transparent 24%
        ),
        radial-gradient(
            circle at 82% 16%,
            rgba(255, 255, 255, 0.18),
            transparent 18%
        ),
        linear-gradient(180deg, #b7dbff 0%, #edf6ff 24%, #fdfefe 100%);
    min-height: 0;
    isolation: isolate;
}
.webgis-map-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.16),
        rgba(255, 255, 255, 0) 45%
    );
    opacity: 0.8;
}
.webgis-sidebar-expand {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 6;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.97);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    color: var(--primary);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}
.webgis-sidebar-expand:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.webgis-sidebar-expand.is-visible {
    display: inline-flex;
}
.webgis-shell.is-collapsed .webgis-topbar {
    left: 3.35rem;
}
.webgis-topbar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    z-index: 5;
    pointer-events: none;
}
.webgis-search {
    position: relative;
    flex: 1 1 auto;
    width: min(100%, 640px);
    max-width: 640px;
    pointer-events: auto;
}
.webgis-search i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
}
.webgis-search .form-control {
    height: 50px;
    padding-left: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.96);
}
.webgis-map-tools {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.38rem;
    pointer-events: auto;
    margin-top: 1rem;
}
.webgis-map-control--wide {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    gap: 0;
    justify-content: center;
}
.webgis-legend-toggle {
    pointer-events: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    font-size: 0;
    font-weight: 0;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}
.webgis-legend-toggle.is-active {
    background: rgba(200, 16, 46, 0.12);
    border-color: rgba(200, 16, 46, 0.22);
    color: var(--primary);
    box-shadow: 0 12px 26px rgba(200, 16, 46, 0.14);
}
.webgis-legend-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 16, 46, 0.14);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}
.webgis-basemap-toggle {
    pointer-events: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    font-size: 0;
    font-weight: 0;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}
.webgis-basemap-toggle.is-active {
    background: rgba(200, 16, 46, 0.12);
    border-color: rgba(200, 16, 46, 0.22);
    color: var(--primary);
    box-shadow: 0 12px 26px rgba(200, 16, 46, 0.14);
}
.webgis-basemap-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(200, 16, 46, 0.14);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}
.webgis-map-shell {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.webgis-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 0;
}
.webgis-map-control {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    font-size: 0.86rem;
    color: #444;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}
.webgis-map-control i,
.webgis-legend-toggle i,
.webgis-basemap-toggle i {
    font-size: 0.92rem;
    line-height: 1;
}
.webgis-map-control:hover {
    color: var(--primary);
    transform: translateY(-1px);
    border-color: rgba(200, 16, 46, 0.14);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}
.webgis-table-button {
    pointer-events: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}
.webgis-table-button:hover {
    transform: translateY(-1px);
    color: var(--primary);
    border-color: rgba(200, 16, 46, 0.14);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}
.webgis-table-button i {
    font-size: 0.92rem;
    line-height: 1;
}
.webgis-legend-card {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 4;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    min-width: 190px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}
.webgis-legend-card.is-hidden {
    display: none;
}
.webgis-object-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 7;
    width: min(430px, calc(100% - 2rem));
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 28px 68px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}
.webgis-object-panel.is-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.webgis-object-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}
.webgis-object-panel__header-copy {
    min-width: 0;
}
.webgis-object-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.08);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.webgis-object-panel__title {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text-primary);
}
.webgis-object-panel__close {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.98);
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
    flex-shrink: 0;
}
.webgis-object-panel__close:hover {
    transform: translateY(-1px);
    color: var(--primary);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}
.webgis-object-panel__description {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
.webgis-object-panel__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.webgis-object-modal__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}
.webgis-object-panel__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.07);
}
.webgis-object-panel__tab {
    min-height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    font-size: 0.8rem;
    font-weight: 800;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}
.webgis-object-panel__tab.is-active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.webgis-object-panel__pane {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
}
.webgis-object-panel__pane.is-active {
    display: flex;
    flex-direction: column;
}
.webgis-object-panel__table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.88);
}
.webgis-object-panel__table {
    width: 100%;
    border-collapse: collapse;
}
.webgis-object-panel__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(248, 250, 252, 0.98)
    );
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.webgis-object-panel__table tbody th,
.webgis-object-panel__table tbody td {
    padding: 0.72rem 0.8rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.84rem;
    line-height: 1.45;
}
.webgis-object-panel__table tbody th {
    width: 38%;
    color: #475569;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.4);
}
.webgis-object-panel__table tbody td {
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.72);
}
.webgis-object-panel__table tbody tr:last-child th,
.webgis-object-panel__table tbody tr:last-child td {
    border-bottom: none;
}
.webgis-object-panel__photo-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.7rem;
    padding: 0.15rem;
}
.webgis-object-panel__photo-card {
    min-width: 0;
}
.webgis-object-panel__photo-label {
    margin: 0 0 0.38rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}
.webgis-object-panel__photo {
    display: block;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(241, 245, 249, 0.9);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.webgis-object-panel__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.webgis-object-panel__photo:hover img {
    transform: scale(1.04);
}
.webgis-object-panel__photo-empty {
    min-height: 180px;
    grid-column: 1 / -1;
    border-radius: 18px;
    border: 1px dashed rgba(100, 116, 139, 0.36);
    background: rgba(248, 250, 252, 0.88);
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.2rem;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 700;
}
.webgis-object-panel__photo-empty i {
    font-size: 1.7rem;
    color: #94a3b8;
}
.webgis-layer-table-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;
}
.webgis-layer-table-modal.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.webgis-layer-table-modal__dialog {
    position: absolute;
    left: 0;
    top: 0;
    width: min(860px, 78vw);
    height: min(74vh, 760px);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-radius: 24px;
    padding: 1.1rem 1.15rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
    pointer-events: auto;
    overflow: hidden;
    opacity: 1;
    transition: box-shadow 0.18s ease;
    will-change: left, top;
}
.webgis-layer-table-modal.is-visible .webgis-layer-table-modal__dialog {
    opacity: 1;
    z-index: 9999;
}
.webgis-layer-table-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    padding-bottom: 0.15rem;
}
.webgis-layer-table-modal__dialog.is-dragging
    .webgis-layer-table-modal__header {
    cursor: grabbing;
}
.webgis-layer-table-modal__dialog.is-dragging {
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.3);
    transition: none;
}
.webgis-layer-table-modal__header-copy {
    min-width: 0;
}
.webgis-layer-table-modal__selector {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.webgis-layer-table-modal__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.webgis-layer-table-modal__select {
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: none;
    font-size: 0.84rem;
}
.webgis-layer-table-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.08);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.webgis-layer-table-modal__title {
    margin: 0.5rem 0 0;
    font-size: 1.08rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text-primary);
}
.webgis-layer-table-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.98);
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
    flex-shrink: 0;
}
.webgis-layer-table-modal__close:hover {
    transform: translateY(-1px);
    color: var(--primary);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}
.webgis-layer-table-modal__description {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
.webgis-layer-table-modal__table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.9);
}
.webgis-layer-table-modal__table-wrap .dataTables_wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}
.webgis-layer-table-modal__table-wrap .dataTables_filter,
.webgis-layer-table-modal__table-wrap .dataTables_info,
.webgis-layer-table-modal__table-wrap .dataTables_paginate {
    font-size: 0.78rem;
    color: #64748b;
}
.webgis-layer-table-modal__table-wrap .dataTables_filter {
    display: flex;
    justify-content: flex-end;
}
.webgis-layer-table-modal__table-wrap .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}
.webgis-layer-table-modal__table-wrap .dataTables_filter input {
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.35rem 0.75rem;
    box-shadow: none;
    min-width: 220px;
}
.webgis-layer-table-modal__table-wrap .dataTables_length {
    display: none;
}
.webgis-layer-table-modal__table-wrap .dataTables_info {
    padding-top: 0;
}
.webgis-layer-table-modal__table-wrap .dataTables_paginate {
    padding-top: 0;
}
.webgis-layer-table-modal__table-wrap .dataTables_paginate .paginate_button {
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #334155 !important;
    margin-left: 0.25rem;
}
.webgis-layer-table-modal__table-wrap
    .dataTables_paginate
    .paginate_button.current {
    background: rgba(200, 16, 46, 0.1) !important;
    border-color: rgba(200, 16, 46, 0.16) !important;
    color: var(--primary) !important;
}
.webgis-layer-table-modal__table-wrap
    .dataTables_paginate
    .paginate_button:hover {
    background: rgba(200, 16, 46, 0.06) !important;
    border-color: rgba(200, 16, 46, 0.16) !important;
    color: var(--primary) !important;
}
.webgis-layer-table-modal__table {
    width: 100%;
    border-collapse: collapse;
}
.webgis-layer-table-modal__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98),
        rgba(248, 250, 252, 0.98)
    );
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.webgis-layer-table-modal__table tbody td {
    padding: 0.72rem 0.85rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-primary);
}
.webgis-layer-table-modal__table tbody tr:last-child td {
    border-bottom: none;
}
.webgis-layer-table-modal__table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.65);
}
.webgis-layer-table-modal__icon-col {
    width: 44px;
}
.webgis-layer-table-modal__icon-cell {
    width: 44px;
    padding: 0.7rem 0.45rem 0.7rem 0.55rem !important;
}
.webgis-layer-table-modal__row-focus {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}
.webgis-layer-table-modal__row-focus:hover {
    transform: translateY(-1px);
    color: var(--primary);
    border-color: rgba(200, 16, 46, 0.14);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}
.webgis-layer-table-modal__table tbody tr {
    cursor: pointer;
}
.webgis-layer-table-modal__table tbody tr:hover td {
    background: rgba(200, 16, 46, 0.04);
}
.webgis-legend-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.webgis-legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    color: #475569;
    margin-bottom: 0.5rem;
}
.webgis-legend-item:last-child {
    margin-bottom: 0;
}
.webgis-legend-box,
.webgis-legend-line {
    display: inline-block;
    flex-shrink: 0;
}
.webgis-legend-box {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.webgis-legend-box--slum {
    background: rgba(255, 107, 107, 0.8);
}
.webgis-legend-line {
    width: 18px;
    height: 0;
}
.webgis-legend-line--dashed {
    border-top: 2px dashed #ff6a00;
}
.webgis-legend-line--solid {
    border-top: 2px solid #94a3b8;
}
.webgis-attribution {
    position: absolute;
    left: 0.5rem;
    bottom: 0.35rem;
    z-index: 3;
    pointer-events: none;
}
.webgis-attribution-brand {
    font-size: 0.72rem;
    color: #4285f4;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.webgis-map-fallback {
    height: 100%;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(
            circle at top,
            rgba(200, 16, 46, 0.08),
            transparent 28%
        ),
        linear-gradient(180deg, #dcebff 0%, #f7fbff 100%);
}
.webgis-fallback-card {
    max-width: 360px;
    width: 100%;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 36px rgba(18, 38, 63, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.4rem 1.25rem;
    text-align: center;
}
.webgis-fallback-card i {
    color: var(--primary);
    font-size: 2rem;
}
.webgis-fallback-card h5 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0.7rem 0 0.4rem;
}
.webgis-fallback-card p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ─── NEWS PAGE ──────────────────────────── */
.news-page {
    background: #fff;
}
.news-page .bg-section {
    background: #fff;
}
.berita-hero {
    min-height: clamp(360px, 42vh, 480px);
}
.page-breadcrumb .breadcrumb {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.page-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}
.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.news-search {
    position: relative;
    flex: 1 1 320px;
    max-width: 440px;
}
.news-search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.news-search .form-control {
    padding-left: 2.4rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 42px;
}
.news-sort {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.sidebar-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(18, 38, 63, 0.05);
}
.sidebar-card h6 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.filter-option input {
    accent-color: var(--primary);
}
.filter-option.active {
    color: var(--primary);
    font-weight: 700;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.news-item-card {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 1.2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(18, 38, 63, 0.05);
}
.news-item-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
}
.news-item-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.08);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.55rem;
    text-transform: uppercase;
}
.news-tag.tag-alt {
    background: rgba(41, 128, 185, 0.08);
    color: var(--info);
}
.news-tag.tag-green {
    background: rgba(39, 174, 96, 0.08);
    color: var(--success);
}
.news-item-body h3 {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.news-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.news-title-link:hover,
.news-title-link:focus {
    color: var(--primary);
}
.news-item-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    line-height: 1.55;
}
.news-meta {
    font-size: 0.72rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.news-pagination .pagination {
    gap: 0.35rem;
}
.news-pagination .page-link {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
}
.news-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.news-pagination .page-item.disabled .page-link {
    color: #aaa;
    background: #fff;
}

/* ─── NEWS DETAIL PAGE ───────────────────── */
.news-detail-page .bg-section {
    padding-top: 1rem;
}
.news-detail-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 2px 12px rgba(18, 38, 63, 0.05);
}
.news-detail-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.65rem, 2.05vw, 2.1rem);
    line-height: 1.18;
    color: var(--text-primary);
    margin: 0.65rem 0 1rem;
    font-weight: 800;
}
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.news-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.news-detail-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.2rem;
}
.news-detail-body {
    color: #374151;
    font-size: 0.97rem;
    line-height: 1.8;
}
.news-detail-body .lead {
    font-size: 1.03rem;
    font-weight: 600;
    color: var(--text-primary);
}
.news-quote {
    margin: 1.2rem 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--primary);
    background: rgba(200, 16, 46, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-primary);
}
.news-priority-list {
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.2rem;
}
.news-priority-list li {
    margin-bottom: 0.55rem;
}
.news-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.3rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.news-share span {
    font-weight: 700;
    color: var(--text-primary);
}
.share-icons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.share-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}
.share-icons a:hover {
    background: var(--primary);
    color: #fff;
}
.detail-sidebar .sidebar-card {
    padding: 1.2rem;
}
.detail-sidebar .sidebar-card h6 {
    font-size: 1rem;
}
.related-list {
    display: grid;
    gap: 1rem;
}
.related-item {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    align-items: start;
}
.related-item img {
    width: 118px;
    height: 92px;
    object-fit: cover;
    border-radius: 12px;
}
.related-body h6 {
    margin: 0.35rem 0 0.35rem;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}
.tag-small {
    padding: 0.22rem 0.45rem;
    font-size: 0.62rem;
}
.category-list {
    display: grid;
    gap: 0.4rem;
}
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.1rem;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.category-item span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}
.category-item i {
    color: var(--text-secondary);
}

/* ─── INFO CARDS BOTTOM ───────────────────── */
.info-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
}
.info-card-icon {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.info-card h5 {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.info-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.info-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding: 0.65rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.info-link:hover {
    color: var(--primary);
}
.info-link i {
    font-size: 0.75rem;
}

/* ─── NEWS ───────────────────────────────── */
.news-img {
    width: 72px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #ddd;
}
.news-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.news-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}
.news-item-date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}
.btn-red-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    background: transparent;
    transition: all 0.2s;
}
.btn-red-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ─── PROFIL DAERAH ──────────────────────── */
.profil-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding: 0.7rem 0;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.profil-link:last-child {
    border-bottom: none;
}
.profil-link:hover {
    color: var(--primary);
}

.profil-page {
    background: #fff;
}
.profil-page .bg-section {
    background: #fff;
}
.profil-hero {
    min-height: clamp(260px, 32vh, 380px);
    display: flex;
    align-items: center;
}
.profil-hero-content {
    max-width: 520px;
}
.profil-hero h1 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.1rem, 3vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}
.profil-hero p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}
.profil-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 2px 12px rgba(18, 38, 63, 0.05);
}
#kawasan-kumuh,
#pencegahan-kawasan-kumuh {
    scroll-margin-top: 96px;
}
.profil-card-title {
    font-family: "Manrope", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
}
.profil-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    /* max-width: 80%; */
}
.profil-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}
.profil-stat-item {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem;
}
.profil-stat-icon {
    width: 44px;
    height: 44px;
    /* border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--primary); */
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.55rem;
    font-size: 2.5rem;
}
.profil-page .profil-stat-icon i,
.profil-page .profil-geo-item i,
.profil-page .profil-vision i,
.profil-page .profil-mission-item span {
    color: var(--primary);
}
.profil-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}
.profil-stat-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.2rem;
}
.profil-geo-list,
.profil-indicator-list,
.profil-mission-list {
    display: grid;
    gap: 1rem;
}
.profil-geo-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.profil-geo-item i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.1rem;
}
.profil-geo-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.profil-geo-item p,
.profil-indicator-item,
.profil-contact-card p,
.profil-mission-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.profil-indicator-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.profil-indicator-item strong {
    color: var(--text-primary);
    font-size: 0.88rem;
    white-space: nowrap;
}
.profil-office-image {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    border-radius: 14px;
}
.profil-map-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}
.profil-card .row .col-lg-5 {
    display: flex;
}
.profil-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.profil-mini-stat {
    padding: 0.9rem 1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 86px;
}
.profil-mini-stat:last-child {
    border-right: none;
}
.profil-mini-stat-icon {
    width: 38px;
    height: 38px;
    /* border-radius: 10px;
  border: 1.5px solid var(--primary); */
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2.3rem;
}
.profil-mini-stat-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.profil-mini-stat-body span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 0.1rem;
}
.profil-mini-stat-body strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.1;
}
.profil-subcard {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem 1.05rem;
    background: #fff;
}
.profil-subcard h5 {
    font-family: "Manrope", sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.profil-subcard ul {
    margin: 0;
    /* padding-left: 1.1rem; */
    color: var(--text-secondary);
}
.profil-check-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.55rem;
}
.profil-check-list li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.profil-check-list li::before {
    content: "\F26B";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--primary);
    font-size: 0.95rem;
}
.profil-check-list-compact {
    gap: 0.45rem;
}
.profil-subcard li {
    margin-bottom: 0.45rem;
    font-size: 0.84rem;
    line-height: 1.55;
}
.profil-vision {
    background: transparent;
    border: 1px solid rgba(200, 16, 46, 0.18);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1rem 1rem 0.95rem;
    margin-bottom: 0.25rem;
}
.profil-vision i {
    color: var(--primary);
    font-size: 1.25rem;
}
.profil-vision p {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text-primary);
}
.profil-mission-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.profil-mission-item span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}
.profil-mission-item p {
    flex: 1;
}
.profil-contact-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
}
.profil-contact-list {
    display: grid;
    gap: 0.85rem;
}
.profil-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.profil-contact-item i {
    color: var(--primary);
    font-size: 1.7rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.profil-contact-item p {
    margin: 10px;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
    word-break: break-word;
}

/* ─── FOOTER ─────────────────────────────── */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 0 1rem;
}
footer .container {
    position: relative;
}
footer .row.g-4 {
    align-items: flex-start;
}
footer .col-lg-4 {
    position: relative;
}
footer .footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}
footer .footer-logo-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.45rem;
}
footer .footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
footer h6 {
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    color: #fff;
}
footer p,
footer a {
    font-size: 0.8rem;
}
footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}
footer a:hover {
    color: #fff;
}
.footer-legal {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}
.footer-bottom {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}
.footer-legal-links {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0.35rem 0.85rem;
    display: inline-flex;
    justify-content: flex-end;
}
.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}
.social-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}
@media (max-width: 767px) {
    footer .footer-brand {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    footer .footer-logo-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 0.25rem;
    }
    footer .footer-brand > div {
        text-align: center;
    }
    footer .row.g-4 > .col-lg-4:nth-child(2),
    footer .row.g-4 > .col-lg-4:nth-child(3) {
        text-align: center;
    }
    footer .row.g-4 > .col-lg-4:nth-child(2) p,
    footer .row.g-4 > .col-lg-4:nth-child(3) h6 {
        margin-left: auto;
        margin-right: auto;
    }
    footer .row.g-4 > .col-lg-4:nth-child(3) .d-flex {
        justify-content: center;
    }
    .footer-legal-links {
        margin-top: 0.75rem;
        justify-content: center;
        width: 100%;
    }
    .footer-bottom {
        text-align: center;
    }
    .news-item-card {
        grid-template-columns: 1fr;
    }
    .news-item-card img {
        height: 200px;
    }
    .news-toolbar {
        align-items: stretch;
    }
    .news-search {
        max-width: none;
    }
    .news-sort {
        justify-content: space-between;
        width: 100%;
    }
    .news-detail-card,
    .detail-sidebar .sidebar-card {
        padding: 1rem;
    }
    .news-detail-image {
        height: 240px;
    }
    .news-detail-title {
        font-size: 1.45rem;
    }
    .related-item {
        grid-template-columns: 96px 1fr;
    }
    .related-item img {
        width: 96px;
        height: 76px;
    }
    .profil-stat-grid,
    .profil-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profil-hero {
        min-height: 240px;
    }
    .profil-office-image {
        height: 190px;
    }
    .profil-text {
        max-width: 100%;
    }
    .profil-map-image {
        min-height: 220px;
    }
    .profil-mini-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profil-mini-stat {
        border-right: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        min-height: 78px;
    }
    .profil-mini-stat:nth-child(2n) {
        border-right: none;
    }
    .profil-mini-stat:nth-child(n + 3) {
        border-bottom: none;
    }
    .profil-mini-stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .webgis-shell {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 42vh) minmax(0, 1fr);
        min-height: 0;
        border-radius: 18px;
    }
    .webgis-shell.is-collapsed {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    .webgis-sidebar {
        height: 100%;
        max-height: 100%;
        padding: 0.8rem;
    }
    .webgis-sidebar-toggle,
    .webgis-sidebar-expand.is-visible {
        display: none;
    }
    .webgis-layer-item {
        padding: 0.6rem 0.75rem;
    }
    .webgis-map-shell,
    .webgis-map-canvas,
    .webgis-map-fallback {
        min-height: 0;
    }
    .webgis-map-controls {
        top: 4.55rem;
        right: 0.75rem;
    }
    .webgis-topbar {
        flex-direction: column;
        align-items: stretch;
        left: 0.75rem;
        right: 0.75rem;
        top: 0.75rem;
    }
    .webgis-search {
        max-width: none;
    }
    .webgis-topbar {
        gap: 0.45rem;
    }
    .webgis-map-tools {
        width: auto;
        align-items: flex-start;
    }
    .webgis-search {
        width: 100%;
        max-width: none;
    }
    .webgis-map-control--wide {
        width: 38px;
        min-width: 38px;
        flex: 0 0 38px;
    }
    .webgis-legend-toggle {
        width: 38px;
        min-width: 38px;
        flex: 0 0 38px;
    }
    .webgis-table-button {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }
    .webgis-legend-card {
        right: 0.75rem;
        bottom: 0.75rem;
    }
    .webgis-object-panel {
        top: auto;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        max-width: none;
        max-height: 48vh;
        padding: 0.9rem;
        border-radius: 18px;
        transform: translateY(18px);
    }
    .webgis-object-panel.is-visible {
        transform: translateY(0);
    }
    .webgis-object-panel__table-wrap {
        max-height: 100%;
    }
    .webgis-object-panel__photo-grid {
        grid-template-columns: 1fr;
    }
    .webgis-object-panel__table tbody th,
    .webgis-object-panel__table tbody td {
        padding: 0.68rem 0.72rem;
    }
    .webgis-layer-table-modal {
        inset: 0;
    }
    .webgis-layer-table-modal__dialog {
        width: min(94vw, 640px);
        height: min(76vh, 720px);
        border-radius: 18px;
        padding: 0.95rem 0.95rem 0.9rem;
    }
    .webgis-layer-table-modal__table thead th,
    .webgis-layer-table-modal__table tbody td {
        padding: 0.65rem 0.7rem;
        font-size: 0.8rem;
    }
    .webgis-layer-table-modal__table-wrap .dataTables_filter {
        justify-content: stretch;
    }
    .webgis-layer-table-modal__table-wrap .dataTables_filter label {
        width: 100%;
    }
    .webgis-layer-table-modal__table-wrap .dataTables_filter input {
        min-width: 0;
        width: 100%;
    }
    .webgis-shell {
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    }
    .webgis-filter-card,
    .webgis-layer-item,
    .webgis-legend-card,
    .webgis-search .form-control,
    .webgis-legend-toggle {
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }
}

/* ─── YEAR SELECT ────────────────────────── */
.year-select {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.82rem;
    font-family: inherit;
    font-weight: 600;
}

/* ─── SOURCE TEXT ────────────────────────── */
.source-text {
    font-size: 0.72rem;
    color: #999;
    margin-top: 0.5rem;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 767px) {
    .hero {
        min-height: 360px;
    }
    .hero .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .hero-content {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content .d-flex {
        justify-content: center;
    }
    .hero h1 {
        font-size: 1.7rem;
        max-width: none;
        white-space: normal;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero .d-flex.gap-3 {
        gap: 0.65rem !important;
    }
    .hero .d-flex.gap-3 > a {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        text-align: center;
    }
    .btn-hero-outline {
        background: #fff;
        border-color: var(--primary);
        color: var(--primary);
        box-shadow: 0 6px 16px rgba(200, 16, 46, 0.12);
    }
    .btn-hero-outline:hover,
    .btn-hero-outline:focus {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 0.9rem 0.4rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.45rem;
    }
    .stat-section .row {
        row-gap: 0.65rem;
    }
    .stat-card > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .stat-title {
        font-size: 0.72rem;
        margin-bottom: 0.2rem;
    }
    .stat-value {
        font-size: 1.15rem;
        line-height: 1.05;
    }
    .stat-desc {
        font-size: 0.68rem;
        margin-top: 0.15rem;
    }
    .stat-card:last-child {
        border-bottom: none;
    }
    .stat-section {
        margin-top: 0.9rem;
        padding-top: 1rem;
    }
    .navbar {
        padding: 0.55rem 0;
        min-height: auto;
    }
    .navbar .container {
        gap: 0.75rem;
    }
    .navbar-brand {
        gap: 0.55rem !important;
        margin-right: 0;
        white-space: normal;
    }
    .logo-badge {
        width: 48px;
        height: 48px;
    }
    .brand-line-top {
        font-size: 0.66rem;
    }
    .brand-line-main {
        font-size: 0.92rem;
    }
    .brand-line-bottom {
        font-size: 0.7rem;
    }
    .navbar-collapse {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    .header-nav {
        gap: 0.35rem;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .navbar .nav-link {
        padding: 0.45rem 0;
    }
    .navbar .nav-link.active::after {
        left: 0;
        right: 0;
    }
    .header-actions {
        gap: 0.55rem;
        margin-left: 0;
        margin-top: 0.4rem;
        flex-wrap: wrap;
    }
    .header-actions .nav-link {
        padding: 0.45rem 0;
    }
    .header-actions .btn-login {
        width: 100%;
        justify-content: center;
    }

    .header-actions .btn-report {
        width: 100%;
        justify-content: center;
    }
}

.manual-book-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.manual-book-head {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.manual-book-title {
    color: #212529;
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.manual-book-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 0;
}

.manual-book-table {
    margin-bottom: 0;
}

.manual-book-table thead th {
    background: #f8f9fa;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.manual-book-table td,
.manual-book-table th {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.manual-book-no {
    width: 80px;
    text-align: center;
}

.manual-book-name {
    color: #212529;
    font-weight: 600;
}

.manual-book-download {
    width: 180px;
    text-align: center;
}

.manual-book-empty {
    color: #6c757d;
    padding: 2.5rem 1rem;
    text-align: center;
    font-style: italic;
}

@media (max-width: 575.98px) {
    .manual-book-head {
        padding: 1rem;
    }

    .manual-book-table td,
    .manual-book-table th {
        padding: 0.85rem;
    }

    .manual-book-download {
        width: auto;
    }
}
