/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --blue: #0D47A1;
  --sky: #4FC3F7;
  --sky-pale: #eaf8ff;
  --ink: #172b4d;
  --muted: #63748b;
  --line: #dce6f0;
  --surface: #fff;
  --page: #f5f9fd;
  --danger: #a52d38;
  --radius: 18px;
  --shadow: 0 8px 28px rgba(13, 71, 161, .08);
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: #082f70;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--blue);
  border-radius: 11px;
  padding: 11px 18px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
  transition: transform .18s, background .18s, box-shadow .18s;
}

button:hover,
.button:hover {
  background: #083780;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px #0d47a126;
}

.button.secondary,
button.secondary {
  background: #fff;
  color: var(--blue);
  border-color: #c5d9ee;
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--sky-pale);
}

.button.danger,
button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 max(20px, calc((100vw - 1240px) / 2));
  box-shadow: 0 3px 18px #15365a08;
}

.bar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--blue);
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  font-size: 30px;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1.15;
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .7px;
  color: var(--muted);
  margin-top: 4px;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.site-header nav a {
  color: #354b68;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  padding: 9px 10px;
  border-radius: 9px;
}

.site-header nav a:hover {
  background: var(--sky-pale);
  color: var(--blue);
}

.site-header nav .nav-cta {
  background: var(--blue);
  color: white;
  padding: 10px 16px;
}

.site-header nav form {
  margin: 0;
}

.nav-button {
  padding: 8px 12px;
  border: 1px solid #c5d9ee;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  border-radius: 9px;
}

.nav-button:hover {
  background: var(--sky-pale);
  color: var(--blue);
}

/* ==========================================================================
   Layout & Typography
   ========================================================================== */
main {
  max-width: 1240px;
  margin: 34px auto 52px;
  padding: 0 22px;
  min-height: 65vh;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: -1.4px;
  color: #122d53;
  margin: 10px 0 18px;
}

h2 {
  font-size: clamp(22px, 2.5vw, 29px);
  line-height: 1.3;
  letter-spacing: -.5px;
  margin: 34px 0 18px;
  color: #18385f;
}

h3 {
  line-height: 1.35;
  color: #1c3d66;
}

p {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--blue);
  font-weight: 800;
}

.small {
  font-size: 13px;
}

.text {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
}

/* ==========================================================================
   Grid & Cards
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card h3 {
  margin: 10px 0;
}

.card img {
  max-width: 100%;
  border-radius: 12px;
}

.card .photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  margin: -3px 0 15px;
}

.card p {
  overflow-wrap: anywhere;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sky-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.num {
  font-size: 34px;
  font-weight: 850;
  color: var(--blue);
  margin: 5px 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #0D47A1 0%, #1767bd 58%, #4FC3F7 130%);
  color: #fff;
  text-align: left;
  border: 0;
  border-radius: 26px;
  padding: clamp(30px, 6vw, 70px);
  box-shadow: 0 18px 45px #0d47a124;
}

.hero:after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -110px;
  top: -120px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #ffffff0c, 0 0 0 70px #ffffff09;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 57px);
  max-width: 760px;
}

.hero p {
  max-width: 720px;
}

.hero .eyebrow,
.hero .muted {
  color: #d9f2ff;
}

.hero .actions {
  justify-content: flex-start;
}

.hero .button {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.hero .button.secondary {
  background: #ffffff18;
  color: #fff;
  border-color: #ffffff70;
}

.hero .button.secondary:hover {
  background: #ffffff2b;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 34px 0 0;
}

.hero-metrics > div {
  background: #ffffff14;
  border: 1px solid #ffffff35;
  border-radius: 15px;
  padding: 17px 18px;
}

.hero-metrics strong {
  font-size: clamp(23px, 3vw, 32px);
  display: block;
  line-height: 1.3;
}

.hero-metrics span {
  font-size: 12px;
  color: #e0f5ff;
}

.how-it-works {
  margin-top: 42px;
}

.how-it-works .card {
  border-top: 3px solid var(--sky);
}

/* ==========================================================================
   Forms & Search
   ========================================================================== */
.search {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 20px 0 24px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.search .field {
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.search > select {
  min-width: 170px;
  width: auto;
}

.search > a {
  padding: 10px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 7px;
  color: #294563;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #c7d6e5;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px #4fc3f72a;
  outline: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 20px;
}

.auth {
  max-width: 520px;
  margin: 38px auto;
  padding: clamp(24px, 5vw, 40px);
}

.auth h1 {
  font-size: 34px;
}

.auth button {
  width: 100%;
}

.inline {
  display: inline-block;
  margin: 5px 7px 5px 0;
}

.inline button {
  width: auto;
}

/* ==========================================================================
   Alerts, Tables, Tabs, Pagination
   ========================================================================== */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #e6f7ff;
  color: #124477;
  border: 1px solid #bfe8fb;
}

.alert.error {
  background: #fff0f0;
  color: #8e292e;
  border-color: #f4c9cc;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid #e7eef5;
  vertical-align: top;
}

th {
  background: #eaf5fc;
  color: #173e70;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.tabs a {
  padding: 8px 12px;
  border: 1px solid #d3e3f1;
  border-radius: 9px;
  background: #f8fcff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.tabs a:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 22px 0;
}

.pagination a,
.pagination span {
  padding: 6px 12px;
  border: 1px solid #c5d9ee;
  border-radius: 8px;
  text-decoration: none;
  background: white;
}

.pagination .active {
  background: var(--blue);
  color: white;
}

.empty {
  padding: 28px;
  border: 1px dashed #a8c7e0;
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
}

/* ==========================================================================
   Misc Components
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
}

.timeline {
  border-left: 4px solid var(--sky);
  padding-left: 22px;
  margin: 20px 0;
}

.timeline img {
  max-height: 260px;
  object-fit: cover;
}

#map {
  height: 480px;
  border-radius: 16px;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  z-index: 1;
}

.qr-image {
  width: 300px;
  max-width: 100%;
}

.pwa-tools {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  flex-wrap: wrap;
}

.network-status {
  background: #fff2cf;
  color: #704b00;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #f2d98e;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  text-align: center;
  padding: 34px 20px;
  background: #0a3476;
  color: #eaf7ff;
  font-size: 13px;
}

footer p {
  margin: 4px 0;
  color: #d0e8fa;
}

footer small {
  color: #a9d8f3;
}

.footer-brand {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 3px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
[hidden] {
  display: none !important;
}

/* ==========================================================================
   Section Heading, Site Card, Placeholder
   ========================================================================== */
.section-heading {
  margin: 38px 0 20px;
}

.section-heading h2,
.how-it-works h2 {
  margin: 4px 0 8px;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.site-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.site-card h3 {
  margin: 8px 0 4px;
}

.site-card p {
  margin-bottom: 8px;
}

.site-card .card-link {
  margin-top: auto;
  padding-top: 7px;
  font-weight: 750;
  text-decoration: none;
}

.photo-placeholder {
  width: 100%;
  height: 210px;
  display: grid;
  place-items: center;
  margin: -3px 0 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf8ff, #c6edff);
  color: var(--blue);
  font-size: 68px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 0;
    gap: 10px;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 4px;
  }

  .site-header nav a {
    padding: 8px;
  }

  .site-header nav .nav-cta {
    padding: 8px 12px;
  }
}

@media (max-width: 700px) {
  main {
    margin: 22px auto 36px;
    padding: 0 15px;
  }

  .site-header {
    padding: 0 15px;
  }

  .bar {
    min-height: 0;
  }

  .brand strong {
    font-size: 20px;
  }

  .site-header nav {
    width: 100%;
    gap: 4px;
  }

  .site-header nav a {
    font-size: 12px;
    padding: 7px 8px;
  }

  .hero {
    border-radius: 20px;
    padding: 28px 22px;
  }

  .hero h1 {
    font-size: 34px;
    letter-spacing: -.8px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 25px;
  }

  .hero-metrics > div {
    padding: 12px 14px;
  }

  .hero-metrics strong {
    font-size: 25px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 19px;
    margin-bottom: 14px;
  }

  .card .photo {
    height: 200px;
  }

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

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics .card {
    padding: 15px;
  }

  .metrics .num {
    font-size: 27px;
  }

  .search {
    align-items: stretch;
    padding: 14px;
  }

  .search > select {
    width: 100%;
  }

  .search button {
    width: 100%;
  }

  #map {
    height: 360px;
  }

  .tabs {
    gap: 6px;
    padding: 9px;
  }

  .tabs a {
    font-size: 12px;
    padding: 7px 9px;
  }

  h1 {
    letter-spacing: -.7px;
  }

  .auth {
    margin: 20px auto;
  }

  .table-wrap {
    font-size: 12px;
  }

  th,
  td {
    padding: 10px;
  }
}

