* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body, html {
      height: 100%;
      width: 100%;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-size: 14px;
      line-height: 1.5;
      overflow: hidden;
    }

    :root {
      --font-size-xs: 11px;
      --font-size-sm: 13px;
      --font-size-md: 14px;
      --font-size-lg: 15px;
      --font-size-xl: 16px;
    }

    #app-container {
      display: flex;
      height: 100vh;
      height: 100dvh;
      width: 100vw;
      position: relative;
    }

    .app-loading-overlay {position: fixed;inset: 0;z-index: 5000;display: flex; justify-content: center;align-items: center;background: radial-gradient(circle at 50% 35%,#197db4,#06365f 65%);transition: opacity .45s ease, visibility .45s ease;}
    .app-loading-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
    .app-loading-card { display: grid; justify-items: center; gap: 8px; color: #fff; text-align: center; }
    .app-loading-card strong { font-size: 25px; letter-spacing: .04em; }.app-loading-card strong span { color: #f4c329; }
    .app-loading-card small { color: rgba(255,255,255,.78); font-size: 11px; }
    .app-loading-mark { display: grid; grid-template-columns: repeat(2, 15px); grid-template-rows: repeat(2, 15px); gap: 4px; padding: 7px; border: 1px solid rgba(255,255,255,.5); border-radius: 13px; transform: rotate(-8deg); }
    .app-loading-mark i { border-radius: 4px; background: #fff; }.app-loading-mark i:nth-child(2) { background: #f4c329; }.app-loading-mark i:nth-child(3) { background: #68dce5; }.app-loading-mark i:nth-child(4) { background: #bce7ed; }
    .app-loading-bar { width: 142px; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.22); }.app-loading-bar i { display: block; width: 45%; height: 100%; border-radius: inherit; background: #f4c329; animation: app-loading-slide 1.1s infinite ease-in-out; } @keyframes app-loading-slide { from { transform: translateX(-110%); } to { transform: translateX(330%); } }

    /* PETA UTAMA */
    #map {
      flex: 1;
      height: 100%;
      width: 100%;
      z-index: 1;
    }

    /* Kartu Animasi Track berada di bawah sidebar pada desktop. */
    .gpx-anim-map-overlay {
      position: absolute;
      left: 10px;
      bottom: 52px;
      z-index: 999;
      width: min(300px, calc(100% - 32px));
      pointer-events: none;
    }
    .gpx-anim-map-overlay .alat-anim-card { pointer-events: auto; }
    @media (max-width: 600px) {
      /* Pada mobile, kartu dipindahkan ke bagian atas dan memenuhi lebar layar. */
      .gpx-anim-map-overlay {
        top: 10px;
        right: 10px;
        bottom: auto;
        left: 10px;
        z-index: 999;
        width: auto;
        max-width: none;
      }
      .gpx-anim-map-overlay .alat-anim-card { margin-top: 0; }
    }

    /* Unified Search on Map */
    .unified-search {
      position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
      z-index: 1000; width: min(420px, calc(100% - 32px));
    }
    .unified-search-inner {
      display: flex; align-items: center; gap: 8px;
      padding: 0 14px; height: 46px;
      background: rgba(255,255,255,.88);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border: 1px solid rgba(255,255,255,.6);
      border-radius: 24px;
      box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 8px 32px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.5);
      transition: box-shadow .2s, border-color .2s;
    }
    .unified-search-inner:focus-within {
      box-shadow: 0 2px 16px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.5);
      border-color: rgba(26,115,232,.3);
      background: rgba(255,255,255,.95);
    }
    .unified-search-icon { color: #5f6368; flex-shrink: 0; opacity: .7; }
    .unified-search-input {
      flex: 1; border: 0; outline: none; background: transparent;
      font-size: 14px; color: #202124; font-family: 'Google Sans', 'Segoe UI', sans-serif;
      line-height: 1; letter-spacing: .01em;
    }
    .unified-search-input::placeholder { color: #5f6368; opacity: .6; }
    .unified-search-clear {
      display: none; align-items: center; justify-content: center;
      width: 28px; height: 28px; border: 0; border-radius: 50%;
      background: rgba(0,0,0,.06); color: #5f6368; font-size: 16px;
      cursor: pointer; transition: background .15s; flex-shrink: 0;
    }
    .unified-search-clear:hover { background: rgba(0,0,0,.12); }
    .unified-search-results {
      display: none; margin-top: 6px; max-height: 340px; overflow-y: auto;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border: 1px solid rgba(255,255,255,.5);
      border-radius: 16px;
      box-shadow: 0 4px 16px rgba(0,0,0,.08), 0 12px 40px rgba(0,0,0,.06);
    }
    .unified-ac-group { padding: 6px 0; }
    .unified-ac-group + .unified-ac-group { border-top: 1px solid rgba(0,0,0,.06); }
    .unified-ac-label {
      display: block; padding: 6px 16px 4px; font-size: 11px; font-weight: 600;
      color: #5f6368; letter-spacing: .04em; text-transform: uppercase;
    }
    .unified-ac-item {
      display: flex; align-items: center; gap: 10px; width: 100%;
      padding: 8px 16px; border: 0; background: transparent;
      cursor: pointer; text-align: left; transition: background .12s;
    }
    .unified-ac-item:hover { background: rgba(26,115,232,.06); }
    .unified-ac-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }
    .unified-ac-item strong { display: block; font-size: 13px; color: #202124; font-weight: 500; }
    .unified-ac-item small { display: block; font-size: 11px; color: #5f6368; margin-top: 1px; }
    .unified-ac-empty { padding: 14px 16px; text-align: center; color: #5f6368; font-size: 12px; }

    /* Tombol lokasi saya (Leaflet Locate Control) */
    .leaflet-control-locate { margin: 12px !important; border: 0 !important; border-radius: 50% !important; background: transparent !important; box-shadow: 0 10px 28px rgba(8, 63, 102, .24) !important; overflow: hidden; }
    .leaflet-control-locate a { display: grid !important; width: 46px !important; height: 46px !important; place-items: center; border: 1px solid rgba(255,255,255,.86) !important; border-radius: 50% !important; background: linear-gradient(145deg, #ffffff, #e9f7fc) !important; color: #0879bf !important; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; position: relative; }
    .leaflet-control-locate a::before { content: none; }
    .leaflet-control-locate a .leaflet-control-locate-location-arrow,
    .leaflet-control-locate a .leaflet-control-locate-spinner { display: none !important; }
    .leaflet-control-locate a:hover { background: linear-gradient(145deg, #ffffff, #d5f3fb) !important; box-shadow: inset 0 0 0 1px rgba(8,121,191,.14); transform: translateY(-2px); }
    .leaflet-control-locate.active a, .leaflet-control-locate.following a { border-color: #0879bf !important; background: linear-gradient(145deg, #0879bf, #12a7c8) !important; color: #fff !important; }
    .leaflet-control-locate.active a::before, .leaflet-control-locate.following a::before { display: none !important; }
    .leaflet-control-locate.active a::after, .leaflet-control-locate.following a::after { content: '' !important; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: locate-spin .8s linear infinite; }
    @keyframes locate-spin { to { transform: rotate(360deg); } }

    .reset-layers-btn {
      display: grid;
      place-items: center;
      width: 46px !important;
      height: 46px !important;
      margin: 12px !important;
      margin-bottom: 0 !important;
      border: 1px solid rgba(255,255,255,.86) !important;
      border-radius: 50% !important;
      background: linear-gradient(145deg, #ffffff, #e9f7fc) !important;
      color: #0879bf !important;
      font-size: 22px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 10px 28px rgba(8,63,102,.24) !important;
      transition: transform .2s, box-shadow .2s, background .2s;
    }
    .reset-layers-btn:hover {
      background: linear-gradient(145deg, #ffffff, #d5f3fb) !important;
      box-shadow: inset 0 0 0 1px rgba(8,121,191,.14);
      transform: translateY(-2px);
    }
    .reset-layers-btn.reset-flash {
      background: linear-gradient(145deg, #0879bf, #12a7c8) !important;
      color: #fff !important;
      transform: scale(0.92);
    }
    .basemap-control-wrap {
      position: relative;
      margin: 12px !important;
      margin-bottom: 0 !important;
    }
    .basemap-btn {
      display: grid;
      place-items: center;
      width: 46px !important;
      height: 46px !important;
      margin: 0 !important;
      border: 1px solid rgba(255,255,255,.86) !important;
      border-radius: 50% !important;
      background: linear-gradient(145deg, #ffffff, #e9f7fc) !important;
      color: #0879bf !important;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 10px 28px rgba(8,63,102,.24) !important;
      transition: transform .2s, box-shadow .2s, background .2s;
      padding: 0;
    }
    .basemap-btn::-moz-focus-inner { border: 0; }
    .basemap-btn:hover {
      background: linear-gradient(145deg, #ffffff, #d5f3fb) !important;
      box-shadow: inset 0 0 0 1px rgba(8,121,191,.14);
      transform: translateY(-2px);
    }
    .basemap-dropdown {
      position: absolute;
      bottom: 54px;
      right: 0;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 8px 28px rgba(0,0,0,.18);
      padding: 6px 0;
      min-width: 180px;
      z-index: 10000;
      overflow: hidden;
    }
    .basemap-option {
      padding: 8px 14px;
      font-size: 12px;
      color: #334155;
      cursor: pointer;
      transition: background .15s;
      white-space: nowrap;
    }
    .basemap-option:hover {
      background: #f1f5f9;
    }
    .basemap-option.active {
      color: #0879bf;
      font-weight: 700;
      background: #eff6ff;
    }
    .toggle-insight-btn {
      display: grid;
      place-items: center;
      width: 46px !important;
      height: 46px !important;
      margin: 12px !important;
      margin-bottom: 0 !important;
      border: 1px solid rgba(255,255,255,.86) !important;
      border-radius: 15px !important;
      background: linear-gradient(145deg, #ffffff, #e9f7fc) !important;
      color: #0879bf !important;
      font-size: 20px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(8,63,102,.18);
      transition: transform .2s, box-shadow .2s, background .2s;
    }
    .toggle-insight-btn:hover {
      background: linear-gradient(145deg, #ffffff, #d5f3fb) !important;
      box-shadow: inset 0 0 0 1px rgba(8,121,191,.14);
      transform: translateY(-2px);
    }

    .choropleth-legend {
      background: rgba(255,255,255,0.95);
      border-radius: 8px;
      padding: 10px 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      border: 1px solid #e5e7eb;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      max-width: 220px;
      margin-bottom: 10px;
    }

    .choropleth-legend-title {
      font-size: 11px;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 8px;
      line-height: 1.3;
    }

    .choropleth-legend-item {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 4px;
    }

    .choropleth-legend-color {
      width: 16px;
      height: 12px;
      border-radius: 2px;
      flex-shrink: 0;
      border: 1px solid rgba(0,0,0,0.1);
    }

    .choropleth-legend-label {
      font-size: 10px;
      color: #475569;
    }

    .choropleth-legend-unit {
      font-size: 9px;
      color: #94a3b8;
      margin-top: 6px;
      font-style: italic;
    }

    .choropleth-tooltip {
      background: rgba(255,255,255,0.96) !important;
      border: 1px solid #e5e7eb !important;
      border-radius: 8px !important;
      padding: 8px 10px !important;
      box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }

    .choropleth-tooltip::before {
      border-top-color: #e5e7eb !important;
    }

    /* ===== GeoPangan Tab ===== */
    #tab-geopangan.active {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      margin-right: -15px;
      padding-right: 15px;
    }

    .geopangan-sticky-header {
      background: #fff;
      padding: 0 0 8px;
      margin-left: -15px; margin-right: -15px;
      padding-left: 15px; padding-right: 15px;
      border-bottom: 1px solid #e8eef3;
      flex-shrink: 0;
    }

    .geopangan-field {
      margin-bottom: 10px;
    }
    .geopangan-field label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      color: #336583;
      margin-bottom: 3px;
    }
    .geopangan-field select,
    .geopangan-field input[type="date"] {
      width: 100%;
      padding: 8px 10px;
      border: 1px solid #e1ebf2;
      border-radius: 8px;
      background: #fff;
      font-size: 12px;
      color: #234b6d;
      outline: none;
      transition: border-color .2s, box-shadow .2s;
    }
    .geopangan-field select:focus,
    .geopangan-field input[type="date"]:focus {
      border-color: #70b9dd;
      box-shadow: 0 0 0 3px rgba(112,185,221,.15);
    }

    .geopangan-btn {
      width: 100%;
      padding: 10px;
      background: #0b5cab;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: background .2s;
    }
    .geopangan-btn:hover { background: #094a8e; }
    .geopangan-btn:disabled { background: #9baab6; cursor: not-allowed; }

    .geopangan-loading {
      display: flex; align-items: center; gap: 8px;
      padding: 16px; font-size: 12px; color: #668198;
    }
    .geopangan-spinner {
      width: 16px; height: 16px;
      border: 2px solid #e1ebf2; border-top-color: #0b5cab;
      border-radius: 50%;
      animation: geoportal-spin .8s linear infinite;
    }

    .geopangan-info {
      display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
      padding: 10px 14px;
      background: #f8fbfe;
      border: 1px solid #e3ecf4;
      border-radius: 8px;
      margin: 10px 0;
      font-size: 11px; color: #336583; font-weight: 600;
    }
    .geopangan-info-sep { color: #cbd5e1; }

    /* ===== GeoPangan Legend ===== */
    .gp-legend {
      background: rgba(255,255,255,.96);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
      border: 1px solid rgba(255,255,255,.6);
      overflow: hidden;
      min-width: 200px;
    }

    .gp-legend-header {
      padding: 10px 14px 8px;
      background: linear-gradient(135deg, #f0fdf9, #ecfdf5);
      border-bottom: 1px solid #d1fae5;
    }
    .gp-legend-badge {
      display: inline-block;
      padding: 2px 8px; border-radius: 4px;
      font-size: 9px; font-weight: 700; letter-spacing: .08em;
      color: #047857; background: #d1fae5;
      margin-bottom: 6px;
    }
    .gp-legend-info-row {
      display: flex; align-items: center; gap: 5px;
      font-size: 11px; font-weight: 600; color: #173b5d;
      line-height: 1.4;
    }
    .gp-legend-info-row svg { color: #047857; flex-shrink: 0; }

    .gp-legend-body { padding: 10px 14px 12px; }

    .gp-legend-bar {
      display: flex; height: 12px;
      border-radius: 4px; overflow: hidden;
      margin-bottom: 6px;
      box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
    }
    .gp-legend-bar span { flex: 1; }

    .gp-legend-labels {
      display: flex; justify-content: space-between;
      font-size: 11px; font-weight: 600;
    }
    .gp-legend-label-min { color: #047857; }
    .gp-legend-label-max { color: #dc2626; }

    .gp-legend-unit {
      font-size: 9px; color: #94a3b8;
      text-align: center; margin-top: 4px;
      font-weight: 500;
    }

    /* ===== GeoPangan Table ===== */
    .gp-table-wrap { border: 1px solid #e3ecf4; border-radius: 10px; background: #fff; overflow: hidden; margin: 10px 0; }
    .gp-table-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #f8fbfe; border-bottom: 1px solid #e3ecf4; }
    .gp-table-title { font-size: 11px; font-weight: 700; color: #16466c; white-space: nowrap; }
    .gp-table-search { width: 140px; padding: 6px 10px; border: 1px solid #d7e2eb; border-radius: 6px; font-size: 11px; color: #336583; outline: none; transition: border-color .2s; }
    .gp-table-search:focus { border-color: #047857; }
    .gp-table-scroll { overflow-x: auto; }
    .gp-table { width: 100%; border-collapse: collapse; font-size: 11px; }
    .gp-table thead th { position: sticky; top: 0; background: #047857; color: #fff; padding: 8px 7px; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; cursor: pointer; user-select: none; }
    .gp-table thead th:first-child { border-radius: 0; }
    .gp-table thead th:last-child { border-radius: 0; }
    .gp-table thead th.gp-th-no { width: 30px; text-align: center; cursor: default; }
    .gp-table thead th.gp-th-trend { width: 40px; text-align: center; cursor: default; }
    .gp-table thead th .gp-sort-icon { font-size: 9px; }
    .gp-table tbody tr { transition: background .15s; }
    .gp-table tbody tr:nth-child(even) { background: #f8fbfe; }
    .gp-table tbody tr:hover { background: #ecfdf5; }
    .gp-table td { padding: 7px 8px; border-bottom: 1px solid #eef2f7; }
    .gp-td-no { text-align: center; color: #94a3b8; font-size: 10px; }
    .gp-td-name { font-weight: 600; color: #1e3a5f; white-space: nowrap; }
    .gp-td-price { color: #336583; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .gp-td-price-main { font-weight: 700; color: #047857; }
    .gp-td-trend { text-align: center; }
    .gp-trend-up svg { color: #16a34a; }
    .gp-trend-down svg { color: #dc2626; }
    .gp-trend-stable svg { color: #94a3b8; }
    .gp-td-empty { text-align: center; color: #94a3b8; padding: 20px 8px; }
    .gp-pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 12px; border-top: 1px solid #eef2f7; }
    .gp-page-btn { min-width: 28px; height: 26px; padding: 0 6px; border: 1px solid #d7e2eb; border-radius: 6px; background: #fff; color: #336583; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
    .gp-page-btn:hover { background: #ecfdf5; border-color: #047857; color: #047857; }
    .gp-page-btn.active { background: #047857; color: #fff; border-color: #047857; }
    .gp-page-dots { font-size: 11px; color: #94a3b8; padding: 0 2px; }

    /* ===== GeoPangan Popup ===== */
    .gp-leaflet-popup { max-width: 300px !important; }
    .gp-leaflet-popup .leaflet-popup-content-wrapper {
      border-radius: 14px; padding: 0; overflow: hidden;
      box-shadow: 0 8px 32px rgba(16, 163, 127, .2); border: none;
      max-height: 60vh; overflow-x: hidden;
    }
    .gp-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .gp-leaflet-popup .leaflet-popup-tip { box-shadow: 4px 4px 12px rgba(16, 163, 127, .15); }

    .gp-popup { width: 280px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; max-height: 60vh; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; }

    .gp-popup-head {
      position: relative; padding: 18px 16px 14px;
      color: #fff; overflow: hidden; flex-shrink: 0;
      background: linear-gradient(135deg, #047857 0%, #10a37f 50%, #34d399 100%);
    }
    .gp-popup-head::before {
      content: ''; position: absolute; top: -30px; right: -30px;
      width: 90px; height: 90px;
      background: rgba(255,255,255,.1); border-radius: 50%;
    }
    .gp-popup-head::after {
      content: ''; position: absolute; bottom: -20px; left: -15px;
      width: 60px; height: 60px;
      background: rgba(255,255,255,.06); border-radius: 50%;
    }

    .gp-popup-badge {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 3px 9px; border-radius: 20px;
      font-size: 9px; font-weight: 700; letter-spacing: .06em;
      text-transform: uppercase; background: rgba(255,255,255,.2);
      color: #fff; margin-bottom: 8px; backdrop-filter: blur(4px);
    }
    .gp-popup-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #bbf7d0; }

    .gp-popup-head strong {
      display: block; font-size: 16px; font-weight: 700; line-height: 1.2;
      letter-spacing: -.01em; position: relative; z-index: 1;
      text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }
    .gp-popup-head > span {
      display: block; margin-top: 3px; font-size: 11px; line-height: 1.4;
      color: rgba(255,255,255,.85); position: relative; z-index: 1;
    }

    .gp-popup-body { padding: 0; overflow-x: hidden; overflow-y: auto; flex: 1 1 auto; }

    .gp-popup-price {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 16px; background: linear-gradient(180deg, #f0fdf9 0%, #fff 100%);
      border-bottom: 1px solid #d1fae5; flex-shrink: 0;
    }
    .gp-popup-price-icon {
      display: flex; align-items: center; justify-content: center;
      width: 36px; height: 36px; border-radius: 10px;
      background: linear-gradient(135deg, #047857, #10a37f);
      color: #fff; flex-shrink: 0;
    }
    .gp-popup-price-label { display: block; font-size: 10px; color: #668198; font-weight: 500; }
    .gp-popup-price-value { display: block; font-size: 18px; font-weight: 700; color: #047857; letter-spacing: -.02em; line-height: 1.3; }

    .gp-popup-meta { padding: 10px 16px 14px; display: grid; gap: 10px; flex-shrink: 0; }
    .gp-popup-meta-row { display: flex; align-items: center; gap: 10px; }
    .gp-popup-meta-icon {
      display: flex; align-items: center; justify-content: center;
      width: 28px; height: 28px; border-radius: 7px;
      background: #f0fdf9; color: #047857; flex-shrink: 0;
    }
    .gp-popup-meta-label { display: block; font-size: 10px; color: #668198; font-weight: 500; }
    .gp-popup-meta-value { display: block; font-size: 12px; font-weight: 600; color: #173b5d; line-height: 1.4; }

    .gp-popup-chart { border-top: 1px solid #d1fae5; padding: 10px 16px 8px; }
    .gp-popup-chart-head { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; color: #047857; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
    .gp-popup-chart-head svg { stroke: #10a37f; }
    .gp-popup-chart-wrap { position: relative; width: 100%; height: 140px; }

    .gp-popup-chart--inflasi { border-top: 1px solid #fef3c7; padding-bottom: 12px; }
    .gp-popup-chart--inflasi .gp-popup-chart-head { color: #92400e; }
    .gp-popup-chart--inflasi .gp-popup-chart-head svg { stroke: #f59e0b; }


    /* Map Insight Cards */
    .map-insight-cards {
      position: absolute;
      top: 70px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 999;
      display: none;
      gap: 8px;
      width: min(420px, calc(100% - 32px));
      pointer-events: auto;
    }
    .map-insight-card {
      flex: 1;
      min-width: 0;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border: 1px solid rgba(255,255,255,0.6);
      border-radius: 14px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
      overflow: hidden;
      transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    }
    .map-insight-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08);
      background: rgba(255,255,255,0.98);
    }
    .insight-card-header {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 6px 10px 2px;
    }
    .insight-card-icon { font-size: 12px; }
    .insight-card-title {
      font-size: 10px;
      font-weight: 700;
      color: #0b4da2;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .insight-card-body {
      padding: 0 10px 6px;
      font-size: 11px;
      color: #0b4da2;
      line-height: 1.4;
    }
    .insight-loading {
      font-size: 10px;
      color: #54708d;
      padding: 2px 0;
    }
    .insight-weather-main {
      display: flex;
      align-items: stretch;
      gap: 8px;
    }
    .insight-weather-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 60px;
      padding-right: 8px;
      border-right: 1px solid #e2e8f0;
    }
    .insight-weather-temp {
      font-size: 22px;
      font-weight: 800;
      color: #0b4da2;
      line-height: 1;
    }
    .insight-weather-icon {
      width: 28px;
      height: 28px;
      margin-top: 2px;
    }
    .insight-weather-right {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      min-width: 0;
    }
    .insight-weather-desc {
      font-size: 11px;
      color: #334155;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .insight-weather-detail {
      font-size: 10px;
      color: #54708d;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .insight-quake-main {
      display: flex;
      align-items: stretch;
      gap: 8px;
    }
    .insight-quake-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: 50px;
      padding-right: 8px;
      border-right: 1px solid #e2e8f0;
    }
    .insight-quake-mag {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: 800;
      line-height: 1;
    }
    .insight-quake-label {
      font-size: 9px;
      color: #54708d;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .insight-quake-right {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      min-width: 0;
    }
    .insight-quake-place {
      font-size: 11px;
      color: #1e293b;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .insight-quake-meta {
      font-size: 10px;
      color: #54708d;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .insight-quake-none {
      font-size: 10px;
      color: #10b981;
      font-weight: 600;
    }

    /* SIDEBAR KIRI */
    #sidebar-left {
      position: absolute;
      top: 0;
      left: 0;
      width: 360px;
      height: 100%;
      background: #ffffff;
      border-right: 1px solid #e0e0e0;
      display: flex;
      flex-direction: column;
      box-shadow: 2px 0 10px rgba(0,0,0,0.15);
      z-index: 1000;
      transition: transform 0.3s ease-in-out;
    }

    #sidebar-left.collapsed {
      transform: translateX(-100%);
    }

    /* Tombol Toggle Sidebar Kiri */
    .toggle-sidebar-btn {
      position: absolute;
      top: 50%;
      right: -25px;
      transform: translateY(-50%);
      width: 25px;
      height: 70px;
      background: #0078d4;
      color: white;
      border: none;
      border-radius: 0 6px 6px 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: bold;
      box-shadow: 3px 0 6px rgba(0,0,0,0.15);
      z-index: 1001;
    }

    .sidebar-header {
      padding: 13px 15px;
      color: #fff;
      background: linear-gradient(120deg, #063d72, #0878b9 58%, #19a8c8);
      border-bottom: 3px solid #f1bd27;
      display: flex;
      align-items: center;
      justify-content: space-between;
      overflow: hidden;
    }

    .ruangkita-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .ruangkita-mark {
      display: grid;
      grid-template-columns: repeat(2, 12px);
      grid-template-rows: repeat(2, 12px);
      gap: 3px;
      padding: 5px;
      border: 1px solid rgba(255,255,255,.55);
      border-radius: 10px;
      background: rgba(3, 48, 89, .25);
      transform: rotate(-8deg);
    }

    .ruangkita-mark i { border-radius: 3px; background: #fff; }
    .ruangkita-mark i:nth-child(2) { background: #f3bf28; }
    .ruangkita-mark i:nth-child(3) { background: #60d9e3; }
    .ruangkita-mark i:nth-child(4) { background: #bce6ed; }

    .ruangkita-name { display: grid; line-height: 1; letter-spacing: .04em; }
    .ruangkita-name strong { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
    .ruangkita-name strong span { color: #f5c62d; }
    .ruangkita-name small { margin-top: 4px; color: rgba(255,255,255,.82); font-size: 8px; font-weight: 700; letter-spacing: .12em; }

    .tab-menu {
      display: flex;
      width: 100%;
      flex-wrap: nowrap;
      background: #f4f6f9;
      border-bottom: 1px solid #e0e0e0;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      scroll-snap-type: x proximity;
      scrollbar-width: thin;
    }
    .tab-menu::-webkit-scrollbar { height: 4px; }
    .tab-menu::-webkit-scrollbar-thumb { border-radius: 4px; background: #b7c7d6; }

    .tab-btn {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: max-content;
      padding: 10px 12px;
      border: none;
      background: transparent;
      font-size: 11px;
      white-space: nowrap;
      scroll-snap-align: start;
      font-weight: 600;
      color: #666;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .tab-btn svg { flex-shrink: 0; opacity: 0.6; transition: opacity .2s; }
    .tab-btn:hover svg, .tab-btn.active svg { opacity: 1; }

    .tab-btn.active {
      color: #0078d4;
      background: #ffffff;
      border-bottom: 3px solid #0078d4;
    }

    .sidebar-content {
      padding: 15px;
      flex: 1;
      overflow-y: auto;
      font-size: 13px;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    /* App Download Banner */
    .app-banner {
      position: relative;
      margin: 0 10px 8px;
      padding: 0;
      border-radius: 12px;
      background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 100%);
      overflow: hidden;
      flex-shrink: 0;
    }
    .app-banner-glow {
      position: absolute;
      top: -20px; right: -20px;
      width: 80px; height: 80px;
      background: rgba(255,255,255,.1);
      border-radius: 50%;
      pointer-events: none;
    }
    .app-banner-close {
      position: absolute;
      top: 4px; right: 6px;
      width: 18px; height: 18px;
      border: 0;
      background: rgba(255,255,255,.15);
      color: #fff;
      font-size: 13px;
      line-height: 18px;
      text-align: center;
      border-radius: 50%;
      cursor: pointer;
      z-index: 2;
      transition: background .15s;
    }
    .app-banner-close:hover { background: rgba(255,255,255,.3); }
    .app-banner-content {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      position: relative;
      z-index: 1;
    }
    .app-banner-icon {
      flex-shrink: 0;
      width: 40px; height: 40px;
      border-radius: 10px;
      background: rgba(255,255,255,.15);
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(4px);
      border: 1px solid rgba(255,255,255,.2);
    }
    .app-banner-icon-inner { display: flex; align-items: center; justify-content: center; }
    .app-banner-text { flex: 1; min-width: 0; }
    .app-banner-title {
      font-size: 12px;
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
    }
    .app-banner-desc {
      font-size: 9px;
      color: rgba(255,255,255,.75);
      line-height: 1.3;
      margin-top: 1px;
    }
    .app-banner-btn {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      border: 0;
      border-radius: 8px;
      background: #fff;
      color: #0d9488;
      font-size: 10px;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      transition: all .15s;
      box-shadow: 0 2px 8px rgba(0,0,0,.15);
    }
    .app-banner-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); background: #f0fdfa; }

    .tab-content { display: none; }
    .tab-content h4 {
      font-size: 15px;
      font-weight: 700;
      color: #173b5d;
      margin-bottom: 8px;
      line-height: 1.3;
    }
    .tab-content h5 {
      font-size: 13px;
      font-weight: 700;
      color: #336583;
      margin-bottom: 6px;
      line-height: 1.3;
    }
    .tab-content p,
    .tab-content label,
    .tab-content span,
    .tab-content small,
    .tab-content input,
    .tab-content select,
    .tab-content button {
      font-size: 13px;
      line-height: 1.45;
    }
    .tab-content.active { display: block; }
    #tab-geoportal.active {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    .geotani-analysis-nav { display: flex; flex-wrap: nowrap; gap: 4px; padding: 4px; margin: 12px 0 16px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; }
    .geotani-analysis-nav::-webkit-scrollbar { height: 4px; }
    .geotani-analysis-nav::-webkit-scrollbar-thumb { border-radius: 4px; background: #86efac; }
    .geotani-analysis-tab { flex: 0 0 auto; padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: #668198; font-size: 11px !important; font-weight: 700; white-space: nowrap; scroll-snap-align: start; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
    .geotani-analysis-tab.active { background: #fff; color: #16a34a; box-shadow: 0 1px 4px rgba(22, 163, 74, .14); }
    .geotani-analysis-panel { display: none; }
    .geotani-analysis-panel.active { display: block; }
    .geotani-kta-card { margin: 0; padding: 13px; border: 1px solid #bbf7d0; border-radius: 8px; background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
    .geotani-kta-card h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; color: #166534; font-size: 13px; text-transform: none; letter-spacing: normal; }
    .geotani-kta-card h5::before { content: '◈'; color: #16a34a; font-size: 15px; }
    .geotani-kta-card > div { padding: 10px; border: 1px solid #bbf7d0; border-radius: 6px; background: #fff; }
    .geotani-kta-card .geoportal-filter { padding: 6px 8px; border-radius: 5px; background: #f0fdf4; }
    #btnRunNdvi:hover:not(:disabled) { background: #15803d; }
    #btnRunNdvi:disabled { cursor: wait; opacity: .7; background: #16a34a; }

    .ndvi-btn-spinner {
      width: 12px; height: 12px;
      border: 2px solid rgba(255,255,255,.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: ndvi-spin .6s linear infinite;
    }
    @keyframes ndvi-spin { to { transform: rotate(360deg); } }

    /* Modern Green NDVI Popup */
    .ndvi-leaflet-popup { max-width: 340px !important; }
    .ndvi-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 6px 24px rgba(22, 163, 74, .2); border: none; }
    .ndvi-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .ndvi-leaflet-popup .leaflet-popup-tip { box-shadow: 3px 3px 8px rgba(22, 163, 74, .12); }

    .ndvi-popup { width: 340px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; overflow: hidden; }

    .ndvi-popup-header {
      position: relative;
      padding: 14px 14px 12px;
      color: #fff;
      background: linear-gradient(135deg, #14532d 0%, #166534 50%, #22c55e 100%);
      overflow: hidden;
    }
    .ndvi-popup-header::before {
      content: '';
      position: absolute;
      top: -25px; right: -25px;
      width: 70px; height: 70px;
      background: rgba(255,255,255,.08);
      border-radius: 50%;
    }

    .ndvi-popup-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: 14px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
      background: rgba(255,255,255,.18);
      color: #fff;
      margin-bottom: 6px;
      backdrop-filter: blur(4px);
    }
    .ndvi-popup-badge-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #86efac;
    }

    .ndvi-popup-header strong {
      display: block;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.2;
      position: relative;
      z-index: 1;
    }

    .ndvi-popup-body {
      padding: 12px 14px;
      background: #fff;
      max-height: 45vh;
      overflow-y: auto;
    }

    .ndvi-popup-summary {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 10px;
    }
    .ndvi-popup-summary-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .ndvi-popup-summary-item span { font-size: 10px; color: #64748b; }
    .ndvi-popup-summary-item b { font-size: 12px; font-weight: 700; }

    .ndvi-popup-bar {
      margin-bottom: 10px;
    }
    .ndvi-popup-bar-fill {
      height: 6px;
      border-radius: 3px;
      background: linear-gradient(to right, #397ca8, #c6872a, #d7be37, #65a942, #2b843b, #125b2b);
    }
    .ndvi-popup-bar-scale {
      display: flex;
      justify-content: space-between;
      font-size: 8px;
      color: #9ca3af;
      margin-top: 2px;
    }

    .ndvi-popup-section {
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px solid #e5e7eb;
    }
    .ndvi-popup-section-title {
      font-size: 10px;
      font-weight: 700;
      color: #374151;
      margin-bottom: 6px;
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .ndvi-popup-insight-text {
      font-size: 10px;
      line-height: 1.5;
      color: #475569;
    }

    .ndvi-popup-dist-row {
      display: grid;
      grid-template-columns: 74px 1fr 30px;
      gap: 5px;
      align-items: center;
      margin-top: 4px;
      font-size: 9px;
    }
    .ndvi-popup-dist-label { color: #64748b; }
    .ndvi-popup-dist-bar { height: 5px; border-radius: 4px; background: #f1f5f9; overflow: hidden; }
    .ndvi-popup-dist-bar i { display: block; height: 100%; border-radius: 4px; }
    .ndvi-popup-dist-value { text-align: right; font-weight: 600; }

    .ndvi-popup-stat-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px 8px;
      font-size: 10px;
      color: #475569;
    }
    .ndvi-popup-stat-grid span { color: #64748b; }
    .ndvi-popup-stat-grid b { color: #166534; font-weight: 600; }

    .ndvi-popup-quality { font-size: 10px; font-weight: 600; }
    .ndvi-popup-quality-detail { font-size: 9px; color: #64748b; margin-top: 2px; }

    .ndvi-popup-footer {
      padding: 8px 14px;
      background: #f0fdf4;
      border-top: 1px solid #dcfce7;
      text-align: center;
    }
    .ndvi-popup-footer span { font-size: 9px; color: #64748b; }

    .ndvi-popup-footer-actions {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 8px;
    }

    .ndvi-btn-print {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 12px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(135deg, #374151, #4b5563);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all .2s;
      box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }
    .ndvi-btn-print:hover {
      background: linear-gradient(135deg, #1f2937, #374151);
      box-shadow: 0 3px 10px rgba(0,0,0,.25);
      transform: translateY(-1px);
    }
    .ndvi-btn-print:active {
      transform: translateY(0);
      box-shadow: 0 1px 4px rgba(0,0,0,.15);
    }
    .ndvi-btn-print:disabled {
      opacity: .6;
      cursor: not-allowed;
      transform: none;
    }

    /* NDVI Pixel Popup */
    .ndvi-popup-pixel { width: 260px; }
    .ndvi-popup-pixel .ndvi-popup-header { padding: 12px 12px 10px; }
    .ndvi-popup-pixel .ndvi-popup-header strong { font-size: 28px; font-weight: 800; line-height: 1.1; }
    .ndvi-popup-pixel .ndvi-popup-body { padding: 10px 12px; }
    .ndvi-popup-pixel .ndvi-popup-bar { margin-bottom: 8px; }
    .ndvi-popup-pixel .ndvi-popup-section { margin-top: 8px; padding-top: 6px; }
    .ndvi-popup-pixel .ndvi-popup-stat-grid { gap: 3px 6px; }
    .ndvi-popup-pixel .ndvi-popup-footer { padding: 6px 12px; }

    /* Land Cover Popup */
    .landcover-leaflet-popup { max-width: 360px !important; }
    .landcover-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 6px 24px rgba(13, 148, 136, .2); border: none; }
    .landcover-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .landcover-leaflet-popup .leaflet-popup-tip { box-shadow: 3px 3px 8px rgba(13, 148, 136, .12); }
    .landcover-popup { width: 340px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; overflow: hidden; }
    .landcover-popup-header {
      position: relative;
      padding: 14px 14px 12px;
      color: #fff;
      background: linear-gradient(135deg, #134e4a 0%, #0d9488 50%, #2dd4bf 100%);
      overflow: hidden;
    }
    .landcover-popup-header::before {
      content: '';
      position: absolute;
      top: -25px; right: -25px;
      width: 70px; height: 70px;
      background: rgba(255,255,255,.08);
      border-radius: 50%;
    }
    .landcover-popup-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: 14px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
      background: rgba(255,255,255,.18);
      color: #fff;
      margin-bottom: 6px;
      backdrop-filter: blur(4px);
    }
    .landcover-popup-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #99f6e4; }
    .landcover-popup-header strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; position: relative; z-index: 1; }
    .landcover-popup-body { padding: 12px 14px; background: #fff; max-height: 45vh; overflow-y: auto; }
    .landcover-popup-section-title { font-size: 10px; font-weight: 700; color: #374151; margin-bottom: 6px; letter-spacing: .03em; text-transform: uppercase; }
    .landcover-popup-footer {
      padding: 8px 14px;
      background: #f0fdfa;
      border-top: 1px solid #ccfbf1;
      text-align: center;
    }
    .landcover-popup-footer span { font-size: 9px; color: #64748b; }
    .landcover-popup-footer-actions { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
    .landcover-btn-print {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 12px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(135deg, #134e4a, #0f766e);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all .2s;
      box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }
    .landcover-btn-print:hover { background: linear-gradient(135deg, #0f766e, #0d9488); box-shadow: 0 3px 10px rgba(0,0,0,.25); transform: translateY(-1px); }
    .landcover-btn-print:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
    .landcover-btn-print:disabled { opacity: .6; cursor: not-allowed; transform: none; }

    @media (max-width: 480px) {
      .landcover-leaflet-popup { max-width: calc(100vw - 40px) !important; }
      .landcover-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 12px; }
      .landcover-popup { width: 100% !important; min-width: 280px; }
    }

    .kta-leaflet-popup .leaflet-popup-content { width: 300px !important; max-height: min(390px, calc(100vh - 190px)); margin: 12px 8px 12px 14px; padding-right: 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a8bfaf #eff5f0; }
    .kta-leaflet-popup .leaflet-popup-content::-webkit-scrollbar { width: 6px; }
    .kta-leaflet-popup .leaflet-popup-content::-webkit-scrollbar-track { background: #eff5f0; border-radius: 6px; }
    .kta-leaflet-popup .leaflet-popup-content::-webkit-scrollbar-thumb { background: #a8bfaf; border-radius: 6px; }

    .kta-btn-print {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 12px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(135deg, #374151, #4b5563);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all .2s;
      box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }
    .kta-btn-print:hover {
      background: linear-gradient(135deg, #1f2937, #374151);
      box-shadow: 0 3px 10px rgba(0,0,0,.25);
      transform: translateY(-1px);
    }
    .kta-btn-print:active {
      transform: translateY(0);
      box-shadow: 0 1px 4px rgba(0,0,0,.15);
    }
    .kta-btn-print:disabled {
      opacity: .6;
      cursor: not-allowed;
      transform: none;
    }

    .geotani-btn-print {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 12px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(135deg, #374151, #4b5563);
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all .2s;
      box-shadow: 0 2px 6px rgba(0,0,0,.15);
    }
    .geotani-btn-print:hover {
      background: linear-gradient(135deg, #1f2937, #374151);
      box-shadow: 0 3px 10px rgba(0,0,0,.25);
      transform: translateY(-1px);
    }
    .geotani-btn-print:active {
      transform: translateY(0);
      box-shadow: 0 1px 4px rgba(0,0,0,.15);
    }
    .geotani-btn-print:disabled {
      opacity: .6;
      cursor: not-allowed;
      transform: none;
    }

    /* CVSS Vulnerability Gauge */
    .geotani-vuln-gauge { margin-bottom: 6px; }
    .geotani-vuln-gauge-track {
      height: 6px;
      background: #e5e7eb;
      border-radius: 9999px;
      overflow: hidden;
    }
    .geotani-vuln-gauge-fill {
      height: 100%;
      border-radius: 9999px;
      transition: width 0.4s ease;
    }

    .query-box {
      background: #f8f9fa;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      padding: 12px;
      margin-bottom: 15px;
    }

    .form-group { margin-bottom: 12px; }

    .kegiatan-filter-section {
      background: #f4f7fb;
      border: 1px solid #e7eef5;
      border-radius: 6px;
      padding: 10px 12px;
    }
    .kegiatan-filter-section label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: #54708d;
      margin-bottom: 6px;
    }
    .kegiatan-filter-section select {
      width: 100%;
      padding: 7px 10px;
      font-size: 12px;
      border: 1px solid #c4d5e3;
      border-radius: 5px;
      background: #fff;
      color: #1e293b;
      outline: none;
    }
    .kegiatan-filter-section select:focus {
      border-color: #007bff;
      box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
    }

    .query-box label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: #333;
      margin-bottom: 8px;
    }

    .query-box select {
      width: 100%;
      padding: 8px;
      font-size: 13px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background: white;
    }

    .btn-apply {
      width: 100%;
      background-color: #0078d4;
      color: white;
      border: none;
      padding: 10px;
      font-size: 13px;
      font-weight: 600;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .btn-apply:hover { background-color: #005a9e; }

    .btn-wilayah-apply {
      width: 100%;
      background-color: #0078d4;
      color: white;
      border: none;
      padding: 10px;
      font-size: 13px;
      font-weight: 600;
      border-radius: 4px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .btn-wilayah-apply:hover { background-color: #005a9e; }
    .btn-wilayah-apply:disabled { background-color: #9baab6; cursor: not-allowed; }

    /* Geoid Data Checkboxes */
    .geoid-data-toggles {
      display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
      padding: 8px 0; font-size: 11px;
    }
    .geoid-data-label { font-weight: 600; color: #385773; line-height: 1; }
    .geoid-check {
      display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
      user-select: none; color: #385773; line-height: 1;
    }
    .geoid-check input { display: none; }
    .geoid-check-icon {
      flex-shrink: 0; color: #94a3b8; transition: color .15s;
      vertical-align: middle;
    }
    .geoid-check input:checked ~ .geoid-check-icon { color: #0879bf; }
    .geoid-check input:checked ~ .geoid-check-icon polyline { stroke-width: 3; }
    .geoid-check span { font-weight: 500; vertical-align: middle; }

    /* PANEL DETAIL ADMINISTRASI (DESKTOP: KANAN, MOBILE: MODAL) */
    #detail-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: 360px;
      height: 100vh;
      height: 100dvh;
      background: #ffffff;
      border-left: 1px solid #e0e0e0;
      box-shadow: -4px 0 15px rgba(0,0,0,0.1);
      z-index: 1001;
      display: flex;
      flex-direction: column;
      overflow: visible;
      transition: transform 0.3s ease;
    }

    /* Status Panel Detail Tersembunyi (Desktop) */
    #detail-panel.hidden {
      transform: translateX(100%);
      pointer-events: none;
    }

    /* Tombol Panel Detail Administrasi */
    .detail-panel-btn {
      display: grid;
      place-items: center;
      width: 46px !important;
      height: 46px !important;
      margin: 12px !important;
      margin-bottom: 0 !important;
      border: 1px solid rgba(255,255,255,.86) !important;
      border-radius: 50% !important;
      background: linear-gradient(145deg, #ffffff, #e9f7fc) !important;
      color: #0879bf !important;
      cursor: pointer;
      box-shadow: 0 10px 28px rgba(8,63,102,.24) !important;
      transition: transform .2s, box-shadow .2s, background .2s;
    }
    .detail-panel-btn:hover {
      background: linear-gradient(145deg, #ffffff, #d5f3fb) !important;
      box-shadow: inset 0 0 0 1px rgba(8,121,191,.14);
      transform: translateY(-2px);
    }
    .detail-panel-btn.active {
      background: linear-gradient(145deg, #0879bf, #12a7c8) !important;
      color: #fff !important;
    }

    .panel-header {
      padding: 12px 15px;
      background: #0078d4;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .panel-header h3 {
      font-size: 13px;
      font-weight: 600;
    }

    /* Tombol Tutup/Sembunyikan Panel Detail */
    .close-panel-btn {
      background: transparent;
      border: none;
      color: white;
      font-size: 16px;
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 4px;
      transition: background 0.2s;
    }

    .close-panel-btn:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .panel-body {
      padding: 12px;
      overflow-y: auto;
      flex: 1;
    }

    .population-chart-box {
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 12px;
      margin-bottom: 12px;
    }

    .admin-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      font-size: 12px;
      margin-bottom: 12px;
    }

    .admin-item label {
      display: block;
      color: #777;
      font-weight: 600;
      margin-bottom: 2px;
    }

    .admin-item span {
      color: #222;
      font-weight: 500;
    }

    .detail-subtab-content {
      padding: 0 15px;
    }

    /* Sub Tabs Detail Zonasi */
    .detail-tabs {
      display: flex;
      background: #f4f6f9;
      border: 1px solid #e0e0e0;
      border-radius: 4px;
      margin-bottom: 12px;
      overflow: hidden;
    }

    .detail-tab-btn {
      flex: 1;
      padding: 8px 2px;
      border: none;
      background: transparent;
      font-size: 11px;
      font-weight: 600;
      color: #666;
      cursor: pointer;
    }

    .detail-tab-btn.active {
      color: #0078d4;
      background: #fff;
      border-bottom: 2px solid #0078d4;
    }

    .gempa-subtabs {
      display: flex;
      gap: 4px;
      margin-bottom: 14px;
      background: #f4f6f9;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      padding: 3px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: #cbd5e1 transparent;
    }
    .gempa-subtabs::-webkit-scrollbar { height: 4px; }
    .gempa-subtabs::-webkit-scrollbar-track { background: transparent; }
    .gempa-subtabs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
    .gempa-subtab-btn {
      flex: 0 0 auto;
      padding: 7px 10px;
      border: none;
      border-radius: 4px;
      background: transparent;
      font-size: 11px;
      font-weight: 600;
      color: #666;
      cursor: pointer;
      white-space: nowrap;
      transition: background .15s, color .15s;
    }
    .gempa-subtab-btn:hover { background: #e8ecf0; color: #334155; }
    .gempa-subtab-btn.active { background: #fff; color: #0891b2; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
    .gempa-subtab-panel { display: none; }
    .gempa-subtab-panel.active { display: block; }
    .gempa-subtab-panel .cctv-layers { max-height: 35vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
    .gempa-subtab-panel .cctv-layers::-webkit-scrollbar { width: 4px; }
    .gempa-subtab-panel .cctv-layers::-webkit-scrollbar-track { background: transparent; }
    .gempa-subtab-panel .cctv-layers::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

    .info-card {
      background: #f9f9f9;
      border: 1px solid #e5e5e5;
      border-radius: 6px;
      padding: 8px 10px;
      margin-bottom: 8px;
    }

    .info-card label {
      font-size: 10px;
      color: #666;
      display: block;
      font-weight: 600;
    }

    .info-card p {
      font-size: 12px;
      font-weight: 600;
      color: #333;
    }

    /* Legenda */
    .legend-layer-title {
      font-weight: bold;
      font-size: 12px;
      margin-bottom: 6px;
      border-bottom: 2px solid #0078d4;
    }

    .legend-item {
      display: flex;
      align-items: center;
      margin-bottom: 4px;
      font-size: 12px;
    }

    .legend-item img {
      margin-right: 8px;
      width: 18px;
      height: 18px;
    }

    /* BACKDROP MODAL FOR MOBILE */
    #modal-backdrop {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      width: 100%;
      height: 100vh;
      height: 100dvh;
      background: rgba(0,0,0,0.4);
      z-index: 1050;
    }

    /* RESPONSIF MODE MOBILE (<= 768px) */
    @media (max-width: 768px) {
      .map-insight-cards {
        gap: 6px;
        width: calc(100% - 24px);
      }
      .map-insight-card { min-width: 0; }
      .insight-card-body { padding: 0 8px 5px; }
      .insight-weather-temp { font-size: 16px; }
      .insight-quake-mag { width: 28px; height: 28px; font-size: 12px; }
      .insight-quake-left { min-width: 44px; }
      .insight-quake-main { gap: 6px; }
      .insight-quake-meta { font-size: 9px; }

      .geoid-leaflet-popup { 
        max-width: calc(100vw - 40px) !important;
        width: auto !important;
        min-width: 280px;
      }
      .geoid-leaflet-popup .leaflet-popup-content-wrapper {
        max-height: 70vh;
        border-radius: 14px;
      }
      .geoid-popup { width: 100% !important; min-width: 280px; }
      .geoid-popup-meta { padding: 12px 14px; }
      .geoid-popup-meta div { font-size: 12px; }
      .geoid-popup-insights { padding: 12px 14px; }
      .geoid-popup-cctv { padding: 12px 14px; }

      .bmkg-leaflet-popup {
        max-width: calc(100vw - 48px) !important;
        width: auto !important;
        min-width: 250px;
      }
      .bmkg-leaflet-popup .leaflet-popup-content-wrapper {
        max-height: 70vh;
        border-radius: 14px;
      }
      .bmkg-popup { max-width: 100%; }

      .quake-leaflet-popup { max-width: calc(100vw - 40px) !important; }
      .quake-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 14px; }
      .quake-popup { width: 100% !important; min-width: 280px; }
      .quake-popup-mag-display { padding: 12px 14px; gap: 10px; }
      .quake-popup-mag-circle { width: 56px; height: 56px; }
      .quake-popup-mag-num { font-size: 20px; }
      .quake-popup-details { padding: 12px 14px; gap: 10px; }

      .agol-leaflet-popup { max-width: calc(100vw - 40px) !important; }
      .agol-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 14px; }
      .agol-popup { width: 100% !important; min-width: 260px; }

      .geoid-popup { width: 100% !important; max-width: 250px; }
      .geoid-popup-scroll { max-height: 100%; }
      .geoid-popup-scroll .geoid-popup-body { max-height: calc(70vh - 80px); overflow-y: auto; }
      .geoid-popup-meta span { font-size: 15px; }
      .geoid-popup-meta b { font-size: 15px; }

      .geotani-leaflet-popup { max-width: calc(100vw - 40px) !important; }
      .geotani-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 14px; }
      .geotani-popup { width: 100% !important; min-width: 280px; }
      .geotani-popup-meta { padding: 12px 14px; }
      .geotani-popup-meta div { font-size: 12px; }
      .geotani-popup-insights { padding: 12px 14px; }

      .kta-leaflet-popup { max-width: calc(100vw - 40px) !important; }
      .kta-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 14px; }
      .kta-popup { width: 100% !important; min-width: 280px; }
      .kta-popup-body { padding: 12px 14px; max-height: 60vh; }

      .boundary-leaflet-popup { max-width: calc(100vw - 40px) !important; }
      .boundary-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 12px; }
      .boundary-popup { width: 100% !important; min-width: 240px; }
      .boundary-popup-header { padding: 14px 14px 12px; }
      .boundary-popup-header strong { font-size: 14px; }
      .boundary-popup-body { padding: 10px 14px; }
      .boundary-popup-meta-item { padding: 5px 8px; }

      .irisan-leaflet-popup { max-width: calc(100vw - 40px) !important; }
      .irisan-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 12px; }
      .irisan-popup { width: 100% !important; min-width: 260px; }
      .irisan-popup-header { padding: 12px 12px 10px; }
      .irisan-popup-header strong { font-size: 13px; }
      .irisan-popup-body { padding: 10px 12px; }
      .irisan-popup-detail { gap: 5px 8px; font-size: 10px; }
      .irisan-popup-meta-grid { gap: 3px 6px; font-size: 9px; }
      .crop-health-card-wrap { max-height: 50vh; }

      .ndvi-leaflet-popup { max-width: calc(100vw - 40px) !important; }
      .ndvi-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 12px; }
      .ndvi-popup { width: 100% !important; min-width: 260px; }
      .ndvi-popup-header { padding: 12px 12px 10px; }
      .ndvi-popup-header strong { font-size: 13px; }
      .ndvi-popup-body { padding: 10px 12px; max-height: 55vh; }
      .ndvi-popup-summary { gap: 6px; }
      .ndvi-popup-stat-grid { gap: 3px 6px; font-size: 9px; }
      .ndvi-popup-dist-row { grid-template-columns: 60px 1fr 28px; }
      .ndvi-popup-pixel { width: 220px; }
      .ndvi-popup-pixel .ndvi-popup-header strong { font-size: 24px; }
      .ndvi-popup-footer-actions { flex-direction: column; gap: 6px; }
      .ndvi-btn-print { width: 100%; justify-content: center; }
      .geotani-btn-print { width: 100%; justify-content: center; }

      #sidebar-left {
      width: 310px;
      }

      #cctv-search-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40vh;
        height: 40dvh;
        width: 100%;
        border-radius: 16px 16px 0 0;
        z-index: 1100;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        margin-top: 0;
        background: #fff;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        padding: 0;
      }
      #cctv-search-sheet.sheet-open {
        transform: translateY(0);
      }
      #cctv-search-sheet .cctv-sheet-handle {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0 6px;
        cursor: grab;
        -webkit-user-select: none;
        user-select: none;
        background: #fff;
      }
      #cctv-search-sheet .cctv-sheet-handle::after {
        content: '';
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: #c4d5e3;
      }
      #cctv-search-sheet .cctv-card {
        margin: 0 15px 10px;
        border-radius: 10px;
      }
      #cctv-search-sheet #cctvStatus,
      #cctv-search-sheet #cctvResults {
        padding: 0 15px;
      }

      #detail-panel {
        position: fixed;
        top: auto;
        bottom: -140%;
        left: 0;
        right: 0;
        width: 100%;
        height: 60vh;
        height: 60dvh;
        max-height: 60vh;
        max-height: 60dvh;
        border-radius: 16px 16px 0 0;
        z-index: 1100;
        transition: bottom 0.3s ease-in-out;
        margin-bottom: -10px;
      }

      #detail-panel .panel-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      #detail-panel.hidden {
        transform: none;
        opacity: 1;
        pointer-events: none;
      }

      #detail-panel.active {
        bottom: 10px;
        pointer-events: auto;
      }

      #modal-backdrop.active {
        display: block;
      }

      .detail-panel-btn {
        display: grid !important;
      }
      .alat-grid-2 { grid-template-columns: 1fr; }
    }

    /* Styling Komponen Cuaca & Autocomplete Search */
    .weather-card {
      background: #f8f9fa;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 12px;
      margin-bottom: 12px;
    }
    .weather-main {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 10px 0;
      margin-bottom: 60px;
    }
    .weather-temp {
      font-size: 24px;
      font-weight: bold;
    }
    .weather-item {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      padding: 4px 0;
      border-bottom: 1px dashed #eee;
    }
    .weather-forecast-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px 0;
      border-bottom: 1px solid #f0f0f0;
      font-size: 12px;
    }

    .wind-toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
    }
    .wind-toggle-label {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      user-select: none;
    }
    .wind-toggle-label input { display: none; }
    .wind-toggle-track {
      width: 36px; height: 20px;
      background: #ccc;
      border-radius: 10px;
      position: relative;
      transition: background .2s;
      flex-shrink: 0;
    }
    .wind-toggle-label input:checked + .wind-toggle-track {
      background: #1687d4;
    }
    .wind-toggle-thumb {
      position: absolute;
      top: 2px; left: 2px;
      width: 16px; height: 16px;
      background: #fff;
      border-radius: 50%;
      transition: transform .2s;
      box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }
    .wind-toggle-label input:checked + .wind-toggle-track .wind-toggle-thumb {
      transform: translateX(16px);
    }
    .wind-toggle-text {
      font-size: 12px;
      font-weight: 600;
      color: #444;
    }
    .wind-controls {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .wind-btn {
      background: #1687d4;
      color: #fff;
      border: none;
      border-radius: 4px;
      padding: 3px 8px;
      font-size: 11px;
      cursor: pointer;
      line-height: 1;
    }
    .wind-btn:hover { background: #0d6ebd; }
    .wind-ts {
      font-size: 10px;
      color: #666;
      font-family: monospace;
    }

    /* Styling Autocomplete Box */
    .search-weather-container {
      position: relative;
      margin-bottom: 12px;
    }
    .search-weather-input {
      width: 100%;
      padding: 8px 12px;
      font-size: 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      box-sizing: border-box;
      outline: none;
    }
    .search-weather-input:focus {
      border-color: #007bff;
      box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
    }
    .autocomplete-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #ffffff;
      border: 1px solid #ddd;
      border-radius: 0 0 6px 6px;
      max-height: 200px;
      overflow-y: auto;
      z-index: 1000;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      display: none;
    }
    .autocomplete-item {
      padding: 8px 12px;
      font-size: 11px;
      cursor: pointer;
      border-bottom: 1px solid #f5f5f5;
    }
    .autocomplete-item:hover {
      background-color: #f0f7ff;
    }
    .autocomplete-item strong {
      color: #007bff;
    }

    /* Custom Leaflet Weather Icon Marker Badge */
    .weather-marker-icon {
      position: relative;
      min-width: 54px;
      min-height: 54px;
      padding: 5px;
      border: 2px solid #fff;
      border-radius: 18px 18px 18px 4px;
      background: linear-gradient(145deg, #0475bd, #0a4f91);
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1px;
      box-shadow: 0 8px 18px rgba(3, 76, 136, .38);
      font-weight: bold;
      font-size: 10px;
      white-space: nowrap;
    }
    .weather-marker-icon::after {
      content: '';
      position: absolute;
      left: 7px;
      bottom: -8px;
      width: 13px;
      height: 13px;
      transform: rotate(45deg);
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      background: #0a4f91;
    }
    .weather-marker-icon img {
      width: 26px;
      height: 26px;
      filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
    }
    .bmkg-leaflet-popup .leaflet-popup-content-wrapper { overflow: hidden; padding: 0; border-radius: 14px; box-shadow: 0 14px 40px rgba(11,54,87,.28); }
    .bmkg-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .bmkg-leaflet-popup .leaflet-popup-tip { box-shadow: 0 14px 40px rgba(11,54,87,.28); }
    .bmkg-popup { width: 270px; max-height: min(68vh, 460px); max-height: min(68dvh, 460px); overflow-y: auto; font-family: 'Segoe UI', Arial, sans-serif; color: #153652; scrollbar-width: thin; scrollbar-color: #9ab7cc transparent; }
    .bmkg-popup::-webkit-scrollbar { width: 5px; }.bmkg-popup::-webkit-scrollbar-thumb { border-radius: 4px; background: #9ab7cc; }
    .bmkg-popup-head { padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #0879bf, #0a4d8c); }
    .bmkg-popup-head strong { display: block; font-size: 14px; line-height: 1.25; }
    .bmkg-popup-head span { display: block; margin-top: 2px; font-size: 11px; opacity: .92; }
    .bmkg-popup-weather { display: flex; align-items: center; gap: 12px; padding: 14px; background: linear-gradient(180deg, #f3f9fd, #ffffff); }
    .bmkg-popup-weather img { width: 48px; height: 48px; object-fit: contain; }
    .bmkg-popup-weather > div { min-width: 0; }
    .bmkg-popup-temp { color: #075c9d; font-size: 26px; font-weight: 700; line-height: 1.1; }
    .bmkg-popup-weather span { display: block; margin-top: 2px; color: #5b7690; font-size: 12px; }

    .geoid-marker-wrap { background: transparent; border: 0; }
    .geoid-marker {
      display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #fff; border-radius: 50% 50% 50% 8px;
      background: linear-gradient(145deg, #2563eb, #1d4ed8); box-shadow: 0 8px 20px rgba(37, 99, 235, .4); transform: rotate(-45deg);
    }
    .geoid-marker svg { width: 25px; height: 25px; transform: rotate(45deg); fill: #fff; }
    .geoid-marker svg circle { fill: #93c5fd; }

    .geotani-marker-wrap { background: transparent; border: 0; }
    .geotani-marker {
      display: grid; place-items: center; width: 46px; height: 46px; border: 3px solid #fff; border-radius: 50% 50% 50% 8px;
      background: linear-gradient(145deg, #16a34a, #15803d); box-shadow: 0 8px 20px rgba(22, 163, 74, .4); transform: rotate(-45deg);
    }
    .geotani-marker svg { width: 25px; height: 25px; transform: rotate(45deg); fill: #fff; }
    .geotani-marker svg circle { fill: #86efac; }
    /* Modern Blue Geoid Popup */
    .geoid-leaflet-popup { max-width: 360px !important; }
    .geoid-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 8px 32px rgba(30, 64, 175, .2); border: none; }
    .geoid-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .geoid-leaflet-popup .leaflet-popup-tip { box-shadow: 4px 4px 12px rgba(30, 64, 175, .15); }

    .geoid-popup { width: 360px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; overflow: hidden; }

    .geoid-popup-head {
      position: relative;
      padding: 20px 18px 16px;
      color: #fff;
      background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
      overflow: hidden;
    }
    .geoid-popup-head::before {
      content: '';
      position: absolute;
      top: -40px; right: -40px;
      width: 120px; height: 120px;
      background: rgba(255,255,255,.08);
      border-radius: 50%;
    }
    .geoid-popup-head::after {
      content: '';
      position: absolute;
      bottom: -30px; left: -20px;
      width: 80px; height: 80px;
      background: rgba(255,255,255,.05);
      border-radius: 50%;
    }

    .geoid-popup-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      background: rgba(255,255,255,.2);
      color: #fff;
      margin-bottom: 10px;
      backdrop-filter: blur(4px);
    }
    .geoid-popup-badge-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: #93c5fd;
    }

    .geoid-popup-head strong {
      display: inline;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -.01em;
      position: relative;
      z-index: 1;
      text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }
    .geoid-popup-title-row {
      display: flex;
      align-items: center;
      gap: 6px;
      position: relative;
      z-index: 1;
    }
    .geoid-popup-head > span {
      display: block;
      margin-top: 4px;
      font-size: 12px;
      line-height: 1.4;
      color: rgba(255,255,255,.9);
      position: relative;
      z-index: 1;
    }
    .geoid-copy-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      padding: 0;
      margin-left: 6px;
      border: 0;
      border-radius: 6px;
      background: rgba(255,255,255,.2);
      color: #fff;
      font-size: 14px;
      cursor: pointer;
      vertical-align: middle;
      transition: background .2s;
      position: relative;
      z-index: 1;
    }
    .geoid-copy-btn:hover { background: rgba(255,255,255,.35); }

    .geoid-popup-meta {
      padding: 8px 18px;
      display: grid;
      gap: 0;
      background: #f8fafc;
      border-bottom: 1px solid #dbeafe;
    }
    .geoid-popup-meta div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      padding: 4px 0;
      border-bottom: 1px solid #eef3f8;
    }
    .geoid-popup-meta div:last-child { border-bottom: none; }
    .geoid-popup-meta span {
      color: #64748b;
      font-weight: 500;
    }
    .geoid-popup-meta b {
      color: #1e40af;
      font-size: 13px;
      font-weight: 700;
      text-align: right;
      word-break: break-word;
    }

    .geoid-popup-insights {
      padding: 14px 18px;
      display: grid;
      gap: 12px;
      background: #fff;
      border-bottom: 1px solid #e0e7ff;
    }
    .geoid-popup-insights > div + div {
      padding-top: 12px;
      border-top: 1px solid #e0e7ff;
    }
    .geoid-popup-insights div { display: grid; gap: 4px; }
    .geoid-popup-insights b { color: #1e40af; font-size: 13px; font-weight: 700; }
    .geoid-popup-insights span { color: #475569; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

    .geoid-popup-cctv {
      padding: 14px 18px;
      background: #f8fafc;
      border-bottom: 1px solid #e0e7ff;
    }
    .geoid-popup-cctv div { display: grid; gap: 4px; }
    .geoid-popup-cctv b { color: #1e40af; font-size: 13px; font-weight: 700; }
    .geoid-popup-cctv span { color: #475569; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
    .geoid-cctv-insight { position: relative; padding-right: 42px; }
    .geoid-cctv-button { position: absolute; top: 50%; right: 0; display: grid; place-items: center; width: 32px; height: 32px; padding: 0 0 0 2px; border: 0; border-radius: 50%; background: #2563eb; color: #fff; font-size: 13px; cursor: pointer; transform: translateY(-50%); box-shadow: 0 2px 8px rgba(37, 99, 235, .3); }
    .geoid-cctv-button:hover { background: #1d4ed8; }

    .geoid-popup-cctv-section {
      padding: 8px 10px;
      background: #f8fafc;
      border-bottom: 1px solid #dbeafe;
    }
    .geoid-popup-cctv-section > b { display: block; color: #1e40af; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
    .geoid-popup-cctv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; }
    .geoid-popup-cctv-row span { color: #64748b; font-weight: 500; }
    .geoid-popup-cctv-row b { color: #1e40af; font-size: 13px; font-weight: 700; text-align: right; word-break: break-word; }
    .geoid-popup-cctv-btn { display: flex; justify-content: center; padding-top: 4px; }
    .geoid-popup-cctv-btn button { width: 100%; padding: 8px; border: 1px solid #bfdbfe; border-radius: 8px; background: #f0f7ff; cursor: pointer; font-size: 12px; color: #0b4da2; font-weight: 600; transition: background .2s; }
    .geoid-popup-cctv-btn button:hover { background: #dbeafe; }
    .geoid-cctv-insight { position: relative; padding-right: 42px; }
    .geoid-cctv-button { position: absolute; top: 50%; right: 0; display: grid; place-items: center; width: 32px; height: 32px; padding: 0 0 0 2px; border: 0; border-radius: 50%; background: #2563eb; color: #fff; font-size: 13px; cursor: pointer; transform: translateY(-50%); box-shadow: 0 2px 8px rgba(37, 99, 235, .3); }
    .geoid-cctv-button:hover { background: #1d4ed8; }

    .geoid-popup-risiko-section {
      padding: 8px 10px;
      background: #f8fafc;
      border-bottom: 1px solid #dbeafe;
    }
    .geoid-popup-risiko-section > b { display: block; color: #1e40af; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
    .geoid-popup-risiko-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; }
    .geoid-popup-risiko-row span { color: #64748b; font-weight: 500; }
    .geoid-popup-risiko-row b { color: #1e40af; font-size: 13px; font-weight: 700; text-align: left; word-break: break-word; }
    .geoid-popup-risiko-sep { border-top: 1px solid #e0e7ff; margin: 2px 0; }
    .geoid-popup-risiko-btn { display: flex; justify-content: center; padding-top: 4px; }
    .geoid-popup-risiko-btn button { width: 100%; padding: 8px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; cursor: pointer; font-size: 12px; color: #dc2626; font-weight: 600; transition: background .2s; }
    .geoid-popup-risiko-btn button:hover { background: #fee2e2; }
    .geoid-risiko-wrap { position: relative; padding-right: 42px; }
    .geoid-risiko-button { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #dc2626; color: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(220, 38, 38, .3); }
    .geoid-risiko-button:hover { background: #b91c1c; }

    /* Scrollable Popup */
    .geoid-popup-scroll { max-height: 60vh; }
    .geoid-popup-scroll .geoid-popup-body { max-height: calc(60vh - 100px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #93c5fd transparent; }
    .geoid-popup-scroll .geoid-popup-body::-webkit-scrollbar { width: 4px; }
    .geoid-popup-scroll .geoid-popup-body::-webkit-scrollbar-track { background: transparent; }
    .geoid-popup-scroll .geoid-popup-body::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 10px; }

    /* Modern Green Geotani Popup */
    .geotani-leaflet-popup { max-width: 360px !important; }
    .geotani-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 8px 32px rgba(22, 163, 74, .2); border: none; }
    .geotani-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .geotani-leaflet-popup .leaflet-popup-tip { box-shadow: 4px 4px 12px rgba(22, 163, 74, .15); }

    .geotani-popup { width: 360px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; overflow: hidden; }

    .geotani-popup-head {
      position: relative;
      padding: 20px 18px 16px;
      color: #fff;
      background: linear-gradient(135deg, #166534 0%, #16a34a 50%, #22c55e 100%);
      overflow: hidden;
    }
    .geotani-popup-head::before {
      content: '';
      position: absolute;
      top: -40px; right: -40px;
      width: 120px; height: 120px;
      background: rgba(255,255,255,.08);
      border-radius: 50%;
    }
    .geotani-popup-head::after {
      content: '';
      position: absolute;
      bottom: -30px; left: -20px;
      width: 80px; height: 80px;
      background: rgba(255,255,255,.05);
      border-radius: 50%;
    }

    .geotani-popup-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      background: rgba(255,255,255,.2);
      color: #fff;
      margin-bottom: 10px;
      backdrop-filter: blur(4px);
    }
    .geotani-popup-badge-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: #86efac;
    }

    .geotani-popup-head strong {
      display: block;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -.01em;
      position: relative;
      z-index: 1;
      text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }
    .geotani-popup-head > span {
      display: block;
      margin-top: 4px;
      font-size: 12px;
      line-height: 1.4;
      color: rgba(255,255,255,.9);
      position: relative;
      z-index: 1;
    }

    .geotani-popup-meta {
      padding: 14px 18px;
      display: grid;
      gap: 0;
      background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
      border-bottom: 1px solid #dcfce7;
    }
    .geotani-popup-meta div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      padding: 8px 0;
      border-bottom: 1px solid #d1fae5;
    }
    .geotani-popup-meta div:last-child { border-bottom: none; }
    .geotani-popup-meta span {
      color: #64748b;
      font-weight: 500;
    }
    .geotani-popup-meta b {
      color: #166534;
      font-size: 13px;
      font-weight: 700;
      text-align: right;
      word-break: break-word;
    }

    .geotani-popup-insights {
      padding: 14px 18px;
      display: grid;
      gap: 12px;
      background: #fff;
      border-bottom: 1px solid #dcfce7;
    }
    .geotani-popup-insights > div + div {
      padding-top: 12px;
      border-top: 1px solid #dcfce7;
    }
    .geotani-popup-insights div { display: grid; gap: 4px; }
    .geotani-popup-insights b { color: #166534; font-size: 13px; font-weight: 700; }
    .geotani-popup-insights span { color: #475569; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

    /* Modern Green KTA Popup */
    .kta-leaflet-popup { max-width: 380px !important; }
    .kta-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 8px 32px rgba(22, 163, 74, .25); border: none; }
    .kta-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .kta-leaflet-popup .leaflet-popup-tip { box-shadow: 4px 4px 12px rgba(22, 163, 74, .15); }

    .kta-popup { width: 380px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; overflow: hidden; }

    .kta-popup-header {
      position: relative;
      padding: 20px 18px 16px;
      color: #fff;
      background: linear-gradient(135deg, #14532d 0%, #166534 40%, #16a34a 100%);
      overflow: hidden;
    }
    .kta-popup-header::before {
      content: '';
      position: absolute;
      top: -40px; right: -40px;
      width: 120px; height: 120px;
      background: rgba(255,255,255,.08);
      border-radius: 50%;
    }
    .kta-popup-header::after {
      content: '';
      position: absolute;
      bottom: -30px; left: -20px;
      width: 80px; height: 80px;
      background: rgba(255,255,255,.05);
      border-radius: 50%;
    }

    .kta-popup-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      background: rgba(255,255,255,.2);
      color: #fff;
      margin-bottom: 10px;
      backdrop-filter: blur(4px);
    }
    .kta-popup-badge-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: #86efac;
      animation: kta-pulse 1.5s infinite;
    }
    @keyframes kta-pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: .5; transform: scale(1.2); }
    }

    .kta-popup-header strong {
      display: block;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -.01em;
      position: relative;
      z-index: 1;
      text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }
    .kta-popup-header > span {
      display: block;
      margin-top: 4px;
      font-size: 12px;
      line-height: 1.4;
      color: rgba(255,255,255,.9);
      position: relative;
      z-index: 1;
    }

    .kta-popup-body {
      padding: 14px 18px;
      background: #fff;
      max-height: 50vh;
      overflow-y: auto;
    }
    .kta-popup-body b { color: #166534; }
    .kta-popup-body span { color: #475569; }

    .kta-marker-wrap { background: transparent; border: 0; }
    .kta-marker {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: linear-gradient(145deg, #16a34a, #15803d);
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
      box-shadow: 0 4px 12px rgba(22, 163, 74, .4);
      border: 2px solid #fff;
    }

    /* Modern Gray Boundary Popup */
    .boundary-leaflet-popup { max-width: 300px !important; }
    .boundary-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); border: none; }
    .boundary-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .boundary-leaflet-popup .leaflet-popup-tip { box-shadow: 3px 3px 8px rgba(0, 0, 0, .1); }

    .boundary-popup { width: 300px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; overflow: hidden; }

    .boundary-popup-header {
      position: relative;
      padding: 16px 16px 14px;
      color: #fff;
      background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
      overflow: hidden;
    }
    .boundary-popup-header::before {
      content: '';
      position: absolute;
      top: -30px; right: -30px;
      width: 80px; height: 80px;
      background: rgba(255,255,255,.08);
      border-radius: 50%;
    }

    .boundary-popup-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: 16px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
      background: rgba(255,255,255,.18);
      color: #fff;
      margin-bottom: 8px;
      backdrop-filter: blur(4px);
    }
    .boundary-popup-badge-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #d1d5db;
    }

    .boundary-popup-header strong {
      display: block;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -.01em;
      position: relative;
      z-index: 1;
      text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }
    .boundary-popup-header > span {
      display: block;
      margin-top: 3px;
      font-size: 11px;
      line-height: 1.3;
      color: rgba(255,255,255,.85);
      position: relative;
      z-index: 1;
    }

    .boundary-popup-body {
      padding: 12px 16px;
      background: #f9fafb;
    }

    .boundary-popup-meta {
      display: grid;
      gap: 8px;
    }

    .boundary-popup-meta-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 10px;
      background: #fff;
      border-radius: 8px;
      border: 1px solid #e5e7eb;
    }

    .boundary-popup-meta-label {
      font-size: 11px;
      color: #6b7280;
      font-weight: 500;
    }

    .boundary-popup-meta-value {
      font-size: 12px;
      font-weight: 700;
      color: #374151;
    }

    .boundary-btn-download {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 10px;
      font-size: 10px;
      font-weight: 600;
      color: #2563eb;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 6px;
      cursor: pointer;
      transition: background .15s, border-color .15s;
    }
    .boundary-btn-download:hover {
      background: #dbeafe;
      border-color: #93c5fd;
    }

    /* Modern Green Irisan Popup */
    .irisan-leaflet-popup { max-width: 320px !important; }
    .irisan-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 6px 24px rgba(22, 163, 74, .2); border: none; }
    .irisan-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .irisan-leaflet-popup .leaflet-popup-tip { box-shadow: 3px 3px 8px rgba(22, 163, 74, .12); }

    .irisan-popup { width: 320px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; overflow: hidden; }

    .irisan-popup-header {
      position: relative;
      padding: 14px 14px 12px;
      color: #fff;
      background: linear-gradient(135deg, #14532d 0%, #166534 50%, #22c55e 100%);
      overflow: hidden;
    }
    .irisan-popup-header::before {
      content: '';
      position: absolute;
      top: -25px; right: -25px;
      width: 70px; height: 70px;
      background: rgba(255,255,255,.08);
      border-radius: 50%;
    }

    .irisan-popup-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: 14px;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .05em;
      text-transform: uppercase;
      background: rgba(255,255,255,.18);
      color: #fff;
      margin-bottom: 6px;
      backdrop-filter: blur(4px);
    }
    .irisan-popup-badge-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #86efac;
    }

    .irisan-popup-header strong {
      display: block;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.2;
      position: relative;
      z-index: 1;
    }

    .irisan-popup-body {
      padding: 12px 14px;
      background: #fff;
    }

    .irisan-popup-detail {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px 10px;
      font-size: 11px;
    }
    .irisan-popup-detail span { color: #64748b; }
    .irisan-popup-detail b { color: #166534; font-weight: 600; }

    .irisan-popup-progress {
      grid-column: 1 / -1;
      margin-top: 6px;
      padding-top: 6px;
      border-top: 1px dashed #d1fae5;
    }
    .irisan-popup-progress-label {
      font-size: 10px;
      color: #64748b;
      margin-bottom: 3px;
    }
    .irisan-popup-progress-bar {
      height: 6px;
      border-radius: 3px;
      background: linear-gradient(to right, #4caf50, #8bc34a, #ffc107, #ff5722, #b71c1c);
      position: relative;
    }
    .irisan-popup-progress-marker {
      position: absolute;
      top: -2px;
      width: 2px;
      height: 10px;
      background: #333;
      border-radius: 1px;
      transform: translateX(-1px);
    }
    .irisan-popup-progress-scale {
      display: flex;
      justify-content: space-between;
      font-size: 8px;
      color: #9ca3af;
      margin-top: 1px;
    }

    .irisan-popup-meta {
      grid-column: 1 / -1;
      margin-top: 8px;
      padding-top: 8px;
      border-top: 1px solid #e5e7eb;
    }
    .irisan-popup-meta-title {
      font-size: 10px;
      font-weight: 700;
      color: #374151;
      margin-bottom: 6px;
      letter-spacing: .03em;
    }
    .irisan-popup-meta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4px 8px;
      font-size: 10px;
    }
    .irisan-popup-meta-grid span { color: #64748b; line-height: 1.4; }
    .irisan-popup-meta-grid b { color: #166534; font-weight: 600; overflow-wrap: anywhere; line-height: 1.4; }

    .irisan-popup-footer {
      padding: 8px 14px;
      background: #f0fdf4;
      border-top: 1px solid #dcfce7;
      text-align: center;
    }
    .irisan-popup-footer span {
      font-size: 9px;
      color: #64748b;
    }



    /* Geoid Summary Cards */
    .geoid-summary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
    .geoid-summary-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 14px 8px 12px;
      border-radius: 12px;
      background: #fff;
      border: 1px solid #e8eef3;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      transition: transform .15s, box-shadow .15s;
      min-width: 0;
    }
    .geoid-summary-box:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
    .geoid-summary-count {
      font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    .geoid-summary-label {
      font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase;
      margin-top: 4px; letter-spacing: 0.03em;
    }
    .geoid-summary-prov .geoid-summary-count { color: #0879bf; }
    .geoid-summary-prov { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-color: #bae6fd; }
    .geoid-summary-kab .geoid-summary-count { color: #7c3aed; }
    .geoid-summary-kab { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border-color: #ddd6fe; }
    .geoid-summary-kec .geoid-summary-count { color: #d97706; }
    .geoid-summary-kec { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
    .geoid-summary-desa .geoid-summary-count { color: #16a34a; }
    .geoid-summary-desa { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #bbf7d0; }

    /* Geoid Search Autocomplete */
    .geoid-search-container { position: relative; margin-bottom: 14px; }
    .geoid-search-input {
      width: 100%;
      padding: 9px 12px;
      font-size: 12px;
      border: 1px solid #c4d5e3;
      border-radius: 6px;
      box-sizing: border-box;
      outline: none;
      background: #f7fafc;
    }
    .geoid-search-input:focus {
      border-color: #007bff;
      box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
      background: #fff;
    }
    .geoid-autocomplete-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #ffffff;
      border: 1px solid #c4d5e3;
      border-top: 0;
      border-radius: 0 0 8px 8px;
      max-height: 240px;
      overflow-y: auto;
      z-index: 1000;
      box-shadow: 0 6px 16px rgba(17,59,91,0.15);
      display: none;
    }
    .geoid-autocomplete-item {
      padding: 9px 12px;
      font-size: 11px;
      cursor: pointer;
      border-bottom: 1px solid #eef4f8;
      transition: background 0.15s;
    }
    .geoid-autocomplete-item:hover { background-color: #f0f7ff; }
    .geoid-autocomplete-item strong { color: #0b4da2; font-size: 12px; }
    .geoid-autocomplete-item small { color: #777; display: block; margin-top: 2px; }
    .geoid-autocomplete-item .geoid-ac-kode { color: #007bff; font-size: 10px; margin-left: 4px; }
    .geoid-ac-header {
      padding: 6px 12px 4px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: #7a8fa3;
      background: #f5f8fa;
      border-bottom: 1px solid #eef4f8;
      user-select: none;
    }
    .geoid-ac-geocode { border-left: 3px solid #1677d2; }
    .geoid-ac-geocode strong { color: #1677d2; }
    .geoid-ac-geocode-addr { color: #777; font-size: 10px; }
    .geoid-search-hint { font-size: 11px; color: #7a8fa3; margin-top: 4px; }

    /* GEOID Coordinate Search */

    /* Panel prakiraan 3 hari BMKG */
    .weather-panel {
      color: #14213d;
    }
    .weather-hero {
      color: #fff;
      padding: 16px;
      border-radius: 14px;
      background: linear-gradient(135deg, #0b5cab, #1687d4 58%, #64c7f5);
      box-shadow: 0 10px 22px rgba(16, 102, 177, .22);
    }
    .weather-hero-location {
      margin: 0;
      font-size: 14px;
      font-weight: 700;
    }
    .weather-hero-region,
    .weather-source {
      margin: 10px 0 0;
      font-size: 6px;
      opacity: .88;
    }
    .weather-now {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 12px 0;
    }
    .weather-now img {
      width: 54px;
      height: 54px;
      object-fit: contain;
    }
    .weather-now-temp {
      font-size: 32px;
      font-weight: 700;
      line-height: 1;
    }
    .weather-now-desc {
      margin-top: 4px;
      font-size: 12px;
    }
    .weather-metrics {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 6px;
    }
    .weather-metric {
      padding: 7px 5px;
      border-radius: 8px;
      background: rgba(255,255,255,.16);
      text-align: center;
      font-size: 10px;
    }
    .weather-metric strong {
      display: block;
      margin-top: 2px;
      font-size: 11px;
    }
    .weather-insights {
      margin: 14px 0 0;
      padding: 12px 14px;
      background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 100%);
      border: 1px solid #d0e8f5;
      border-radius: 12px;
    }
    .wi-kalimat {
      font-size: 12px;
      color: #37474f;
      line-height: 1.5;
      margin-bottom: 10px;
      font-style: italic;
    }
    .wi-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .wi-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 3px 8px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 600;
      white-space: nowrap;
    }
    .bmkg-popup .weather-insights {
      margin: 10px 0 0;
      padding: 8px 10px;
      background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 100%);
      border: 1px solid #d0e8f5;
      border-radius: 0;
    }
    .bmkg-popup .wi-kalimat {
      font-size: 10px;
      margin-bottom: 6px;
    }
    .bmkg-popup .wi-badges {
      gap: 4px;
    }
    .bmkg-popup .wi-badge {
      padding: 2px 6px;
      font-size: 9px;
    }
    .weather-days-title {
      margin: 16px 0 8px;
      font-size: 14px;
      font-weight: 700;
    }
    .weather-days-grid {
      display: grid;
      gap: 9px;
    }
    .weather-day-card {
      overflow: hidden;
      border: 1px solid #e5edf5;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 4px 12px rgba(19, 59, 92, .07);
    }
    .weather-day-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 11px;
      background: #f4f9fd;
      font-size: 11px;
      font-weight: 700;
    }
    .weather-day-summary {
      color: #46718f;
      font-size: 10px;
      font-weight: 600;
    }
    .weather-slots {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      padding: 6px;
      gap: 4px;
    }
    .weather-slot {
      min-width: 0;
      padding: 5px 2px;
      border-radius: 7px;
      text-align: center;
      font-size: 9px;
    }
    .weather-slot:hover { background: #edf7ff; }
    .weather-slot img { display: block; width: 25px; height: 25px; margin: 2px auto; object-fit: contain; }
    .weather-slot-temp { color: #145b93; font-weight: 700; }
    .weather-source { color: #567; text-align: right; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Temperature Chart */
    .temp-chart-section {
      margin: 16px 0 8px;
      padding: 14px 12px 10px;
      border-radius: 14px;
      background: #fff;
      border: 1px solid #e5edf5;
      box-shadow: 0 4px 12px rgba(19, 59, 92, .06);
    }
    .temp-chart-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .temp-chart-title {
      margin: 0;
      font-size: 13px;
      font-weight: 700;
      color: #173b5d;
    }
    .temp-chart-legend {
      display: flex;
      gap: 10px;
    }
    .temp-chart-legend-item {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 600;
      color: #54708d;
    }
    .temp-chart-legend-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }
    .temp-chart-container {
      width: 100%;
      overflow-x: auto;
      scrollbar-width: thin;
      scrollbar-color: #c4d5e3 transparent;
    }
    .temp-chart-container::-webkit-scrollbar { height: 4px; }
    .temp-chart-container::-webkit-scrollbar-track { background: transparent; }
    .temp-chart-container::-webkit-scrollbar-thumb { background: #c4d5e3; border-radius: 10px; }
    .temp-chart-svg {
      display: block;
      width: 100%;
      min-width: 500px;
      height: auto;
    }
    .temp-chart-ylabel {
      fill: #7a8fa3;
      font-size: 10px;
      font-family: "Segoe UI", Arial, sans-serif;
    }
    .temp-chart-xlabel {
      fill: #7a8fa3;
      font-size: 9px;
      font-family: "Segoe UI", Arial, sans-serif;
    }
    .temp-chart-xday {
      fill: #145b93;
      font-size: 9px;
      font-weight: 700;
      font-family: "Segoe UI", Arial, sans-serif;
    }
    .temp-chart-val {
      fill: #145b93;
      font-size: 9px;
      font-weight: 700;
      font-family: "Segoe UI", Arial, sans-serif;
    }
    .temp-chart-dot {
      transition: r .15s ease;
      cursor: pointer;
    }
    .temp-chart-dot:hover {
      r: 5.5;
      stroke-width: 2.5;
    }

    /* Panel Gempa BMKG */
    .quake-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .quake-toolbar h4 { margin: 0; color: #173b5d; font-size: 14px; }
    .quake-refresh { border: 0; border-radius: 7px; padding: 6px 8px; color: #fff; background: #0879bf; cursor: pointer; font-size: 10px; }
    .quake-latest { overflow: hidden; margin-bottom: 12px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #a71d2a, #dc3545 62%, #f06e7a); box-shadow: 0 9px 18px rgba(220, 53, 69, .25); }
    .quake-latest-main { display: flex; gap: 12px; align-items: center; padding: 13px; }
    .quake-magnitude { flex: 0 0 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.12); font-size: 22px; font-weight: 700; color: #fff; }
    .quake-latest .quake-latest-title { margin: 0 0 4px; font-size: 15px; color: #fff; }
    .quake-latest-place { font-size: 10px; line-height: 1.35; opacity: .95; }
    .quake-latest-details { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(0,0,0,.13); }
    .quake-latest-details span { padding: 7px 5px; border-right: 1px solid rgba(255,255,255,.15); text-align: center; font-size: 9px; }
    .quake-latest-details b { display: block; margin-top: 2px; font-size: 10px; }
    .quake-section { margin-top: 13px; }
    .quake-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 7px; color: #244b6e; font-size: 11px; }
    .quake-count { padding: 2px 6px; border-radius: 99px; color: #0879bf; background: #e8f4fc; font-size: 9px; }
    .quake-list { display: grid; gap: 7px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
    .quake-card { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 9px; border: 1px solid #e6eef5; border-radius: 10px; background: #fff; box-shadow: 0 3px 9px rgba(24, 73, 111, .05); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
    .quake-card:hover { background: #f0f6ff; border-color: #b8d4e8; }
    .quake-card-mag { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: #dc3545; background: #fdf0f1; font-size: 13px; font-weight: 700; }
    .quake-card-place { overflow: hidden; color: #183d5e; font-size: 10px; font-weight: 700; line-height: 1.35; }
    .quake-card-meta { margin-top: 3px; color: #668198; font-size: 9px; }
    .quake-card-feel { margin-top: 4px; color: #9a3c27; font-size: 9px; }
    .quake-attribution { margin: 11px 0 0; color: #71869a; font-size: 6px; text-align: right; margin-bottom: 60px}
    .quake-message { padding: 12px; border-radius: 0px; color: #567; background: transparent; font-size: 11px; text-align: center; }

    /* Hotspot Summary Card */
    .hotspot-summary { overflow: hidden; margin-bottom: 12px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #b45309, #f59e0b 62%, #fbbf24); box-shadow: 0 9px 18px rgba(245, 158, 11, .25); }
    .hotspot-summary-main { display: flex; gap: 12px; align-items: center; padding: 13px; }
    .hotspot-summary-icon { flex: 0 0 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.12); font-size: 24px; }
    .hotspot-summary .hotspot-summary-title { margin: 0 0 4px; font-size: 15px; color: #fff; }
    .hotspot-summary-count { font-size: 10px; line-height: 1.35; opacity: .95; }
    .hotspot-summary-details { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(0,0,0,.13); }
    .hotspot-summary-details span { padding: 7px 5px; border-right: 1px solid rgba(255,255,255,.15); text-align: center; font-size: 9px; }
    .hotspot-summary-details b { display: block; margin-top: 2px; font-size: 10px; }
    .hotspot-summary-waktu { padding: 7px 5px; background: rgba(0,0,0,.13); text-align: center; font-size: 9px; border-top: 1px solid rgba(255,255,255,.15); }
    .hotspot-summary-waktu b { display: block; margin-top: 2px; font-size: 10px; }

    /* CO2 Chart */
    .co2-chart { margin-top: 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; overflow: hidden; }
    .co2-chart-header { padding: 12px 14px 8px; }
    .co2-chart-title { font-size: 11px; font-weight: 700; color: #1e293b; margin: 0 0 2px; }
    .co2-chart-subtitle { font-size: 8px; color: #94a3b8; }
    .co2-chart-body { padding: 8px 14px 14px; }
    .co2-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
    .co2-chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
    .co2-chart-bar { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #f97316, #ea580c); transition: height .4s ease; position: relative; min-height: 2px; }
    .co2-chart-bar:hover { filter: brightness(1.1); }
    .co2-chart-bar-val { font-size: 7px; font-weight: 700; color: #334155; white-space: nowrap; text-align: center; }
    .co2-chart-bar-label { font-size: 7px; color: #94a3b8; text-align: center; }

    .luas-chart { margin-top: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; overflow: hidden; }
    .luas-chart-header { padding: 12px 14px 8px; }
    .luas-chart-title { font-size: 11px; font-weight: 700; color: #1e293b; margin: 0 0 2px; }
    .luas-chart-subtitle { font-size: 8px; color: #94a3b8; }
    .luas-chart-body { padding: 8px 14px 14px; overflow-x: auto; }
    .luas-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; min-width: max-content; }
    .luas-chart-bar-wrap { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
    .luas-chart-bar { width: 100%; min-width: 18px; max-width: 32px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #ef4444, #dc2626); transition: height .4s ease; position: relative; min-height: 2px; }
    .luas-chart-bar:hover { filter: brightness(1.1); }
    .luas-chart-bar-val { font-size: 7px; font-weight: 700; color: #334155; white-space: nowrap; text-align: center; }
    .luas-chart-bar-label { font-size: 7px; color: #94a3b8; text-align: center; }

    .hs-table-wrap { margin-top: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; overflow: hidden; }
    .hs-table-header { padding: 12px 14px 6px; display: flex; justify-content: space-between; align-items: center; }
    .hs-table-title { font-size: 11px; font-weight: 700; color: #1e293b; }
    .hs-table-total { font-size: 8px; color: #94a3b8; }
    .hs-cat-items { display: flex; gap: 12px; padding: 0 14px 8px; flex-wrap: wrap; }
    .hs-cat-item { font-size: 8px; color: #64748b; display: flex; align-items: center; gap: 3px; }
    .hs-cat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
    .hs-table-controls { display: flex; gap: 6px; padding: 0 14px 8px; flex-wrap: wrap; }
    .hs-search-input { flex: 1; min-width: 120px; padding: 5px 8px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 8px; outline: none; }
    .hs-search-input:focus { border-color: #3b82f6; }
    .hs-select { padding: 5px 8px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 8px; background: #fff; outline: none; }
    .hs-select:focus { border-color: #3b82f6; }
    .hs-table-scroll { overflow-x: auto; }
    .hs-table { width: 100%; border-collapse: collapse; font-size: 8px; }
    .hs-table th { background: #f8fafc; color: #64748b; font-weight: 600; text-align: left; padding: 6px 10px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
    .hs-table td { padding: 5px 10px; border-bottom: 1px solid #f1f5f9; color: #334155; }
    .hs-table tbody tr:hover { background: #f8fafc; }
    .hs-num { text-align: right; font-weight: 600; }
    .hs-conf-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 7px; font-weight: 600; }
    .hs-conf-high { background: #fef2f2; color: #dc2626; }
    .hs-conf-medium { background: #fffbeb; color: #d97706; }
    .hs-conf-low { background: #f0fdf4; color: #16a34a; }
    .hs-pagination { display: flex; justify-content: center; gap: 4px; padding: 8px 14px 12px; }
    .hs-page-btn { padding: 3px 8px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; font-size: 8px; cursor: pointer; color: #334155; }
    .hs-page-btn:hover { background: #f1f5f9; }
    .hs-page-btn.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
    .hs-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .hs-page-dots { font-size: 8px; color: #94a3b8; padding: 0 2px; }

    .hs-bar-chart { margin-top: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; overflow: visible; }
    .hs-bar-header { padding: 12px 14px 8px; }
    .hs-bar-title { font-size: 11px; font-weight: 700; color: #1e293b; margin: 0 0 2px; }
    .hs-bar-subtitle { font-size: 8px; color: #94a3b8; }
    .hs-bar-body { padding: 8px 14px 14px; overflow-x: auto; }
    .hs-bar-bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-bottom: 0; padding-top: 24px; }
    .hs-bar-wrap { flex: 0 0 auto; width: 22px; display: flex; flex-direction: column; align-items: stretch; height: 100%; position: relative; cursor: pointer; z-index: 1; overflow: visible; }
    .hs-bar-bars { position: relative; z-index: 0; overflow: visible; }
    .hs-bar-tooltip { display: none; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 8px; white-space: nowrap; z-index: 1000; pointer-events: none; }
    .hs-bar-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: #1e293b; }
    .hs-bar-wrap:hover .hs-bar-tooltip { display: block; }
    .hs-bar-val { font-size: 6px; font-weight: 700; color: #334155; white-space: nowrap; text-align: center; padding-bottom: 2px; margin-bottom: 4px; }
    .hs-bar-area { flex: 1; display: flex; align-items: flex-end; }
    .hs-bar { width: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #3b82f6, #2563eb); transition: height .4s ease; min-height: 2px; }
    .hs-bar:hover { filter: brightness(1.1); }
    .hs-bar-label { font-size: 6px; color: #64748b; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 3px; }

    .wind-legend {
      background: rgba(255,255,255,0.95);
      border-radius: 8px;
      padding: 10px 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      border: 1px solid #e5e7eb;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      min-width: 140px;
    }
    .wind-legend-title { font-size: 10px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
    .wind-legend-bar {
      height: 8px;
      border-radius: 4px;
      background: linear-gradient(90deg, #64b4ff 0%, #32dc78 33%, #ffdc32 66%, #ff5032 100%);
      margin-bottom: 3px;
    }
    .wind-legend-labels { display: flex; justify-content: space-between; font-size: 8px; color: #94a3b8; margin-bottom: 6px; }
    .wind-legend-items { display: flex; flex-direction: column; gap: 3px; }
    .wind-legend-item { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #475569; }
    .wind-legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
    .wind-legend-unit { font-size: 8px; color: #94a3b8; margin-top: 6px; font-style: italic; }

    /* Wind Popup */
    .wind-popup { width: 310px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1e293b; background: #fff; overflow: hidden; }
    .wind-popup-head { padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #0ea5e9, #0369a1); }
    .wind-popup-head strong { display: block; font-size: 14px; line-height: 1.25; }
    .wind-popup-head span { display: block; margin-top: 2px; font-size: 11px; opacity: .92; }
    .wind-popup-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,.18); padding: 3px 8px; border-radius: 20px; margin-bottom: 6px; }
    .wind-popup-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; animation: pulse-dot 1.5s ease-in-out infinite; }
    .wind-popup-body { padding: 0; }
    .wind-popup-meta { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
    .wind-popup-meta div { display: flex; justify-content: space-between; align-items: center; }
    .wind-popup-meta span { font-size: 12px; color: #64748b; }
    .wind-popup-meta b { font-size: 12px; color: #1e293b; font-weight: 600; }
    .wind-popup-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-bottom: 1px solid #f1f5f9; }
    .wind-popup-compass { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
    .wind-popup-compass-ring { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; position: relative; background: #fff; }
    .wind-popup-compass-arrow { display: block; width: 3px; height: 22px; background: linear-gradient(to bottom, #0ea5e9 50%, #ef4444 50%); border-radius: 2px; transform-origin: bottom center; position: absolute; bottom: 50%; left: calc(50% - 1.5px); }
    .wind-popup-compass-label { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #64748b; white-space: nowrap; font-weight: 600; }
    .wind-popup-wind-info { display: flex; flex-direction: column; gap: 2px; }
    .wind-popup-speed { display: flex; align-items: baseline; gap: 4px; }
    .wind-popup-speed-val { font-size: 28px; font-weight: 800; line-height: 1; }
    .wind-popup-speed-unit { font-size: 12px; color: #64748b; font-weight: 500; }
    .wind-popup-cat { font-size: 12px; font-weight: 600; color: #334155; }
    .wind-popup-beaufort { font-size: 10px; color: #94a3b8; }
    .wind-popup-detail-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; padding: 0; }
    .wind-popup-detail { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
    .wind-popup-detail span { font-size: 10px; color: #94a3b8; text-transform: uppercase; letter-spacing: .3px; }
    .wind-popup-detail b { font-size: 12px; color: #1e293b; font-weight: 600; }
    .wind-popup-fallback { padding: 14px; text-align: center; font-size: 12px; color: #64748b; line-height: 1.5; }
    .wind-popup-fallback small { font-size: 10px; color: #94a3b8; }
    @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

    /* Maritime Legend */
    .maritime-legend { background: rgba(255,255,255,.95); border-radius: 8px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.15); border: 1px solid #e2e8f0; max-width: 200px; }
    .maritime-legend-title { font-size: 10px; font-weight: 700; color: #0e7490; margin-bottom: 6px; }
    .maritime-legend-row { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #475569; padding: 2px 0; }
    .maritime-legend-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.1); }
    .maritime-legend-source { font-size: 8px; color: #94a3b8; margin-top: 6px; font-style: italic; }

    /* Maritime Popup - cuaca grid */
    .wind-popup-cuaca { padding: 10px 14px; border-top: 1px solid #f1f5f9; }
    .wind-popup-cuaca-title { font-size: 10px; font-weight: 700; color: #0e7490; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
    .wind-popup-cuaca-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .wind-popup-cuaca-item { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; background: #f0fdfa; border-radius: 6px; border: 1px solid #ccfbf1; }
    .wind-popup-cuaca-item span { font-size: 9px; color: #64748b; }
    .wind-popup-cuaca-item b { font-size: 11px; color: #1e293b; font-weight: 600; }
    .wind-popup-footer { padding: 8px 14px; border-top: 1px solid #f1f5f9; }
    .wind-popup-footer span { font-size: 9px; color: #94a3b8; }

    /* Earthquake Marker */
    .quake-marker-wrap { background: transparent; border: 0; }
    .quake-marker {
      position: relative;
      width: var(--qm-size, 48px);
      height: var(--qm-size, 48px);
      display: grid;
      place-items: center;
    }
    .quake-marker-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 2px solid var(--qm-color, #e74c3c);
      opacity: 0;
      animation: quake-pulse 2s ease-out infinite;
    }
    .quake-marker-ring--delay { animation-delay: .6s; }
    @keyframes quake-pulse {
      0% { transform: scale(.6); opacity: .7; }
      100% { transform: scale(1.8); opacity: 0; }
    }
    .quake-marker-core {
      position: relative;
      z-index: 1;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: var(--qm-color, #e74c3c);
      box-shadow: 0 4px 14px color-mix(in srgb, var(--qm-color, #e74c3c) 50%, transparent);
      display: grid;
      place-items: center;
      border: 3px solid rgba(255,255,255,.85);
    }
    .quake-marker-mag {
      color: #fff;
      font-size: calc(var(--qm-size, 48px) * 0.28);
      font-weight: 800;
      line-height: 1;
      text-shadow: 0 1px 3px rgba(0,0,0,.25);
    }

    /* Earthquake Popup */
    .quake-leaflet-popup .leaflet-popup-content-wrapper { overflow: hidden; padding: 0; border-radius: 16px; box-shadow: 0 18px 45px rgba(16, 43, 80, .28); }
    .quake-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    /* Modern BMKG Earthquake Popup */
    .quake-leaflet-popup { max-width: 340px !important; }
    .quake-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 8px 32px rgba(153, 27, 27, .2); border: none; }
    .agol-leaflet-popup { max-width: 340px !important; }
    .agol-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 10px; padding: 0; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.18); border: none; }
    .agol-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .agol-leaflet-popup .leaflet-popup-tip { box-shadow: 0 4px 20px rgba(0,0,0,.18); }
    .quake-leaflet-popup .leaflet-popup-content { margin: 0; width: 100% !important; }
    .quake-leaflet-popup .leaflet-popup-tip-container { left: 50% !important; margin-left: -14px !important; }
    .quake-leaflet-popup .leaflet-popup-tip { box-shadow: 4px 4px 12px rgba(153, 27, 27, .2); }

    .quake-popup { width: 340px; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a2e44; background: #fff; overflow: hidden; max-height: 50vh; overflow-y: auto; }

    .quake-popup-header {
      position: relative;
      padding: 20px 18px 16px;
      color: #fff;
      background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #ef4444 100%);
      overflow: hidden;
    }
    .quake-popup-header::before {
      content: '';
      position: absolute;
      top: -40px; right: -40px;
      width: 120px; height: 120px;
      background: rgba(255,255,255,.08);
      border-radius: 50%;
    }
    .quake-popup-header::after {
      content: '';
      position: absolute;
      bottom: -30px; left: -20px;
      width: 80px; height: 80px;
      background: rgba(255,255,255,.05);
      border-radius: 50%;
    }

    .quake-popup-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      background: rgba(255,255,255,.2);
      color: #fff;
      margin-bottom: 12px;
      backdrop-filter: blur(4px);
    }
    .quake-popup-status-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: #fca5a5;
      animation: quake-pulse 1.5s infinite;
    }
    @keyframes quake-pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: .5; transform: scale(1.2); }
    }

    .quake-popup-title {
      font-size: 13px;
      font-weight: 600;
      opacity: .9;
      margin-bottom: 4px;
      position: relative;
      z-index: 1;
      text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }
    .quake-popup-region {
      font-size: 15px;
      font-weight: 700;
      line-height: 1.3;
      position: relative;
      z-index: 1;
      text-shadow: 0 1px 2px rgba(0,0,0,.1);
    }

    .quake-popup-mag-display {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 18px;
      background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
      border-bottom: 1px solid #fecaca;
    }
    .quake-popup-mag-circle {
      width: 64px; height: 64px;
      border-radius: 50%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 800;
      flex-shrink: 0;
      box-shadow: 0 4px 14px rgba(220, 38, 38, .35);
      position: relative;
    }
    .quake-popup-mag-circle::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,.3);
    }
    .quake-popup-mag-num { font-size: 22px; line-height: 1; }
    .quake-popup-mag-label { font-size: 9px; font-weight: 600; opacity: .8; margin-top: 1px; }

    .quake-popup-mag-info { flex: 1; min-width: 0; }
    .quake-popup-potensi {
      font-size: 13px;
      font-weight: 700;
      color: #b91c1c;
      margin-bottom: 3px;
    }
    .quake-popup-time {
      font-size: 11px;
      color: #b91c1c;
      line-height: 1.4;
    }

    .quake-popup-details {
      padding: 14px 18px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .quake-popup-detail-item {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .quake-popup-detail-label {
      font-size: 10px;
      font-weight: 600;
      color: #dc2626;
      text-transform: uppercase;
      letter-spacing: .05em;
    }
    .quake-popup-detail-value {
      font-size: 13px;
      font-weight: 600;
      color: #7f1d1d;
      word-break: break-word;
    }

    .quake-popup-feeling {
      padding: 12px 18px 14px;
      background: #fef2f2;
      border-top: 1px solid #fecaca;
    }
    .quake-popup-feeling-title {
      font-size: 10px;
      font-weight: 700;
      color: #b91c1c;
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-bottom: 6px;
    }
    .quake-popup-feeling-text {
      font-size: 12px;
      color: #991b1b;
      line-height: 1.5;
    }

    .quake-popup-footer {
      padding: 10px 18px;
      background: #fef2f2;
      border-top: 1px solid #fecaca;
      text-align: center;
    }
    .quake-popup-footer-text {
      font-size: 10px;
      color: #991b1b;
      font-weight: 600;
    }

    /* ── Modern ArcGIS Online-style popup ── */
    .agol-popup {
      width: 320px;
      font-family: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
      color: #323232;
      background: #fff;
      border-radius: 8px;
      overflow: hidden;
      max-height: 50vh;
      overflow-y: auto;
      box-shadow: 0 4px 20px rgba(0,0,0,.18);
      border: none;
    }
    .agol-popup-header {
      position: relative;
      padding: 14px 16px 12px;
      color: #fff;
      overflow: hidden;
    }
    .agol-popup-header::after {
      content: '';
      position: absolute;
      top: -30px; right: -30px;
      width: 80px; height: 80px;
      background: rgba(255,255,255,.1);
      border-radius: 50%;
    }
    .agol-popup-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 9px;
      border-radius: 4px;
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      background: rgba(255,255,255,.2);
      color: #fff;
      backdrop-filter: blur(4px);
      margin-bottom: 8px;
    }
    .agol-popup-badge-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #fff;
      flex-shrink: 0;
    }
    .agol-popup-title {
      font-size: 14px;
      font-weight: 700;
      line-height: 1.3;
      position: relative;
      z-index: 1;
      text-shadow: 0 1px 3px rgba(0,0,0,.12);
    }
    .agol-popup-subtitle {
      font-size: 11px;
      font-weight: 500;
      opacity: .85;
      margin-top: 2px;
      position: relative;
      z-index: 1;
    }
    .agol-popup-body {
      padding: 12px 16px;
    }
    .agol-popup-meta {
      font-size: 10px;
      color: #999;
      margin-bottom: 10px;
      padding-bottom: 8px;
      border-bottom: 1px solid #f0f0f0;
    }
    .agol-popup-fields {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .agol-popup-field {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding: 7px 0;
      border-bottom: 1px solid #f5f5f5;
      gap: 12px;
    }
    .agol-popup-field:last-child {
      border-bottom: none;
    }
    .agol-popup-field-label {
      font-size: 10.5px;
      font-weight: 600;
      color: #6e6e6e;
      text-transform: uppercase;
      letter-spacing: .03em;
      flex-shrink: 0;
      min-width: 80px;
    }
    .agol-popup-field-value {
      font-size: 12px;
      font-weight: 600;
      color: #323232;
      text-align: right;
      word-break: break-word;
    }
    .agol-popup-remark {
      margin-top: 8px;
      padding: 8px 10px;
      background: #f8f9fa;
      border-radius: 6px;
      border-left: 3px solid #d1d5db;
    }
    .agol-popup-remark-title {
      font-size: 9px;
      font-weight: 700;
      color: #999;
      text-transform: uppercase;
      letter-spacing: .04em;
      margin-bottom: 3px;
    }
    .agol-popup-remark-text {
      font-size: 11px;
      color: #555;
      line-height: 1.45;
    }
    .agol-popup-footer {
      padding: 8px 16px;
      background: #fafafa;
      border-top: 1px solid #f0f0f0;
      text-align: center;
    }
    .agol-popup-footer span {
      font-size: 9.5px;
      color: #aaa;
      font-weight: 500;
    }
    /* severity colors for gempa NTT */
    .agol-severity-berat { background: linear-gradient(135deg, #b91c1c, #dc2626); }
    .agol-severity-sedang { background: linear-gradient(135deg, #b45309, #f59e0b); }
    .agol-severity-ringan { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
    .agol-severity-data   { background: linear-gradient(135deg, #4b5563, #6b7280); }
    /* geologi colors */
    .agol-geo-patahan  { background: linear-gradient(135deg, #7f1d1d, #991b1b); }
    .agol-geo-geostruktur { background: linear-gradient(135deg, #1e3a5f, #2563eb); }
    .agol-geo-geologi  { background: linear-gradient(135deg, #065f46, #059669); }
    .agol-geo-likuifaksi { background: linear-gradient(135deg, #7c2d12, #ea580c); }
    .agol-geo-karst    { background: linear-gradient(135deg, #5b4636, #9e7462); }
    .agol-geo-gasvul   { background: linear-gradient(135deg, #581c87, #7c3aed); }
    .agol-geo-gertan   { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
    .agol-geo-volcano  { background: linear-gradient(135deg, #9a3412, #dc2626); }
    .agol-geo-krb      { background: linear-gradient(135deg, #831843, #be185d); }

    .cctv-message { padding: 12px; margin-bottom:15px; border-radius: 10px; color: #567; background: #f4f8fb; font-size: 11px; text-align: center; }
    /* CCTV */
    .cctv-filter { display: grid; gap: 8px; margin: 10px 0; }
    .cctv-filter input, .cctv-filter select { width: 100%; padding: 8px 9px; border: 1px solid #d7e2eb; border-radius: 8px; font: inherit; font-size: 11px; }
    .cctv-results { display: grid; gap: 7px; max-height: 380px; overflow-y: auto; }
    .cctv-card { padding: 9px; border: 1px solid #e3edf5; border-radius: 10px; background: #fff; box-shadow: 0 3px 9px rgba(24,73,111,.05); cursor: pointer; }
    .cctv-card:hover { border-color: #1494ca; background: #f3fbff; }
    .cctv-card strong { display: block; overflow: hidden; color: #16466c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
    .cctv-card small { display: block; margin-top: 4px; color: #668198; font-size: 9px; }
    .cctv-autocomplete { position: relative; }
    .cctv-autocomplete-list { position: absolute; top: calc(100% + 2px); z-index: 1005; display: none; width: 100%; max-height: 180px; overflow-y: auto; border: 1px solid #cee1ef; border-radius: 8px; background: #fff; box-shadow: 0 7px 15px rgba(17,59,91,.13); }
    .cctv-autocomplete-list button { display: block; width: 100%; padding: 8px; border: 0; border-bottom: 1px solid #eef4f8; background: #fff; color: #244b6e; cursor: pointer; font-size: 10px; text-align: left; }
    .cctv-map-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #fff, #dceef8); box-shadow: 0 5px 12px rgba(0,72,135,.4); }
    .cctv-map-icon img { width: 25px; height: 25px; object-fit: contain; }
    .cctv-leaflet-popup .leaflet-popup-content-wrapper { overflow: hidden; padding: 0; border-radius: 12px; box-shadow: 0 12px 30px rgba(11,54,87,.25); }
    .cctv-leaflet-popup .leaflet-popup-content { width: auto !important; margin: 0; }
    .cctv-popup { min-width: 210px; overflow: hidden; color: #173d5f; font-family: 'Segoe UI', sans-serif; }
    .cctv-popup-label { display: inline-block; margin: 11px 12px 5px; padding: 3px 6px; border-radius: 99px; background: #e4f5fc; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
    .cctv-popup strong { display: block; overflow: hidden; padding: 0 12px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
    .cctv-popup span { display: block; overflow: hidden; padding: 4px 12px 10px; color: #6a8498; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .cctv-popup button { width: 100%; padding: 10px; border: 0; color: #fff; background: linear-gradient(90deg, #0879bf, #11a4cb); cursor: pointer; font-size: 11px; font-weight: 700; }

    /* CCTV Card */
    .cctv-card {
      border: 1px solid #e8eef3; border-radius: 10px; background: #f8fbfe;
      overflow: hidden;
    }
    #cctv-search-sheet { margin-top: 10px; }
    .cctv-sheet-handle { display: none; }
    .cctv-card-header {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 10px; background: #eef5fb; border-bottom: 1px solid #e0eaf3;
      font-size: 12px; font-weight: 600; color: #16466c;
    }
    .cctv-card-header svg { color: #0879bf; flex-shrink: 0; }
    .cctv-card-body { padding: 8px; }
    .cctv-search-body { display: grid; gap: 8px; }
    .cctv-search-body input, .cctv-search-body select {
      width: 100%; height: 36px; padding: 6px 10px; margin-bottom: 0;
      border: 1px solid #dce6ef; border-radius: 8px; font-size: 11px;
      background: #fff; color: #333; box-sizing: border-box;
    }
    .cctv-search-body input:focus, .cctv-search-body select:focus {
      outline: none; border-color: #0879bf;
    }

    /* CCTV Layer Toggle */
    .cctv-layers { margin: 12px 0; }
    .cctv-layer-toggle {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid #e3edf5;
      border-radius: 10px;
      background: #fff;
      cursor: pointer;
      transition: border-color .2s, background .2s;
    }
    .cctv-layer-toggle:hover { border-color: #1494ca; background: #f3fbff; }
    .cctv-layer-toggle input { display: none; }
    .cctv-layer-check {
      flex-shrink: 0;
      width: 18px; height: 18px;
      border: 2px solid #c4d5e3; border-radius: 4px;
      background: #fff; position: relative;
      display: flex; align-items: center; justify-content: center;
      transition: border-color .2s, background .2s;
    }
    .cctv-layer-check svg { opacity: 0; transition: opacity .15s; }
    .cctv-layer-toggle input:checked + .cctv-layer-check {
      border-color: #e67e22; background: #e67e22;
    }
    .cctv-layer-toggle input:checked + .cctv-layer-check svg { opacity: 1; }
    .cctv-layer-info { display: flex; flex-direction: column; gap: 1px; }
    .cctv-layer-name { font-size: 11px; font-weight: 700; color: #16466c; }
    .cctv-layer-info small { font-size: 9px; color: #668198; }
    .hotspot-eye-btn {
      margin-left: auto;
      flex-shrink: 0;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #d1d9e2;
      border-radius: 6px;
      background: #fff;
      color: #475569;
      cursor: pointer;
      transition: background .15s, color .15s, border-color .15s;
    }
    .hotspot-eye-btn:hover { background: #f1f5f9; color: #0f172a; border-color: #94a3b8; }
    .hotspot-eye-btn.markers-hidden { color: #cbd5e1; border-color: #e2e8f0; }
    .hotspot-eye-btn.markers-hidden svg { opacity: .4; }

    /* Toll Road Tooltip */
    .toll-road-tooltip {
      background: #1a3a52;
      color: #fff;
      border: 0;
      border-radius: 6px;
      padding: 5px 10px;
      font-size: 11px;
      font-weight: 600;
      box-shadow: 0 4px 10px rgba(0,0,0,.2);
    }
    .toll-road-tooltip::before { border-top-color: #1a3a52; }

    /* Geotani Search */
    .geotani-search-container { position: relative; }
    .geotani-search-input {
      width: 100%; padding: 9px 12px; border: 1px solid #bbf7d0; border-radius: 8px;
      font-size: 12px; background: #f0fdf4; outline: none; box-sizing: border-box;
      transition: border-color .2s;
    }
    .geotani-search-input:focus { border-color: #16a34a; background: #fff; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
    .geotani-autocomplete-list {
      position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 1005;
      display: none; max-height: 220px; overflow-y: auto; background: #fff;
      border: 1px solid #bbf7d0; border-radius: 8px; box-shadow: 0 7px 15px rgba(22,163,74,.13);
    }
    .geotani-ac-item {
      display: block; width: 100%; padding: 8px 10px; border: 0;
      border-bottom: 1px solid #dcfce7; background: #fff; color: #166534;
      cursor: pointer; font-size: 11px; text-align: left; line-height: 1.45;
    }
    .geotani-ac-item:last-child { border-bottom: 0; }
    .geotani-ac-item:hover { background: #f0fdf4; }
    .geotani-ac-item strong { font-size: 12px; color: #166534; display: block; margin-bottom: 2px; }
    .geotani-ac-item small { display: block; color: #16a34a; font-size: 9px; }

    /* Geotani Popup Insight */
    .geotani-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid #dcfce7; }
    .geotani-section-title { font-size: 11px; font-weight: 700; color: #166534; margin-bottom: 8px; letter-spacing: .03em; }
    .geotani-insight-grid { display: flex; flex-direction: column; gap: 6px; }
    .geotani-card {
      display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
      gap: 0 8px; padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--card-accent, #16a34a);
      background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
      transition: transform .15s;
    }
    .geotani-card:hover { transform: translateX(2px); }
    .geotani-card-icon { grid-row: 1 / 3; font-size: 18px; display: flex; align-items: center; justify-content: center; width: 28px; }
    .geotani-card-info { display: flex; flex-direction: column; gap: 1px; }
    .geotani-card-label { font-size: 10px; font-weight: 700; color: #166534; }
    .geotani-card-luas { font-size: 13px; font-weight: 800; color: var(--card-accent, #16a34a); }
    .geotani-card-count { font-size: 9px; color: #668198; }
    .geotani-card-detail {
      grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
      padding-top: 4px; border-top: 1px dashed #bbf7d0;
    }
    .geotani-detail-item {
      font-size: 9px; color: #166534; background: #dcfce7; padding: 2px 6px;
      border-radius: 4px; white-space: nowrap;
    }
    .geotani-detail-item b { color: var(--card-accent, #16a34a); }
    .geotani-empty { text-align: center; padding: 12px 0; color: #668198; }
    .geotani-empty span { font-size: 20px; display: block; margin-bottom: 4px; }
    .geotani-empty small { font-size: 10px; }

    /* Alat Gambar & Ukur */
    .alat-section-nav {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
      padding: 5px; margin-bottom: 12px; border: 1px solid #dce8f1; border-radius: 10px; background: #eef5fb;
    }
    .alat-section-tab {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px;
      padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: #668198;
      font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s;
    }
    .alat-section-tab:hover { color: #0879bf; }
    .alat-section-tab.active { background: #fff; color: #0879bf; box-shadow: 0 1px 4px rgba(8,63,102,.12); }
    .alat-section-tab svg { flex-shrink: 0; }
    .alat-section-panel { display: none; }
    .alat-section-panel.active { display: block; }
    /* Susun kartu Gambar dan Ukur & Kelola secara vertikal agar masing-masing
       memakai satu baris penuh pada panel GeoTools. */
    .alat-grid-2 { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .alat-card {
      border: 1px solid #e8eef3; border-radius: 10px; background: #f8fbfe;
      overflow: hidden; transition: box-shadow .2s;
    }
    .alat-card:hover { box-shadow: 0 4px 12px rgba(8,63,102,.08); }
    .alat-card-header {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 10px; background: #eef5fb; border-bottom: 1px solid #e0eaf3;
      font-size: 12px; font-weight: 600; color: #16466c;
    }
    .alat-card-header svg { color: #0879bf; flex-shrink: 0; }
    .alat-card-body {
      display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px;
    }
    .alat-btn-icon {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 4px; padding: 10px 4px; border: 1px solid #dce6ef; border-radius: 8px;
      background: #fff; color: #16466c; cursor: pointer; font-size: 10px;
      transition: all .15s;
    }
    .alat-btn-icon:hover { background: #e8f4fc; border-color: #0879bf; color: #0879bf; transform: translateY(-1px); }
    .alat-btn-icon svg { transition: color .15s; }
    .alat-btn-icon.alat-btn-danger { color: #c0392b; }
    .alat-btn-icon.alat-btn-danger:hover { background: #fdecea; border-color: #c0392b; }
    .alat-btn-icon.alat-btn-success { color: #16a085; }
    .alat-btn-icon.alat-btn-success:hover { background: #e8f8f5; border-color: #16a085; }
    .alat-measure-result {
      margin-top: 8px;
      padding: 9px 10px;
      border-radius: 8px;
      background: #eef7ff;
      color: #175a87;
      font-size: 11px;
      line-height: 1.5;
    }

    /* Alat File Tab Card */
    .alat-file-card {
      border: 1px solid #e8eef3; border-radius: 10px; background: #f8fbfe;
      overflow: hidden;
    }
    .alat-file-nav {
      display: flex; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid #e0eaf3; background: #eef5fb;
      -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    }
    .alat-file-tab {
      flex: 0 0 auto; min-width: 88px; display: flex; align-items: center; justify-content: center; gap: 5px;
      padding: 9px 6px; border: none; background: transparent; color: #6b8299;
      font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap;
      border-bottom: 2px solid transparent; transition: all .15s;
    }
    .alat-file-tab svg { flex-shrink: 0; }
    .alat-file-tab:hover { color: #0879bf; background: rgba(8,121,191,.04); }
    .alat-file-tab.active {
      color: #0879bf; border-bottom-color: #0879bf; background: #fff;
    }
    .alat-file-panels { padding: 10px; }
    .alat-file-panel { display: none; }
    .alat-file-panel.active { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .alat-file-panel .alat-file-input {
      width: 100%; margin-bottom: 0; height: 36px; padding: 6px 10px;
      border: 1px solid #dce6ef; border-radius: 8px; font-size: 11px;
      background: #fff; color: #333; box-sizing: border-box;
    }
    .alat-file-panel .alat-file-input:focus {
      outline: none; border-color: #0879bf; box-shadow: 0 0 0 2px rgba(8,121,191,.12);
    }
    .alat-file-panel .alat-file-input::file-selector-button {
      background: #eef5fb; border: 1px solid #d0dfe9; border-radius: 6px;
      padding: 4px 10px; font-size: 10px; font-weight: 600; color: #0879bf;
      cursor: pointer; margin-right: 8px; transition: all .15s;
    }
    .alat-file-panel .alat-file-input::file-selector-button:hover {
      background: #d5eaf8; border-color: #0879bf;
    }
    .alat-file-panel .btn-apply {
      width: 100%; height: 36px; padding: 0; font-size: 11px;
      border-radius: 8px;
    }
    .alat-file-hint { color: #668198; font-size: 10px; line-height: 1.35; }

    @media (max-width: 600px) {
      .alat-file-card {
        overflow: hidden;
      }
      .alat-file-nav {
        scrollbar-width: thin;
      }
      .alat-file-tab {
        padding-inline: 12px;
      }
    }

    /* Alat Analisis GeoJSON/SHP */
    .alat-file-input {
      width: 100%;
      padding: 8px;
      font-size: 11px;
      border: 1px solid #ccc;
      border-radius: 6px;
      background: #fff;
    }
    .alat-layer-info {
      margin: 8px 0;
      font-size: 11px;
      color: #668198;
    }
    /* Layer Dimuat Card */
    .alat-layer-card-wrap {
      border: 1px solid #e8eef3; border-radius: 10px; background: #f8fbfe;
      overflow: hidden; margin-top: 10px;
    }
    .alat-layer-card-header {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 10px; background: #eef5fb; border-bottom: 1px solid #e0eaf3;
      font-size: 12px; font-weight: 600; color: #16466c;
    }
    .alat-layer-card-header svg { color: #0879bf; flex-shrink: 0; }
    .alat-layer-list {
      display: grid; gap: 6px; padding: 8px; max-height: 220px; overflow-y: auto;
    }
    .alat-layer-list:empty { padding: 0; }
    .alat-layer-list:empty::after {
      content: 'Belum ada layer dimuat.';
      display: block; padding: 12px 10px; font-size: 11px; color: #999; text-align: center;
    }
    .alat-layer-card {
      display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center;
      padding: 8px 10px; border: 1px solid #e3edf5; border-radius: 8px;
      background: #fff; transition: box-shadow .15s;
    }
    .alat-layer-card:hover { box-shadow: 0 2px 8px rgba(24,73,111,.06); }
    .alat-layer-card strong {
      grid-column: 1 / -1; overflow: hidden; color: #16466c;
      font-size: 11px; text-overflow: ellipsis; white-space: nowrap;
    }
    .alat-layer-card small { color: #668198; font-size: 9px; }
    .alat-layer-card-btns { display: flex; gap: 4px; justify-self: end; }
    .alat-layer-card-btns button {
      display: inline-flex; align-items: center; gap: 3px;
      padding: 3px 8px; border: 1px solid #dce6ef; border-radius: 6px;
      background: #fff; color: #567; cursor: pointer; font-size: 9px; transition: all .15s;
    }
    .alat-layer-card-btns button:hover { background: #e8f4fc; border-color: #0879bf; color: #0879bf; }
    .alat-layer-card-btns .alat-remove-btn { color: #c0392b; border-color: #f0d0cc; }
    .alat-layer-card-btns .alat-remove-btn:hover { background: #fdecea; border-color: #c0392b; }
    .alat-btn-clear {
      display: flex; align-items: center; justify-content: center; gap: 6px;
      width: 100%; margin-top: 10px; padding: 8px; background: #c0392b;
      border: none; border-radius: 8px; color: #fff; font-size: 11px;
      font-weight: 600; cursor: pointer; transition: background .15s;
    }
    .alat-btn-clear:hover { background: #a93226; }
    /* GPX Track Animation Card */
    .alat-anim-card {
      border: 1px solid #e8eef3; border-radius: 10px; background: #f8fbfe;
      overflow: hidden; margin-top: 10px;
    }
    .alat-anim-header {
      display: flex; align-items: center; gap: 6px;
      padding: 8px 10px; background: #eef5fb; border-bottom: 1px solid #e0eaf3;
      font-size: 12px; font-weight: 600; color: #16466c;
    }
    .alat-anim-header svg { color: #0879bf; flex-shrink: 0; }
    .alat-anim-body { padding: 10px; }
    .alat-anim-select {
      display: block; width: 100%; min-width: 0; max-width: 100%; height: 36px; padding: 6px 10px; margin-bottom: 8px;
      border: 1px solid #dce6ef; border-radius: 8px; font-size: 11px;
      background: #fff; color: #333; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .alat-anim-select:focus { outline: none; border-color: #0879bf; }
    .gpx-anim-bar { display: flex; align-items: center; gap: 6px; }
    .alat-anim-btn {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 6px 12px; border: 1px solid #dce6ef; border-radius: 8px;
      background: #fff; color: #16466c; font-size: 11px; font-weight: 600;
      cursor: pointer; transition: all .15s; white-space: nowrap;
    }
    .alat-anim-btn:hover { background: #e8f4fc; border-color: #0879bf; color: #0879bf; }
    .alat-anim-btn-danger { color: #c0392b; border-color: #f0d0cc; }
    .alat-anim-btn-danger:hover { background: #fdecea; border-color: #c0392b; }
    .alat-anim-speed {
      width: auto; min-width: 0; height: 32px; padding: 2px 4px;
      border: 1px solid #dce6ef; border-radius: 6px; font-size: 10px;
      background: #fff; color: #333;
    }
    .gpx-anim-progress-wrap { flex: 1; min-width: 0; overflow: hidden; }
    .gpx-anim-slider {
      width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
      background: #d5e3f0; border-radius: 3px; outline: none; cursor: pointer;
    }
    .gpx-anim-slider::-webkit-slider-thumb {
      -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
      background: #0879bf; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer;
    }
    .gpx-anim-slider::-moz-range-thumb {
      width: 14px; height: 14px; border-radius: 50%;
      background: #0879bf; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer;
    }
    .gpx-anim-info { margin-top: 8px; font-size: 11px; color: #567; line-height: 1.5; }
    /* Layer WMS point (marker cluster) — popup gaya CCTV */
    .gp-point-icon {
      background: transparent;
      border: 0;
    }
    .gp-point-leaflet-popup .leaflet-popup-content-wrapper,
    .alat-leaflet-popup .leaflet-popup-content-wrapper {
      overflow: hidden;
      padding: 0;
      margin: 0;
      border-radius: 12px;
      box-shadow: 0 12px 30px rgba(11, 54, 87, .25);
    }
    .gp-point-leaflet-popup .leaflet-popup-content,
    .alat-leaflet-popup .leaflet-popup-content {
      width: auto !important;
      margin: 0;
    }
    .gp-point-leaflet-popup .leaflet-popup-tip,
    .alat-leaflet-popup .leaflet-popup-tip {
      box-shadow: 0 12px 30px rgba(11, 54, 87, .25);
    }
    .gp-point-popup,
    .alat-popup {
      min-width: 250px;
      max-height: 200px;
      overflow-y: auto;
      color: #173d5f;
      font-family: 'Segoe UI', sans-serif;
      font-size: 11px;
    }
    .gp-point-popup > strong,
    .alat-popup > strong {
      position: sticky;
      top: 0;
      z-index: 1;
      display: block;
      overflow: hidden;
      padding: 10px 14px;
      color: #fff;
      background: linear-gradient(90deg, #0879bf, #11a4cb);
      border-radius: 12px 12px 0 0;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    /* Close button: mencuat di luar pojok kanan atas popup */
    .gp-point-leaflet-popup .leaflet-popup-close-button {
      position: absolute;
      top: -11px;
      right: -11px;
      width: 26px;
      height: 26px;
      padding: 0;
      display: grid;
      place-items: center;
      font: 700 16px/1 'Segoe UI', sans-serif;
      opacity: 1;
      z-index: 5;
      cursor: pointer;
    }
    .gp-point-popup-row,
    .alat-popup-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 12px;
      border-bottom: 1px solid #eef3f8;
    }
    .gp-point-popup-row:last-child,
    .alat-popup-row:last-child {
      border-bottom: 0;
    }
    .gp-point-popup-row b,
    .alat-popup-row b {
      color: #6a8498;
      font-weight: 600;
      white-space: nowrap;
    }
    .gp-point-popup-row span,
    .alat-popup-row span {
      color: #173d5f;
      text-align: right;
      overflow-wrap: anywhere;
    }

    /* Geoportal */
    .geoportal-category {
      margin-top: 13px;
      max-height: 200px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .geoportal-category:first-of-type { margin-top: 0; }
    .geoportal-category h5 { margin: 0 0 7px; color: #336583; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
    .geoportal-filters {
      display: grid;
      gap: 7px;
      overflow-y: auto;
      padding-right: 4px;
      min-height: 0;
      scrollbar-width: thin;
      scrollbar-color: #b7c7d6 transparent;
    }
    .geoportal-filters::-webkit-scrollbar { width: 5px; }
    .geoportal-filters::-webkit-scrollbar-thumb { border-radius: 999px; background: #b7c7d6; }
    .geoportal-filter { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e1ebf2; border-radius: 9px; background: #fff; color: #234b6d; cursor: pointer; font-size: 11px; }
    .geoportal-filter input[type="checkbox"] {position:relative;top: 0;}
    .geoportal-filter:hover { border-color: #70b9dd; background: #f3faff; }
    .geoportal-filter input { accent-color: #0879bf; }
    .query-box label.geoportal-filter { display: flex; align-items: center; gap: 8px; }
    .geoportal-swatch { width: 10px; height: 10px; border-radius: 3px; }
    .geo-admin { background: #6a72c8; }.geo-education { background: #f0ad33; }.geo-health { background: #db5871; }.geo-transport { background: #36a978; }.geo-boundary { background: #648098; }
    .geoportal-source { margin: 11px 0 0; color: #73879a; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
    
    /* Geoportal Header */
    .geoportal-sticky-header {
      background: #fff;
      padding: 0 0 8px;
      margin-left: -15px; margin-right: -15px;
      padding-left: 15px; padding-right: 15px;
      border-bottom: 1px solid #e8eef3;
      flex-shrink: 0;
    }
    .geoportal-search-container { position: relative; }
    .geoportal-search-input {
      width: 100%; padding: 10px 14px; border: 1px solid #e1ebf2; border-radius: 9px;
      background: #fff; font-size: 12px; color: #234b6d; outline: none;
      transition: border-color .2s, box-shadow .2s;
    }
    .geoportal-search-input:focus { border-color: #70b9dd; box-shadow: 0 0 0 3px rgba(112,185,221,.15); }
    .geoportal-search-input::placeholder { color: #9fb3c8; }
    .geoportal-autocomplete-list {
      display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
      max-height: 240px; overflow-y: auto; margin-top: 4px;
      background: #fff; border: 1px solid #e1ebf2; border-radius: 9px;
      box-shadow: 0 4px 16px rgba(0,0,0,.1);
    }
    .geoportal-autocomplete-list.active { display: block; }
    .geoportal-autocomplete-item {
      display: flex; align-items: center; gap: 8px; padding: 9px 12px;
      cursor: pointer; font-size: 11px; color: #234b6d; border-bottom: 1px solid #f0f4f7;
      transition: background .15s;
    }
    .geoportal-autocomplete-item:last-child { border-bottom: none; }
    .geoportal-autocomplete-item:hover { background: #f3faff; }
    .geoportal-autocomplete-item.active { background: #e8f4fd; }
    .geoportal-autocomplete-label { flex: 1; }
    .geoportal-autocomplete-category { 
      font-size: 9px; color: #73879a; background: #f0f4f7; 
      padding: 2px 6px; border-radius: 4px; white-space: nowrap; 
    }
    .geoportal-search-input-wrapper { position: relative; }
    .geoportal-search-input-wrapper .search-icon {
      position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
      color: #9fb3c8; font-size: 14px; pointer-events: none;
    }
    .geoportal-search-input.with-icon { padding-left: 32px; }

    /* jsTree tweaks — minimal, keep default theme */
    #geoportalLayerList { flex: 1; overflow-y: auto; min-height: 0; }
    #geoportalLayerList .jstree-container-ul { padding: 0; margin: 0; }
    #geoportalLayerList .jstree-node { padding-left: 8px; }
    #geoportalLayerList .jstree-anchor { line-height: 1.5; font-size: 12px; }
    #geoportalLayerList .jstree-node[data-level="0"] > .jstree-anchor { font-weight: 700; font-size: 13px; }
    .layer-count-badge {
      display: inline-block; min-width: 18px; height: 16px; line-height: 16px;
      text-align: center; font-size: 9px; font-weight: 700;
      color: #fff; background: #5b7fa5; border-radius: 8px; margin-left: 6px; padding: 0 4px;
    }
    
    .geoportal-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(3, 19, 34, .68); backdrop-filter: blur(6px); }
    .geoportal-modal.open { display: flex; }
    .geoportal-modal-dialog { display: flex; flex-direction: column; width: min(860px, 100%); max-height: min(86vh, 640px); max-height: min(86dvh, 640px); overflow: hidden; border: 1px solid rgba(255, 255, 255, .24); border-radius: 16px; background: #fff; box-shadow: 0 22px 64px rgba(0, 0, 0, .45); }
    .geoportal-modal-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; color: #fff; background: linear-gradient(135deg, #0b5cab, #0879bf 58%, #12a7c8); }
    .geoportal-modal-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .geoportal-modal-icon { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 16px; }
    .geoportal-modal-caption { min-width: 0; }
    .geoportal-modal-caption strong { display: block; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .geoportal-modal-caption small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .82); font-size: 10px; }
    .geoportal-modal-close { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .16); cursor: pointer; font-size: 18px; line-height: 1; transition: background .2s ease, transform .2s ease; }
    .geoportal-modal-close:hover { background: rgba(255, 255, 255, .32); transform: rotate(90deg); }
    .geoportal-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b7c7d6 transparent; }
    .geoportal-modal-body::-webkit-scrollbar { width: 6px; }
    .geoportal-modal-body::-webkit-scrollbar-thumb { border-radius: 999px; background: #b7c7d6; }
    .geoportal-properties { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
    .geoportal-properties h4 { grid-column: 1 / -1; margin: 3px 0 0; color: #0879bf; font-size: 14px; }

    /* Sawah Popup */
    .sawah-popup { font-family: 'Google Sans', 'Segoe UI', sans-serif; }
    .sawah-popup-header {
      background: linear-gradient(135deg, #2d7a2d, #4caf50);
      color: #fff; padding: 12px 14px; border-radius: 10px 10px 0 0;
    }
    .sawah-popup-header strong { font-size: 14px; font-weight: 600; }
    .sawah-popup-body { padding: 10px 14px; background: #fff; }
    .sawah-popup-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 6px 0; border-bottom: 1px solid #f0f4f7; font-size: 12px;
    }
    .sawah-popup-row:last-child { border-bottom: none; }
    .sawah-popup-row span { color: #4a6580; }
    .sawah-popup-row b { font-weight: 600; color: #1e293b; text-align: right; max-width: 60%; }
    .sawah-leaflet-popup .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
    .sawah-leaflet-popup .leaflet-popup-content { margin: 0; width: 300px; }
    .geoportal-loading { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding: 40px 14px; color: #668198; text-align: center; }
    .geoportal-loading p { font-size: 12px; font-weight: 600; color: #234b6d; }
    .geoportal-spinner { width: 34px; height: 34px; border: 3px solid #d7e6f2; border-top-color: #0879bf; border-radius: 50%; animation: geoportal-spin .8s linear infinite; }
    @keyframes geoportal-spin { to { transform: rotate(360deg); } }
    .btn-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: geoportal-spin .7s linear infinite; vertical-align: middle; }
    .geoportal-card { min-width: 0; overflow: hidden; border: 1px solid #e3ecf4; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(19, 59, 92, .06); }
    .geoportal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; background: linear-gradient(135deg, #f2f9ff, #e8f2fa); border-bottom: 1px solid #e3ecf4; }
    .geoportal-card-head strong { overflow: hidden; color: #0f5fa8; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
    .geoportal-card-head span { flex: 0 0 auto; padding: 2px 7px; border-radius: 99px; color: #0879bf; background: #dceefb; font-size: 9px; font-weight: 600; }
    .geoportal-property-list { display: grid; gap: 0; padding: 4px 11px 8px; }
    .geoportal-prop { display: grid; grid-template-columns: minmax(130px, 30%) minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e9f0f6; align-items: baseline; }
    .geoportal-prop:last-child { border-bottom: 0; }
    .geoportal-prop label { color: #7a90a4; font-size: 9px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
    .geoportal-prop p { overflow-wrap: anywhere; word-break: break-word; color: #173b5d; font-size: 11px; font-weight: 600; line-height: 1.45; }
    .geoportal-no-prop { padding: 10px 2px; color: #7a90a4; font-size: 10px; }
    .geoportal-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 28px 14px; border: 1px dashed #cfdeea; border-radius: 12px; background: #f7fafc; color: #668198; text-align: center; }
    .geoportal-empty span { font-size: 26px; }
    .geoportal-empty p { color: #234b6d; font-size: 12px; font-weight: 600; }
    .geoportal-empty small { font-size: 10px; }
    .cctv-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(3,19,34,.68); backdrop-filter: blur(6px); }
    .cctv-modal.open { display: flex; }
    .cctv-modal-dialog { width: min(860px, 100%); overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 15px; background: rgba(11,33,51,.93); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
    .cctv-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; color: #fff; }
    .cctv-modal-head strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
    .cctv-modal-close { width: 29px; height: 29px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); cursor: pointer; font-size: 18px; }
    .cctv-player { display: none; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
    .cctv-player.active { display: block; }
    .cctv-image-player { object-fit: contain; }

    .leaflet-control-reset-zoom {
      background-color: #ffffff;
      border: 2px solid rgba(0,0,0,0.2);
      border-radius: 4px;
      cursor: pointer;
      width: 30px;
      height: 30px;
      line-height: 26px;
      text-align: center;
      font-weight: bold;
      font-size: 14px;
      box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    }
    
    .leaflet-control-reset-zoom:hover {
      background-color: #f4f4f4;
    }

    /* Location Permission Modal */
    .location-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      animation: fadeIn 0.3s ease;
    }
    .location-modal {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.8);
      border-radius: 24px;
      padding: 32px;
      max-width: 360px;
      width: calc(100% - 48px);
      text-align: center;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
      animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .location-modal-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 20px;
      background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #0284c7;
      animation: pulse 2s infinite;
    }
    .location-modal-title {
      font-size: 20px;
      font-weight: 700;
      color: #0f172a;
      margin: 0 0 8px;
      font-family: 'Google Sans', 'Segoe UI', sans-serif;
    }
    .location-modal-desc {
      font-size: 14px;
      color: #64748b;
      line-height: 1.5;
      margin: 0 0 24px;
    }
    .location-modal-actions {
      display: flex;
      gap: 12px;
      margin-bottom: 24px;
    }
    .location-modal-btn {
      flex: 1;
      padding: 12px 20px;
      border: none;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .location-modal-btn-primary {
      background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
      color: white;
      box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    }
    .location-modal-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
    }
    .location-modal-btn-secondary {
      background: #f1f5f9;
      color: #475569;
    }
    .location-modal-btn-secondary:hover {
      background: #e2e8f0;
    }
    .location-modal-features {
      display: flex;
      justify-content: center;
      gap: 16px;
      padding-top: 16px;
      border-top: 1px solid #e2e8f0;
    }
    .location-modal-feature {
      font-size: 11px;
      color: #64748b;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .location-modal-feature span {
      font-size: 14px;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(20px) scale(0.95); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }

    .leaflet-control-scale {
      background: rgba(255,255,255,0.95);
      border: none;
      box-shadow: 0 2px 8px rgba(0,0,0,0.18);
      border-radius:5px;
      padding: 5px 5px;
      left: 5px;
      bottom: 5px;
      font-family: "Avenir Next", "Segoe UI", sans-serif;
      font-size: 11px;
      color: #333;
      line-height: 1.4;
      backdrop-filter: blur(4px);
    }
    .leaflet-control-scale-line {
      border-color: #333;
      border-width: 2px 0 0 0;
      border-style: solid;
      padding-top: 3px;
      margin-top: 4px;
      color: #333;
      font-size: 11px;
      font-weight: 500;
      text-align: center;
    }
    .leaflet-control-scale-line:not(:first-child) {
      border-top-width: 1px;
      border-bottom: none;
      margin-top: 2px;
      padding-top: 2px;
    }

    /* ==================== WELCOME FEATURE MODAL ==================== */
    .welcome-modal {
      position: fixed; inset: 0; z-index: 4000;
      display: none; align-items: center; justify-content: center;
      padding: 18px;
      background: rgba(15, 23, 42, .25);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      animation: welcome-modal-fade-in .35s ease;
    }
    .welcome-modal.open { display: flex; }

    @keyframes welcome-modal-fade-in {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .welcome-modal-dialog {
      display: flex; flex-direction: column;
      width: min(680px, 100%);
      max-height: min(85vh, 700px);
      max-height: min(85dvh, 700px);
      overflow: hidden;
      border: 1px solid rgba(0, 0, 0, .06);
      border-radius: 20px;
      background: #fff;
      box-shadow: 0 8px 40px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .06);
      animation: welcome-modal-slide-up .4s cubic-bezier(.22, 1, .36, 1);
    }

    @keyframes welcome-modal-slide-up {
      from { opacity: 0; transform: translateY(28px) scale(.97); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* -- Header -- */
    .welcome-modal-header {
      flex: 0 0 auto;
      display: flex; flex-direction: column; align-items: center;
      padding: 28px 24px 20px;
      background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 50%, #ffffff 100%);
      text-align: center;
      border-bottom: 1px solid #e0e7ef;
    }
    .welcome-modal-mark {
      display: grid; grid-template-columns: repeat(2, 18px); grid-template-rows: repeat(2, 18px);
      gap: 4px; padding: 8px; border: 1.5px solid #0879bf; border-radius: 14px;
      transform: rotate(-8deg); margin-bottom: 12px;
    }
    .welcome-modal-mark i { border-radius: 5px; }
    .welcome-modal-mark i:nth-child(1) { background: #0879bf; }
    .welcome-modal-mark i:nth-child(2) { background: #f4c329; }
    .welcome-modal-mark i:nth-child(3) { background: #68dce5; }
    .welcome-modal-mark i:nth-child(4) { background: #bce7ed; }
    .welcome-modal-title {
      font-size: 18px; font-weight: 700; color: #0f172a; letter-spacing: .01em;
      margin-bottom: 4px;
    }
    .welcome-modal-title span { color: #0879bf; }
    .welcome-modal-subtitle {
      font-size: 12px; color: #64748b; font-weight: 400;
    }

    /* -- Body -- */
    .welcome-modal-body {
      flex: 1; min-height: 0; overflow-y: auto;
      padding: 20px 22px 18px;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: #cbd5e1 transparent;
    }
    .welcome-modal-body::-webkit-scrollbar { width: 5px; }
    .welcome-modal-body::-webkit-scrollbar-thumb { border-radius: 999px; background: #cbd5e1; }

    /* -- Features Grid -- */
    .welcome-features-label {
      font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: .06em;
      text-transform: uppercase; margin-bottom: 10px;
    }
    .welcome-features-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
      margin-bottom: 20px;
    }
    .welcome-feature-card {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 14px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #f8fafc;
      transition: border-color .2s, box-shadow .2s, transform .2s;
      cursor: default;
    }
    .welcome-feature-card:hover {
      border-color: #bfdbfe;
      box-shadow: 0 4px 16px rgba(8, 121, 191, .08);
      transform: translateY(-1px);
    }
    .welcome-feature-icon {
      flex: 0 0 auto;
      display: grid; place-items: center;
      width: 42px; height: 42px;
      border-radius: 10px;
      font-size: 20px;
    }
    .welcome-feature-icon.icon-geoid { background: #dbeafe; }
    .welcome-feature-icon.icon-geotani { background: #dcfce7; }
    .welcome-feature-icon.icon-geoportal { background: #e0e7ff; }
    .welcome-feature-icon.icon-geowatch { background: #fef3c7; }
    .welcome-feature-icon.icon-geowx { background: #cffafe; }
    .welcome-feature-icon.icon-geoquake { background: #fee2e2; }
    .welcome-feature-icon.icon-tools { background: #f3e8ff; }
    .welcome-feature-info { min-width: 0; }
    .welcome-feature-name {
      font-size: 13px; font-weight: 700; color: #1e293b;
      margin-bottom: 2px;
    }
    .welcome-feature-desc {
      font-size: 11px; color: #64748b; line-height: 1.4;
    }

    /* -- Highlighted feature (full-width) -- */
    .welcome-feature-card.highlighted {
      grid-column: 1 / -1;
      background: linear-gradient(135deg, #eff6ff, #f0fdf4);
      border-color: #bfdbfe;
    }

    /* -- Tech Badges -- */
    .welcome-tech-label {
      font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: .06em;
      text-transform: uppercase; margin-bottom: 8px;
    }
    .welcome-tech-badges {
      display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
    }
    .welcome-tech-badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 4px 10px;
      font-size: 10px; font-weight: 600; color: #475569;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      border-radius: 999px;
      white-space: nowrap;
    }
    .welcome-tech-badge i {
      display: inline-block; width: 6px; height: 6px;
      border-radius: 50%; background: #94a3b8;
    }

    /* -- Footer -- */
    .welcome-modal-footer {
      flex: 0 0 auto;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      padding: 16px 22px;
      border-top: 1px solid #e2e8f0;
      background: #f8fafc;
    }
    .welcome-btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 10px 22px;
      font-size: 13px; font-weight: 600;
      border: none; border-radius: 10px;
      cursor: pointer;
      transition: background .2s, box-shadow .2s, transform .15s;
      text-decoration: none;
      white-space: nowrap;
    }
    .welcome-btn:active { transform: scale(.97); }
    .welcome-btn-primary {
      background: linear-gradient(135deg, #0879bf, #0b5cab);
      color: #fff;
      box-shadow: 0 2px 8px rgba(8, 121, 191, .3);
    }
    .welcome-btn-primary:hover {
      background: linear-gradient(135deg, #0b5cab, #074a8f);
      box-shadow: 0 4px 14px rgba(8, 121, 191, .4);
    }
    .welcome-btn-secondary {
      background: #fff;
      color: #0879bf;
      border: 1.5px solid #bfdbfe;
    }
    .welcome-btn-secondary:hover {
      background: #eff6ff;
      border-color: #93c5fd;
    }
    .welcome-btn svg { flex-shrink: 0; }

    /* -- Mobile -- */
    @media (max-width: 600px) {
      .welcome-modal { padding: 10px; }
      .welcome-modal-dialog {
        max-height: min(92dvh, 700px);
        border-radius: 16px;
      }
      .welcome-modal-header { padding: 22px 16px 16px; }
      .welcome-modal-title { font-size: 16px; }
      .welcome-modal-body { padding: 14px 16px 12px; }
      .welcome-features-grid { grid-template-columns: 1fr; gap: 8px; }
      .welcome-modal-footer { flex-direction: column; gap: 8px; padding: 14px 16px; }
      .welcome-btn { width: 100%; }

      .panel-header {
        padding: 12px 15px;
        background: #0078d4;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
      }
    }

    .hotspot-legend {
      background: rgba(255,255,255,0.95);
      border-radius: 8px;
      padding: 10px 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      border: 1px solid #e5e7eb;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      min-width: 160px;
    }

    .hotspot-legend-title {
      font-size: 11px;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 4px;
    }

    .hotspot-legend-total {
      font-size: 10px;
      color: #475569;
      margin-bottom: 8px;
    }

    .hotspot-legend-items {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .hotspot-legend-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 10px;
      color: #475569;
    }

    .hotspot-legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
      border: 1px solid rgba(0,0,0,0.1);
    }

    .hotspot-legend-source {
      font-size: 8px;
      color: #94a3b8;
      margin-top: 8px;
      font-style: italic;
    }

    .hotspot-legend-gradient {
      margin-bottom: 8px;
    }

    .hotspot-legend-bar {
      height: 8px;
      border-radius: 4px;
      background: linear-gradient(90deg, #22c55e 0%, #84cc16 25%, #f59e0b 50%, #ef4444 75%, #dc2626 100%);
      margin-bottom: 3px;
    }

    .hotspot-legend-labels {
      display: flex;
      justify-content: space-between;
      font-size: 8px;
      color: #94a3b8;
    }

    .hotspot-popup .leaflet-popup-content-wrapper {
      border-radius: 10px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

    .hotspot-popup .leaflet-popup-content {
      margin: 10px 12px;
    }

    /* ── DEM Topography Analysis ── */
    .topo-report-card {
      background: #fff;
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      padding: 16px;
      margin-top: 12px;
    }
    .topo-header {
      font-size: 14px;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 12px;
    }
    .topo-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .topo-stat {
      background: #f8fafc;
      border-radius: 8px;
      padding: 10px;
    }
    .topo-stat-label {
      font-size: 10px;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .topo-stat-value {
      font-size: 16px;
      font-weight: 700;
      color: #1e293b;
      margin-top: 2px;
    }
    .topo-bar {
      height: 6px;
      border-radius: 3px;
      background: #e5e7eb;
      margin-top: 4px;
      overflow: hidden;
    }
    .topo-bar-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 0.3s;
    }

    @keyframes dem-spin { to { transform: rotate(360deg); } }
    .dem-spinner {
      width: 14px; height: 14px;
      border: 2px solid rgba(255,255,255,.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: dem-spin .6s linear infinite;
      display: inline-block;
      vertical-align: middle;
    }
    .dem-spinner.dark {
      border-color: rgba(124,58,237,.2);
      border-top-color: #7c3aed;
    }

    /* ── DEM Point Popup ── */
    .dem-leaflet-popup .leaflet-popup-content-wrapper {
      border-radius: 12px;
      padding: 0;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(0,0,0,.18);
      border: none;
    }
    .dem-leaflet-popup .leaflet-popup-content {
      margin: 0;
      min-width: 200px;
    }
    .dem-popup {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .dem-popup-header {
      padding: 14px 16px 10px;
      color: #fff;
      position: relative;
    }
    .dem-popup-header::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 20px;
      background: linear-gradient(to bottom, transparent, rgba(0,0,0,.1));
    }
    .dem-popup-elev {
      font-size: 22px;
      font-weight: 800;
      line-height: 1.1;
      text-shadow: 0 1px 3px rgba(0,0,0,.25);
    }
    .dem-popup-unit {
      font-size: 11px;
      font-weight: 500;
      opacity: .85;
    }
    .dem-popup-coord {
      font-size: 9px;
      opacity: .7;
      margin-top: 3px;
      font-family: 'SF Mono', 'Fira Code', monospace;
    }
    .dem-popup-body {
      padding: 10px 14px 12px;
    }
    .dem-popup-row {
      display: grid;
      grid-template-columns: 18px 1fr auto;
      align-items: center;
      gap: 6px;
      padding: 5px 0;
      border-bottom: 1px solid #f1f5f9;
    }
    .dem-popup-row:last-child {
      border-bottom: none;
    }
    .dem-popup-icon {
      font-size: 12px;
      width: 18px;
      text-align: center;
    }
    .dem-popup-label {
      font-size: 10px;
      color: #64748b;
    }
    .dem-popup-val {
      font-size: 11px;
      font-weight: 700;
      color: #1e293b;
      text-align: right;
      white-space: nowrap;
    }

    /* ── DEM Polygon Popup ── */
    .dem-poly-popup .leaflet-popup-content-wrapper {
      border-radius: 12px;
      padding: 0;
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(0,0,0,.18);
      border: none;
    }
    .dem-poly-popup .leaflet-popup-content {
      margin: 0;
      min-width: 260px;
    }

    /* ── Crop Health Card ── */
    .crop-health-card-wrap {
      margin-top: 8px;
      max-height: 30vh;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: #cbd5e1 transparent;
    }
    .crop-health-card-wrap::-webkit-scrollbar { width: 4px; }
    .crop-health-card-wrap::-webkit-scrollbar-track { background: transparent; }
    .crop-health-card-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
    .crop-health-card {
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      overflow: hidden;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .crop-health-loading {
      text-align: center;
      padding: 14px;
      color: #64748b;
      font-size: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .crop-health-header {
      background: linear-gradient(135deg, #16a34a, #15803d);
      padding: 10px 12px;
      color: #fff;
    }
    .crop-health-field-id {
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.3px;
    }
    .crop-health-crop {
      font-size: 10px;
      opacity: 0.85;
      margin-top: 2px;
    }
    .crop-health-copy-btn {
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: 6px;
      color: #fff;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s;
      flex-shrink: 0;
    }
    .crop-health-copy-btn:hover {
      background: rgba(255,255,255,0.3);
    }
    .crop-health-copy-btn:active {
      transform: scale(0.9);
    }
    .crop-health-copy-btn.copied {
      background: #22c55e;
      border-color: #22c55e;
    }
    .crop-health-hero {
      padding: 16px 12px;
      text-align: center;
      border-bottom: 1px solid #f1f5f9;
    }
    .crop-health-hero-icon {
      font-size: 32px;
      line-height: 1;
    }
    .crop-health-hero-label {
      font-size: 16px;
      font-weight: 800;
      margin-top: 4px;
      letter-spacing: 0.3px;
    }
    .crop-health-hero-score {
      margin-top: 6px;
    }
    .crop-health-hero-num {
      font-size: 26px;
      font-weight: 800;
      color: #1e293b;
    }
    .crop-health-hero-of {
      font-size: 13px;
      font-weight: 600;
      color: #94a3b8;
    }
    .crop-health-hero-condition {
      font-size: 11px;
      margin-top: 2px;
      opacity: 0.85;
    }
    .crop-health-section {
      padding: 8px 12px;
      border-top: 1px solid #f1f5f9;
    }
    .crop-health-section-title {
      font-size: 9px;
      font-weight: 700;
      color: #64748b;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
    }
    .crop-health-status {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
    }
    .crop-health-indices {
      margin-top: 6px;
    }
    .crop-health-index-row {
      display: grid;
      grid-template-columns: 50px 1fr auto;
      align-items: center;
      padding: 3px 0;
      font-size: 11px;
    }
    .crop-health-idx-label {
      font-weight: 600;
      color: #475569;
    }
    .crop-health-idx-value {
      font-weight: 700;
      color: #1e293b;
      text-align: right;
      font-family: 'SF Mono', 'Fira Code', monospace;
    }
    .crop-health-idx-tag {
      font-size: 9px;
      font-weight: 600;
      min-width: 60px;
      text-align: right;
    }
    .crop-health-stress {
      text-align: center;
      padding: 4px 0;
    }
    .crop-health-stress-score {
      margin-bottom: 4px;
    }
    .crop-health-stress-num {
      font-size: 22px;
      font-weight: 800;
      color: #1e293b;
    }
    .crop-health-stress-of {
      font-size: 11px;
      color: #94a3b8;
    }
    .crop-health-stress-label {
      font-size: 10px;
      color: #64748b;
      margin-top: 6px;
      line-height: 1.4;
    }
    .crop-health-chart-section {
      border-top: 1px solid #e2e8f0;
    }
    .crop-health-chart-wrap {
      height: 130px;
      position: relative;
    }
    .crop-health-concerns {
      margin-top: 6px;
    }
    .crop-health-concern-row {
      display: flex;
      align-items: flex-start;
      gap: 6px;
      font-size: 10px;
      line-height: 1.4;
      padding: 3px 0;
    }
    .crop-health-meta {
      text-align: center;
      font-size: 9px;
      color: #94a3b8;
      padding: 6px 12px;
      border-top: 1px solid #f1f5f9;
    }

