/* ================================================
   IklanSamarinda — CSS Minimal & SEO-Friendly
   Warna: hitam = #000000, putih = #ffffff
   Gambar semua halaman: rasio 1:1 (aspect-ratio)
   ================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; color: #111111; background: #f5f5f526; }

/* ── Navbar — putih murni, teks hitam pekat ── */
#mainNav {
  background: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.navbar-brand { font-size: 1.15rem; font-weight: 800; color: #000000 !important; letter-spacing: -.03em; }
.navbar-brand:hover { color: #000000 !important; }
#mainNav .nav-link { color: #111111 !important; font-weight: 500; }
#mainNav .nav-link:hover { color: #000000 !important; }
#mainNav .dropdown-menu { background: #ffffff; border: 1px solid #e0e0e0; }
#mainNav .dropdown-item { color: #111111; }
#mainNav .dropdown-item:hover { background: #f5f5f5; color: #000000; }

/* ── WA Float ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 52px; height: 52px; background: #25d366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ── Hero ── */
.hero-section { background: #000000; color: #ffffff; }
.hero-title { font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.2; color: #ffffff; }
.hero-title em { font-style: italic; color: #93c5fd; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.75); }

.hero-search {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: #ffffff; padding: 8px; border-radius: 10px;
}
.hero-search select,
.hero-search input {
  flex: 1; min-width: 140px; border: 1px solid #d1d5db;
  border-radius: 6px; padding: 10px 12px; font-size: .9rem; color: #000000;
  background: #ffffff;
}
.hero-search select:focus, .hero-search input:focus { outline: 2px solid #000000; border-color: #000000; }
.hero-search button {
  background: #000000; color: #ffffff; border: none;
  padding: 10px 20px; border-radius: 6px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.hero-search button:hover { background: #222222; }

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.btn-pasang {
  background: #16a34a; color: #ffffff; padding: 10px 22px;
  border-radius: 8px; font-weight: 700; text-decoration: none; transition: background .15s;
}
.btn-pasang:hover { background: #15803d; color: #ffffff; }

/* ── Filter Kota ── */
.kota-bar { background: #ffffff; border-bottom: 1px solid #e0e0e0; }
.kota-scroll {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding: 8px 0;
  scrollbar-width: none;
}
.kota-scroll::-webkit-scrollbar { display: none; }
.kota-label { font-size: .8rem; color: #555555; white-space: nowrap; font-weight: 600; }
.chip {
  padding: 5px 14px; border-radius: 20px; font-size: .8rem;
  background: #f0f0f0; color: #333333; text-decoration: none; white-space: nowrap;
  border: 1px solid #e0e0e0; transition: all .15s; font-weight: 500;
}
.chip:hover { background: #e0e0e0; color: #000000; border-color: #cccccc; }
.chip.active { background: #000000; color: #ffffff; border-color: #000000; }

/* ── Sidebar ── */
.sidebar-box {
  background: #ffffff; border-radius: 10px; padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 16px;
  border: 1px solid #ebebeb;
}
.sidebar-heading {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: #555555; margin-bottom: 10px;
}
.sidebar-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 6px; font-size: .875rem; color: #333333;
  text-decoration: none; transition: background .12s;
}
.sidebar-item:hover { background: #f5f5f5; color: #000000; }
.sidebar-item.active { background: #000000; color: #ffffff; font-weight: 700; }
.sidebar-item .badge {
  background: #ebebeb; color: #555555; font-size: .68rem;
  padding: 2px 7px; border-radius: 10px; font-weight: 600;
}
.sidebar-item.active .badge { background: #333333; color: #ffffff; }

.sidebar-promo {
  background: #000000; color: #ffffff;
  border-radius: 10px; padding: 18px; font-size: .875rem;
}
.sidebar-promo strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.sidebar-promo p { margin-bottom: 14px; color: rgba(255,255,255,.7); font-size: .8rem; line-height: 1.5; }

/* ── Section title ── */
.section-title { font-size: 1rem; font-weight: 800; color: #000000; }

/* ── Produk Card ── */
.produk-card {
  background: #ffffff; border-radius: 10px;
  border: 1px solid #ebebeb;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden;
  transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
.produk-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }

.card-link { text-decoration: none; color: inherit; display: block; }

/* ── GAMBAR 1:1 (aspect-ratio square) ── */
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #aaaaaa; font-size: .8rem; font-weight: 500;
  background: #f0f0f0;
}

.badge-unggulan {
  position: absolute; top: 8px; left: 8px;
  background: #f59e0b; color: #ffffff;
  font-size: .68rem; padding: 3px 9px; border-radius: 4px; font-weight: 700;
  letter-spacing: .02em;
}

.card-body-inner { padding: 10px 12px; }
.card-title {
  font-size: .875rem; font-weight: 700; color: #000000;
  margin: 0 0 4px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-kota { font-size: .75rem; color: #666666; margin: 0; }

.card-foot {
  margin-top: auto; padding: 8px 12px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #f0f0f0;
}
.card-views { font-size: .7rem; color: #aaaaaa; }
.btn-wa-card {
  background: #25d366; color: #ffffff; font-size: .7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 4px; text-decoration: none; transition: background .15s;
}
.btn-wa-card:hover { background: #1da851; color: #ffffff; }

/* ── Gambar di halaman produk detail (1:1) ── */
/* ── Gambar detail produk: 1:1, proporsional ── */
.img-produk-wrap {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f0;
  margin-bottom: 1.5rem;
}
.img-produk-detail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 991px) {
  .img-produk-wrap {
    max-width: 360px;
  }
}

/* ── Gambar iklan terkait (1:1) ── */
.img-related {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.img-related-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: #f0f0f0; color: #aaaaaa; font-size: .75rem;
}

/* ── Footer — hitam pekat ── */
.footer {
  font-size: .875rem;
  background: #000000 !important;
  color: #cccccc !important;
}
.footer a { color: #aaaaaa !important; text-decoration: none; transition: color .15s; }
.footer a:hover { color: #ffffff !important; }
.footer .text-white { color: #ffffff !important; }
.footer .text-secondary { color: #888888 !important; }
.footer .border-secondary { border-color: #222222 !important; }
.footer .btn-outline-success { border-color: #25d366; color: #25d366; }
.footer .btn-outline-success:hover { background: #25d366; color: #ffffff; }
.footer .btn-outline-secondary { border-color: #555555; color: #888888; }
.footer .btn-outline-secondary:hover { background: #333333; color: #ffffff; border-color: #333333; }
.footer-heading { color: #ffffff !important; font-size: .72rem !important; font-weight: 800 !important; letter-spacing: .07em; text-transform: uppercase; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-search { flex-direction: column; }
  .hero-search select, .hero-search input { min-width: auto; width: 100%; }
}
