/* BOTO V2 — navigation, village code, IDM/SDGs, KPI and map refinements */
.site-header--v2 {
  height: 78px;
  min-height: 78px;
  border-bottom: 1px solid rgba(20,65,42,.09);
  box-shadow: 0 2px 10px rgba(15,63,42,.04);
}

.site-header__inner--v2 {
  height: 78px;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) minmax(220px, 265px);
  gap: 22px;
}

.brand--v2 {
  min-width: 0;
}

.brand--v2 .brand__mark {
  width: 76px;
  height: 48px;
}

.brand__copy {
  min-width: 0;
  display: grid;
  align-content: center;
}

.brand--v2 .brand__title {
  font-size: 29px;
}

.brand--v2 .brand__sub {
  margin-top: 3px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__code {
  display: block;
  margin-top: 2px;
  color: #27352d;
  font-size: 9.5px;
  line-height: 1.1;
}

.brand__code strong {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  letter-spacing: .02em;
}

.main-nav--v2 {
  justify-content: center;
  gap: 15px;
  min-width: 0;
}

.main-nav--v2 > a,
.main-nav--v2 > .nav-dropdown > summary {
  height: 78px;
  font-size: 13.5px;
}

.main-nav--v2 > a.active::after {
  height: 3px;
}

.header-search--v2 {
  height: 38px;
  border-radius: 9px;
}

.header-search--v2 input {
  font-size: 12px;
}

.header-search--v2 button {
  width: 45px;
  font-size: 15px;
}

.hero {
  height: 330px;
}

.quick-strip-wrap--v2 {
  margin-top: -46px;
  margin-bottom: 14px;
}

.quick-strip--v2 {
  width: min(1660px, calc(100% - 36px));
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
}

.quick-strip--v2 .quick-card {
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr) 17px;
  gap: 9px;
  padding: 9px 10px;
}

.quick-strip--v2 .quick-icon {
  width: 40px;
  height: 40px;
  font-size: 19px;
}

.quick-strip--v2 .quick-card h3 {
  font-size: 16px;
}

.quick-strip--v2 .quick-card p {
  font-size: 9.5px;
  line-height: 1.15;
}