/* =========================================
   LENTERA - HERO BERANDA MODERN
   ========================================= */

.hero {
    text-align: center;
    background: linear-gradient(
        135deg,
        #0D47A1 0%,
        #1565C0 55%,
        #2196D2 100%
    );
    border-radius: 24px;
    padding: 75px 40px;
    position: relative;
    overflow: hidden;
}

/* Tulisan kecil */
.hero .eyebrow {
    color: #BDEBFF;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 20px;
}

/* Judul */
.hero h1 {
    color: #FFFFFF;
    text-align: center;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.2;
    font-weight: 800;
    max-width: 850px;
    margin: 0 auto 22px;
}

/* Deskripsi */
.hero > p {
    color: #FFFFFF;
    max-width: 720px;
    margin: 15px auto;
    line-height: 1.8;
    font-size: 16px;
}

.hero > p.muted {
    color: #BDEBFF;
    font-weight: 600;
    font-size: 18px;
}

/* Tombol */
.hero .actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* Statistik */
.hero-metrics {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.hero-metrics > div {
    min-width: 170px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.12);
    border-radius: 16px;
    text-align: center;
}

.hero-metrics strong {
    display: block;
    color: #FFFFFF;
    font-size: 30px;
    font-weight: 800;
}

.hero-metrics span {
    color: #DCEEFF;
    font-size: 13px;
}

/* Tampilan HP */
@media (max-width: 600px) {
    .hero {
        padding: 48px 20px;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero > p {
        font-size: 14px;
    }

    .hero-metrics > div {
        min-width: 120px;
        flex: 1;
    }
}

/* Memusatkan seluruh kotak statistik hero */
.hero .hero-metrics {
    width: 100%;
    max-width: 700px;
    margin: 38px auto 0 !important;

    display: flex;
    justify-content: center !important;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
}

.hero .hero-metrics > div {
    flex: 1 1 150px;
    max-width: 190px;
    text-align: center !important;
}

/* =====================================
   LENTERA - KARTU TETENGER POPULER
   ===================================== */

.site-card {
    background: #FFFFFF;
    border: 1px solid #DCE8F5;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(13, 71, 161, .12);
}

/* Foto */
.site-card-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* Placeholder jika belum ada foto */
.site-card-placeholder {
    height: 220px;
    background: #EAF5FF;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0D47A1;
}

.site-card-placeholder span {
    font-size: 45px;
}

.site-card-placeholder p {
    font-weight: 600;
}

/* Kategori */
.site-card-category {
    display: inline-block;
    margin-top: 16px;
    background: #E1F5FE;
    color: #0D47A1;
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
}

/* Judul */
.site-card-title {
    color: #0D47A1;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
    margin: 14px 0 10px;
}

/* Deskripsi */
.site-card-description {
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
}

/* Alamat */
.site-card-location {
    color: #64748B;
    font-size: 13px;
    margin-bottom: 18px;
}

/* Tombol detail */
.site-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0D47A1;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, gap .2s ease;
}

.site-card-link:hover {
    color: #2196D2;
    gap: 13px;
}

/* Tampilan HP */
@media (max-width: 600px) {
    .site-card {
        padding: 14px;
    }

    .site-card-photo,
    .site-card-placeholder {
        height: 180px;
    }

    .site-card-title {
        font-size: 18px;
    }
}


/* Perbaikan footer LENTERA */
footer {
    background: #FFFFFF !important;
    color: #334155 !important;
    border-top: 1px solid #D7E3F2;
    padding: 28px 20px;
    text-align: center;
}

footer .footer-brand {
    color: #0D47A1 !important;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

footer p {
    color: #475569 !important;
    margin: 8px 0;
    line-height: 1.7;
}

footer small {
    color: #64748B !important;
    display: block;
    line-height: 1.7;
}

/* Tombol pemasangan aplikasi */
.pwa-tools {
    background: #F1F7FF;
    color: #183153;
    border-top: 1px solid #D7E3F2;
    padding: 16px;
    text-align: center;
}

.pwa-tools button {
    background: #0D47A1;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
}

.pwa-tools button:hover {
    background: #083780;
}

.pwa-tools button[hidden] {
    display: none !important;
}


/* =====================================
   JELAJAHI SITUS - LENTERA
===================================== */

.sites-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px 64px;
    color: #183153;
}

.sites-heading {
    margin-bottom: 26px;
}

.sites-eyebrow {
    margin: 0 0 8px;
    color: #0D47A1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sites-heading h1 {
    margin: 0;
    color: #0D47A1;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
}

.sites-subtitle {
    margin: 12px 0 0;
    color: #64748B;
    line-height: 1.7;
}

/* Pencarian */

.sites-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px auto auto;
    align-items: end;
    gap: 12px;
    padding: 20px;
    margin-bottom: 24px;
    background: #FFFFFF;
    border: 1px solid #D9E7F8;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(13, 71, 161, .04);
}

.sites-search-field,
.sites-search-type {
    min-width: 0;
}

.sites-search label {
    display: block;
    margin-bottom: 8px;
    color: #183153;
    font-size: 13px;
    font-weight: 700;
}

.sites-search input,
.sites-search select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 13px;
    color: #183153;
    background: #FFFFFF;
    border: 1px solid #C7D9F0;
    border-radius: 10px;
    font: inherit;
}

.sites-search input:focus,
.sites-search select:focus {
    outline: 2px solid #90CAF9;
    outline-offset: 2px;
}

.sites-search-button {
    height: 48px;
    padding: 0 22px;
    color: #FFFFFF;
    background: #0D47A1;
    border: 1px solid #0D47A1;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.sites-search-button:hover {
    background: #08377E;
}

.sites-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 8px;
    color: #0D47A1;
    font-weight: 600;
}

/* Hasil pencarian */

.sites-result {
    margin: 24px 0 16px;
    color: #64748B;
    font-size: 14px;
}

.sites-result p {
    margin: 0;
}

.sites-result strong {
    color: #0D47A1;
}

/* Grid kartu */

.sites-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.site-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #D9E7F8;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(13, 71, 161, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(13, 71, 161, .11);
}

/* Foto selalu di atas */

