/* ===== RESET & DASAR ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  margin-bottom: 24px;
  padding: 24px 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 12px;
}
.header h1 { font-size: 22px; margin-bottom: 4px; }
.header p { font-size: 13px; opacity: 0.9; }

/* ===== SEARCH ===== */
.search-box {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  margin-bottom: 16px;
  outline: none;
}
.search-box:focus { border-color: #667eea; }

/* ===== FILTER KATEGORI ===== */
.kategori-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
}
.kategori-filter button {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}
.kategori-filter button.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* ===== CARD USAHA ===== */
.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
  flex-shrink: 0;
}
.card-info { flex: 1; min-width: 0; }
.card-info h3 {
  font-size: 15px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-info .kategori {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: #eef2ff;
  color: #667eea;
  border-radius: 10px;
  margin-bottom: 6px;
}
.card-info .wa { font-size: 12px; color: #666; }

.btn-wa {
  padding: 8px 14px;
  font-size: 13px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-wa:hover { background: #1da851; }

/* ===== LOADING & EMPTY ===== */
.loading, .empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  margin-top: 32px;
  font-size: 12px;
  color: #999;
  padding: 16px;
}

/* ===== MODAL DETAIL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  z-index: 1;
}
.modal-header h2 { font-size: 16px; color: #333; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 4px 8px;
}
.modal-body { padding: 16px; }

.detail-foto {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #eee;
}
.detail-nama {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.detail-kategori {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  background: #eef2ff;
  color: #667eea;
  border-radius: 10px;
  margin-bottom: 16px;
}
.detail-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  width: 110px;
  color: #888;
  flex-shrink: 0;
  font-size: 13px;
}
.detail-value {
  color: #333;
  flex: 1;
  word-break: break-word;
  white-space: pre-line;
}
.detail-actions {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 12px 16px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
}
.btn-chat-big {
  flex: 1;
  padding: 14px;
  background: #25D366;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}
.btn-chat-big:hover { background: #1da851; }