.quick-card--violet { background: linear-gradient(90deg, #f1ebff, #faf8ff); }
.quick-card--violet .quick-icon { color: #6d28d9; background: #e9ddff; }
.quick-card--lime { background: linear-gradient(90deg, #eef9e8, #f9fcf7); }
.quick-card--lime .quick-icon { color: #27883f; background: #dff3d8; }
.quick-card--sdgs { background: linear-gradient(90deg, #fff0f2, #fff9fa); }
.quick-card--sdgs .quick-icon { color: #dc2447; background: #ffe0e6; }

.content-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .95fr) minmax(410px, 1.18fr);
  gap: 20px;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.services-grid {
  gap: 9px;
}

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

.development-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(18,54,37,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.development-card:hover {
  transform: translateY(-2px);
  border-color: #c7d6ca;
  box-shadow: 0 10px 24px rgba(18,54,37,.10);
}

.development-card--idm {
  background: linear-gradient(135deg, #f1faed, #fff 62%);
}

.development-card--sdgs {
  background: linear-gradient(135deg, #fff3f5, #fff 62%);
}

.development-card__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 7px;
}

.development-card__head strong,
.development-card__head small {
  display: block;
}

.development-card__head strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.development-card__head small {
  margin-top: 3px;
  color: #5f6962;
  font-size: 10px;
}

.development-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #dff3d9;
  color: #27883f;
  font-size: 20px;
}

.development-icon--sdgs {
  background: #ffe0e6;
  color: #d51f43;
}

.development-arrow {
  justify-self: end;
  color: #2d6f40;
}

.development-card__body {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  padding: 0 14px 12px;
}

.development-label {
  display: block;
  color: #667069;
  font-size: 9.5px;
}

.development-value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.development-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #475149;
  font-size: 10px;
}

.development-meta span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.development-meta strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #202721;
}

.development-progress {
  height: 5px;
  background: #e5efe2;
}

.development-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2a8b48, #55b873);
  transition: width .4s ease;
}

.development-progress--sdgs {
  background: #f9dfe5;
}

.development-progress--sdgs span {
  background: linear-gradient(90deg, #dc2447, #f25a75);
}

.lower-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, .88fr) minmax(420px, 1.12fr);
  gap: 20px;
  margin-top: 14px;
}

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

.data-card {
  min-width: 0;
  height: 78px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  overflow: hidden;
}

.data-card > span:last-child {
  min-width: 0;
}

.data-icon {
  width: 48px;
  height: 48px;
  font-size: 27px;
}

.data-value {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 23px;
  line-height: 1;
}

.data-label {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.15;
}

.map-card--native {
  height: 176px;
  background: #edf4ef;
  isolation: isolate;
}

.map-card--native::before,
.map-card--native::after {
  display: none;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, #e5f0e7, #d7ebdf);
}

.map-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  color: #365343;
  background: linear-gradient(135deg, #eef6ef, #dceee3);
}

.map-empty[hidden] {
  display: none;
}

.map-empty i {
  font-size: 27px;
  color: #268245;
}

.map-empty span {
  max-width: 270px;
  font-size: 10px;
}

.map-overlay-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  max-width: calc(100% - 110px);
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  color: #183c28;
  box-shadow: 0 4px 12px rgba(15,63,42,.12);
  backdrop-filter: blur(6px);
}

.map-overlay-label strong,
.map-overlay-label span {
  display: block;
}

.map-overlay-label strong {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
}

.map-overlay-label span {
  margin-top: 2px;
  font-size: 8.5px;
}

.map-open-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(22,101,52,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: #1f6b3a;
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15,63,42,.10);
}

#boto-map-preview .leaflet-pane,
#boto-map-preview .leaflet-map-pane,
#boto-map-preview .leaflet-tile-pane {
  z-index: auto;
}

#boto-map-preview .leaflet-control-container {
  display: none;
}

/* Explicitly remove old square/fullscreen/QR-like overlay from the map. */
.map-fullscreen,
.map-badge,
.boto-qr,
.qr-code,
.qrcode {
  display: none !important;
}

@media (max-width: 1500px) {
  .site-header__inner--v2 {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) 225px;
    gap: 14px;
  }
  .main-nav--v2 { gap: 11px; }
  .main-nav--v2 > a,
  .main-nav--v2 > .nav-dropdown > summary { font-size: 12.5px; }
  .quick-strip--v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content-grid,
  .lower-grid { gap: 16px; }
}

@media (max-width: 1200px) {
  .site-header--v2,
  .site-header__inner--v2 { height: 72px; min-height: 72px; }
  .site-header__inner--v2 { grid-template-columns: 1fr 42px; }
  .main-nav--v2,
  .header-search--v2 { display: none; }
  .brand--v2 .brand__title { font-size: 27px; }
  .development-grid { grid-template-columns: 1fr 1fr; }
  .lower-grid { grid-template-columns: 1fr 1fr; }
  #potensi { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .quick-strip--v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .development-grid { grid-template-columns: 1fr; }
  .development-card__body { grid-template-columns: 130px minmax(0, 1fr); }
  .lower-grid { grid-template-columns: 1fr; }
  #potensi { grid-column: auto; }
  .map-card--native { height: 240px; }
}