.site-card-image {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #EAF4FF;
    text-decoration: none;
}

.site-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.site-card:hover .site-card-image img {
    transform: scale(1.035);
}

.site-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    color: #0D47A1;
    background: #EAF4FF;
    font-weight: 600;
}

.site-card-placeholder span:first-child {
    font-size: 54px;
}

/* Isi kartu */

.site-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.site-card-category {
    display: inline-block;
    padding: 6px 11px;
    color: #0D47A1;
    background: #EAF4FF;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.site-card-title {
    margin: 14px 0 8px;
    font-size: 21px;
    line-height: 1.4;
}

.site-card-title a {
    color: #183153;
    text-decoration: none;
}

.site-card-title a:hover {
    color: #0D47A1;
}

.site-card-description {
    margin: 0 0 14px;
    color: #64748B;
    font-size: 14px;
    line-height: 1.8;
}

.site-card-location {
    margin: 0 0 20px;
    color: #64748B;
    font-size: 13px;
    line-height: 1.7;
}

.site-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 16px;
    color: #FFFFFF;
    background: #0D47A1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}

.site-card-link:hover {
    color: #FFFFFF;
    background: #08377E;
}

/* Tidak ada hasil */

.sites-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #D9E7F8;
    border-radius: 18px;
}

.sites-empty > span {
    font-size: 44px;
}

.sites-empty h2 {
    color: #0D47A1;
}

.sites-empty p {
    color: #64748B;
}

.sites-empty a {
    color: #0D47A1;
    font-weight: 700;
}

/* Pagination */

.sites-pagination {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* Responsif */

@media (max-width: 900px) {
    .sites-search {
        grid-template-columns: minmax(0, 1fr) 180px;
    }

    .sites-search-button,
    .sites-reset {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .sites-page {
        padding: 26px 16px 40px;
    }

    .sites-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sites-search {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .site-card-image {
        height: 220px;
    }

    .site-card-body {
        padding: 18px;
    }

    .site-card-title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-card,
    .site-card-image img {
        transition: none;
    }
}


/* ===== LENTERA: BLUE GRADIENT THEME ===== */

:root {
    --lentera-navy: #0D47A1;
    --lentera-blue: #1976D2;
    --lentera-light: #4FC3F7;
    --lentera-pale: #EAF6FF;
    --lentera-white: #FFFFFF;
}

/* Latar halaman */
body {
    background: #F4F9FF;
}

/* Gradient khusus navbar utama */
.navbar {
    background: linear-gradient(
        120deg,
        #0D47A1 0%,
        #1976D2 58%,
        #4FC3F7 100%
    );
}

/* Judul halaman */
h1 {
    color: var(--lentera-navy);
}

/* Tombol utama */
button,
.btn {
    background: linear-gradient(
        120deg,
        #0D47A1,
        #1976D2,
        #4FC3F7
    );
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.2);
}

/* Kartu situs */
.site-card {
    background: #FFFFFF;
    border: 1px solid #DCEAF8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(13, 71, 161, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(13, 71, 161, 0.14);
}

/* Link pada kartu */
.site-card-link {
    color: var(--lentera-navy);
    font-weight: 700;
    text-decoration: none;
}

.site-card-link:hover {
    color: #1976D2;
}

/* Label kategori */
.site-card-category {
    background: var(--lentera-pale);
    color: var(--lentera-navy);
}

/* Area foto cadangan */
.site-card-placeholder {
    background: linear-gradient(
        135deg,
        #EAF6FF,
        #D2EEFF,
        #B3E5FC
    );
    color: var(--lentera-navy);
}

/* =========================================
   GRADASI NAVBAR LENTERA
   tempel PALING BAWAH app.css
========================================= */

.site-header {
    background: linear-gradient(
        120deg,
        #0D47A1 0%,
        #1565C0 50%,
        #4FC3F7 100%
    ) !important;

    border-bottom: none !important;
    box-shadow: 0 5px 18px rgba(13, 71, 161, 0.18) !important;
}

.site-header .bar {
    background: transparent !important;
}

/* Logo LENTERA */
.site-header .brand,
.site-header .brand strong,
.site-header .brand small {
    color: #FFFFFF !important;
}

/* Kotak icon rumah */
.site-header .brand-mark {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Menu navbar */
.site-header nav a {
    color: #FFFFFF !important;
    opacity: 0.9;
}

.site-header nav a:hover {
    color: #FFFFFF !important;
    opacity: 1;
}

/* Tombol keluar */
.site-header .nav-button {
    background: #FFFFFF !important;
    color: #0D47A1 !important;
    border: none !important;
}

/* Tombol daftar */
.site-header .nav-cta {
    background: #FFFFFF !important;
    color: #0D47A1 !important;
    border: none !important;
}

/* =====================================
   FIX TOMBOL BACA CERITA
===================================== */

.site-card .site-card-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: auto;
    padding: 11px 18px;

    background: linear-gradient(
        135deg,
        #0D47A1 0%,
        #1976D2 60%,
        #4FC3F7 100%
    ) !important;

    color: #FFFFFF !important;
    text-decoration: none !important;

    border: none;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Pastikan tulisan dan panah tetap putih */
.site-card .site-card-link span {
    color: #FFFFFF !important;
}

/* Saat mouse diarahkan */
.site-card .site-card-link:hover {
    color: #FFFFFF !important;

    background: linear-gradient(
        135deg,
        #083780 0%,
        #1565C0 60%,
        #29B6F6 100%
    ) !important;

    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(13, 71, 161, 0.25);
}

/* Saat sudah pernah diklik */
.site-card .site-card-link:visited {
    color: #FFFFFF !important;
}

/* =========================================
   HERO LENTERA — MODERN & ELEGAN
========================================= */

.hero {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    margin: 28px 0 48px;
    padding: 72px 45px 48px;

    text-align: center;
    color: #FFFFFF;

    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(111, 211, 255, 0.38),
            transparent 42%
        ),
        linear-gradient(
            135deg,
            #07336F 0%,
            #0D47A1 35%,
            #1565C0 68%,
            #2196D3 100%
        );

    border-radius: 26px;

    box-shadow:
        0 18px 45px rgba(13, 71, 161, 0.16);
}

/* =========================================
   ORNAMEN — TIPIS SAJA
========================================= */

/* Garis cahaya bagian atas */
.hero::before {
    content: "";

    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;

    width: auto;
    height: 2px;

    border: 0;
    border-radius: 0;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );

    opacity: 0.7;
}

/* Cahaya lembut di bawah */
.hero::after {
    content: "";

    display: block;

    position: absolute;
    width: 520px;
    height: 100px;

    left: 50%;
    bottom: -75px;

    transform: translateX(-50%);

    background: rgba(79, 195, 247, 0.22);
    filter: blur(45px);

    border-radius: 50%;
    pointer-events: none;
}

/* Konten selalu di atas dekorasi */
.hero > * {
    position: relative;
    z-index: 2;
}

/* =========================================
   LABEL LENTERA
========================================= */

.hero .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin: 0 auto 20px;
    padding: 8px 16px;

    color: #FFFFFF !important;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;

    backdrop-filter: blur(8px);
}

/* =========================================
   JUDUL
========================================= */

