/* RESET RINGAN */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root{
  --bg-1: #bbf7d0;
  --bg-2: #c4b5fd;
  --ink: #0f172a;
  --muted: #4b5563;
  --muted-2: #6b7280;

  --line: rgba(148, 163, 184, 0.35);
  --line-soft: rgba(148, 163, 184, 0.25);

  --card: rgba(255, 255, 255, 0.96);
  --card-2: #ffffff;
  --surface: rgba(241, 245, 249, 0.92);

  --green: #22c55e;
  --green-2: #14b8a6;
  --green-dark: #16a34a;
  --teal-dark: #0d9488;

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.10);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.22);

  --ease: 0.18s ease;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, var(--bg-1), transparent 55%),
    radial-gradient(circle at top right, var(--bg-2), transparent 55%),
    linear-gradient(to bottom, #ecfeff, #f1f5f9 40%, #ecfdf3);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection{
  background: rgba(34, 197, 94, 0.22);
}

/* LAYOUT UTAMA */
.main-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 16px 40px 16px;
}

/* HEADER */
.site-header-public {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-full {
  height: 34px;
  object-fit: contain;
}

.nav-public {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.nav-public a {
  position: relative;
  text-decoration: none;
  color: #1e293b;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color var(--ease), color var(--ease);
}

.nav-public a::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #22d3ee);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--ease);
}

.nav-public a:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
}

.nav-public a:hover::after {
  transform: scaleX(1);
}

.nav-public a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

/* TOMBOL */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  line-height: 1;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-dark), var(--teal-dark));
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.60);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--ink);
}

.btn-outline:hover {
  background: #e0f2fe;
  transform: translateY(-1px);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.18),
    0 10px 26px rgba(15, 23, 42, 0.12);
}

/* HOVER KARTU UNIVERSAL */
.card-hover {
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background-color var(--ease);
}

.card-hover:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* HERO */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.hero-bg-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.5;
  z-index: -1;
}

.hero-bg-orb-left {
  left: -40px;
  top: -40px;
  background: radial-gradient(circle at center, var(--bg-1), transparent 60%);
}

