/* ===== BASIC RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4faf6;
  color: #1f2937;
}

/* ===== TOPBAR (FULL WIDTH) ===== */
.topbar {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.topbar-inner {
  padding: 14px 0;
}

.brand-title .brand {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.3px;
  color: #111827;
}

.brand-title .brand-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

/* Nav pill button */
.nav-pill-btn {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
  transition: 0.2s ease;
}

.nav-pill-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

/* ===== PAGE WRAPPER ===== */
.umkm-page {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 26px 20px 60px;
}

/* ===== STATS ===== */
.umkm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 35px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.08);
}

.stat-icon i {
  font-size: 30px;
  color: #0a9a42;
}

.stat-number {
  font-size: 30px;
  font-weight: 900;
  color: #0a9a42;
  margin-top: 6px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

/* ===== GRID UMKM ===== */
.umkm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* ===== CARD UMKM ===== */
.umkm-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.umkm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.09);
}

/* ===== IMAGE + HOVER ZOOM ===== */
.umkm-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.umkm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.umkm-card:hover .umkm-img img {
  transform: scale(1.12);
}

/* ===== BADGE ===== */
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  color: #fff;
  z-index: 5;
}

.badge-green {
  background: #0a9a42;
}

.badge-blue {
  background: #2563eb;
}

.badge-red {
  background: #dc2626;
}

/* ===== CONTENT BODY ===== */
.umkm-body {
  padding: 18px 18px 20px;
}

.umkm-body h3 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
}

.umkm-body p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ===== ADDRESS ===== */
.umkm-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.umkm-address i {
  color: #2563eb;
  font-size: 16px;
}

.umkm-address small {
  font-size: 13px;
  color: #6b7280;
}

/* ===== ACTION BUTTONS ===== */
.umkm-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.umkm-btn {
  flex: 1;
  padding: 11px 12px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 14px;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* tombol WA */
.btn-wa {
  background: #0a9a42;
  color: #fff !important;
}

.btn-wa:hover {
  background: #087a35;
  transform: translateY(-2px);
}

/* tombol Lokasi */
.btn-loc {
  background: #2563eb;
  color: #fff !important;
}

.btn-loc:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .umkm-stats {
    grid-template-columns: 1fr;
  }

  .umkm-grid {
    grid-template-columns: 1fr;
  }

  .umkm-img {
    height: 200px;
  }
}

@media (max-width: 500px) {
  .umkm-actions {
    flex-direction: column;
  }

  .brand-title .brand {
    font-size: 18px;
  }

  .brand-title .brand-subtitle {
    display: none;
  }
}

/* KECILIN JUDUL (h3) di card UMKM untuk mobile */
@media (max-width: 500px) {
  .umkm-body h3 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.2;
  }
}

@media (max-width: 500px) {
  #lokasi h2 {
    font-size: 20px;
    line-height: 1.15;
  }
}

/* ===== KECILKAN TOPBAR + JUDUL UMKM DI MOBILE ===== */
@media (max-width: 500px) {

  /* topbar lebih pendek */
  .topbar-inner {
    padding: 8px 0;
    /* dari 14px -> 8px */
  }

  /* kalau ada container di dalam topbar, rapetin kanan kiri */
  .topbar .container,
  .topbar .umkm-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* judul UMKM Desa Bolang lebih kecil */
  .brand-title .brand {
    font-size: 16px;
    /* dari 22px -> 16px */
    line-height: 1.15;
  }

  /* tombol Beranda lebih kecil */
  .nav-pill-btn {
    padding: 7px 10px;
    /* dari 10px 16px -> kecil */
    font-size: 12px;
    gap: 6px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  }

  /* kalau icon dalam tombol kegedean */
  .nav-pill-btn i {
    font-size: 13px;
  }
}

/* ===== PAKSA TOPBAR MENJADI TIPIS (PASTI KENA) ===== */
@media (max-width: 500px) {

  .topbar {
    padding: 0 !important;
  }

  /* kalau wrappernya topbar-inner */
  .topbar-inner {
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* kalau ternyata bukan topbar-inner, paksa anak langsungnya */
  .topbar>div {
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* kecilin judul */
  .brand-title .brand {
    font-size: 16px !important;
    line-height: 1.15 !important;
  }

  /* kecilin tombol beranda */
  .nav-pill-btn {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
}