.hero h1 {
    max-width: 800px;

    margin: 0 auto 20px;

    color: #FFFFFF !important;

    text-align: center;

    font-size: clamp(40px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.08;

    letter-spacing: -1.5px;

    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Garis kecil di bawah judul */
.hero h1::after {
    content: "";

    display: block;

    width: 58px;
    height: 4px;

    margin: 22px auto 0;

    background: linear-gradient(
        90deg,
        #FFFFFF,
        #81D4FA
    );

    border-radius: 20px;
}

/* =========================================
   PARAGRAF
========================================= */

.hero p {
    max-width: 720px;

    margin-left: auto;
    margin-right: auto;

    color: rgba(255, 255, 255, 0.88) !important;

    text-align: center;

    font-size: 15px;
    line-height: 1.8;
}

.hero .muted {
    color: #CBEFFF !important;
}

/* =========================================
   TOMBOL
========================================= */

.hero .actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    width: 100%;

    gap: 12px;
    margin-top: 27px;
}

.hero .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 24px;

    background: #FFFFFF !important;
    color: #0D47A1 !important;

    border: 1px solid #FFFFFF;
    border-radius: 12px;

    font-weight: 700;
    text-decoration: none;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.13);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.hero .button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Tombol Buka Peta */
.hero .button.secondary {
    background: rgba(255, 255, 255, 0.10) !important;

    color: #FFFFFF !important;

    border: 1px solid rgba(255, 255, 255, 0.45);

    box-shadow: none;

    backdrop-filter: blur(8px);
}

.hero .button.secondary:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}

/* =========================================
   STATISTIK
========================================= */

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    width: 100%;
    max-width: 790px;

    gap: 12px;

    margin: 40px auto 0;
    padding-top: 23px;

    border-top: 1px solid rgba(255, 255, 255, 0.16);

    text-align: center;
}

.hero-metrics > div {
    position: relative;

    padding: 17px 14px;

    background: rgba(255, 255, 255, 0.09);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;

    backdrop-filter: blur(8px);

    transition:
        background .2s ease,
        transform .2s ease;
}

.hero-metrics > div:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.hero-metrics strong {
    display: block;

    margin-bottom: 4px;

    color: #FFFFFF !important;

    font-size: 26px;
    font-weight: 800;
}

.hero-metrics span {
    color: rgba(255, 255, 255, 0.76) !important;

    font-size: 12px;
    font-weight: 600;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .hero {
        margin-top: 18px;
        padding: 50px 22px 30px;

        border-radius: 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero .actions {
        flex-direction: column;
    }

    .hero .button {
        width: 100%;
        box-sizing: border-box;
    }

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


/* =====================================
   LENTERA - KARTU JELAJAHI SITUS
   ===================================== */

/* Kerangka kartu */
.site-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #DCEAF8;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgba(13, 71, 161, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.site-card:hover {
    transform: translateY(-5px);
    border-color: #B3E5FC;
    box-shadow: 0 12px 28px rgba(13, 71, 161, 0.14);
}

/* Area foto */
.site-card-image-link {
    display: block;
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #EAF6FF;
    text-decoration: none;
}

.site-card-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.site-card:hover .site-card-photo {
    transform: scale(1.05);
}

/* Jika foto belum tersedia */
.site-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: linear-gradient(
        135deg,
        #EAF6FF 0%,
        #D2EEFF 55%,
        #B3E5FC 100%
    );
    color: #0D47A1;
    font-size: 13px;
    text-align: center;
}

.site-card-placeholder-icon {
    font-size: 42px;
}

/* Bagian isi kartu */
.site-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

/* Label kategori */
.site-card-category {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 6px 11px;
    overflow-wrap: anywhere;
    border: 1px solid #D2EEFF;
    border-radius: 999px;
    background: #EAF6FF;
    color: #0D47A1;
    font-size: 12px;
    font-weight: 700;
}

/* Nama tetenger */
.site-card-title {
    margin: 0 0 10px;
    color: #0D47A1;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.site-card-title a {
    color: inherit;
    text-decoration: none;
}

.site-card-title a:hover {
    color: #1976D2;
}

/* Deskripsi */
.site-card-description {
    margin: 0 0 16px;
    color: #52647A;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* Alamat */
.site-card-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 18px;
    color: #52647A;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-card-location-icon {
    flex-shrink: 0;
}

/* Area tombol di bawah kartu */
.site-card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #EAF0F7;
}

/* Tombol Baca Cerita */
.site-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(
        120deg,
        #0D47A1 0%,
        #1976D2 65%,
        #29B6F6 100%
    );
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.site-card-link:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(13, 71, 161, 0.22);
}

.site-card-link:focus-visible,
.site-card-title a:focus-visible,
.site-card-image-link:focus-visible {
    outline: 3px solid #4FC3F7;
    outline-offset: 3px;
}

/* Tampilan HP */
@media (max-width: 576px) {
    .site-card-image-link {
        height: 200px;
    }

    .site-card-body {
        padding: 16px;
    }

    .site-card-title {
        font-size: 18px;
    }
}


/* ======================================
   LENTERA - JELAJAHI SITUS
   ====================================== */

.explore-page {
    color: #17324D;
}

/* Banner utama */
.explore-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 270px;
    margin-bottom: 38px;
    padding: 42px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(
        120deg,
        #0D47A1 0%,
        #1976D2 58%,
        #4FC3F7 100%
    );
    color: #FFFFFF;
    box-shadow: 0 12px 30px rgba(13, 71, 161, 0.16);
}

.explore-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: 60px;
    top: -120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow:
        0 0 0 30px rgba(255, 255, 255, 0.05),
        0 0 0 60px rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.explore-hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.explore-eyebrow,
.explore-section-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.explore-eyebrow {
    color: #E1F5FE;
}

.explore-hero h1 {
    margin: 0 0 14px;
    color: #FFFFFF;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}

.explore-hero p {
    max-width: 560px;
    margin: 0;
    color: #F0F9FF;
    font-size: 15px;
    line-height: 1.8;
}

.explore-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 18px;
    border-radius: 10px;
    background: #FFFFFF;
    color: #0D47A1;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.explore-hero-button:hover {
    transform: translateY(-2px);
    color: #0D47A1;
}

.explore-hero-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    font-size: clamp(70px, 10vw, 120px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
}

/* Judul bagian daftar */
.explore-list-section {
    padding-bottom: 20px;
}

.explore-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.explore-section-label {
    margin-bottom: 7px;
    color: #1976D2;
}

.explore-section-heading h2 {
    margin: 0 0 7px;
    color: #0D47A1;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 800;
}

.explore-section-heading p {
    margin: 0;
    color: #64748B;
    font-size: 14px;
}

.explore-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 115px;
    padding: 13px 18px;
    border: 1px solid #D2EEFF;
    border-radius: 14px;
    background: #EAF6FF;
}

.explore-total strong {
    color: #0D47A1;
    font-size: 25px;
}

.explore-total span {
    color: #52647A;
    font-size: 11px;
}

/* Panel pencarian */
.explore-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px auto auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid #E0ECF8;
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 5px 18px rgba(13, 71, 161, 0.05);
}

.explore-search-field,
.explore-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.explore-search-field label,
.explore-filter-field label {
    color: #17324D;
    font-size: 13px;
    font-weight: 700;
}

.explore-search-field input,
.explore-filter-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #D5E2F0;
    border-radius: 10px;
    outline: none;
    background: #FFFFFF;
    color: #17324D;
    font: inherit;
    font-size: 13px;
}