.hero-bg-orb-right {
  right: -40px;
  top: 30px;
  background: radial-gradient(circle at center, #a5b4fc, transparent 60%);
}

.hero-centered-main {
  text-align: center;
  max-width: 720px;
}

.hero-main-logo {
  height: 70px;
  margin-bottom: 6px;
}

@media (min-width: 768px) {
  .hero-main-logo {
    height: 155px;
    margin-bottom: 10px;
  }
}

.hero-centered-title {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.hero-centered-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 2px;
}

.hero-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Logo melayang pelan */
.floating {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* Hero card */
.hero-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  font-size: 13px;
  max-width: 760px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero-card ul {
  margin: 8px 0;
  padding-left: 18px;
}

.hero-card li {
  margin-bottom: 4px;
  color: #1f2937;
}

.hero-note {
  font-size: 11px;
  color: var(--muted-2);
}

/* LATAR BELAKANG / VISI / MISI */
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.stat-card {
  background: #ecfdf3;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  font-size: 13px;
  border: 1px solid rgba(22, 163, 74, 0.16);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #15803d;
  margin-bottom: 4px;
}

.stat-number {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.stat-note {
  font-size: 12px;
  color: #374151;
}

/* SECTION UMUM */
.section-block {
  margin-bottom: 30px;
}

.section-block h2,
.section-block h3 {
  margin-top: 0;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-mini-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.mini-chip {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.26);
}

.mini-chip-soft {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.35);
}

/* ANIMASI MASUK SECTION */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.42s ease-out, transform 0.42s ease-out;
  will-change: transform, opacity;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

/* MATERI SINGKAT */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--card-2);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px 14px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.feature-card h3{
  margin: 0 0 2px 0;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf3;
  color: #16a34a;
  font-size: 20px;
  margin-bottom: 4px;
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.material-snippet {
  flex-grow: 1;
  color: var(--muted);
}

.material-more-btn {
  align-self: flex-start;
  border-radius: 999px;
  font-size: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(22, 163, 74, 0.55);
  background: rgba(255, 255, 255, 0.92);
  color: #15803d;
  cursor: pointer;
  margin-top: 6px;
  transition: background-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.material-more-btn:hover {
  background: #dcfce7;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.material-more-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* POPUP MATERI */
.material-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 80;
}

.material-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.material-modal-dialog {
  background: var(--card-2);
  max-width: 720px;
  width: 90%;
  border-radius: var(--radius-lg);
  padding: 16px 18px 16px 18px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.30);
  transform: translateY(10px);
  animation: modalDrop 0.25s ease-out forwards;
}

@keyframes modalDrop {
  from { transform: translateY(10px); opacity: 0.8; }
  to { transform: translateY(0); opacity: 1; }
}

.material-modal-dialog h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.material-modal-body p {
  margin-top: 0;
  margin-bottom: 10px;
  color: #374151;
}

.material-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #0f172a;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background-color var(--ease), transform var(--ease);
}

.material-modal-close:hover{
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.material-modal-close:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* VIDEO DI DALAM MATERI */
.material-video {
  margin-top: 10px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.material-video h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.material-video-inner {
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  margin-bottom: 6px;
}

.material-video-inner video {
  width: 100%;
  height: auto;
  display: block;
}

.material-video-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* MATERI TERSEMBUNYI */
.material-full-hidden { display: none; }

/* PETA BESAR */
/* Penting: ukuran dan posisi peta dipertahankan seperti sebelumnya */
.map-section-full {
  padding-top: 26px;
}

.map-huge-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-sm);
}

.map-container { width: 100%; }

.map-container-huge {
  height: 520px;
}

/* LEGEND DI PETA */
.map-legend {
  background: transparent;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.legend-toggle-btn {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  font-size: 11px;
  color: var(--ink);
}

.legend-toggle-btn:hover { background: #e5f0ff; }

.legend-toggle-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 10px 22px rgba(15, 23, 42, 0.18);
}

.legend-toggle-icon {
  position: relative;
  width: 18px;
  height: 14px;
  border-radius: 4px;
  background: #e5e7eb;
}

.legend-toggle-icon::before,
.legend-toggle-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.legend-toggle-icon::before {
  width: 8px;
  height: 8px;
  background: #f97316;
  left: 2px;
  top: 3px;
}

.legend-toggle-icon::after {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  right: 2px;
  bottom: 3px;
}

.legend-toggle-label { font-weight: 700; }

.map-legend-panel {
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.20);
  font-size: 12px;
  color: #374151;
  min-width: 220px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.map-legend-panel-hidden { display: none; }

.map-legend-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.map-legend-section-title {
  margin-top: 6px;
  margin-bottom: 2px;
  font-weight: 700;
  font-size: 12px;
}

.map-legend-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4px 0;
}

.map-legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(15, 42, 31, 0.25);
  margin-right: 6px;
}

.map-legend-dot.solar { background: #f97316; }
.map-legend-dot.wind  { background: #38bdf8; }

.legend-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
}

.legend-filter-input {
  margin: 0;
  accent-color: #16a34a;
}

.legend-filter-label.legend-off { opacity: 0.45; }

/* POPUP DI PETA */
.leaflet-popup-content h3 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 14px;
}

.map-popup-subtitle {
  font-size: 12px;
  color: var(--muted-2);
  margin: 0 0 6px 0;
}

.map-popup-text {
  font-size: 12px;
  color: #374151;
  margin: 0 0 6px 0;
}