@media (max-width: 680px) {
  .brand--v2 .brand__mark { width: 58px; height: 42px; }
  .brand--v2 .brand__title { font-size: 23px; }
  .brand--v2 .brand__sub { white-space: normal; font-size: 8.5px; }
  .brand__code { font-size: 8px; }
  .quick-strip--v2 { grid-template-columns: 1fr; width: calc(100% - 24px); }
  .development-card__body { grid-template-columns: 1fr; gap: 8px; }
  .development-meta span { justify-content: flex-start; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .data-card { height: 74px; }
}

@media (max-width: 430px) {
  .data-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   BOTO_NATIVE_VILLAGE_LOGO_R5A
   Logo header beranda berasal dari Identitas Desa.
   ========================================================== */

.brand--v2 .brand__mark--native {
    width: 76px;
    height: 66px;
    flex: 0 0 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.brand--v2 .brand__native-logo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: transparent;
    border: 0;

    filter:
        drop-shadow(
            0 4px 8px
            rgba(0, 0, 0, .06)
        );
}

@media (max-width: 760px) {
    .brand--v2 .brand__mark--native {
        width: 58px;
        height: 52px;
        flex-basis: 58px;
    }
}


/* ==========================================================
   BOTO_INNER_PUBLIC_SHELL_R8
   Shared presentation layer for all native OpenSID pages.
   ========================================================== */

body.boto-page-inner {
    background:
        linear-gradient(
            180deg,
            #f5f8f4 0,
            #f8faf8 260px,
            #f6f8f7 100%
        );
}

.boto-public-stage {
    min-height: 55vh;
}

/* ----------------------------------------------------------
   Primary inner layout
   ---------------------------------------------------------- */

.boto-inner-shell {
    width: min(1320px, calc(100% - 36px));
    margin: 34px auto 64px;
}

.boto-inner-shell--sidebar {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        360px;

    align-items: start;
    gap: 30px;
}

.boto-inner-main {
    min-width: 0;

    padding:
        clamp(22px, 2.6vw, 38px);

    border:
        1px
        solid
        rgba(31, 76, 52, .09);

    border-radius: 22px;

    background:
        rgba(
            255,
            255,
            255,
            .98
        );

    box-shadow:
        0
        18px
        52px
        rgba(
            27,
            54,
            38,
            .075
        );
}

.boto-inner-main--full {
    width: 100%;
}

/* ----------------------------------------------------------
   Typography normalization for legacy native partials
   ---------------------------------------------------------- */

.boto-page-inner
.boto-inner-main h1,
.boto-page-inner
.boto-inner-main h2,
.boto-page-inner
.boto-inner-main h3,
.boto-page-inner
.boto-inner-main h4 {
    color: #173923;
    font-family:
        "Barlow Condensed",
        "Inter",
        sans-serif;
    letter-spacing: -.01em;
}

.boto-page-inner
.boto-inner-main a {
    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.boto-page-inner
.boto-inner-main img {
    max-width: 100%;
}

/* ----------------------------------------------------------
   Legacy breadcrumb visual conversion
   ---------------------------------------------------------- */

.boto-page-inner .breadcrumb,
.boto-page-inner .breadcrumbs {
    margin-bottom: 22px !important;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;

    color: #6b7c70;
    font-size: 13px;
}

.boto-page-inner .breadcrumb a,
.boto-page-inner .breadcrumbs a {
    color: #2b7743;
    font-weight: 700;
}

/* ----------------------------------------------------------
   Generic native card normalization
   ---------------------------------------------------------- */

.boto-page-inner .box,
.boto-page-inner .panel,
.boto-page-inner .card {
    overflow: hidden;

    border:
        1px
        solid
        rgba(28, 76, 48, .10)
        !important;

    border-radius:
        18px
        !important;

    background:
        #fff
        !important;

    box-shadow:
        0
        12px
        34px
        rgba(
            19,
            57,
            34,
            .06
        )
        !important;
}

.boto-page-inner .box-header,
.boto-page-inner .panel-heading,
.boto-page-inner .card-header {
    border-bottom:
        1px
        solid
        #e8efe9
        !important;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fafcf9
        )
        !important;
}

/* ----------------------------------------------------------
   Forms
   ---------------------------------------------------------- */

.boto-page-inner input[type="text"],
.boto-page-inner input[type="search"],
.boto-page-inner input[type="email"],
.boto-page-inner input[type="number"],
.boto-page-inner input[type="tel"],
.boto-page-inner input[type="password"],
.boto-page-inner textarea,
.boto-page-inner select,
.boto-page-inner .form-control {
    border:
        1px
        solid
        #d8e3da
        !important;

    border-radius:
        10px
        !important;

    background:
        #fff
        !important;

    box-shadow:
        none
        !important;
}

.boto-page-inner input:focus,
.boto-page-inner textarea:focus,
.boto-page-inner select:focus,
.boto-page-inner .form-control:focus {
    border-color:
        #3d8a55
        !important;

    box-shadow:
        0
        0
        0
        3px
        rgba(
            61,
            138,
            85,
            .12
        )
        !important;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.boto-page-inner .btn,
.boto-page-inner button {
    border-radius: 9px;
}

/* ----------------------------------------------------------
   Sidebar
   ---------------------------------------------------------- */

.boto-inner-sidebar {
    min-width: 0;
}

.boto-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.boto-sidebar-search {
    position: relative;

    display: grid;
    grid-template-columns:
        24px
        minmax(0, 1fr)
        auto;

    align-items: center;

    padding: 7px;

    border:
        1px
        solid
        #dce8de;

    border-radius: 14px;

    background: #fff;

    box-shadow:
        0
        12px
        30px
        rgba(
            26,
            67,
            42,
            .055
        );
}

.boto-sidebar-search > i {
    margin-left: 8px;
    color: #56705d;
}

.boto-sidebar-search input {
    min-width: 0;
    height: 42px;

    padding:
        0
        10px;

    border:
        0
        !important;

    outline: 0;
    background: transparent;
}

.boto-sidebar-search button {
    min-height: 40px;
    padding: 0 15px;

    border: 0;
    border-radius: 9px;

    background: #26713f;
    color: #fff;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.boto-sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.boto-sidebar-widget {
    overflow: hidden;

    border:
        1px
        solid
        rgba(29, 77, 49, .09);

    border-radius: 18px;

    background: #fff;

    box-shadow:
        0
        12px
        34px
        rgba(
            21,
            63,
            39,
            .055
        );
}

/* Normalize Esensi widget outer chrome without touching
   widget business logic/content. */
.boto-sidebar-widget > * {
    margin:
        0
        !important;
}

/* ----------------------------------------------------------
   Tables
   ---------------------------------------------------------- */

.boto-page-inner table {
    width: 100%;
}

.boto-page-inner .table {
    border-radius: 12px;
    overflow: hidden;
}

.boto-page-inner .table > thead > tr > th {
    border-bottom-color:
        #dce7de
        !important;

    background:
        #f2f7f3;
    color: #24462e;
}

/* ----------------------------------------------------------
   Native pagination
   ---------------------------------------------------------- */

.boto-page-inner .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 24px;
}

.boto-page-inner .pagination a,
.boto-page-inner .pagination span {
    border-radius:
        8px
        !important;
}

/* ----------------------------------------------------------
   Maps / charts: preserve native dimensions
   ---------------------------------------------------------- */

.boto-page-inner #map,
.boto-page-inner .leaflet-container,
.boto-page-inner .maplibregl-map {
    max-width: 100%;
}

/* ----------------------------------------------------------
   Footer native logo
   ---------------------------------------------------------- */

.site-footer
.brand__mark--footer-native {
    width: 68px;
    height: 58px;
    flex:
        0
        0
        68px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand__native-logo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 1060px) {
    .boto-inner-shell--sidebar {
        grid-template-columns:
            minmax(0, 1fr)
            300px;
    }
}

@media (max-width: 860px) {
    .boto-inner-shell {
        width:
            min(
                100% - 24px,
                1320px
            );

        margin-top: 22px;
    }

    .boto-inner-shell--sidebar {
        grid-template-columns: 1fr;
    }

    .boto-inner-sidebar--left {
        order: 2;
    }

    .boto-inner-main {
        padding: 20px;
        border-radius: 16px;
    }
}

@media (max-width: 520px) {
    .boto-inner-shell {
        width:
            calc(
                100% - 16px
            );

        margin-top: 14px;
    }

    .boto-inner-main {
        padding:
            16px
            13px;

        border-radius: 14px;
    }
}

