:root {
    --ink: #102d58;
    --muted: #526b90;
    --blue: #0878f9;
    --blue-dark: #0867df;
    --blue-pale: #eaf4ff;
    --line: #dce8f7;
    --surface: #fff;
    --soft: #f6faff;
    --green: #16af63;
    --red: #ef454b;
    --shadow: 0 5px 18px rgba(25, 79, 145, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.site-header { height: 74px; background: rgba(255,255,255,.97); position: relative; z-index: 20; box-shadow: 0 1px 0 rgba(26,77,130,.05); }
.header-inner { width: min(1240px, calc(100% - 64px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { flex: 0 0 170px; display: flex; align-items: center; }
.brand img { display: block; width: 154px; max-height: 56px; object-fit: contain; object-position: left center; }
.main-nav { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 42px); white-space: nowrap; }
.main-nav a { height: 100%; display: flex; align-items: center; position: relative; color: #172d4e; font-size: 14px; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--blue-dark); }
.main-nav a.active::after { content: ""; position: absolute; height: 2px; border-radius: 2px; background: var(--blue); bottom: 14px; left: 0; right: 0; }
.header-search { height: 42px; width: clamp(190px, 22vw, 290px); flex: 0 1 290px; display: flex; align-items: center; position: relative; gap: 12px; padding: 0 16px; border: 1px solid #e4eefb; border-radius: 24px; background: #f0f6fd; }
.header-search input, .filter-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.header-search input::placeholder, .filter-search input::placeholder { color: #7185a4; }
.search-icon { flex: 0 0 15px; width: 15px; height: 15px; display: inline-block; position: relative; border: 2px solid #143b70; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; border-radius: 2px; background: #143b70; right: -5px; bottom: -3px; transform: rotate(48deg); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 5px 12px rgba(8,120,249,.18); }
.button-primary:hover { color: #fff; background: var(--blue-dark); box-shadow: 0 8px 16px rgba(8,120,249,.22); }
.button-outline { color: var(--blue-dark); background: #fff; border-color: #9dc7ff; }
.button-outline:hover { background: #f0f7ff; }
.directory-total-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.directory-total-group p { margin: 0; }
.show-all-button { min-height: 35px; padding: 7px 12px; border-radius: 8px; font-size: 11px; }
.mobile-menu-toggle { display: none; }
.mobile-app-nav { display: none; }
.search-with-suggestions { min-width: 0; position: relative; }
.filter-panel .search-with-suggestions { flex: 2 1 260px; min-width: 180px; }
.search-with-suggestions .filter-search { width: 100%; }
.search-suggestions { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 60; overflow: hidden; border: 1px solid #dce8f7; border-radius: 10px; background: #fff; box-shadow: 0 10px 26px rgba(25, 63, 110, .16); }
.search-suggestions[hidden] { display: none; }
.search-suggestion { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 10px 13px; border: 0; border-bottom: 1px solid #eef3f9; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover, .search-suggestion.active { background: #eef6ff; }
.search-suggestion strong { overflow: hidden; max-width: 100%; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion small { overflow: hidden; max-width: 100%; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.header-search .search-suggestion { padding: 9px 12px; }

.home-hero { min-height: 398px; position: relative; overflow: hidden; background-color: #e8f5ff; background-image: var(--portal-hero-image, url("../images/belitung-hero.png")); background-position: center 48%; background-size: cover; background-repeat: no-repeat; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,251,255,.98) 0%, rgba(239,249,255,.93) 35%, rgba(239,249,255,.48) 56%, rgba(239,249,255,0) 79%); }
.hero-shell { width: min(1240px, calc(100% - 64px)); min-height: 398px; margin: auto; position: relative; display: flex; align-items: center; }
.hero-copy { width: min(570px, 55%); padding: 26px 0 40px; position: relative; z-index: 2; }
.eyebrow { display: inline-block; color: #0874df; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.hero-copy h1 { margin: 16px 0 14px; color: #0c2e60; font-size: clamp(40px, 5vw, 58px); line-height: 1.06; letter-spacing: -2px; font-weight: 800; }
.hero-copy h1 span, .interior-copy h1 span { color: #0782e7; background: linear-gradient(90deg, #0588e8, #22b4ad, #55b64d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy p { max-width: 490px; margin: 0; color: #3c5b83; font-size: 16px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 24px; }
.hero-actions .button { min-height: 46px; border-radius: 24px; padding-inline: 21px; }
.ui-icon { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; vertical-align: middle; }
.play-icon { width: 13px; height: 13px; flex-basis: 13px; }
.pin-icon { width: 18px; height: 18px; flex-basis: 18px; }
.hero-wave { position: absolute; left: -4%; right: -4%; bottom: -57px; height: 90px; background: #fff; border-radius: 50% 50% 0 0 / 40% 38% 0 0; opacity: .96; }

.benefit-strip { min-height: 125px; padding: 24px 8px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center; }
.benefit-strip article { display: flex; align-items: center; justify-content: center; gap: 14px; }
.benefit-icon, .stat-icon { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; width: 58px; height: 58px; font-size: 25px; font-weight: 700; }
.benefit-icon svg { width: 27px; height: 27px; }
.benefit-icon.blue, .stat-icon.blue { color: #0785ed; background: #e9f5ff; }
.benefit-icon.green, .stat-icon.green { color: #13aa72; background: #e7f8f1; }
.benefit-icon.orange { color: #eda313; background: #fff7e4; }
.benefit-icon.red { color: #f45563; background: #fff0f0; }
.benefit-strip h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.benefit-strip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.featured-section { padding: 18px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 3px 0 1px; color: var(--ink); font-size: 27px; line-height: 1.2; letter-spacing: -.6px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.text-link { color: var(--blue-dark); font-size: 13px; font-weight: 600; white-space: nowrap; }
.text-link span { margin-left: 5px; font-size: 18px; }
.camera-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.camera-card { min-width: 0; overflow: hidden; border: 1px solid #e3edf9; border-radius: 10px; background: #fff; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.camera-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(25,79,145,.14); }
.camera-photo { height: 144px; display: block; position: relative; overflow: hidden; background-image: url("../images/cctv-thumbnails.png"); background-size: 200% 200%; background-repeat: no-repeat; }
.scene-0 { background-position: left top; }
.scene-1 { background-position: right top; }
.scene-2 { background-position: left bottom; }
.scene-3 { background-position: right bottom; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 3px 10px; border-radius: 16px; color: #fff; background: rgba(18,37,58,.88); font-size: 11px; font-weight: 500; }
.status-pill i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(17,181,91,.13); }
.status-pill.is-offline i { background: var(--red); box-shadow: 0 0 0 3px rgba(239,69,75,.13); }
.camera-photo .status-pill { position: absolute; top: 10px; left: 10px; }
.photo-expand { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; color: white; background: rgba(18,37,58,.8); border-radius: 5px; font-size: 17px; }
.camera-card-body { padding: 10px 12px 11px; }
.camera-card-title { min-height: 36px; display: flex; align-items: flex-start; gap: 9px; color: var(--ink); }
.camera-card-title .pin-symbol { color: var(--blue); font-size: 15px; line-height: 1.25; }
.camera-card-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.camera-card-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.category-chip { display: inline-block; max-width: 100%; margin-top: 7px; padding: 3px 10px; border-radius: 12px; color: #244c78; background: #eaf4ff; font-size: 10px; white-space: nowrap; }
.camera-card-action { min-height: 31px; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 0 11px; border-radius: 7px; color: var(--blue-dark); background: #edf6ff; font-size: 12px; font-weight: 600; }
.camera-card-action span { font-size: 17px; }
.feature-banner { min-height: 132px; position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; margin-top: 30px; margin-bottom: 28px; padding: 22px 26px; border-radius: 12px; background: linear-gradient(105deg,#eaf6ff,#eff8ff 68%,#eaf7ff); }
.feature-banner::after { content: ""; position: absolute; height: 24px; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg,#c9f2df,#e8f8ff 30%,#bceaff 75%,#bcebd9); clip-path: polygon(0 50%,9% 100%,24% 55%,40% 100%,58% 42%,75% 90%,89% 30%,100% 65%,100% 100%,0 100%); }
.banner-icon, .cta-map-icon { flex: 0 0 76px; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #dff1ff; }
.banner-icon svg, .cta-map-icon svg { width: 39px; height: 39px; }
.banner-actions .ui-icon { flex-basis: 16px; width: 16px; height: 16px; }
.feature-banner h2, .slim-cta h2 { margin: 2px 0 3px; font-size: 20px; }
.feature-banner p, .slim-cta p { margin: 0; color: var(--muted); font-size: 12px; }
.banner-actions { display: flex; gap: 12px; margin-left: auto; position: relative; z-index: 1; }
.visitor-section { padding: 36px 0; background: #f6faff; }
.visitor-inner { display: grid; grid-template-columns: .85fr 1.5fr; gap: 24px; align-items: center; }
.visitor-copy h2 { margin: 6px 0 5px; font-size: 23px; line-height: 1.25; }
.visitor-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.visitor-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 17px 12px; border: 1px solid #e8eff8; border-radius: 13px; background: #fff; box-shadow: 0 3px 14px rgba(25,79,145,.04); }
.visitor-stats > div { min-width: 0; display: flex; flex-direction: column; align-items: center; border-right: 1px solid #edf1f7; }
.visitor-stats > div:last-child { border: 0; }
.stat-icon { width: 43px; height: 43px; margin-bottom: 5px; }
.stat-icon svg { width: 22px; height: 22px; }
.visitor-stats strong { font-size: 20px; line-height: 1.2; }
.visitor-stats small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.interior-hero { min-height: 236px; position: relative; overflow: hidden; background-color: #e9f6ff; background-image: var(--portal-hero-image, url("../images/belitung-hero.png")); background-position: center 49%; background-size: cover; background-repeat: no-repeat; }
.interior-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(245,251,255,.96),rgba(242,250,255,.88) 38%,rgba(239,249,255,.24) 75%,rgba(239,249,255,.08)); }
.interior-copy { position: relative; z-index: 1; padding-top: 30px; padding-bottom: 35px; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; color: #21436f; font-size: 12px; }
.breadcrumbs a { color: var(--blue-dark); }
.breadcrumbs span:nth-child(2) { color: #7791b0; font-size: 18px; }
.interior-copy h1 { margin: 0 0 8px; font-size: clamp(31px,4vw,42px); line-height: 1.04; letter-spacing: -1px; }
.interior-copy p { margin: 0; color: #456487; font-size: 14px; line-height: 1.5; }
.directory-section { position: relative; z-index: 2; margin-top: -21px; }
.filter-panel { display: flex; align-items: center; gap: 10px; padding: 15px; border: 1px solid #e7effa; border-radius: 12px; background: #fff; box-shadow: 0 7px 24px rgba(31,87,145,.10); }
.sort-view select { min-width: 0; height: 40px; padding: 0 13px; border: 1px solid #dbe8f7; border-radius: 8px; outline: 0; color: #244366; background: #fff; font-size: 12px; }
.filter-search { min-width: 180px; height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid #cfe0f5; border-radius: 8px; background: #fff; }
.filter-search:focus-within { border-color: #7eb4fa; box-shadow: 0 0 0 3px rgba(8,120,249,.08); }
.reset-button { min-height: 40px; border-radius: 8px; }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 2px 15px; }
.directory-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.directory-toolbar strong { color: var(--blue-dark); }
.sort-view { display: flex; align-items: center; gap: 25px; }
.sort-view label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.sort-view select { min-width: 150px; }
.view-toggle { display: flex; padding: 3px; border: 1px solid #deebf9; border-radius: 9px; }
.view-toggle button { min-height: 33px; padding: 0 14px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.view-toggle button.active { color: #fff; background: var(--blue); box-shadow: 0 3px 8px rgba(8,120,249,.18); }
.directory-grid { row-gap: 17px; }
.directory-grid.list-view { grid-template-columns: 1fr; gap: 10px; }
.directory-grid.list-view .camera-card { min-height: 114px; display: grid; grid-template-columns: 170px 1fr; }
.directory-grid.list-view .camera-photo { height: 114px; }
.directory-grid.list-view .camera-card-body { display: grid; grid-template-columns: minmax(170px,1fr) 150px minmax(130px,180px); align-items: center; gap: 14px; padding: 12px 18px; }
.directory-grid.list-view .category-chip, .directory-grid.list-view .camera-card-action { margin: 0; }
.directory-pagination { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0 17px; }
.directory-pagination > span { color: var(--muted); font-size: 11px; }
.directory-pagination nav, .map-list-pagination nav { display: flex; gap: 6px; }
.pagination-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid #d7e5f6; border-radius: 8px; color: #24466e; background: #fff; cursor: pointer; }
.pagination-button.active { border-color: var(--blue); color: #fff; background: var(--blue); }
.pagination-button:disabled { opacity: .45; cursor: default; }
.slim-cta { min-height: 93px; position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 14px 18px; border-radius: 11px; background: linear-gradient(95deg,#eaf7ff,#eef8ff); }
.slim-cta::after { content: ""; position: absolute; inset: auto 0 0; height: 17px; background: linear-gradient(90deg,#bfead4,#d4f2ea,#bceaff); clip-path: polygon(0 45%,12% 100%,29% 55%,47% 100%,67% 42%,83% 90%,100% 30%,100% 100%,0 100%); }
.slim-cta .cta-map-icon { width: 55px; height: 55px; flex-basis: 55px; font-size: 25px; }
.slim-cta h2 { font-size: 17px; }
.slim-cta .button { margin-left: auto; position: relative; z-index: 1; }
.empty-state { grid-column: 1/-1; padding: 45px 20px; border: 1px dashed #cad9eb; border-radius: 12px; color: var(--muted); text-align: center; }

.map-hero { min-height: 194px; }
.map-hero .interior-copy { padding-top: 25px; padding-bottom: 28px; }
.map-hero .interior-copy h1 { font-size: clamp(30px,3.8vw,40px); }
.map-page-section { position: relative; z-index: 2; margin-top: 12px; }
.map-layout { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(300px,1fr); gap: 13px; align-items: stretch; }
.map-card, .map-list-card { min-width: 0; overflow: hidden; border: 1px solid #e6eef8; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.map-card { padding: 10px; }
#belitungMap { width: 100%; height: 605px; border-radius: 9px; background: #d9efff; z-index: 1; }
.map-legend { display: flex; flex-wrap: wrap; gap: 17px; align-items: center; padding: 10px 7px 3px; color: #365478; font-size: 11px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; display: inline-block; border-radius: 50%; background: var(--green); }
.dot.offline { background: var(--red); }
.dot.maintenance { background: #8b98a9; }
.map-list-card { display: flex; flex-direction: column; }
.map-list-heading { padding: 17px 16px 11px; }
.map-list-heading h2 { margin: 0 0 2px; font-size: 19px; }
.map-list-heading p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.map-list-heading p strong { color: var(--blue-dark); }
.map-camera-list { padding: 0 15px; flex: 1; }
.map-camera-item { width: 100%; min-height: 79px; display: grid; grid-template-columns: 91px minmax(0,1fr) 30px; align-items: center; gap: 11px; padding: 8px 0; border: 0; border-top: 1px solid #edf1f7; background: #fff; text-align: left; cursor: pointer; }
.map-camera-item:hover .map-camera-name { color: var(--blue-dark); }
.map-camera-thumb { width: 91px; height: 61px; display: block; border-radius: 7px; background-image: url("../images/cctv-thumbnails.png"); background-size: 200% 200%; }
.map-camera-name { display: block; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.map-camera-region { display: block; color: var(--muted); font-size: 11px; }
.map-camera-state { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #466584; font-size: 10px; }
.map-camera-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.map-camera-state.offline i { background: var(--red); }
.map-camera-arrow { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: #e7f3ff; font-size: 16px; }
.map-list-pagination { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 10px 15px 14px; color: var(--muted); font-size: 10px; }
.map-list-pagination .pagination-button { width: 27px; height: 27px; border-radius: 6px; font-size: 10px; }
.camera-marker { background: transparent; border: 0; }
.camera-marker img { display: block; width: 34px; height: 45px; object-fit: contain; }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.map-popup { min-width: 180px; color: var(--ink); }
.map-popup strong, .map-popup small { display: block; }
.map-popup strong { font-size: 13px; }
.map-popup small { margin: 2px 0 8px; color: var(--muted); }
.map-popup a { display: inline-block; padding: 6px 10px; border-radius: 6px; color: #fff; background: var(--blue); font-size: 11px; }

/* Keep Leaflet maps usable if the external Leaflet stylesheet cannot load. */
.leaflet-container { position: relative; overflow: hidden; outline: 0; }
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow,
.leaflet-image-layer, .leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box { position: absolute; top: 0; left: 0; }
.leaflet-tile { max-width: none !important; max-height: none !important; user-select: none; -webkit-user-select: none; }
.leaflet-container img { max-width: none !important; max-height: none !important; }
.leaflet-marker-icon, .leaflet-marker-shadow { display: block; }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-control { float: left; clear: both; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-control-zoom a { display: block; width: 30px; height: 30px; color: #172f4d; background: #fff; text-align: center; text-decoration: none; font: bold 20px/30px Arial, sans-serif; }
.leaflet-control-zoom a:first-child { border-radius: 4px 4px 0 0; }
.leaflet-control-zoom a:last-child { border-top: 1px solid #dbe5f0; border-radius: 0 0 4px 4px; }
.leaflet-control-zoom, .leaflet-bar { overflow: hidden; border: 1px solid rgba(0,0,0,.2); border-radius: 5px; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.leaflet-control-attribution { padding: 0 5px; color: #333; background: rgba(255,255,255,.8); font: 11px/1.5 Arial, sans-serif; }
.leaflet-control-attribution a { color: #0078a8; }
.leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
.leaflet-popup-content-wrapper { padding: 1px; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.25); text-align: left; }
.leaflet-popup-content { margin: 12px 16px; line-height: 1.4; }
.leaflet-popup-tip-container { position: absolute; left: 50%; width: 40px; height: 20px; margin-left: -20px; overflow: hidden; pointer-events: none; }
.leaflet-popup-tip { width: 17px; height: 17px; margin: -10px auto 0; transform: rotate(45deg); background: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.2); }
.leaflet-popup-close-button { position: absolute; top: 0; right: 0; width: 24px; height: 24px; color: #757575; text-align: center; text-decoration: none; font: 18px/24px Tahoma, Verdana, sans-serif; }
.leaflet-interactive { cursor: pointer; }

.detail-top { display: flex; align-items: center; justify-content: space-between; padding-top: 21px; padding-bottom: 8px; }
.detail-top .breadcrumbs { margin: 0; }
.back-link { color: var(--blue-dark); font-size: 12px; font-weight: 600; }
.camera-detail-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(350px,.9fr); gap: 20px; padding-top: 10px; padding-bottom: 46px; }
.detail-main { display: flex; flex-direction: column; gap: 14px; }
.detail-player { min-height: 390px; position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 13px; background: #0d2138; }
.detail-player video { width: 100%; max-height: 570px; background: #081624; }
.detail-player iframe { width: 100%; height: 100%; min-height: 390px; border: 0; background: #081624; }
.stream-playback-error { position: absolute; z-index: 3; right: 14px; bottom: 10px; left: 14px; margin: 0; padding: 9px 12px; border-radius: 7px; color: #fff; background: rgba(18,37,58,.9); text-align: center; font-size: 12px; }
.detail-player > .status-pill { position: absolute; top: 15px; left: 15px; }
.stream-unavailable { padding: 25px; color: #fff; text-align: center; }
.stream-unavailable > span { color: #8dc8ff; font-size: 48px; }
.stream-unavailable h2 { margin: 10px 0 5px; font-size: 20px; }
.stream-unavailable p { margin: 0; color: #c1d3e6; font-size: 13px; }
.detail-info-card, .detail-side-card, .about-card { padding: 22px; border: 1px solid #e6eef8; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.detail-info-card h1 { margin: 5px 0; font-size: 25px; }
.detail-info-card > p { margin: 0; color: var(--muted); }
.detail-coordinates { display: flex; gap: 30px; margin: 19px 0; padding: 14px 0; border-block: 1px solid #edf1f7; }
.detail-coordinates span { color: var(--muted); font-size: 11px; }
.detail-coordinates strong { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; }
.detail-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-map-heading h2 { margin: 2px 0 0; font-size: 19px; }
.detail-map-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 20px; color: #14794a; background: #eaf8f1; font-size: 10px; font-weight: 700; white-space: nowrap; }
.detail-map-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mini-map { width: 100%; height: 320px; min-height: 320px; position: relative; overflow: hidden; border: 1px solid #dce8f7; border-radius: 11px; background: #d9efff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
#detailMap { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; background: #d9efff; }
.detail-map-address { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0; color: var(--ink); font-size: 12px; font-weight: 600; }
.detail-map-address .pin-symbol { margin-top: 3px; }
.detail-map-address small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.detail-directions { width: 100%; min-height: 40px; justify-content: space-between; border-radius: 8px; font-size: 11px; }
.detail-directions span { font-size: 16px; }
.detail-all-map-link { display: block; margin-top: 11px; font-size: 11px; }
.detail-side-card .leaflet-control-zoom a { color: var(--ink); }
.detail-side-card .leaflet-control-attribution { font-size: 8px; }
.detail-map-popup strong, .detail-map-popup small { display: block; }
.detail-map-popup strong { color: var(--ink); font-size: 12px; }
.detail-map-popup small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.help-note { margin-top: 16px; padding: 13px; border: 1px solid #e5effb; border-radius: 9px; background: #f5f9ff; }
.help-note strong { font-size: 12px; }
.help-note p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.not-found { min-height: 370px; display: grid; align-content: center; justify-items: center; text-align: center; }
.not-found > span { color: var(--blue); font-size: 68px; font-weight: 800; line-height: 1; }
.not-found p { color: var(--muted); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 35px 55px; }
.about-card h2 { margin: 5px 0 12px; font-size: 27px; }
.about-card p { color: var(--muted); line-height: 1.8; }
.about-card .button { margin-top: 10px; }
.about-visual { min-height: 330px; overflow: hidden; border-radius: 13px; }
.about-visual img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; }

.site-footer { margin-top: 0; color: #365579; background: #f6faff; }
.footer-grid { min-height: 198px; display: grid; grid-template-columns: 1.25fr .7fr .8fr 1.2fr; gap: 45px; align-items: start; padding-top: 28px; padding-bottom: 22px; }
.footer-brand img { width: 145px; height: 48px; object-fit: contain; object-position: left center; }
.footer-brand p { max-width: 255px; margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.footer-grid h3 { margin: 5px 0 10px; color: #142f56; font-size: 13px; }
.footer-grid > div:not(.footer-brand) > a { display: block; margin: 5px 0; color: #506d91; font-size: 12px; }
.footer-grid a:hover { color: var(--blue-dark); }
.managed-by { display: grid; grid-template-columns: 46px 1fr; column-gap: 10px; align-items: center; }
.managed-by h3 { grid-column: 1/-1; }
.agency-mark { width: 44px; height: 52px; display: grid; place-items: center; background: transparent; }
.agency-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.managed-by p { margin: 0; color: #1b385f; font-size: 12px; line-height: 1.5; }
.social-links { grid-column: 2; display: flex; gap: 12px; margin-top: 12px; }
.social-links a { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #173d6f; background: #e5eff9; font-size: 12px; font-weight: 700; }
.footer-bottom { min-height: 49px; position: relative; overflow: hidden; background: #eaf4ff; }
.footer-bottom::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg,transparent,#d8edff 45%,transparent); clip-path: polygon(0 70%,17% 100%,34% 65%,54% 100%,76% 55%,91% 90%,100% 42%,100% 100%,0 100%); }
.footer-bottom .container { min-height: 49px; position: relative; display: flex; align-items: center; justify-content: space-between; color: #587396; font-size: 10px; }
.footer-app-version { display: inline-block; margin-left: 8px; padding: 2px 7px; border: 1px solid rgba(8,120,249,.2); border-radius: 20px; color: #1c5da9; background: rgba(255,255,255,.62); font-size: 9px; font-weight: 700; letter-spacing: .15px; vertical-align: 1px; }
.footer-bottom i { display: block; width: 49px; height: 2px; margin: 3px 0 0 auto; background: linear-gradient(90deg,#43b76f,#05a5dc); }

@media (min-width: 1500px) { .container, .header-inner, .hero-shell { width: min(1320px, calc(100% - 80px)); } }
@media (max-width: 1050px) {
    .header-inner { gap: 16px; }
    .brand { flex-basis: 140px; }
    .brand img { width: 135px; }
    .main-nav { gap: 18px; }
    .camera-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .map-layout { grid-template-columns: minmax(0,1.6fr) minmax(290px,1fr); }
    .map-camera-item { grid-template-columns: 72px minmax(0,1fr) 27px; gap: 8px; }
    .map-camera-thumb { width: 72px; height: 52px; }
    .footer-grid { gap: 28px; }
}
@media (max-width: 780px) {
    body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    main { flex: 1 0 auto; }
    .site-footer { margin-top: auto; }
    .container, .header-inner, .hero-shell { width: min(100% - 36px, 620px); }
    .site-header { height: 66px; position: sticky; top: 0; }
    .header-inner { gap: 11px; }
    .brand { flex: 0 0 128px; }
    .brand img { width: 126px; max-height: 48px; }
    .main-nav { display: none; }
    .header-search { flex: 1 1 auto; height: 38px; padding-inline: 12px; }
    .header-search input { font-size: 11px; }
    .mobile-app-nav { position: fixed; z-index: 1100; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(213,228,246,.9); background: rgba(255,255,255,.96); box-shadow: 0 -5px 20px rgba(24,65,112,.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
    .mobile-app-nav a { min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; color: #647b9b; font-size: 10px; font-weight: 600; line-height: 1.1; }
    .mobile-app-nav a svg { width: 21px; height: 21px; }
    .mobile-app-nav a.active { color: var(--blue-dark); background: #edf6ff; }
    .mobile-app-nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
    .featured-section, .feature-banner, .visitor-section { display: none; }
    .footer-grid { display: none; }
    .footer-bottom .container { min-height: 49px; justify-content: center; text-align: center; }
    .footer-motto { display: none; }
    .copyright-line { font-size: 9px; }
    .footer-app-version { margin-left: 4px; font-size: 8px; }
    .home-hero { min-height: 405px; background-position: 59% center; }
    .home-hero::before { background: linear-gradient(90deg,rgba(246,251,255,.98),rgba(244,250,255,.9) 52%,rgba(240,249,255,.38)); }
    .hero-shell { min-height: 405px; }
    .hero-copy { width: 74%; padding-top: 10px; }
    .hero-copy h1 { font-size: clamp(38px,7vw,52px); }
    .hero-copy p { font-size: 14px; }
    .benefit-strip { grid-template-columns: repeat(2,1fr); gap: 16px 8px; padding-block: 18px; }
    .benefit-strip article { justify-content: flex-start; gap: 9px; }
    .benefit-icon { width: 45px; height: 45px; font-size: 20px; }
    .benefit-strip h3 { font-size: 12px; }
    .benefit-strip p { font-size: 10px; }
    .camera-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .camera-photo { height: 125px; }
    .section-heading h2 { font-size: 23px; }
    .section-heading { align-items: flex-start; }
    .section-heading .text-link { align-self: end; font-size: 11px; }
    .feature-banner { flex-wrap: wrap; padding: 17px; }
    .banner-icon { width: 55px; height: 55px; flex-basis: 55px; font-size: 28px; }
    .feature-banner h2 { font-size: 17px; }
    .feature-banner p { max-width: 430px; }
    .banner-actions { width: 100%; margin-left: 75px; }
    .visitor-inner { grid-template-columns: 1fr; }
    .visitor-copy h2 { font-size: 20px; }
    .visitor-stats { padding-inline: 5px; }
    .visitor-stats strong { font-size: 17px; }
    .visitor-stats small { text-align: center; font-size: 9px; }
    .interior-hero { min-height: 220px; background-position: 65% center; }
    .interior-copy { padding-top: 24px; }
    .interior-copy h1 { font-size: 34px; }
    .interior-copy p { font-size: 12px; }
    .directory-section { margin-top: -13px; }
    .filter-panel { flex-wrap: wrap; }
    .filter-panel .search-with-suggestions { flex-basis: 100%; }
    .reset-button { flex: 1 1 100%; }
    .directory-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
    .directory-total-group { width: 100%; justify-content: space-between; }
    .sort-view { width: 100%; justify-content: space-between; gap: 8px; }
    .sort-view select { min-width: 120px; }
    .directory-grid.list-view .camera-card { grid-template-columns: 120px 1fr; }
    .directory-grid.list-view .camera-photo { height: 100%; min-height: 128px; }
    .directory-grid.list-view .camera-card-body { grid-template-columns: 1fr; gap: 7px; padding: 10px; }
    .directory-pagination { flex-direction: column; gap: 7px; }
    .slim-cta { flex-wrap: wrap; gap: 10px; padding: 14px; }
    .slim-cta .cta-map-icon { width: 42px; height: 42px; flex-basis: 42px; font-size: 20px; }
    .slim-cta > div { flex: 1; }
    .slim-cta .button { width: 100%; margin: 0; }
    .map-layout { grid-template-columns: 1fr; }
    #belitungMap { height: 430px; }
    .map-list-card { min-height: 530px; }
    .map-camera-item { grid-template-columns: 90px minmax(0,1fr) 30px; }
    .map-camera-thumb { width: 90px; height: 58px; }
    .camera-detail-layout { grid-template-columns: 1fr; }
    .detail-player { min-height: 300px; }
    .detail-player iframe { min-height: 300px; }
    .mini-map { height: 280px; min-height: 280px; }
    .about-content { grid-template-columns: 1fr; }
    .about-visual { min-height: 240px; }
    .about-visual img { min-height: 240px; }
}
@media (max-width: 480px) {
    .container, .header-inner, .hero-shell { width: calc(100% - 28px); }
    .brand { flex-basis: 105px; }
    .brand img { width: 106px; }
    .header-inner { gap: 8px; }
    .header-search { padding-inline: 10px; }
    .header-search input { font-size: 10px; }
    .search-icon { width: 13px; height: 13px; flex-basis: 13px; }
    .home-hero, .hero-shell { min-height: 390px; }
    .hero-copy { width: 88%; }
    .hero-copy h1 { font-size: 38px; letter-spacing: -1.5px; }
    .hero-copy p { max-width: 335px; font-size: 13px; }
    .hero-actions { gap: 8px; }
    .hero-actions .button { min-height: 41px; padding-inline: 13px; font-size: 11px; }
    .benefit-strip { width: calc(100% - 28px); }
    .benefit-strip article { gap: 7px; }
    .benefit-icon { width: 38px; height: 38px; }
    .benefit-icon svg { width: 20px; height: 20px; }
    .benefit-strip h3 { font-size: 10px; }
    .benefit-strip p { font-size: 9px; }
    .section-heading { display: block; }
    .section-heading .text-link { display: inline-block; margin-top: 9px; }
    .section-heading h2 { font-size: 22px; }
    .camera-grid { gap: 9px; }
    .camera-photo { height: 104px; }
    .camera-card-body { padding: 8px; }
    .camera-card-title strong { font-size: 10px; }
    .camera-card-title small { font-size: 9px; }
    .camera-card-action { padding-inline: 8px; font-size: 10px; }
    .status-pill { min-height: 21px; padding-inline: 8px; font-size: 9px; }
    .feature-banner { gap: 10px; }
    .feature-banner h2 { font-size: 15px; }
    .feature-banner .eyebrow { font-size: 9px; letter-spacing: 1px; }
    .banner-actions { margin-left: 0; gap: 7px; }
    .banner-actions .button { padding-inline: 11px; font-size: 10px; }
    .visitor-stats { grid-template-columns: repeat(2,1fr); gap: 13px 0; }
    .visitor-stats > div:nth-child(2) { border-right: 0; }
    .interior-copy h1 { font-size: 29px; }
    .interior-copy p br { display: none; }
    .filter-panel { padding: 10px; gap: 7px; }
    .sort-view label { gap: 4px; font-size: 10px; }
    .sort-view select { min-width: 112px; padding-inline: 7px; font-size: 10px; }
    .view-toggle button { padding-inline: 8px; font-size: 10px; }
    .directory-grid.list-view .camera-card { grid-template-columns: 95px 1fr; }
    .directory-grid.list-view .camera-photo { min-height: 135px; }
    #belitungMap { height: 360px; }
    .detail-top { align-items: flex-start; flex-direction: column; gap: 7px; }
    .detail-player { min-height: 235px; }
    .detail-player iframe { min-height: 235px; }
    .detail-info-card, .detail-side-card, .about-card { padding: 16px; }
    .detail-info-card h1 { font-size: 21px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
    .footer-brand { grid-column: 1/-1; }
    .managed-by { grid-column: 1/-1; }
    .footer-bottom .container { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-block: 8px; }
}