.explore-search-field input:focus,
.explore-filter-field select:focus {
    border-color: #1976D2;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

.explore-search-button {
    min-height: 46px;
    padding: 10px 17px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(120deg, #0D47A1, #1976D2, #4FC3F7);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.explore-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 12px;
    color: #0D47A1;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* Kartu situs */
.grid .site-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #DCEAF8;
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 5px 18px rgba(13, 71, 161, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid .site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(13, 71, 161, 0.13);
}

/* Foto kartu */
.grid .site-card-image-link {
    display: block;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #EAF6FF, #B3E5FC);
}

.grid .site-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.grid .site-card:hover .site-card-photo {
    transform: scale(1.04);
}

/* Isi kartu */
.grid .site-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 19px;
}

.grid .site-card-title {
    color: #0D47A1;
    font-size: 19px;
    line-height: 1.45;
}

.grid .site-card-description {
    color: #52647A;
    font-size: 13px;
    line-height: 1.8;
}

.grid .site-card-category {
    border: 1px solid #D2EEFF;
    background: #EAF6FF;
    color: #0D47A1;
}

.grid .site-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #EAF0F7;
}

.grid .site-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 9px;
    background: linear-gradient(120deg, #0D47A1, #1976D2, #4FC3F7);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

/* Hasil pencarian kosong */
.explore-empty {
    grid-column: 1 / -1;
    padding: 45px 20px;
    border: 1px dashed #B3D8F5;
    border-radius: 16px;
    background: #F8FBFF;
    text-align: center;
}

.explore-empty > div {
    font-size: 38px;
}

.explore-empty h3 {
    margin: 12px 0 6px;
    color: #0D47A1;
    font-size: 20px;
    font-weight: 750;
}

.explore-empty p {
    color: #64748B;
    font-size: 14px;
}

.explore-empty a {
    display: inline-block;
    margin-top: 10px;
    color: #1976D2;
    font-weight: 700;
}

/* Pagination */
.explore-pagination {
    margin-top: 30px;
}

/* Responsif */
@media (max-width: 900px) {
    .explore-search-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .explore-search-button,
    .explore-reset-button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .explore-hero {
        min-height: auto;
        padding: 27px 22px;
        border-radius: 17px;
    }

    .explore-hero-icon {
        display: none;
    }

    .explore-section-heading {
        align-items: flex-start;
    }

    .explore-total {
        min-width: auto;
        padding: 10px;
    }

    .explore-total span {
        max-width: 75px;
        text-align: center;
    }

    .explore-search-panel {
        grid-template-columns: minmax(0, 1fr);
        padding: 15px;
    }

    .grid .site-card-image-link {
        height: 200px;
    }
}


/* ========================================
   LENTERA — DETAIL TETENGER
======================================== */

.site-detail-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    color: #183153;
}

.site-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #0D47A1;
    font-weight: 700;
    text-decoration: none;
}

.site-detail-back:hover {
    color: #1976D2;
}

.site-detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 42px;
    margin-bottom: 30px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(120deg, #0D47A1 0%, #1976D2 60%, #4FC3F7 100%);
    box-shadow: 0 14px 35px rgba(13, 71, 161, 0.18);
}

.site-detail-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.site-detail-eyebrow {
    display: inline-block;
    padding: 7px 13px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.site-detail-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.site-detail-hero-address {
    margin: 0 0 18px;
    color: rgba(255,255,255,.94);
    line-height: 1.7;
}

.site-detail-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.site-detail-hero-tags span {
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.14);
    font-size: .88rem;
}

.site-detail-hero-decoration {
    position: relative;
    flex: 0 0 180px;
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.10);
}

.site-detail-hero-decoration span:first-child {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    color: #B3E5FC;
}

.site-detail-hero-decoration span:last-child {
    font-size: 5rem;
}

.site-detail-favorite {
    padding: 11px 17px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 12px;
    background: #fff;
    color: #0D47A1;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.site-detail-favorite:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.site-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 25px;
}