.map-popup-source {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.map-popup-source a { color: #15803d; }

/* TABEL */
.table-wrapper {
  background: var(--card-2);
  border-radius: var(--radius-md);
  padding: 10px 10px 8px 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.simple-table thead { background: #ecfeff; }

.simple-table th,
.simple-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.simple-table th {
  font-weight: 700;
  color: #111827;
}

.simple-table tbody tr:last-child td { border-bottom: none; }

/* DATA RINGKAS */
.summary-section {
  background: radial-gradient(circle at top left, #bbf7d0, #dcfce7);
  border-radius: var(--radius-lg);
  padding: 16px 18px 18px 18px;
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.16);
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.summary-section h2 {
  margin-top: 0;
  margin-bottom: 4px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.summary-card {
  background: var(--card-2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.summary-label {
  font-size: 16px;
  font-weight: 700;
  color: #064e3b;
  margin: 0 0 8px 0;
}

.summary-number {
  font-size: 30px;
  font-weight: 800;
  color: #064e3b;
  margin: 0 0 4px 0;
}

.summary-note {
  font-size: 13px;
  color: #14532d;
}

/* GALERI */
.gallery-section { margin-top: 10px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  background: var(--card-2);
  border-radius: var(--radius-md);
  padding: 12px 12px 12px 12px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.gallery-image { margin-bottom: 6px; }

.gallery-img {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* DAFTAR REFERENSI */
.reference-list {
  list-style: disc;
  padding-left: 18px;
  margin: 4px 0 0 0;
  font-size: 13px;
}

.reference-list li { margin-bottom: 6px; }

.reference-list a {
  color: #0369a1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.reference-list a:hover { color: var(--ink); }

/* CONTACT LAYOUT */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 16px;
}

.contact-layout.contact-layout-stack {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-card {
  background: var(--card-2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
}

.contact-info-card-full {
  max-width: 520px;
  margin: 18px auto 0 auto;
}

.contact-tips {
  margin: 6px 0 4px 0;
  padding-left: 18px;
}

.contact-list-icon {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.contact-list-icon li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5f0ff;
  color: #1d4ed8;
  flex-shrink: 0;
  font-size: 14px;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.contact-icon-whatsapp {
  background: #dcfce7;
  color: #16a34a;
}

.contact-icon-time {
  background: #fef9c3;
  color: #ca8a04;
}

/* FORM */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(248, 250, 252, 0.95);
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease), transform var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 12px 24px rgba(15, 23, 42, 0.14);
  background: #ffffff;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible{
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.auth-form .btn-primary {
  align-self: flex-start;
  padding-left: 22px;
  padding-right: 22px;
  margin-top: 4px;
}

.form-note-small {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-2);
}

.field-required {
  color: #b91c1c;
  font-weight: 800;
  font-size: 11px;
  margin-left: 2px;
}

/* RESPONSIF */
@media (max-width: 900px) {
  .stats-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .stats-section { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-grid { grid-template-columns: minmax(0, 1fr); }

  .map-container-huge { height: 380px; }

  .site-header-public {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-public a{
    padding: 6px 9px;
  }
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px 16px;
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.site-footer p { margin: 0; }

.footer-inner {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.footer-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1;
  white-space: nowrap;
}

.footer-link {
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease);
}

.footer-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

/* TOAST */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  max-width: 360px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
  font-size: 14px;
  line-height: 1.35;
}

.toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.toast .toast-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.toast .toast-desc {
  opacity: 0.95;
}

/* LOADING BUTTON */
.btn-loading {
  opacity: 0.75;
  pointer-events: none;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,1);
  border-radius: 50%;
  vertical-align: -2px;
  margin-right: 8px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIF TABEL IKLIM: desktop tetap tabel, mobile jadi kartu */

.table-responsive {
  width: 100%;
}

@media (max-width: 820px) {
  /* Jadikan tiap baris seperti kartu */
  .table-climate thead {
    display: none;
  }

  .table-climate,
  .table-climate tbody,
  .table-climate tr,
  .table-climate td {
    display: block;
    width: 100%;
  }

  .table-climate tr {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .table-climate td {
    border: none !important;
    padding: 8px 0 !important;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    align-items: start;
  }

  .table-climate td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.25;
  }

  /* kolom angka biar rapi */
  .table-climate td:nth-child(2),
  .table-climate td:nth-child(3),
  .table-climate td:nth-child(4),
  .table-climate td:nth-child(5) {
    font-variant-numeric: tabular-nums;
  }

  /* link sumber */
  .table-climate td:last-child a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    color: #0f172a;
  }
}

@media (max-width: 420px) {
  .table-climate td {
    grid-template-columns: 120px 1fr;
  }
}
