:root {
    --primary:#005230;
    --primary2:#1f6b45;
    --bg:#f6faf7;
    --card:#fff;
    --text:#121e18;
    --muted:#617067;
    --line:#dbe6de;
    --soft:#e9f7ed;
    --blue:#266484;
    --danger:#ba1a1a;
    --warning:#a46100;
    --shadow:0 8px 26px rgba(20,55,37,.07)
}
* {
    box-sizing:border-box
}
html {
    scroll-behavior:smooth
}
body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:'Plus Jakarta Sans',sans-serif
}
a {
    color:inherit;
    text-decoration:none
}
img {
    max-width:100%;
    display:block
}
button,input,select,textarea {
    font:inherit
}
.topnav {
    position:sticky;
    top:0;
    z-index:1000;
    height:70px;
    background:#fff;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 max(24px,calc((100% - 1280px)/2));
    box-shadow:0 2px 12px rgba(0,0,0,.03)
}
.brand {
    display:flex;
    align-items:center;
    gap:12px
}
.brand img {
    width:42px;
    height:48px;
    object-fit:contain
}
.brand span {
    display:flex;
    flex-direction:column
}
.brand strong {
    color:var(--primary);
    font-size:16px
}
.brand small {
    color:var(--muted)
}
.navlinks {
    display:flex;
    align-items:center;
    gap:28px
}
.navlinks a {
    color:#536158;
    font-weight:600;
    font-size:14px
}
.navlinks a.active {
    color:var(--primary);
    border-bottom:2px solid var(--primary);
    padding-bottom:6px
}
.navlinks .admin-link {
    background:var(--primary);
    color:#fff;
    padding:9px 14px;
    border-radius:8px
}
.nav-toggle {
    display:none;
    background:none;
    border:0;
    font-size:25px
}
.public-main {
    max-width:1280px;
    margin:auto;
    padding:34px 28px 60px;
    display:flex;
    flex-direction:column;
    gap:34px
}
.hero {
    padding:28px 0 8px
}
.hero>div {
    max-width:850px
}
.pill,.eyebrow {
    display:inline-flex;
    color:var(--primary2);
    background:#dff5e7;
    border:1px solid #bce4ca;
    border-radius:999px;
    padding:6px 11px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.02em
}
.hero h1,.page-title h1 {
    font-size:42px;
    line-height:1.12;
    margin:15px 0 12px
}
.hero p,.page-title p {
    font-size:17px;
    line-height:1.7;
    color:var(--muted);
    max-width:900px
}
.hero-actions,.card-actions,.detail-actions,.head-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap
}
.btn {
    border:0;
    border-radius:9px;
    padding:11px 16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    font-weight:700;
    cursor:pointer
}
.btn.primary {
    background:var(--primary2);
    color:#fff
}
.btn.primary:hover {
    background:var(--primary)
}
.btn.secondary {
    background:#fff;
    color:var(--primary2);
    border:1px solid var(--primary2)
}
.btn.ghost {
    background:#eef4ef;
    color:#46544b
}
.btn.danger {
    background:var(--danger);
    color:#fff
}
.btn.small {
    padding:8px 11px;
    font-size:12px
}
.btn.tiny {
    padding:6px 9px;
    font-size:11px
}
.btn.full {
    width:100%
}
.statline {
    display:flex;
    gap:25px;
    margin-top:24px;
    flex-wrap:wrap;
    color:var(--muted)
}
.statline b {
    color:var(--primary);
    font-size:20px;
    margin-right:4px
}
.section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:15px;
    margin-bottom:14px
}
.section-head h2 {
    margin:0 0 4px;
    font-size:27px
}
.section-head p {
    margin:0;
    color:var(--muted)
}
.section-head>a {
    color:var(--primary);
    font-weight:700
}
.map-card,.admin-map,.form-map {
    height:460px;
    background:#dbe7df;
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
    box-shadow:var(--shadow)
}
.map-card.large {
    height:620px
}
.category-strip {
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:10px
}
.category-strip a {
    background:#fff;
    border:1px solid var(--line);
    border-radius:11px;
    padding:13px;
    display:flex;
    gap:9px;
    align-items:center;
    box-shadow:0 4px 12px rgba(0,0,0,.02)
}
.category-strip .material-symbols-outlined {
    color:var(--primary)
}
.category-strip strong {
    display:block;
    font-size:12px
}
.category-strip small {
    color:var(--muted);
    font-size:11px
}
.village-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px
}
.village-card,.location-card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 5px 16px rgba(0,0,0,.03)
}
.village-card>img {
    width:100%;
    height:150px;
    object-fit:cover
}
.village-card>div {
    padding:16px
}
.village-card h3 {
    margin:0 0 6px
}
.village-card p {
    color:var(--muted);
    margin:0 0 14px
}
.about-card,.content-card {
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:28px;
    text-align:center
}
.content-card {
    text-align:left
}
.content-card p {
    line-height:1.8;
    color:var(--muted)
}
.site-footer {
    background:var(--primary);
    color:#fff;
    padding:28px max(28px,calc((100% - 1280px)/2));
    display:flex;
    justify-content:space-between;
    gap:20px
}
.site-footer p {
    margin:4px 0;
    opacity:.78
}
.footer-meta {
    display:flex;
    flex-direction:column;
    text-align:right;
    font-size:12px;
    opacity:.85
}
.page-title {
    padding-top:6px
}
.filterbar {
    background:#fff;
    border:1px solid var(--line);
    padding:12px;
    border-radius:12px;
    display:grid;
    grid-template-columns:2fr 1fr 1fr auto;
    gap:10px
}
.filterbar input,.filterbar select,.admin-form input,.admin-form select,.admin-form textarea,.form-stack input,.form-stack select {
    border:1px solid var(--line);
    background:#fbfdfb;
    border-radius:9px;
    padding:11px 12px;
    color:var(--text);
    width:100%
}
.result-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px
}
.result-item {
    background:#fff;
    border:1px solid var(--line);
    padding:12px;
    border-radius:10px;
    display:flex;
    gap:10px;
    align-items:center
}
.result-item .material-symbols-outlined {
    color:var(--primary)
}
.result-item small {
    color:var(--muted);
    display:block
}
.village-hero {
    display:grid;
    grid-template-columns:430px 1fr;
    gap:28px;
    align-items:center
}
.village-hero>img {
    height:250px;
    width:100%;
    object-fit:cover;
    border-radius:15px
}
.village-hero h1 {
    font-size:36px;
    margin:10px 0 5px
}
.chips {
    display:flex;
    gap:7px;
    flex-wrap:wrap;
    margin-top:18px
}
.chip {
    border:1px solid var(--line);
    background:#fff;
    border-radius:999px;
    padding:8px 11px;
    font-weight:700;
    font-size:12px;
    cursor:pointer
}
.chip.active {
    background:var(--primary);
    color:#fff;
    border-color:var(--primary)
}
.location-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px
}
.location-card>img {
    width:100%;
    height:170px;
    object-fit:cover
}
.location-card>div {
    padding:14px
}
.location-card h3 {
    margin:9px 0 6px
}
.location-card p {
    color:var(--muted);
    font-size:13px;
    min-height:38px
}
.badge,.tag {
    display:inline-flex;
    padding:5px 8px;
    border-radius:7px;
    background:#e9f2ec;
    color:var(--primary);
    font-size:11px;
    font-weight:700
}
.detail-grid {
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:30px;
    background:#fff;
    padding:24px;
    border:1px solid var(--line);
    border-radius:15px
}
.detail-image {
    width:100%;
    height:520px;
    object-fit:cover;
    border-radius:12px
}
.detail-content h1 {
    font-size:36px;
    margin:10px 0
}
.detail-content h3 {
    margin-bottom:5px
}
.detail-content p {
    line-height:1.7
}
.muted {
    color:var(--muted)
}
.muted .material-symbols-outlined {
    font-size:17px;
    vertical-align:middle
}
.breadcrumbs {
    font-size:12px;
    color:var(--muted);
    margin-bottom:12px
}
.source {
    font-size:12px;
    color:var(--muted)
}
.toast-wrap {
    position:fixed;
    right:18px;
    top:84px;
    z-index:3000;
    display:flex;
    flex-direction:column;
    gap:8px
}
.toast {
    background:#fff;
    border-left:4px solid var(--primary);
    padding:12px 16px;
    border-radius:8px;
    box-shadow:var(--shadow);
    max-width:360px
}
.toast-error {
    border-color:var(--danger)
}
.toast-success {
    border-color:#23804b
}
.notice {
    padding:12px 14px;
    border-radius:9px;
    margin:12px 0
}
.notice.success {
    background:#e2f5e8;
    color:#1d663a
}
.notice.error {
    background:#ffebe8;
    color:#8e1b12
}
.notice.warning {
    background:#fff4d9;
    color:#755000
}
.install-wrap,.simple-auth {
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:25px;
    background:#eef7f1
}
.install-card,.simple-auth-card {
    width:min(700px,100%);
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:32px;
    box-shadow:var(--shadow)
}
.install-card dl {
    display:grid;
    grid-template-columns:140px 1fr;
    gap:8px;
    margin:20px 0
}
.center-card {
    text-align:center;
    max-width:560px
}
.summary-list {
    margin:20px 0;
    display:grid;
    gap:8px;
    text-align:left
}
.summary-list span {
    display:flex;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    padding:9px
}
.big-icon {
    font-size:54px!important;
    color:var(--primary)
}
.big-icon.danger {
    color:var(--danger)
}
@media(max-width:900px) {
    .nav-toggle {
        display:block
    }
    .navlinks {
        display:none;
        position:absolute;
        top:70px;
        left:0;
        right:0;
        background:#fff;
        flex-direction:column;
        align-items:stretch;
        padding:16px 24px;
        border-bottom:1px solid var(--line)
    }
    .navlinks.open {
        display:flex
    }
    .public-main {
        padding:24px 16px 45px
    }
    .hero h1,.page-title h1 {
        font-size:32px
    }
    .category-strip {
        grid-template-columns:repeat(2,1fr)
    }
    .village-grid,.location-grid {
        grid-template-columns:1fr 1fr
    }
    .filterbar {
        grid-template-columns:1fr 1fr
    }
    .filterbar input {
        grid-column:1/-1
    }
    .village-hero,.detail-grid {
        grid-template-columns:1fr
    }
    .village-hero>img {
        height:210px
    }
    .detail-image {
        height:340px
    }
    .site-footer {
        flex-direction:column
    }
    .footer-meta {
        text-align:left
    }
}
@media(max-width:580px) {
    .village-grid,.location-grid,.result-grid {
        grid-template-columns:1fr
    }
    .category-strip {
        grid-template-columns:1fr
    }
    .filterbar {
        grid-template-columns:1fr
    }
    .map-card.large {
        height:480px
    }
    .section-head {
        align-items:flex-start;
        flex-direction:column
    }
    .detail-content h1 {
        font-size:28px
    }
}