.site-detail-main {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.site-detail-sidebar {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.site-detail-panel {
    min-width: 0;
    padding: 27px;
    border: 1px solid #E2ECF8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(13,71,161,.055);
}

.site-detail-section-label {
    margin: 0 0 8px;
    color: #1976D2;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.site-detail-panel h2 {
    margin: 0 0 17px;
    color: #0D47A1;
    font-size: 1.45rem;
    line-height: 1.35;
}

.site-detail-prose {
    color: #4D6078;
    line-height: 1.85;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.site-detail-subsection {
    margin-top: 27px;
    padding-top: 23px;
    border-top: 1px solid #E7EFF8;
}

.site-detail-subsection h3 {
    margin: 0 0 13px;
    color: #174A89;
    font-size: 1.08rem;
}

.site-detail-muted {
    margin: 0 0 18px;
    color: #718198;
    font-size: .9rem;
    line-height: 1.7;
}

.site-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.site-detail-gallery-item {
    overflow: hidden;
    margin: 0;
    border: 1px solid #E5EDF7;
    border-radius: 14px;
    background: #F5F9FF;
}

.site-detail-gallery-item a {
    display: block;
    overflow: hidden;
}

.site-detail-gallery-item img {
    display: block;
    width: 100%;
    height: 205px;
    object-fit: cover;
    transition: transform .3s ease;
}

.site-detail-gallery-item a:hover img {
    transform: scale(1.04);
}

.site-detail-gallery-item figcaption {
    padding: 11px 13px;
    color: #52657C;
    font-size: .85rem;
    line-height: 1.5;
}

.site-detail-empty {
    grid-column: 1 / -1;
    padding: 22px;
    border: 1px dashed #BDD4F2;
    border-radius: 12px;
    background: #F6FAFF;
    color: #718198;
    text-align: center;
}

.site-detail-timeline {
    position: relative;
    display: flex;
    gap: 17px;
    padding-bottom: 27px;
}

.site-detail-timeline:last-child {
    padding-bottom: 0;
}

.site-detail-timeline-marker {
    position: relative;
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin-top: 6px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1976D2;
    box-shadow: 0 0 0 3px #D8EBFF;
}

.site-detail-timeline:not(:last-child) .site-detail-timeline-marker::after {
    position: absolute;
    top: 12px;
    left: 3px;
    width: 2px;
    height: calc(100% + 35px);
    background: #D8E8FA;
    content: "";
}

.site-detail-timeline-content {
    flex: 1;
    min-width: 0;
}

.site-detail-year {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 9px;
    border-radius: 8px;
    background: #EAF4FF;
    color: #0D47A1;
    font-size: .8rem;
    font-weight: 800;
}

.site-detail-timeline-content h3 {
    margin: 0 0 9px;
    color: #183E70;
    font-size: 1.08rem;
}

.site-detail-timeline-photo {
    display: block;
    width: 100%;
    max-height: 300px;
    margin-top: 15px;
    border-radius: 12px;
    object-fit: cover;
}

.site-detail-quiz-list,
.site-detail-feedback-list {
    display: grid;
    gap: 14px;
}

.site-detail-quiz {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
    border: 1px solid #E3EDF9;
    border-radius: 14px;
    background: #F9FBFF;
}

.site-detail-quiz-icon {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #DCEEFF;
    color: #0D47A1;
    font-size: 1.2rem;
}

.site-detail-quiz-info {
    flex: 1;
    min-width: 0;
}

.site-detail-quiz-info h3 {
    margin: 0 0 7px;
    color: #174A89;
    font-size: 1rem;
}

.site-detail-quiz-info p {
    margin: 0 0 9px;
    color: #61728A;
    line-height: 1.6;
}

.site-detail-quiz-info > span {
    color: #718198;
    font-size: .78rem;
}

.site-detail-quiz-action {
    max-width: 100%;
}

.site-detail-quiz-action button,
.site-detail-quiz-action .button {
    max-width: 100%;
}

.site-detail-feedback-button,
.site-detail-map-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 17px;
    margin-top: 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(120deg, #0D47A1, #1976D2);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.site-detail-feedback-button:hover,
.site-detail-map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(13,71,161,.2);
    color: #fff;
}

.site-detail-location h2 {
    font-size: 1.25rem;
}

.site-detail-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #EDF2F8;
}

.site-detail-info-icon {
    display: grid;
    flex: 0 0 37px;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 11px;
    background: #EAF4FF;
    font-size: 1.05rem;
}

.site-detail-info-row > div {
    min-width: 0;
}

.site-detail-info-label {
    display: block;
    margin-bottom: 5px;
    color: #7B8BA0;
    font-size: .76rem;
}

.site-detail-info-row p,
.site-detail-coordinates p {
    margin: 0;
    color: #294765;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-detail-coordinates {
    padding-top: 17px;
}

.site-detail-coordinates p {
    margin-top: 7px;
    font-size: .84rem;
    font-weight: 500;
}

.site-detail-side-note {
    padding: 23px;
    border: 1px solid #CDE9FC;
    border-radius: 18px;
    background: linear-gradient(145deg, #EFF8FF, #E0F4FF);
}

.site-detail-side-note-icon {
    font-size: 1.8rem;
}

.site-detail-side-note h3 {
    margin: 12px 0 8px;
    color: #0D47A1;
}

.site-detail-side-note p {
    margin: 0;
    color: #4D6887;
    font-size: .9rem;
    line-height: 1.8;
}

@media (max-width: 850px) {
    .site-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-detail-hero-decoration {
        flex-basis: 125px;
        width: 125px;
        height: 125px;
    }

    .site-detail-hero-decoration span:last-child {
        font-size: 3.5rem;
    }
}

@media (max-width: 560px) {
    .site-detail-page {
        padding: 18px 13px 40px;
    }

    .site-detail-hero {
        padding: 26px 21px;
        border-radius: 19px;
    }

    .site-detail-hero-decoration {
        display: none;
    }

    .site-detail-panel {
        padding: 20px 17px;
        border-radius: 16px;
    }

    .site-detail-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-detail-gallery-item img {
        height: 220px;
    }

    .site-detail-quiz {
        flex-wrap: wrap;
    }

    .site-detail-quiz-action {
        width: 100%;
    }
}


/* LENTERA — Kartu Peristiwa Sejarah */

.history-event-card {
    padding: 22px;
    margin-top: 17px;
    border: 1px solid #DCE9F8;
    border-left: 4px solid #1976D2;
    border-radius: 15px;
    background: linear-gradient(145deg, #FFFFFF, #F7FAFF);
}

.history-event-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.history-event-number {
    padding: 6px 10px;
    border-radius: 8px;
    background: #E3F2FD;
    color: #0D47A1;
    font-size: .78rem;
    font-weight: 800;
}

.history-event-time {
    color: #55708F;
    font-size: .84rem;
    line-height: 1.6;
}

.history-event-card > h3 {
    margin: 0 0 12px;
    color: #0D47A1;
    font-size: 1.2rem;
    line-height: 1.5;
}

.history-event-details {
    display: grid;
    gap: 13px;
    margin-top: 20px;
}

.history-event-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #E7EFF9;
    border-radius: 12px;
    background: #FFFFFF;
}

.history-event-icon {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #EAF4FF;
    font-size: 1.05rem;
}

.history-event-detail > div {
    min-width: 0;
}

.history-event-detail h4 {
    margin: 2px 0 6px;
    color: #174A89;
    font-size: .93rem;
}

.history-event-detail p {
    margin: 0;
    color: #52657C;
    font-size: .9rem;
    line-height: 1.75;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .history-event-card {
        padding: 17px;
    }

    .history-event-detail {
        padding: 12px;
    }
}


/* LENTERA — Kartu Peristiwa Sejarah */

.history-event-card {
    padding: 22px;
    margin-top: 17px;
    border: 1px solid #DCE9F8;
    border-left: 4px solid #1976D2;
    border-radius: 15px;
    background: linear-gradient(145deg, #FFFFFF, #F7FAFF);
}

.history-event-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.history-event-number {
    padding: 6px 10px;
    border-radius: 8px;
    background: #E3F2FD;
    color: #0D47A1;
    font-size: .78rem;
    font-weight: 800;
}

.history-event-time {
    color: #55708F;
    font-size: .84rem;
    line-height: 1.6;
}

.history-event-card > h3 {
    margin: 0 0 12px;
    color: #0D47A1;
    font-size: 1.2rem;
    line-height: 1.5;
}

.history-event-details {
    display: grid;
    gap: 13px;
    margin-top: 20px;
}

.history-event-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #E7EFF9;
    border-radius: 12px;
    background: #FFFFFF;
}

.history-event-icon {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #EAF4FF;
    font-size: 1.05rem;
}

.history-event-detail > div {
    min-width: 0;
}

.history-event-detail h4 {
    margin: 2px 0 6px;
    color: #174A89;
    font-size: .93rem;
}

.history-event-detail p {
    margin: 0;
    color: #52657C;
    font-size: .9rem;
    line-height: 1.75;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .history-event-card {
        padding: 17px;
    }

    .history-event-detail {
        padding: 12px;
    }
}


/* LENTERA — Arsip Peristiwa Sejarah */
.history-section {
    margin: 36px 0;
}

.history-eyebrow {
    margin-bottom: 8px;
    color: #1976D2;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.history-section > h2 {
    margin: 0 0 10px;
    color: #0D47A1;
}

.history-intro {
    color: #64748B;
    line-height: 1.7;
}

.history-event-card {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #DCE9F8;
    border-left: 5px solid #1976D2;
    border-radius: 16px;
    background: linear-gradient(145deg, #FFFFFF, #F4F9FF);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.06);
}

.history-event-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.history-event-number {
    padding: 6px 11px;
    border-radius: 8px;
    background: #E3F2FD;
    color: #0D47A1;
    font-size: 0.8rem;
    font-weight: 800;
}

.history-event-time {
    color: #55708F;
    font-size: 0.88rem;
}

.history-event-card h3 {
    margin: 0 0 12px;
    color: #0D47A1;
    line-height: 1.5;
}

.history-event-story,
.history-event-info p {
    color: #52657C;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.history-event-info {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #E5EDF8;
    border-radius: 12px;
    background: #FFFFFF;
}

.history-event-info strong {
    color: #174A89;
}

.history-event-info p {
    margin: 6px 0 0;
}

.history-empty {
    margin-top: 18px;
    padding: 20px;
    border: 1px dashed #B8D2F0;
    border-radius: 12px;
    color: #55708F;
    background: #F7FAFF;
}

@media (max-width: 600px) {
    .history-event-card {
        padding: 17px;
    }
}

/* ==========================================================================
   Peta Google Maps (publik) + Atur Lokasi Peta (admin)
   ========================================================================== */
.peta-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; margin: 18px 0 28px; }
.peta-sidebar { display: flex; flex-direction: column; max-height: 640px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.peta-sidebar > input[type="search"] { width: calc(100% - 24px); margin: 12px; }
.peta-list { flex: 1; margin: 0; padding: 0 8px 8px; list-style: none; overflow: auto; }
.peta-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 0 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.peta-item:hover { background: var(--sky-pale); }
.peta-item.active { border-color: var(--blue); background: var(--sky-pale); box-shadow: inset 3px 0 0 var(--blue); }
.peta-stage { position: relative; min-height: 600px; }
.peta-stage #map, .peta-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 1px solid var(--line); border-radius: 16px; background: #e9eef5; }
.peta-placeholder { display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); }
.peta-detail { position: absolute; left: 14px; bottom: 14px; z-index: 5; width: min(370px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 10px 34px rgba(13, 71, 161, .28); }
.peta-detail-photo { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 16px 16px 0 0; }
.peta-detail-body { padding: 14px 16px 16px; }
.peta-detail-body h2 { margin: 8px 0 4px; font-size: 20px; line-height: 1.25; }
.peta-detail-body p { margin: 6px 0; }
.peta-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.peta-detail-actions .button { padding: 8px 12px; font-size: 13px; text-decoration: none; }
.peta-detail-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); border: 1px solid var(--line); font-size: 20px; line-height: 1; }

.petaadm { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.petaadm-side { position: sticky; top: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 40px); padding: 12px; }
.petaadm-side > input[type="search"] { margin-bottom: 8px; }
.petaadm-filter { display: flex; gap: 14px; margin-bottom: 8px; }
.petaadm-filter label { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-weight: 500; }
.petaadm-filter input { width: auto; display: inline; }
.petaadm-side .peta-list { padding: 0; }
.petaadm-main { min-width: 0; }
.petaadm-form { padding: 16px 18px; margin-bottom: 14px; }
.petaadm-form h2 { margin: 0 0 2px; font-size: 20px; }
.petaadm-row { display: flex; gap: 10px; align-items: flex-start; }
.petaadm-row > .field { flex: 1; }
.petaadm-row > input { flex: 1; }
.petaadm-stage { position: relative; height: 520px; }
.petaadm-stage #adm-map, .petaadm-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 14px; background: #e9eef5; }
.adm-ok { color: #1b7a3b; }
.adm-warn { color: #b26a00; }

@media (max-width: 900px) {
  .peta-layout, .petaadm { grid-template-columns: 1fr; }
  .peta-sidebar { max-height: 260px; }
  .peta-stage { display: flex; flex-direction: column; min-height: 0; }
  .peta-stage #map, .peta-stage iframe { position: relative; inset: auto; height: 380px; }
  .peta-detail { position: static; width: auto; max-height: none; margin-top: 12px; }
  .petaadm-side { position: static; max-height: 300px; }
  .petaadm-stage { height: 400px; }
  .petaadm-row { flex-direction: column; }
}

/* ==========================================================================
   History Hunter (GPS) + Badge
   ========================================================================== */
.hunter-progress { padding: 22px 24px; max-width: 1000px; }
.hunter-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.hunter-progress-head span { color: #0D47A1; font-weight: 800; font-size: 17px; }
.hunter-bar { height: 14px; background: #e6e9ee; border-radius: 999px; overflow: hidden; }
.hunter-bar span { display: block; height: 100%; background: linear-gradient(90deg, #4FC3F7, #0D47A1); border-radius: 999px; transition: width .6s ease; }
.hunter-progress .small { margin: 10px 0 0; }
.hunter-radar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; max-width: 1000px; }
.hunter-radar > div:first-child { flex: 1 1 380px; }
.hunter-radar .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hunter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; max-width: 1000px; margin-bottom: 20px; }
.hunter-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.hunter-item:hover { border-color: var(--blue); }
.hunter-item strong { display: block; line-height: 1.3; }
.hunter-item small { color: var(--muted); }
.hunter-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e7f2ff; color: #0d47a1; font-size: 28px; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; max-width: 1000px; }
.badge-card { padding: 20px 16px; text-align: center; background: #fff; border: 2px solid transparent; border-radius: 16px; box-shadow: var(--shadow); }
.badge-card.earned { border-color: #34d399; }
.badge-card.locked { opacity: .62; }
.badge-card h2 { margin: 8px 0 4px; font-size: 16px; }
.badge-card p { margin: 4px 0; }
.badge-emoji { display: block; font-size: 46px; line-height: 1.2; }
.badge-card.locked .badge-emoji { filter: grayscale(.6); }
.badge-status { font-size: 13px; font-weight: 700; color: var(--muted); }
.badge-status.ok { color: #059669; }

#hunter-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.hunter-toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px; background: #fff; border-left: 5px solid #10b981; border-radius: 12px; box-shadow: 0 10px 30px rgba(13, 71, 161, .28); animation: hunter-in .35s ease; }
.hunter-toast-icon { font-size: 28px; line-height: 1; }
.hunter-toast > div { flex: 1; min-width: 0; }
.hunter-toast p { margin: 2px 0 4px; font-size: 14px; }
.hunter-toast a { font-size: 13px; font-weight: 700; }
.hunter-toast button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; }
@keyframes hunter-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Jumlah favorit */
.site-detail-favorite-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-detail-favorite-wrap form { margin: 0; }
.favorite-count { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); color: #fff; font-weight: 700; font-size: 14px; }
.site-card-favorites { margin: 4px 0 10px; color: #c62828; font-weight: 700; font-size: 14px; }


/* Revisi antarmuka TETENGER – detail, kuis, rating, QR eksternal, dan PWA */
.quiz-page { max-width: 900px; margin: 0 auto; }
.quiz-form { display: grid; gap: 18px; }
.quiz-question-card { min-width: 0; margin: 0; padding: 22px; border: 1px solid #dce8f7; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(13,71,161,.05); }
.quiz-question-card legend { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 0 0 14px; color: #173f75; font-size: 1.08rem; font-weight: 750; line-height: 1.5; }
.quiz-question-number { display: inline-grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #e7f2ff; color: #0d47a1; font-size: .9rem; }
.quiz-answer-list { display: grid; gap: 10px; }
.quiz-answer-option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 15px; border: 1px solid #dce6f2; border-radius: 12px; background: #fbfdff; color: #294765; cursor: pointer; font-weight: 600; transition: border-color .15s, background .15s; }
.quiz-answer-option:hover { border-color: #80b8f5; background: #f1f7ff; }
.quiz-answer-option input[type=radio] { flex: 0 0 19px; width: 19px !important; height: 19px; margin: 0; accent-color: #0d47a1; }
.quiz-answer-option:has(input:checked) { border-color: #2563eb; background: #edf5ff; color: #0d47a1; }
.site-detail-summary { order: -1; }
.site-detail-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.site-detail-summary-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.site-detail-summary-actions .site-detail-map-button { margin-top: 14px; }
.site-detail-favorite-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.favorite-count { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; }
.feedback-card-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.feedback-stars { display:inline-flex; align-items:center; gap:2px; color:#cbd5e1; font-size:1.2rem; letter-spacing:1px; white-space:nowrap; }
.feedback-stars .is-filled { color:#f59e0b; }
.feedback-stars small { margin-left:6px; color:#64748b; font-size:.75rem; letter-spacing:0; }
.field-label { display:block; margin-bottom:7px; font-weight:650; }
.rating-picker { display:inline-flex; align-items:center; gap:4px; }
.rating-picker input { position:absolute; width:1px !important; height:1px; opacity:0; }
.rating-picker label { margin:0; color:#cbd5e1; font-size:2rem; line-height:1; cursor:pointer; }
.rating-picker label.is-active, .rating-picker label:hover, .rating-picker label:hover ~ label { color:#f59e0b; }
.rating-picker input:focus-visible + label { outline:2px solid #2563eb; outline-offset:3px; border-radius:4px; }
.pwa-install-copy { max-width:560px; margin:0 auto 8px; color:#183153; }
.pwa-install-copy strong { display:block; color:#0d47a1; font-size:1rem; }
.pwa-install-copy small { display:block; color:#64748b; font-size:.85rem; line-height:1.5; }
.admin-qr-detail { max-width:760px; }
.admin-qr-detail h2 { color:#0d47a1; }
.qr-link-copy { display:flex; align-items:center; gap:10px; }
.qr-link-copy input { min-width:0; flex:1; }
.admin-qr-empty { display:grid; justify-items:center; gap:8px; padding:30px; border:1px dashed #b9d2f0; border-radius:14px; color:#64748b; text-align:center; }
.admin-qr-empty svg { width:36px; height:36px; color:#0d47a1; }
.admin-qr-card-image { display:grid; place-items:center; min-height:210px; background:#f4f8fd; }
.admin-qr-card-image img { max-width:100%; max-height:220px; object-fit:contain; }
.admin-qr-no-image { display:grid; justify-items:center; gap:8px; padding:28px; color:#64748b; text-align:center; }
.statistics-export-panel { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; margin:16px 0 22px; padding:18px 20px; border:1px solid #d6e5f8; border-radius:16px; background:#f4f8ff; }
.statistics-export-panel p { margin:3px 0 0; color:#64748b; font-size:.88rem; }
.statistics-export-panel .button { min-width:190px; text-align:center; }
.favorite-card-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.favorite-card-actions form { margin:0; }
@media(max-width:640px) { .site-detail-summary-grid,.site-detail-summary-actions { grid-template-columns:1fr; } .quiz-question-card { padding:17px; } .quiz-answer-option { padding:13px; } .qr-link-copy,.statistics-export-panel { flex-direction:column; align-items:stretch; } .statistics-export-panel .button { width:100%; } }

.site-detail-layout { display:block; }
.site-detail-main { width:100%; }
.admin-feedback-pending-list { display:grid; gap:12px; }
.admin-feedback-pending-item { display:grid; grid-template-columns:1fr auto; gap:6px 14px; padding:15px; border:1px solid #e2ecf8; border-radius:13px; background:#f9fbff; }
.admin-feedback-pending-item small { display:block; color:#718198; margin-top:3px; }
.admin-feedback-pending-item p { grid-column:1/-1; margin:4px 0 0; color:#475569; line-height:1.6; }


/* TETENGER refinement 2026-11-04: quiz layout, favorites, PWA, and admin export */
.quiz-index-page { max-width: 1180px; margin: 0 auto; }
.quiz-index-heading { max-width: 780px; margin: 0 0 26px; }
.quiz-index-heading h1 { margin: 4px 0 8px; color: #0d47a1; }
.quiz-index-heading > p:last-child, .quiz-page-intro { color: #64748b; line-height: 1.65; }
.quiz-index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.quiz-index-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 22px; border: 1px solid #dce8f7; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(13,71,161,.05); }
.quiz-index-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 13px; background: #e7f2ff; color: #0d47a1; }
.quiz-index-card h2 { margin: 0 0 7px; color: #173f75; font-size: 1.12rem; }
.quiz-index-card p { margin: 0 0 12px; color: #64748b; }
.quiz-index-meta { display: block; margin: auto 0 14px; color: #64748b; font-size: .88rem; }
.quiz-index-card form { width: 100%; margin: 0; }
.quiz-index-card form button { width: 100%; }
.quiz-page { max-width: 900px; margin: 0 auto; }
.quiz-page > h1 { color: #0d47a1; margin: 4px 0 8px; }
.quiz-page-intro { margin: 0 0 22px; }
.quiz-form { display: grid; gap: 18px; }
.quiz-question-card { display: block; min-width: 0; margin: 0; padding: 22px; border: 1px solid #dce8f7; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(13,71,161,.05); }
.quiz-question-title { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; color: #173f75; font-size: 1.08rem; font-weight: 750; line-height: 1.5; }
.quiz-question-number { display: inline-grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #e7f2ff; color: #0d47a1; font-size: .9rem; }
.quiz-answer-list { display: grid; gap: 10px; }
.quiz-answer-option { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 12px !important; width: 100%; min-width: 0; margin: 0 !important; padding: 14px 15px; border: 1px solid #dce6f2; border-radius: 12px; background: #fbfdff; color: #294765; cursor: pointer; font-weight: 600; text-align: left; transition: border-color .15s, background .15s; }
.quiz-answer-option:hover { border-color: #80b8f5; background: #f1f7ff; }
.quiz-answer-option input[type=radio] { display: block !important; flex: 0 0 19px !important; width: 19px !important; min-width: 19px !important; height: 19px !important; margin: 0 !important; padding: 0 !important; accent-color: #0d47a1; }
.quiz-answer-option span { display: block; flex: 1 1 auto; min-width: 0; text-align: left; }
.quiz-answer-option:has(input:checked) { border-color: #2563eb; background: #edf5ff; color: #0d47a1; }
.quiz-submit-button { width: 100%; }
.site-detail-favorite { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; flex: 0 0 auto; }
.site-detail-favorite span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #eaf2ff; color: #0d47a1; font-size: .82rem; }
.site-detail-favorite.is-saved { background: #eaf2ff; color: #0d47a1; border-color: #c7dcfa; }
.site-detail-favorite-wrap form { display: inline-flex; }
.rating-picker { direction: ltr; }
.rating-picker label:hover, .rating-picker label.is-active { color: #f59e0b; }
.statistics-export-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.statistics-export-panel .button { width: 100%; min-width: 0; }
.hunter-progress { border-color: #bfdbfe; }
.hunter-progress .hunter-bar { background: #e7f2ff; }
.hunter-progress .hunter-bar span { background: linear-gradient(90deg, #4fc3f7, #0d47a1); }
@media (max-width: 640px) { .quiz-question-card { padding: 17px; } .quiz-answer-option { padding: 13px; } .quiz-index-card { padding: 18px; } }

.feedback-rating-summary { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0 18px; padding:14px 16px; border:1px solid #dce8f7; border-radius:14px; background:#f7fbff; }
.feedback-rating-summary > strong { color:#0d47a1; font-size:1.6rem; line-height:1; }
.feedback-rating-summary > small { color:#64748b; }

.rating-picker label:hover ~ label { color: #cbd5e1; }

.form-section-intro { grid-column:1/-1; margin:8px 0 2px; padding:13px 15px; border-left:4px solid #2563eb; border-radius:10px; background:#f2f7ff; }
.form-section-intro strong { display:block; color:#0d47a1; font-size:1rem; }
.form-section-intro p { margin:3px 0 0; color:#64748b; font-size:.88rem; line-height:1.55; }

.admin-feedback-actions { grid-column:1/-1; display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; }
.admin-feedback-actions form { margin:0; }
.admin-feedback-actions button { min-width:0; flex:0 0 auto; padding:7px 12px; font-size:.84rem; }

.qr-url-warning { margin:14px 0; padding:14px 16px; border:1px solid #f4c36a; border-radius:12px; background:#fff8e8; color:#854d0e; }
.qr-url-warning p { margin:5px 0 0; color:#92400e; line-height:1.55; }
.qr-link-copy button:disabled { opacity:.48; cursor:not-allowed; }