/* ============================================================
   Branding & layout refinements - v4
   ============================================================ */
.topnav {
    height: auto;
    min-height: 72px;
    padding: 0;
}

.topnav-inner {
    width: 100%;
    max-width: 1320px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    flex-shrink: 0;
}

.brand .brand-bogor {
    width: 38px;
    height: 48px;
    object-fit: contain;
}

.navlinks {
    margin-left: auto;
}

.navlinks .admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navlinks .admin-link .material-symbols-outlined {
    font-size: 18px;
}

.nav-partner {
    padding-left: 18px;
    border-left: 1px solid var(--line);
    flex-shrink: 0;
}

.nav-partner img {
    width: 120px;
    height: 38px;
    object-fit: contain;
}

.hero-with-branding {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: stretch;
    gap: 28px;
}

.hero-copy {
    padding: 12px 0;
}

.hero-brand-card {
    background: linear-gradient(145deg, #ffffff, #edf8f0);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow);
}

.hero-brand-logos {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-brand-logos img:first-child {
    width: 68px;
    height: 86px;
    object-fit: contain;
}

.hero-brand-logos img:last-child {
    width: min(190px, 65%);
    height: 68px;
    object-fit: contain;
}

.hero-brand-card b {
    display: block;
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 8px;
}

.hero-brand-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.hero-brand-card small {
    color: #42534a;
    line-height: 1.5;
}

.statline {
    flex-wrap: wrap;
}

.site-footer {
    padding: 0;
}

.site-footer-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 24px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.footer-logos img:first-child {
    width: 48px;
    height: 62px;
    object-fit: contain;
}

.footer-logos img:last-child {
    width: 132px;
    height: 48px;
    object-fit: contain;
}

.footer-branding p,
.footer-meta span {
    margin: 4px 0 0;
    line-height: 1.5;
}

.footer-meta {
    max-width: 480px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.filter-search {
    position: relative;
    flex: 1 1 280px;
}

.filter-search .material-symbols-outlined {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 20px;
}

.filter-search input {
    width: 100%;
    padding-left: 40px;
}

.map-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-toolbar-info {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.map-legend-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.legend-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 999px;
}

.legend-dot.sda {
    background: #1f6b45;
}

.legend-dot.pendidikan {
    background: #33694c;
}

.legend-dot.wisata {
    background: #347a68;
}

.legend-dot.pemerintahan {
    background: #004c6a;
}

.map-popup-card {
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
}

.map-popup-card > img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.map-popup-body {
    padding: 10px 2px 2px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-popup-body b {
    font-size: 15px;
}

.map-popup-body small,
.map-popup-body p {
    color: #5f6e65;
    margin: 0;
    line-height: 1.45;
}

.map-popup-badge {
    color: #005230;
    font-size: 11px;
    font-weight: 700;
}

.map-popup-actions {
    display: flex;
    gap: 7px;
    margin-top: 6px;
}

.map-popup-link {
    padding: 6px 9px;
    background: #005230;
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.map-popup-link.secondary {
    background: #e8f4ec;
    color: #005230 !important;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.map-result-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    min-height: 156px;
    box-shadow: 0 5px 18px rgba(26, 59, 39, 0.04);
}

.map-result-image {
    position: relative;
    min-height: 156px;
    background: var(--soft);
}

.map-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-map-state,
.map-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 700;
}

.result-map-state {
    position: absolute;
    left: 8px;
    bottom: 8px;
}

.result-map-state.mapped,
.map-state.mapped {
    background: #dff5e7;
    color: #005230;
}

.result-map-state.pending,
.map-state.pending {
    background: #fff2d7;
    color: #805100;
}

.result-map-state .material-symbols-outlined,
.map-state .material-symbols-outlined {
    font-size: 14px;
}

.map-result-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.map-result-body h3 {
    margin: 2px 0 0;
    font-size: 16px;
}

.map-result-body p,
.map-result-body small {
    color: var(--muted);
    margin: 0;
}

.map-result-body small {
    line-height: 1.45;
}

.map-result-actions {
    display: flex;
    gap: 7px;
    margin-top: auto;
    padding-top: 8px;
}

.result-action {
    background: var(--primary);
    color: #ffffff;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
}

.result-action.secondary {
    background: var(--soft);
    color: var(--primary);
}

.village-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
}

.village-mini-stats span {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--muted);
    font-size: 12px;
}

.village-mini-stats b {
    color: var(--primary);
}

.location-card-image-wrap {
    position: relative;
}

.location-card-image-wrap .map-state {
    position: absolute;
    left: 10px;
    bottom: 10px;
}

.detail-image-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-caption {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.location-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-line .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
}

.detail-section {
    margin-top: 20px;
}

.source-box {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    background: #edf6f0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #4f5e55;
}

.source-box a {
    color: var(--primary);
    text-decoration: underline;
}

.map-empty-state {
    min-height: 260px;
    border: 1px dashed #b9cbbf;
    border-radius: 14px;
    background: #f2f8f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    gap: 8px;
}

.map-empty-state .material-symbols-outlined {
    font-size: 38px;
    color: var(--primary);
}

.map-empty-state p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.about-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.about-sections > div {
    padding: 8px;
}

.developer-about {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #edf7f0;
    border-radius: 14px;
    padding: 20px !important;
}

.developer-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.developer-logos img:first-child {
    width: 58px;
    height: 74px;
    object-fit: contain;
}

.developer-logos img:last-child {
    width: 170px;
    height: 58px;
    object-fit: contain;
}

@media (max-width: 1050px) {
    .nav-partner {
        display: none;
    }

    .hero-with-branding {
        grid-template-columns: 1fr;
    }

    .hero-brand-card {
        flex-direction: row;
        align-items: center;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topnav-inner {
        padding: 0 16px;
    }

    .site-footer-inner {
        flex-direction: column;
        padding: 26px 18px;
    }

    .footer-branding {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-meta {
        text-align: left;
    }

    .footer-logos img:last-child {
        width: 120px;
    }

    .hero-brand-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-toolbar-info {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-result-card {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .about-sections {
        grid-template-columns: 1fr;
    }

    .developer-about {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .map-result-card {
        grid-template-columns: 1fr;
    }

    .map-result-image {
        min-height: 170px;
    }
}

/* ============================================================
   Marker peta berdasarkan jenis lokasi
   ============================================================ */
.location-marker-shell {
    background: transparent;
    border: 0;
}

.location-marker {
    --marker-color: #005230;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    position: relative;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 8px;
    background: var(--marker-color);
    color: #fff;
    box-shadow: 0 6px 16px rgba(18, 30, 24, 0.26);
    transform: rotate(-45deg);
}

.location-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: inherit;
}

.location-marker .material-symbols-outlined {
    position: relative;
    z-index: 1;
    font-size: 19px;
    line-height: 1;
    transform: rotate(45deg);
    font-variation-settings: 'FILL' 1, 'wght' 550, 'GRAD' 0, 'opsz' 20;
}

/* Logo resmi dan mitra */
.brand-logo-bogor {
    object-fit: contain;
}

.brand-logo-uta {
    object-fit: contain;
    max-width: 180px;
}

/* ============================================================
   Galeri lokasi publik
   ============================================================ */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.detail-gallery a {
    display: block;
    overflow: hidden;
    border: 1px solid #dce8df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(18, 30, 24, 0.06);
}

.detail-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    transition: transform 180ms ease;
}

.detail-gallery a:hover img {
    transform: scale(1.025);
}

/* ============================================================
   Filter dan panduan marker peta publik
   ============================================================ */
.filterbar {
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
}

.legend-dot.fasum {
    background: #266484;
}

.legend-dot.ibadah {
    background: #776b2f;
}

.legend-dot.umkm {
    background: #8a6432;
}

.marker-type-guide {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.marker-type-guide > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
}

.marker-type-guide .material-symbols-outlined {
    color: var(--primary);
    font-size: 20px;
}

.marker-type-guide b {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .marker-type-guide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .filterbar,
    .marker-type-guide {
        grid-template-columns: 1fr;
    }

    .marker-type-guide b {
        white-space: normal;
    }
}

.location-type-badge,
.type-mini-badge {
    --type-color: #005230;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border-radius: 999px;
    color: var(--type-color);
    background: color-mix(in srgb, var(--type-color) 10%, white);
    font-size: 12px;
    font-weight: 700;
}

.location-type-badge {
    margin-top: 9px;
    padding: 7px 10px;
}

.type-mini-badge {
    padding: 4px 8px;
    color: #405047;
    background: #edf5ef;
}

.location-type-badge .material-symbols-outlined,
.type-mini-badge .material-symbols-outlined {
    font-size: 16px;
}

.result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.footer-meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   Visual polish & cache-safe branding - v5.0.2
   ============================================================ */

/* Logo selalu terkendali meskipun gambar sumber beresolusi besar. */
.brand-bogor,
.nav-partner img,
.hero-brand-logos img,
.footer-bogor-logo,
.footer-partner img {
    flex: 0 0 auto;
    object-fit: contain;
}

.nav-partner {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-partner img {
    width: 112px;
    height: 34px;
    max-width: 112px;
}

.hero-with-branding {
    align-items: center;
}

.hero-brand-card {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    align-self: center;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f2faf4 100%);
}

.hero-brand-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e3f3e8;
    color: #005230;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-brand-logos {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 82px;
}

.hero-brand-logos img:first-child {
    width: 58px;
    height: 74px;
    max-width: 58px;
}

.hero-brand-logos img:last-child {
    width: 164px;
    height: 48px;
    max-width: 164px;
}

.hero-brand-divider {
    width: 1px;
    height: 54px;
    background: #d7e5dc;
    flex: 0 0 1px;
}

.hero-brand-copy {
    width: 100%;
}

.hero-brand-copy b {
    margin-bottom: 6px;
}

.hero-brand-copy p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 8px;
}

.hero-brand-copy small {
    display: block;
    font-size: 11px;
    line-height: 1.55;
}

/* Footer dibuat dua tingkat agar logo, kredit, dan copyright tidak bertabrakan. */
.site-footer {
    margin-top: 20px;
    background: #004b2c;
    color: #ffffff;
}

.site-footer-main {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.footer-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.footer-bogor-logo {
    width: 48px;
    height: 62px;
    max-width: 48px;
}

.footer-identity strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.footer-identity p {
    margin: 2px 0;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.5;
}

.footer-partner {
    min-width: 230px;
    padding-left: 26px;
    border-left: 1px solid rgba(255, 255, 255, .18);
    display: grid;
    justify-items: end;
    gap: 5px;
    text-align: right;
}

.footer-partner-label {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-partner img {
    width: 150px;
    height: 44px;
    max-width: 150px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .12));
}

.footer-partner small {
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    line-height: 1.45;
}

.footer-developer-names {
    max-width: 360px;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    width: 100%;
    padding: 13px max(24px, calc((100% - 1272px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(0, 0, 0, .08);
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer-bottom a {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .hero-brand-card {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .hero-brand-card {
        padding: 20px;
    }

    .hero-brand-logos {
        justify-content: flex-start;
    }

    .hero-brand-logos img:last-child {
        width: 148px;
        max-width: 148px;
        height: 44px;
    }

    .site-footer-main {
        grid-template-columns: 1fr;
        padding: 24px 18px 20px;
        gap: 22px;
    }

    .footer-partner {
        min-width: 0;
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .18);
        justify-items: start;
        text-align: left;
    }

    .site-footer-bottom {
        padding: 13px 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .hero-brand-logos {
        gap: 12px;
    }

    .hero-brand-logos img:first-child {
        width: 50px;
        height: 64px;
        max-width: 50px;
    }

    .hero-brand-logos img:last-child {
        width: 132px;
        height: 40px;
        max-width: 132px;
    }

    .hero-brand-divider {
        height: 44px;
    }
}
